Which function is graphed below?

Answer:
Piecewise function;
y = 2x - 2 where x < 2
4 where 2 ≤ x ≤ 5
y = x + 1 where x > 5
Step-by-step explanation:
Function graphed represents the piecewise function.
1). Equation of the line with y-intercept (-2) and slope 'm'.
Since, slope of the line = [tex]\frac{\text{Rise}}{\text{Run}}[/tex]
= [tex]\frac{2}{1}[/tex]
= 2
Therefore, equation of this segment will be in the form of y = mx + b,
⇒ y = 2x - 2 where x < 2
2). Equation of a horizontal line,
y = 4 where 2 ≤ x ≤ 5
3). Equation of the third line in the interval x > 5
Let the equation of the line is,
y = mx + b
Where m = slope of the line
b = y-intercept
Here, slope 'm' = [tex]\frac{\text{Rise}}{\text{Run}}[/tex]
= [tex]\frac{2}{2}[/tex]
= 1
Equation of this line will be,
y = 1(x) + b
y = x + b
Since, this line passes through (5, 6),
6 = 5 + b
b = 6 - 5 = 1
Therefore, equation of this line will be,
y = x + 1 where x > 5
Graphed piecewise function is,
y = 2x - 2 where x < 2
4 where 2 ≤ x ≤ 5
y = x + 1 where x > 5