How should I evaluate this function's limits?
$$\lim_{x\to2}\frac{|x^2-4|}{x-2}$$
When graphing the function, I know its limit does not exist. My first attempt was to reconstruct the numerator as $(x+2)(x-2)$ and concludes its limits is $4$.
How should I evaluate its limit without graphing it, and what's the problem with my first attempt. Is there any general approach to deal with those problems?
Any help or comments would be appreciated!!!
The key is to understand the function $\frac{|x|}{x}$, which is equal to $1$ when $x> 0$ and equal to $-1$ when $x<0$. Similarly,
$$\frac{|x^2-4|}{x-2} = |x+2|\cdot \frac{|x-2|}{x-2} = \begin{cases} \hphantom{-}|x+2|,&x-2>0,\\ -|x+2|,&x-2<0. \end{cases}$$
Therefore, $$\lim_{x\to 2^+}\frac{|x^2-4|}{x-2} = \lim_{x\to 2^+}|x+2|=4,$$ $$\lim_{x\to 2^-}\frac{|x^2-4|}{x-2} = \lim_{x\to 2^-}(-|x+2|)=-4.$$
Since the limits from the left and the right are not equal, the limit doesn't exist.