I am stuck with showing that this function is differentiable at $x=0$ but not at $x=1$.
$f(x) = \begin{cases} x^2, & \text{if x}\in{\mathbb{Q}}\\ x^3, & \text{if x}\notin{\mathbb{Q}}\\ \end{cases}$
So for $x=0$:
Case 1: $h \in \mathbb{Q}$
$\lim\limits_{h \to 0}{\frac{f(0+h)-f(0)}{h}} = \lim\limits_{h \to 0}{\frac{f(h)}{h}} = \lim\limits_{h \to 0}{\frac{h^2}{h} = \lim\limits_{h \to 0}{ h} = 0} $
Case 2: $h \notin \mathbb{Q}$
$\lim\limits_{h \to 0}{\frac{f(0+h)-f(0)}{h}} = \lim\limits_{h \to 0}{\frac{f(h)}{h}} = \lim\limits_{h \to 0}{\frac{h^3}{h} = \lim\limits_{h \to 0}{ h^2} = 0} $
I am unsure on how to continue from here. I thought I need to show that for $x=0$ the right and left hand side limits are the same, and for $x=1$ they are different.