If you know the slope, m, and y-intercept of the line (the point where the line crosses the y-axis), (0, b), of the graph of a line, you can write the equation in slope-intercept form.
y = mx + b
This is just a special case of the point-slope form of the equation where (x1, y1) is the point (0, b).
Example 1 :
Find an equation of the line in point-slope form with slope 3 and y-intercept (0, –2).
y = 3x – 2.
Example 2 :
Find an equation of the line in point-slope form with y-intercept (0, 4) and passing through the point (2, 9).
First, find the slope of the line: 
Then, write the equation: 
Equations in this form are easy to graph, since the slope of the line is m and the y-intercept of the line is b.
Example 3 :
Graph y = –2x + 3.
Since the equation is given in slope-intercept form, we know immediately that the line crosses the y-axis at (0, 3) and has slope –2. We can quickly use the slope to find a second point (1, 1), and graph the line.
