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

1 Answer
Aug 31, 2017

(see below)

Explanation:

For #x<=6#
#color(white)("XXX")abs(6-x)# is the same as #6-x#
#color(white)("XXX")#and we can find a few point by picking arbitrary values of #x <=6#
#color(white)("XXX"){:color(green)((ul(x),color(white)("xx"),ul(6-x)), (6,,0), (3,,3),(0,,6)) :}#

Similarly, for #x >= 6#
#color(white)("XXX")abs(6-x)# is the same as #x-6#
#color(white)("XXX")#and we can find a few point by picking arbitrary values of #x <=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:
enter image source here