The question states as following: "Does the Chain Rules anble you to calculate the derivates of |x^2| and |x|^2 at x=0? Do these functoins have derivatives at x = 0? why?"
So using the chain rule for both of these I got two different answer.
For $|x|^2$ I got $f'(x)= 2|x|*\frac {x}{|x|}$ i.e $2x$
For $|x^2|$ using the chain rule I got $f'(x)=\frac {2x}{|x|}$
Two very different answers. And and only one of these derivatives is differentiable at x = 0.
Which I know is strange since I know for $y = x^2$ => $y' = 2x$
$y'$ is differentiable at x = 0.
So how am I not able to reach the same conclusion using the chainrule?
Thank you in advance!
Your first answer is correct. (Consider that $|x^2| = |x|^2=x^2$.)
For the second one, you should have: $$\frac{x^2}{|x^2|}2x = 2x. $$
Edit: amd makes a good point in the comments that using the chain rule at $x=0$ here is unfounded since $|x|$ is not differentiable there (although it works for all $x\ne0$... I had skimmed over the first sentence where the actual question was stated and not realized it was a theory question very particularly about $x=0$.). However since $|x|^2=|x^2|=x^2$ they are all the same function and differentiable at the origin since $$ \lim_{h\to 0} \frac{f(0+h)-f(0)}{h}=\lim_{h\to 0}\frac{h^2-0}{h}=0.$$