Mathematics (JEE)Very hardJEE Advanced pattern

f(x) = x² when x is rational and f(x) = 2x − 1 when x is irrational. Which statement is correct?

  1. A. f is continuous only at x = 1 but not differentiable there
  2. B. f is continuous only at x = 1 and is differentiable there
  3. C. f is continuous at x = 0 and x = 1 only
  4. D. f is continuous nowhere

Correct answer: B. f is continuous only at x = 1 and is differentiable there

Continuity needs both rules to give the same limit: x² = 2x − 1 ⇔ (x − 1)² = 0 ⇔ x = 1. At x = 1, [f(1 + h) − f(1)]/h equals (2h + h²)/h = 2 + h (rational) or 2h/h = 2 (irrational); both → 2, so f′(1) = 2 exists. The line 2x − 1 is the tangent to x² at 1, which is why the derivative exists.

More Limits, Continuity and Differentiability questions

Exams that ask this topic