# How do you graph abs(6-x)?

Aug 31, 2017

(see below)

#### Explanation:

For $x \le 6$
$\textcolor{w h i t e}{\text{XXX}} \left\mid 6 - x \right\mid$ is the same as $6 - x$
$\textcolor{w h i t e}{\text{XXX}}$and we can find a few point by picking arbitrary values of $x \le 6$
color(white)("XXX"){:color(green)((ul(x),color(white)("xx"),ul(6-x)), (6,,0), (3,,3),(0,,6)) :}

Similarly, for $x \ge 6$
$\textcolor{w h i t e}{\text{XXX}} \left\mid 6 - x \right\mid$ is the same as $x - 6$
$\textcolor{w h i t e}{\text{XXX}}$and we can find a few point by picking arbitrary values of $x \le 6$
color(white)("XXX"){:color(magenta)((ul(x),color(white)("xx"),ul(x-6)), (6,,0), (9,,3),(12,,6)) :}

Plot these points and draw a line through them: