The function graphed in piecewise form is
(2 if 0 < x <= 4)
f(x) = (-x/5 - 5 if -5 < x <= 0)
What is piecewise function?
A piecewise function is a mathematical function defined by different rules or formulas for different intervals or subdomains.
The first line is a graph of y = 2 for values of x from 0(not inclusive) to 4(inclusive)
i.e fx = 2 if (0< x <= 4)
For the second line
Slope = Rise/Run
let take points (-5,-4) and (0,-5)
m = -5-(-4)/(0-(-5)
= -5+4/0+5
= -1/5
Using the equation of line
y = mx + b
where b is the y-intercept
y = -x/5 - 5
Therefore, the function graphed in piecewise form is
(2 if 0 < x <= 4)
f(x) = (-x/5 - 5 if -5 < x <= 0)