Shayla Phelps

2023-03-06

How to graph $y=|x-2|$?

zarizaraje1

There are a few things we can see right away:

A value greater than or equal to 0 will always be returned by the absolute value function. And so the value of $y$ in our question can't be negative.

when $x=2,y=0$

when $x=1,3;y=1$

when $x=0,4;y=2$

and so on.
The graph ends up looking like this:
graph{abs(x-2) [-7.21, 12.79, -2.12, 7.88]}

Do you have a similar question?