To find the formula for the function, we would find the equation of the line in the slope intercept form which is expressed as
y = mx + c
where
m represents slope
c represents y intercept. This is also the point where the line cuts the y axis. Looking at the graph,
c = - 2
We would find the slope by applying the formula,
m = (y2 - y1)/(x2 -x1)
where
y2 and y1 are initial and final values of the y coordinate of two suitable points chosen on the graph
x2 and x1 are initial and final values of the x coordinate of two suitable points chosen on the graph
From the graph,
x1 = - 1, y1 = - 4
x2 = 3, y2 = 4
m = (4 - - 4)/(3 - - 1) = (4 + 4)/(3 + 1) = 8/4
m = 2
Thus, the equation of the graph is
y = 2x - 2
Thus, the correct formula for the function is
y = 2x - 2