Question 15 Marks
Draw the graph of the function $|x-2|$.
Answer
View full question & answer→Clearly,
$
\begin{aligned}
y & =|x-2|=\left\{\begin{array}{cc}
x-2, & x-2 \geq 0 \\
-(x-2), & x-2<0
\end{array}\right. \\
& =\left\{\begin{array}{ll}
x-2, & x \geq 2 \\
2-x, & x<2
\end{array}\right.
\end{aligned}
$
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 $P Q$ to get the graph of $y=x-2$
for $y=2-x$;
Plot the points $R(1,1), S(0,2)$ and join RS to get the graph of $y=2-x$

$
\begin{aligned}
y & =|x-2|=\left\{\begin{array}{cc}
x-2, & x-2 \geq 0 \\
-(x-2), & x-2<0
\end{array}\right. \\
& =\left\{\begin{array}{ll}
x-2, & x \geq 2 \\
2-x, & x<2
\end{array}\right.
\end{aligned}
$
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$.
| X | 2 | 4 |
| y | 0 | 2 |
for $y=2-x$;
| X | 1 | 0 |
| y | 1 | 2 |


