Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let $f$ be the function defined on the real line by

$f(x) =$ \begin{cases} 2x^2, & \text{if $x \in \mathbb{Q}$} \\ -3x^2, & \text{if $x \notin \mathbb{Q}$} \\ \end{cases}

Then which for the following is true?

A. $f$ is not continuous and not differentiable everywhere

B. $f$ is continuous only at $x=0$ and not differentiable everywhere

C. $f$ is continuous and differentiable only at $x=0$

D. $f$ is continuous and not differentiable everywhere

E. $f$ is continuously differentiable everywhere

share|cite|improve this question

Use the sequence of characterisation of continuity, together with the familiar property of reals: to every real number, there are two sequences, one of rationals and other of irrationals converging to it (in $\mathbf{R}$).

The differentiability can be investigated based on similar ideas.

BTW, the answer is (C)

share|cite|improve this answer

I think a picture helps: ${}{}{}$

enter image description here

share|cite|improve this answer

Answer c is correct. For derivability at 0 take the definition. Recall that a derivable function at a point is also continuous.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.