Given:
Graph of the of a line.
To find:
The equation of the line
Solution:
Take any two points on the line.
Let the points are (0, -2) and (3, 0).
Slope of the line formula:



y-intercept of the line is (0, -2).
c = -2
General equation of a line:
y = mx + c
Substitute the values.

Let y = f(x).

The equation of a line is
.