I have a function $f(x)=|x^2-4|$.
I am able to use the following definition of absolute value to show that $f(x)$ is non-differentiable at $x=\pm2$ $|x| = \begin{cases} x, & x\geq0 \\ -x, & x<0 \end{cases} $.
When I use that definition I find that $\lim \limits_{x \to -2-} f'(x)=-4$ and $\lim \limits_{x \to -2+} f'(x)=4$
However, I am not able to show that with the following definition for the absolute value: $|x|=\sqrt{x^2}$.
$|x^2-4|=\sqrt{(x^2-4)^2}$
$\lim \limits_{x \to -2} \frac{\sqrt{(x^2-4)^2}-\sqrt{((-2)^2-4)^2}}{x-(-2)}$
$=\lim \limits_{x \to -2} \frac{\sqrt{(x^2-4)^2}-0}{x+2}$
$=\lim \limits_{x \to -2} \frac{(x^2-4)^2}{(x+2)^2}$
$=\lim \limits_{x \to -2} \frac{(x+2)^2(x-2)^2}{(x+2)^2}$
$=\lim \limits_{x \to -2} (x-2)^2$
$=((-2)-2)^2=16$
I have bad fundamentals. So, I apologize for missing something basic. Thank you for your help in advance.
There are two mistakes:
First, when you write $$ \sqrt{(x^2 - 4)^2} = x^2 - 4 $$ in the numerator of your calculation, you are assuming that $$ \sqrt{u^2} = u, $$ which is only true if $u \geq 0$.
The actual formula (which you of course know) is: $$ \sqrt{u^2} = |u|. $$
Second, you replace a rational expression by its square at the next step, but of course, they're not the same thing.
Does this help?