How do you graph #y = |x - 1|# by plotting points?

1 Answer
Apr 16, 2017

Realize #y = |x-1|# is actually two functions:
#y = -(x - 1), x <= 1# " and " #y = x - 1, x >= 1 #

Explanation:

Break #y = |x-1|# into a piecewise functions:

#y = -(x - 1), x <= 1# " and " #y = x - 1, x >= 1 #

#x |""-6|""-4|""-2|" "0|" " 2|" "4|" "6|#
#y |" "7|" "5|" "3|" "1|" " 1|" "3|" "5|#

Plot the points and draw a line between them.
There is a vertex at #(0,1)#

graph{abs(x-1) [-10, 10, -5, 5]}