84.4k views
2 votes
Does anyone know how to write the absolute value function as a piecewise function that's shown in the picture?

Does anyone know how to write the absolute value function as a piecewise function-example-1
User Soemirno
by
3.8k points

1 Answer

3 votes

Answer:

y= -x+4 if x<0

y= x+4 if x≥0

Explanation:

When writing a piece-wise function, we simply look at the portion of the graph that covers the given domain and derive an equation.

When looking at the part of the graph when x<0, we can derive the equation:

y= -x+4.

For x-values greater than 0, we can get:

y= x+4.

User Zephryl
by
4.1k points