Clearly,
y = |x − 2| = \(\begin{cases} x - 2 & \quad x - 2 \geq 0\\-(x-2), & \quad x - 2 < 0\end{cases}\)
=\( \begin{cases} x-2 & \quad x\geq2\\ 2-x & \quad x < 2 \end{cases}\)
We know that, a linear equation in x and y represents a line for drawing a line, we need only two points for y = x – 2
So, plot the points P (2, 0), Q (4, 2) and join PQ to get the graph of y = x – 2 for y = 2 – x
Plot the points R (1, 1), So (0, 2) and join RS to get the graph of y = y = 2 – x