The equation of a nonvertical line with slope m and y-intercept b can be written in the slope-intercept form y=mx+b.
The slope-intercept form of a line is a linear equation, where m is the slope and b is the y-intercept of the line, expressed as:
y=mx+b
As the name suggests, the slope-intercept form gives two important pieces of information: the slope and the y-intercept. This information can be used to graph the line without making a table and plotting points.
Step-By-Step Example
Graphing Positive Slope in Slope-Intercept Form
Graph the line:
y=23x+5
Step 1
The equation is in slope-intercept form, where m is the slope and b is the y-intercept:
y=mx+b
Identify the slope and y-intercept of the equation.
Step 2
The y-intercept is 5, so plot one point at (0,5).
Then use the rise and run of the slope, m, to locate another point.
m=RunRise=23
The rise is 3, so move up 3 units from the first point (0,5). The run is 2, so move right 2 units. This means that another point on the line is (2,8).
Solution
Connect the two points to graph the line.
Step-By-Step Example
Graphing with Negative Slope in Slope-Intercept Form
Graph the line:
y=−2x−3
Step 1
The equation is in slope-intercept form, where m is the slope and b is the y-intercept. Identify the slope and y-intercept of the equation:
yy=mx+b=−2x−3
The slope is –2. The y-intercept is –3.
Step 2
The y-intercept is –3, so plot one point at (0,−3).
Then use the rise and run of the slope, m, to locate another point. Write the slope as a fraction with a denominator of 1.
m=RunRise=1−2
The rise is –2, so move 2 units down. The run is 1, so move 1 unit to the right. So, another point on the line is (1,−5).
Solution
Connect the two points to graph the line.
Point-Slope Form
The equation of a nonvertical line with slope m that passes through the point (x1,y1) can be written in the point-slope form y−y1=m(x−x1).
The point-slope form of a line is a linear equation, where m is the slope and (x1,y1) is a point on the line, expressed as:
y−y1=m(x−x1)
As the name suggests, the point-slope form is convenient to use in writing the equation of a line when the slope and the coordinates of a point on the line are given.
Step-By-Step Example
Writing an Equation with a Given Slope and Point
Write the equation of a line with a slope of 3 that passes through the point (−4,1).
Step 1
Substitute 3 for m, –4 for x1, and 1 for y1 in point-slope form.
y−y1y−1y−1=m(x−x1)=3(x−(−4))=3(x+4)
Step 2
Although the point-slope form of a line is a correct form, it is common to rewrite the equation of a line in slope-intercept form. First, distribute the 3 on the right side.
y−1y−1=3(x+4)=3x+12
Solution
Add 1 to both sides.
y−1y+1y=3x+12=3x+1=3x+13
Step-By-Step Example
Graphing a Line in Point-Slope Form
Graph the line of the equation:
y−4=−3(x+2)
Step 1
Identify the slope and a point on the line.
The equation uses the point-slope form, where m is the slope and x1 and y1 are coordinates of a point on the line, or (x1,y1):
y−y1=m(x−x1)
When x1 or y1 are being subtracted in the equation, the coordinates are positive.
When x1 or y1 are being added in the equation, the coordinates are negative.
Step 2
Plot the point at (−2,4). Then use the rise and run of the slope, m, to locate another point. Write the slope as:
m=RunRise=1−3
The rise is –3, so move down 3 units. The run is 1, so move right 1 unit.
Solution
Connect the two points to graph the line.
Step-By-Step Example
Determining the Equation of a Line through Two Points
Identify the equation of a line that passes through point (3,1) and point (5,9).
Step 1
Use the coordinates of the two points to identify the slope.
m=x2−x1y2−y1=5−39−1=28=4
Step 2
Choose one of the points on the line to write an equation in point-slope form. Note that using either point will result in correct equations.
(x1,y1)=(3,1)
Solution
Use the slope and one of the points on the line to write the point-slope form:
y−1=4(x−3)
It is common to rewrite the equation in slope-intercept form. First, distribute the 4. Then add 1 to both sides.
y−1y−1y−1+1y=4(x−3)=4x−12=4x−12+1=4x−11
Standard Form of a Line
The standard form of a line is Ax+By=C. It is typically used for determining the x- and y-intercepts of a line.
The standard form of a line is a linear equation, where A, B, and C are integers, A is nonnegative, and A and B are both not zero, expressed as:
Ax+By=C
Although the standard form of a line is not the most commonly used for graphing, it is called standard because it is used in other applications, such as solving systems of equations. It is also a useful form for finding the intercepts of a line. The same process is used to find the intercepts of a line in any form.
To calculate the x-intercept, set y=0 and solve for x.
To calculate the y-intercept, set x=0 and solve for y.
Step-By-Step Example
Identifying the Intercepts of a Line in Standard Form
Identify the x-intercept and the y-intercept of the equation:
3x+4y=12
Step 1
Determine the x-intercept. Substitute zero for y, and solve for x.
3x+4y3x+4(0)3xx=12=12=12=4
Step 2
Determine the y-intercept. Substitute zero for x, and solve for y.
3x+4y3(0)+4y4yy=12=12=12=3
Solution
The x-intercept is (4,0). The y-intercept is (0,3).
Although it is possible to graph a line in standard form, it is sometimes convenient to rewrite the equation in slope-intercept form. One reason is to determine the slope. Another reason is that it is easier to compare two different lines when they are both written in slope-intercept form.
For a line that is given in standard form Ax+By=C, to rewrite the equation in slope-intercept form, first subtract −Ax from both sides. Then divide both sides by B, and simplify.
Step-By-Step Example
Rewriting the Standard Form of a Line in Slope-Intercept Form
Write the linear equation in slope-intercept form:
3x+4y=12
Step 1
The equation is in standard form:
Ax+By3x+4y=C=12
Rewrite the equation to the slope-intercept form:
y=mx+b
Subtract −3x from both sides to isolate the y-term. Since the slope-intercept form of a line has the x-term before the constant, write the x-term first on the right side of the equation.