|x-2|=\left\{\begin{array}{cc}x-2 & x\geq 2\\ -x+2 & x<2\end{array}\right.