What is wrong in this argument?
$$ \lim_{x \rightarrow 1^-} \frac{x-1}{|x-1|} = \lim_{x \rightarrow 1^-} \frac{x-1}{\sqrt{(x-1)(x-1)}} = \lim_{x \rightarrow 1^-} \frac{\sqrt{x-1}}{\sqrt{x-1}} = 1$$
I know it is wrong because the book I’m working with shows that the limit should be $-1$ and not $1$. I suspect that it has something to do with the second equality, since I should really want $\sqrt{1-x}$ in the numerator because $x \leq 1$?
You can do that too. $\displaystyle \lim_{x \to 1^{-}} \dfrac{x-1}{|x-1|}= \displaystyle \lim_{x \to 1^{-}} -\dfrac{1-x}{\sqrt{(x-1)^2}}=\displaystyle \lim_{x \to 1^{-}}-\dfrac{1-x}{\sqrt{(1-x)^2}}=\displaystyle \lim_{x \to 1^{-}}-\dfrac{1-x}{|1-x|}=\displaystyle \lim_{x \to 1^{-}} -\dfrac{1-x}{1-x} = -1$ . Note that the factor $\sqrt{1-x}$ that you mentioned is simplifed or canceled out with the same factor at the denominator. Thus you don't have it in the numerator any more.