How do you graph #y = x - |x|#?

1 Answer
Jul 24, 2018

See graph and explanation.

Explanation:

Piecewise,

#x - abs x = x - x = 0, x >=0# and

= x - (-x) = 2x, x <= 0#.

So, the graph is the radial line from O in #Q_3# that is truncated

from y = 2x and x-axis, #x>=0#. See the obtuse-angle graph.

graph{y-x+abs x=0}