Differentiability of weird function

Ara macao
Messages
26
Reaction score
0
Let f(x) = x if x rational and f(x) = 0 if x is irrational

Let g(x) = x^2 if x rational and g(x) = 0 if x is irrational.

Both functions are continuous at 0 and discontinuous at each x != 0.

How do I show that f is not differentiable at 0?
How should I show that g is differentiable at 0? Give g'(0) as well.

Thanks...
 
Physics news on Phys.org
Use the definition: f'(0)= lim_{h->0}\frac{f(h)}{h}.
but \frac{f(h)}{h} is 1 if x is rational, 0 if x is irrational. What does that tell you about the limit?

\frac{g(h)}{h} is h is x is rational, 0 if x is irrational.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top