Use the Slope-Intercept Form of an Equation of a Line
Recognize the relation between the graph and the slope-intercept form of an equation of a line
We have graphed linear equations by plotting points, using intercepts, recognizing horizontal and vertical lines, and using the point-slope method. Once we see how an equation in slope-intercept form and its graph are related, we’ll have one more method we can use to graph lines.
Earlier we graphed the line of the equation by plotting points. Let’s find the slope of this line the way we did in the previous section — using two points from the graph.
The rise is and the run is . Substituting into the slope formula:
What is the -intercept of the line? The -intercept is where the line crosses the -axis, so the -intercept is . The equation of this line is . Notice that the line has slope and -intercept .
When a linear equation is solved for , the coefficient of the term is the slope and the constant term is the -coordinate of the -intercept. We say that the equation is in slope-intercept form.
Slope-intercept form of an equation of a line. The slope-intercept form of an equation of a line with slope and -intercept is
Sometimes the slope-intercept form is called the “-form.”
Example. Use the graph to find the slope and -intercept of the line , and compare these values to the equation .
To find the slope of the line, we choose two points on the line, and . The rise is and the run is , so:
The -intercept is the point . We found slope and -intercept , matching the equation : the slope is the same as the coefficient of , and the -coordinate of the -intercept is the same as the constant term.
Use the graph to find the slope and y-intercept of the line . What is the slope?
In slope-intercept form y = mx + b, the slope is the coefficient of x.Identify the slope and -intercept from an equation of a line
When we are given an equation in slope-intercept form, we can use the -intercept as a point, and then count out the slope from there. Let’s practice finding the values of the slope and -intercept from the equation of a line.
Example. Identify the slope and -intercept of the line with equation .
We compare the equation to the slope-intercept form : the slope is , and the -intercept is .
Identify the slope of the line .
Compare the equation to y = mx + b — the slope is the coefficient of x.When an equation of a line is not given in slope-intercept form, our first step will be to solve the equation for .
Example. Identify the slope and -intercept of the line with equation .
This equation is not in slope-intercept form. To compare it to the slope-intercept form, we first solve the equation for :
Now the equation is in slope-intercept form , so we can identify the slope, , and the -intercept, .
Identify the slope of the line . (Hint: solve for y first.)
Subtract x from both sides, then divide every term by 4 to solve for y.Graph a line using its slope and intercept
Now that we know how to find the slope and -intercept of a line from its equation, we can graph the line by plotting the -intercept and then using the slope to find another point.
Graph a line using its slope and -intercept.
- Find the slope-intercept form of the equation of the line.
- Identify the slope and -intercept.
- Plot the -intercept.
- Use the slope formula to identify the rise and the run.
- Starting at the -intercept, count out the rise and run to mark the second point.
- Connect the two points with a line.
Example. Graph the line of the equation using its slope and -intercept.
The equation is already in slope-intercept form: , so and the -intercept is . We plot . The slope is , so the rise is and the run is . Starting at , we count up and right to mark the second point, , then connect the two points with a line.
To check our work, we can find another point on the line and make sure it is a solution of the equation. The graph also passes through : substituting into — wait, let’s check in instead: , so . ✓
Graph the line using its slope and y-intercept. What is the y-intercept as an ordered pair ?
In y = mx + b form, the y-intercept is always the point (0, b).Choose the most convenient method to graph a line
Now that we have seen several methods to graph lines, how do we know which method to use for a given equation? While we could plot points, use the slope-intercept form, or find the intercepts for any equation, recognizing the most convenient way to graph a certain type of equation makes our work easier. Generally, plotting points is not the most efficient way to graph a line.
Here are six equations and the method used to graph each of them:
| Equation | Method |
|---|---|
| Vertical line | |
| Horizontal line | |
| Intercepts | |
| Intercepts | |
| Slope-intercept | |
| Slope-intercept |
Equations with just one variable have graphs that are vertical or horizontal lines. If both and are on the same side of the equation — of the form — we substitute to find the -intercept and to find the -intercept, and then find a third point. Equations already written in slope-intercept form are graphed fastest by identifying the slope and -intercept directly.
Strategy for choosing the most convenient method to graph a line. Consider the form of the equation.
- If it only has one variable, it is a vertical or horizontal line.
- is a vertical line passing through the -axis at .
- is a horizontal line passing through the -axis at .
- If is isolated on one side of the equation, in the form , graph by using the slope and -intercept.
- If the equation is of the form , find the intercepts — the - and -intercepts, and a third point, then graph.
Example. Determine the most convenient method to graph each line: (a) (b) (c) (d) .
(a) This equation has only one variable, . Its graph is a horizontal line crossing the -axis at .
(b) This equation is of the form . The easiest way to graph it will be to find the intercepts and one more point.
(c) There is only one variable, . The graph is a vertical line crossing the -axis at .
(d) Since this equation is in form, it will be easiest to graph this line by using the slope and -intercept.
Which method is most convenient for graphing the line ?
The equation already has y isolated on one side, in the form y = mx + b.Which method is most convenient for graphing the line ?
Both x and y appear on the same side of the equation, in the form Ax + By = C.Graph and interpret applications of slope-intercept
Many real-world applications are modeled by linear equations. Usually when a linear equation models a real-world situation, different letters are used for the variables instead of and — the variable names remind us of what quantities are being measured.
Example. The equation is used to convert temperatures, , on the Celsius scale to temperatures, , on the Fahrenheit scale.
(a) Find the Fahrenheit temperature for a Celsius temperature of .
(b) Find the Fahrenheit temperature for a Celsius temperature of .
(c) Interpret the slope and -intercept of the equation.
(d) Graph the equation.
(a) Find when : .
(b) Find when : .
(c) Even though this equation uses and , it is still in slope-intercept form. Comparing to : the slope, , means that the Fahrenheit temperature increases degrees when the Celsius temperature increases degrees. The -intercept means that when the temperature is on the Celsius scale, it is on the Fahrenheit scale.
(d) To graph the equation we start at the -intercept , then count out the rise of and the run of to get a second point.
Example. Stella has a home business selling gourmet pizzas. The equation models the relation between her weekly cost, , in dollars, and the number of pizzas, , that she sells.
(a) Find Stella’s cost for a week when she sells no pizzas: . Her fixed cost is when she sells no pizzas.
(b) Find the cost for a week when she sells pizzas: . Her costs are when she sells pizzas.
(c) Interpret the slope and -intercept: comparing to , the slope, , means that the cost increases by for each pizza Stella sells. The -intercept means that even when Stella sells no pizzas, her costs for the week are .
(d) To graph the equation, start at the -intercept , then count out the rise of and the run of to get a second point.
Sam drives a delivery van. The equation models the relation between his weekly cost, C, in dollars, and the number of miles, m, that he drives. Find Sam's cost for a week when he drives 250 miles.
$185Substitute into and simplify.Use slopes to identify parallel lines
The slope of a line indicates how steep the line is and whether it rises or falls as we read it from left to right. Two lines that have the same slope are called parallel lines. Parallel lines never intersect.
We say this more formally in terms of the rectangular coordinate system: two lines that have the same slope and different -intercepts are called parallel lines.
Parallel lines. Parallel lines are lines in the same plane that do not intersect.
- Parallel lines have the same slope and different -intercepts.
- If and are the slopes of two parallel lines, then .
- Parallel vertical lines have different -intercepts.
What about vertical lines? The slope of a vertical line is undefined, so vertical lines don’t fit the definition above. We say that vertical lines with different -intercepts are parallel.
Since parallel lines have the same slope and different -intercepts, we can look at the slope-intercept form of the equations of two lines and decide whether the lines are parallel — without graphing them.
Example. Use slopes and -intercepts to determine if the lines and are parallel.
We solve the first equation for :
The second equation, , is already in slope-intercept form. Both lines have slope . The first line has -intercept and the second has -intercept . The lines have the same slope and different -intercepts, so they are parallel.
Example. Use slopes and -intercepts to determine if the lines and are parallel.
Since there is no -term, we write each as and . Both lines have slope ; the -intercepts are and . The lines have the same slope and different -intercepts, so they are parallel. (You may recognize these right away as horizontal lines, which are always parallel to each other unless they are the same line.)
Example. Use slopes and -intercepts to determine if the lines and are parallel.
Since there is no , these equations cannot be put in slope-intercept form. But we recognize them as equations of vertical lines, with -intercepts and . Since their -intercepts are different, the vertical lines are parallel.
Example. Use slopes and -intercepts to determine if the lines and are parallel.
The first equation is already in slope-intercept form: . We solve the second equation for :
The lines have the same slope, but they also have the same -intercept, . Their equations represent the same line — they are not parallel; they are the same line.
Use slopes and y-intercepts to determine whether the lines and are parallel, perpendicular, or neither.
Solve the second equation for y and compare its slope and y-intercept to the first equation's.Use slopes and y-intercepts to determine whether the lines and are parallel, perpendicular, or neither.
Both are horizontal lines. Horizontal lines always have slope 0.Use slopes to identify perpendicular lines
Let’s look at the lines whose equations are and .
These lines lie in the same plane and intersect in right angles. We call these lines perpendicular.
As we read from left to right, the line rises, so its slope is positive. The line drops from left to right, so it has a negative slope. Does it make sense that the slopes of two perpendicular lines have opposite signs?
The slope of the first line, , and the slope of the second line, , are negative reciprocals of each other. If we multiply them, their product is :
This is always true for perpendicular lines.
Perpendicular lines. Perpendicular lines are lines in the same plane that form a right angle.
If and are the slopes of two perpendicular lines, then
Vertical lines and horizontal lines are always perpendicular to each other.
We find the slope-intercept form of each equation, and then check whether the product of the slopes is . Perpendicular lines may have the same -intercepts.
Example. Use slopes to determine if the lines and are perpendicular.
The first equation is already in slope-intercept form: . We solve the second equation for :
so . The slopes are negative reciprocals of each other, so the lines are perpendicular. We check: . ✓
Example. Use slopes to determine if the lines and are perpendicular.
Solving both equations for : gives , and gives . The slopes are reciprocals of each other, but they have the same sign. Since they are not negative reciprocals, the lines are not perpendicular.
Use slopes to determine whether the lines and are parallel, perpendicular, or neither.
Solve the second equation for y, then multiply the two slopes together and see whether the product is −1.Use slopes to determine whether the lines and are parallel, perpendicular, or neither.
Solve both equations for y and compare the slopes — they are reciprocals, but check whether they have opposite signs.Key terms
slope-intercept form — the form of an equation of a line, where is the slope and is the -intercept. parallel lines — lines in the same plane that do not intersect; they have the same slope and different -intercepts (or, for vertical lines, different -intercepts). perpendicular lines — lines in the same plane that form a right angle; the product of their slopes is , so their slopes are negative reciprocals of each other.
This section is adapted from Elementary Algebra 2e, Section 4.5: Use the Slope-Intercept Form of an Equation of a Line by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the slope-intercept, parallel-lines, and perpendicular-lines graphs as accessible inline graphics; condensed the worked examples and tables; omitted the Be Prepared quiz, Media links, Self Check checklist, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.