$$\lim_{x\to 2}\frac{|x-2|}{2x-x^2}$$
I know the answer of the left hand limit is $1/2$; while the right hand limit is $-1/2$. But I don't understand how do you get that?
If I factor $-x$ from the denominator, I'll get $(-2+x)$ which cancels out with the numerator. Then I'll get $1/-x$. If I plug in the limit of $2$ from the left hand, it would be $1/2$. Wouldn't it also be $1/2$ from the right hand, as well? I'm getting confused on how to work this out. Please help, thank you!
The best way is to consider separately the two cases
$$\lim_{x\to 2^+}\frac{|x-2|}{2x-x^2}=\lim_{x\to 2^+}\frac{x-2}{x(2-x)}=\lim_{x\to 2^+}-\frac{1}{x}$$
$$\lim_{x\to 2^-}\frac{|x-2|}{2x-x^2}=\lim_{x\to 2^-}\frac{-x+2}{x(2-x)}=\lim_{x\to 2^-}\frac{1}{x}$$