I've been trying to solve this problem and I always get 1, but the answer is $1 - 2x$.
If $x<\frac12$ then what is $\left|x-\sqrt{(x-1)^2}\right|$ ?
I've been trying to solve this problem and I always get 1, but the answer is $1 - 2x$.
If $x<\frac12$ then what is $\left|x-\sqrt{(x-1)^2}\right|$ ?
Note that $\sqrt {t^2}=|t|$ for all real numbers $t$. By the condition $x<\frac12$, it is clear that $x-1$ is negative, hence $\sqrt{(x-1)^2}=|x-1|=1-x$ and the final result is $|x-(1-x)|=|2x-1|=1-2x$ (because $2x-1<0$).