VI
CHAPTER 6 Linear Equations and Graphing
This graph illustrates the annual vehicle sales of gas motorcycles, gas cars, and electric vehicles from 1994 to 2010. It is a line graph with x– and y-axes, one of the most common types of graphs.

Graphs are found in all areas of our lives—from commercials showing you which cell phone carrier provides the best coverage, to bank statements and news articles, to the boardroom of major corporations. In this chapter, we will study the rectangular coordinate system, which is the basis for most consumer graphs. We will look at linear graphs, slopes of lines, and equations of lines.
Attributions
This chapter has been adapted from the “Introduction” in Chapter 4 of Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
32
6.1 Use the Rectangular Coordinate System
Learning Objectives
By the end of this section, you will be able to:
- Plot points in a rectangular coordinate system
- Verify solutions to an equation in two variables
- Complete a table of solutions to a linear equation
- Find solutions to a linear equation in two variables
Plot Points on a Rectangular Coordinate System
Just like maps use a grid system to identify locations, a grid system is used in algebra to show a relationship between two variables in a rectangular coordinate system. The rectangular coordinate system is also called the xy-plane or the ‘coordinate plane.’
The horizontal number line is called the x-axis. The vertical number line is called the y-axis. The x-axis and the y-axis together form the rectangular coordinate system. These axes divide a plane into four regions, called quadrants. The quadrants are identified by Roman numerals, beginning on the upper right and proceeding counterclockwise. See (Figure 1).
‘Quadrant’ has the root ‘quad,’ which means ‘four.’

In the rectangular coordinate system, every point is represented by an ordered pair. The first number in the ordered pair is the x-coordinate of the point, and the second number is the y-coordinate of the point.
Ordered pair
An ordered pair, , gives the coordinates of a point in a rectangular coordinate system.

The first number is the x-coordinate.
The second number is the y-coordinate.
The phrase ‘ordered pair’ means the order is important. What is the ordered pair of the point where the axes cross? At that point both coordinates are zero, so its ordered pair is . The point
has a special name. It is called the origin.
The origin
The point is called the origin. It is the point where the x-axis and y-axis intersect.
We use the coordinates to locate a point on the xy-plane. Let’s plot the point as an example. First, locate 1 on the x-axis and lightly sketch a vertical line through
. Then, locate 3 on the y-axis and sketch a horizontal line through
. Now, find the point where these two lines meet—that is the point with coordinates
.

Notice that the vertical line through and the horizontal line through
are not part of the graph. We just used them to help us locate the point
.
EXAMPLE 1
Plot each point in the rectangular coordinate system and identify the quadrant in which the point is located:
A B
C
D
E
.
Solution
The first number of the coordinate pair is the x-coordinate, and the second number is the y-coordinate.
- Since
, the point is to the left of the y-axis. Also, since
, the point is above the x-axis. The point
is in Quadrant II.
- Since
, the point is to the left of the y-axis. Also, since
, the point is below the x-axis. The point
is in Quadrant III.
- Since
, the point is to the right of the y-axis. Since
, the point is below the x-axis. The point
is in Quadrant lV.
- Since
, the point is to the left of the y-axis. Since
, the point is above the x-axis. The point
is in Quadrant II.
- Since
, the point is to the right of the y-axis. Since
, the point is above the x-axis. (It may be helpful to write
as a mixed number or decimal.) The point
is in Quadrant I.

TRY IT 1.1
Plot each point in a rectangular coordinate system and identify the quadrant in which the point is located:
A B
C
D
E
.

TRY IT 1.2
Plot each point in a rectangular coordinate system and identify the quadrant in which the point is located:
A B
C
D
E

How do the signs affect the location of the points? You may have noticed some patterns as you graphed the points in the previous example.
For the point in (Figure 2) in Quadrant IV, what do you notice about the signs of the coordinates? What about the signs of the coordinates of points in the third quadrant? The second quadrant? The first quadrant?
Can you tell just by looking at the coordinates in which quadrant the point is located? In which quadrant is
located?
Quadrants
We can summarize sign patterns of the quadrants in this way.

What if one coordinate is zero as shown in (Figure 3)? Where is the point located? Where is the point
located?

The point is on the y-axis and the point
is on the x-axis.
Points on the axes
Points with a y-coordinate equal to 0 are on the x-axis, and have coordinates .
Points with an x-coordinate equal to 0 are on the y-axis, and have coordinates .
EXAMPLE 2
Plot each point:A B
C
D
E
.
Solution
- Since
, the point whose coordinates are
is on the y-axis.
- Since
, the point whose coordinates are
is on the x-axis.
- Since
, the point whose coordinates are
is on the x-axis.
- Since
and
, the point whose coordinates are
is the origin.
- Since
, the point whose coordinates are
is on the y-axis.

TRY IT 2.1
Plot each point: A B
C
D
E
.

TRY IT 2.2
Plot each point: A B
C
D
E
.

In algebra, being able to identify the coordinates of a point shown on a graph is just as important as being able to plot points. To identify the x-coordinate of a point on a graph, read the number on the x-axis directly above or below the point. To identify the y-coordinate of a point, read the number on the y-axis directly to the left or right of the point. Remember, when you write the ordered pair use the correct order, .
EXAMPLE 3
Name the ordered pair of each point shown in the rectangular coordinate system.
Solution
Point A is above on the x-axis, so the x-coordinate of the point is
.
- The point is to the left of 3 on the y-axis, so the y-coordinate of the point is 3.
- The coordinates of the point are
.
Point B is below on the x-axis, so the x-coordinate of the point is
.
- The point is to the left of
on the y-axis, so the y-coordinate of the point is
.
- The coordinates of the point are
.
Point C is above 2 on the x-axis, so the x-coordinate of the point is 2
- The point is to the right of 4 on the y-axis, so the y-coordinate of the point is 4.
- The coordinates of the point are
.
Point D is below 4 on the x-axis, so the x-coordinate of the point is 4
- The point is to the right of
on the y-axis, so the y-coordinate of the point is
.
- The coordinates of the point are
.
Point E is on the y-axis at . The coordinates of point E are
.
Point F is on the x-axis at . The coordinates of point F are
.
TRY IT 3.1
Name the ordered pair of each point shown in the rectangular coordinate system. 
A: B:
C:
D:
E:
F:
TRY IT 3.2
Name the ordered pair of each point shown in the rectangular coordinate system. 
A: B:
C:
D:
E:
F:
Verify Solutions to an Equation in Two Variables
Up to now, all the equations you have solved were equations with just one variable. In almost every case, when you solved the equation you got exactly one solution. The process of solving an equation ended with a statement like . (Then, you checked the solution by substituting back into the equation.)
Here’s an example of an equation in one variable, and its one solution.
But equations can have more than one variable. Equations with two variables may be of the form . Equations of this form are called linear equations in two variables.
Linear equation
An equation of the form , where
and
are not both zero, is called a linear equation in two variables.
Notice the word line in linear. Here is an example of a linear equation in two variables, and
.

The equation is also a linear equation. But it does not appear to be in the form
. We can use the Addition Property of Equality and rewrite it in
form.
| Add to both sides. | |
| Simplify. | |
| Use the Commutative Property to put it in |
By rewriting as
, we can easily see that it is a linear equation in two variables because it is of the form
. When an equation is in the form
, we say it is in standard form.
Standard Form of Linear Equation
A linear equation is in standard form when it is written .
Most people prefer to have ,
, and
be integers and
when writing a linear equation in standard form, although it is not strictly necessary.
Linear equations have infinitely many solutions. For every number that is substituted for there is a corresponding
value. This pair of values is a solution to the linear equation and is represented by the ordered pair
. When we substitute these values of
and
into the equation, the result is a true statement, because the value on the left side is equal to the value on the right side.
Solution of a Linear Equation in Two Variables
An ordered pair is a solution of the linear equation
, if the equation is a true statement when the x– and y-values of the ordered pair are substituted into the equation.
EXAMPLE 4
Determine which ordered pairs are solutions to the equation .
A B
C
Solution
Substitute the x- and y-values from each ordered pair into the equation and determine if the result is a true statement.

TRY IT 4.1
Which of the following ordered pairs are solutions to ?
A B
C
A, C
TRY IT 4.2
Which of the following ordered pairs are solutions to the equation ? A
B
C
B, C
EXAMPLE 5
Which of the following ordered pairs are solutions to the equation ?
A B
C
Solution
Substitute the x– and y-values from each ordered pair into the equation and determine if it results in a true statement.

TRY IT 5.1
Which of the following ordered pairs are solutions to the equation ? A
B
C
B
TRY IT 5.2
Which of the following ordered pairs are solutions to the equation ? A
B
C
A, B
Complete a Table of Solutions to a Linear Equation in Two Variables
In the examples above, we substituted the x– and y-values of a given ordered pair to determine whether or not it was a solution to a linear equation. But how do you find the ordered pairs if they are not given? It’s easier than you might think—you can just pick a value for and then solve the equation for
. Or, pick a value for
and then solve for
.
We’ll start by looking at the solutions to the equation that we found in (Example 5). We can summarize this information in a table of solutions, as shown in (Table 1).
| 0 | ||
| 1 | 4 | |
To find a third solution, we’ll let and solve for
.

The ordered pair is a solution to
. We will add it to (Table 2).
| 0 | ||
| 1 | 4 | |
| 2 | 9 | |
We can find more solutions to the equation by substituting in any value of or any value of
and solving the resulting equation to get another ordered pair that is a solution. There are infinitely many solutions of this equation.
EXAMPLE 6
Complete the table to find three solutions to the equation .
| 0 | ||
| 2 | ||
Substitute ,
, and
into
.

The results are summarized in the table below.
| 0 | ||
| 2 | 6 | |
TRY IT 6.1
Complete the table to find three solutions to this equation: .
| 0 | ||
| 2 | ||
| 0 | ||
| 2 | 5 | |
TRY IT 6.2
Complete the table to find three solutions to this equation: .
| 0 | ||
| 1 | ||
| 0 | 1 | |
| 1 | 7 | |
EXAMPLE 7
Complete the table to find three solutions to the equation .
| 0 | ||
| 0 | ||
| 5 | ||
Substitute the given value into the equation and solve for the other variable. Then, fill in the values in the table.

The results are summarized in the table below.
| 0 | ||
| 4 | 0 | |
| 8 | 5 | |
TRY IT 7.1
Complete the table to find three solutions to this equation: .
| 0 | ||
| 0 | ||
| 0 | ||
| 10 | 0 | |
TRY IT 7.2
Complete the table to find three solutions to this equation: .
| 0 | ||
| 0 | ||
| 0 | ||
| 4 | 0 | |
Find Solutions to a Linear Equation
To find a solution to a linear equation, you really can pick any number you want to substitute into the equation for or
. But since you’ll need to use that number to solve for the other variable it’s a good idea to choose a number that’s easy to work with.
When the equation is in y-form, with the y by itself on one side of the equation, it is usually easier to choose values of and then solve for
.
EXAMPLE 8
Find three solutions to the equation .
We can substitute any value we want for or any value for
. Since the equation is in y-form, it will be easier to substitute in values of
. Let’s pick
,
, and
.
![]() | ![]() | ![]() | |||
| Substitute the value into the equation. | ![]() | ![]() | ![]() | ||
| Simplify. | ![]() | ![]() | ![]() | ||
| Simplify. | ![]() | ![]() | ![]() | ||
| Write the ordered pair. | ![]() | ![]() | ![]() | ||
| Check. | (0, 2) | (1, −1) | (−1, 5) | ||
So, ,
and
are all solutions to
. We show them in table below.
| 0 | 2 | |
| 1 | ||
| 5 | ||
TRY IT 8.1
Find three solutions to this equation: .
Answers will vary.
TRY IT 8.2
Find three solutions to this equation: .
Answers will vary
We have seen how using zero as one value of makes finding the value of
easy. When an equation is in standard form, with both the
and
on the same side of the equation, it is usually easier to first find one solution when
find a second solution when
, and then find a third solution.
EXAMPLE 9
Find three solutions to the equation .
We can substitute any value we want for or any value for
. Since the equation is in standard form, let’s pick first
, then
, and then find a third point.
![]() | ![]() | ![]() | |||
![]() | ![]() | ![]() | |||
| Substitute the value into the equation. | ![]() | ![]() | ![]() | ||
| Simplify. | ![]() | ![]() | ![]() | ||
| Solve. | ![]() | ![]() | ![]() | ||
![]() | ![]() | ![]() | |||
| Write the ordered pair. | (0, 3) | (2, 0) | |||
| Check. | |||||
So ,
, and
are all solutions to the equation
. We can list these three solutions in the table below.
| 0 | 3 | |
| 2 | 0 | |
| 1 | ||
EXAMPLE 9.1
Find three solutions to the equation .
Answers will vary.
TRY IT 9.2
Find three solutions to the equation .
Answers will vary.
Glossary
- linear equation
- A linear equation is of the form
, where A and B are not both zero, is called a linear equation in two variables.
- ordered pair
- An ordered pair
gives the coordinates of a point in a rectangular coordinate system.
- origin
- The point
is called the origin. It is the point where the x-axis and y-axis intersect.
- quadrant
- The x-axis and the y-axis divide a plane into four regions, called quadrants.
- rectangular coordinate system
- A grid system is used in algebra to show a relationship between two variables; also called the xy-plane or the ‘coordinate plane.’
- x-coordinate
- The first number in an ordered pair
.
- y-coordinate
- The second number in an ordered pair
.
Practice Makes Perfect
Plot Points in a Rectangular Coordinate System
In the following exercises, plot each point in a rectangular coordinate system and identify the quadrant in which the point is located.
1.A | 2. A B C D E |
| 3. A B C D E | 4. A B C D E |
In the following exercises, plot each point in a rectangular coordinate system.
| 5. A B C D E | 6. A B C D E |
| 7. A B C D E | 8. A B C D E |
In the following exercises, name the ordered pair of each point shown in the rectangular coordinate system.
9. ![]() | 10. ![]() |
11. ![]() | 12. ![]() |
Verify Solutions to an Equation in Two Variables
In the following exercises, which ordered pairs are solutions to the given equations?
| 13. A | 14. A |
15. A | 16. A |
17. A | 18. A |
19. A | 20. A |
Complete a Table of Solutions to a Linear Equation
In the following exercises, complete the table to find solutions to each linear equation.
21.
| 22.
| ||||||||||||||||||||||||
23.
| 24.
| ||||||||||||||||||||||||
25.
| 26.
| ||||||||||||||||||||||||
27.
| 28.
| ||||||||||||||||||||||||
29.
| 30.
| ||||||||||||||||||||||||
31.
| 32.
|
Find Solutions to a Linear Equation
In the following exercises, find three solutions to each linear equation.
| 33. | 34. |
| 35. | 36. |
| 37. | 38. |
| 39. | 40. |
| 41. | 42. |
| 43. | 44. |
| 45. | 46. |
| 47. | 48. |
Everyday Math
49. Weight of a baby. Mackenzie recorded her baby’s weight every two months. The baby’s age, in months, and weight, in pounds, are listed in the table below, and shown as an ordered pair in the third column. a) Plot the points on a coordinate plane.
b) Why is only Quadrant I needed?
| 50. Weight of a child. Latresha recorded her son’s height and weight every year. His height, in inches, and weight, in pounds, are listed in the table below, and shown as an ordered pair in the third column. a) Plot the points on a coordinate plane.
b) Why is only Quadrant I needed?
|
Writing Exercises
| 51. Explain in words how you plot the point | 52. How do you determine if an ordered pair is a solution to a given equation? |
| 53. Is the point | 54. Is the point |
Answers
| 1.
| 3.
| ||||||||||||||||||||||||
| 5.
| 7.
| ||||||||||||||||||||||||
| 9. A: | 11. A: | ||||||||||||||||||||||||
| 13. A, B | 15. A, C | ||||||||||||||||||||||||
| 17. B, C | 19. A, B | ||||||||||||||||||||||||
21.
| 23.
| ||||||||||||||||||||||||
25.
| 25.
| ||||||||||||||||||||||||
27.
| 29.
| ||||||||||||||||||||||||
31.
| 33. Answers will vary. | ||||||||||||||||||||||||
| 35. Answers will vary. | 37. Answers will vary. | ||||||||||||||||||||||||
| 39. Answers will vary. | 41. Answers will vary. | ||||||||||||||||||||||||
| 43. Answers will vary. | 45. Answers will vary. | ||||||||||||||||||||||||
| 47. Answers will vary. | 49. a)
b) Age and weight are only positive. | ||||||||||||||||||||||||
| 51. Answers will vary. | 53. Answers will vary. |
Attributions
This chapter has been adapted from “Use the Rectangular Coordinate System” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
33
6.2 Graph Linear Equations in Two Variables
Learning Objectives
By the end of this section, you will be able to:
- Recognize the relationship between the solutions of an equation and its graph.
- Graph a linear equation by plotting points.
- Graph vertical and horizontal lines.
Recognize the Relationship Between the Solutions of an Equation and its Graph
In the previous section, we found several solutions to the equation . They are listed in the table below. So, the ordered pairs
,
, and
are some solutions to the equation
. We can plot these solutions in the rectangular coordinate system as shown in (Figure 1).
| 0 | 3 | |
| 2 | 0 | |
| 1 | ||

Notice how the points line up perfectly? We connect the points with a line to get the graph of the equation . See (Figure 2). Notice the arrows on the ends of each side of the line. These arrows indicate the line continues.

Every point on the line is a solution of the equation. Also, every solution of this equation is a point on this line. Points not on the line are not solutions.
Notice that the point whose coordinates are is on the line shown in (Figure 3). If you substitute
and
into the equation, you find that it is a solution to the equation.


So the point is a solution to the equation
. (The phrase “the point whose coordinates are
” is often shortened to “the point
.”)

So is not a solution to the equation
. Therefore, the point
is not on the line. See (Figure 2). This is an example of the saying, “A picture is worth a thousand words.” The line shows you all the solutions to the equation. Every point on the line is a solution of the equation. And, every solution of this equation is on this line. This line is called the graph of the equation
.
Graph of a linear equation
The graph of a linear equation is a line.
- Every point on the line is a solution of the equation.
- Every solution of this equation is a point on this line.
EXAMPLE 1
The graph of is shown.

For each ordered pair, decide:
a) Is the ordered pair a solution to the equation?
b) Is the point on the line?
A B
C
D
Solution
Substitute the x– and y– values into the equation to check if the ordered pair is a solution to the equation.

- Plot the points A
, B
, C
, and D
.

The points ,
, and
are on the line
, and the point
is not on the line.
The points that are solutions to are on the line, but the point that is not a solution is not on the line.
TRY IT 1.1
Use the graph of to decide whether each ordered pair is:
- a solution to the equation.
- on the line.
a) b)

a) yes, yes b) yes, yes
TRY IT 1.2
Use graph of to decide whether each ordered pair is:
- a solution to the equation
- on the line
a) b)

a) no, no b) yes, yes
Graph a Linear Equation by Plotting Points
There are several methods that can be used to graph a linear equation. The method we used to graph is called plotting points, or the Point–Plotting Method.
EXAMPLE 2
Graph the equation by plotting points.



TRY IT 2.1
Graph the equation by plotting points: .

TRY IT 2.2
Graph the equation by plotting points: .

HOW TO: Graph a linear equation by plotting points.
The steps to take when graphing a linear equation by plotting points are summarized below.
- Find three points whose coordinates are solutions to the equation. Organize them in a table.
- Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work.
- Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.
It is true that it only takes two points to determine a line, but it is a good habit to use three points. If you only plot two points and one of them is incorrect, you can still draw a line but it will not represent the solutions to the equation. It will be the wrong line.
If you use three points, and one is incorrect, the points will not line up. This tells you something is wrong and you need to check your work. Look at the difference between part (a) and part (b) in (Figure 4).

Let’s do another example. This time, we’ll show the last two steps all on one grid.
EXAMPLE 3
Graph the equation .
Solution
Find three points that are solutions to the equation. Here, again, it’s easier to choose values for . Do you see why?

We list the points in the table below.
| 0 | 0 | |
| 1 | ||
| 6 | ||
Plot the points, check that they line up, and draw the line.

TRY IT 3.1
Graph the equation by plotting points: .

EXAMPLE 3.2
Graph the equation by plotting points: .

When an equation includes a fraction as the coefficient of , we can still substitute any numbers for
. But the math is easier if we make ‘good’ choices for the values of
. This way we will avoid fraction answers, which are hard to graph precisely.
EXAMPLE 4
Graph the equation .
Find three points that are solutions to the equation. Since this equation has the fraction as a coefficient of
, we will choose values of
carefully. We will use zero as one choice and multiples of 2 for the other choices. Why are multiples of 2 a good choice for values of
?

The points are shown in the table below.
| 0 | 3 | |
| 2 | 4 | |
| 4 | 5 | |
Plot the points, check that they line up, and draw the line.

TRY IT 4. 1
Graph the equation .

TRY IT 4.2
Graph the equation .

So far, all the equations we graphed had given in terms of
. Now we’ll graph an equation with
and
on the same side. Let’s see what happens in the equation
. If
what is the value of
?

This point has a fraction for the x– coordinate and, while we could graph this point, it is hard to be precise graphing fractions. Remember in the example , we carefully chose values for
so as not to graph fractions at all. If we solve the equation
for
, it will be easier to find three solutions to the equation.
The solutions for ,
, and
are shown in the table below. The graph is shown in (Figure 5).
| 0 | 3 | |
| 1 | 1 | |
| 5 | ||

Can you locate the point , which we found by letting
, on the line?
EXAMPLE 5
Graph the equation .
| Find three points that are solutions to the equation. | |
| First, solve the equation for |
We’ll let be 0, 1, and
to find 3 points. The ordered pairs are shown in the table below. Plot the points, check that they line up, and draw the line. See (Figure 6).
| 0 | ||
| 1 | ||
| 2 | ||

EXAMPLE 5.1
Graph the equation .

TRY IT 5.2
Graph the equation .

If you can choose any three points to graph a line, how will you know if your graph matches the one shown in the answers in the book? If the points where the graphs cross the x– and y-axis are the same, the graphs match!
The equation in (Example 5) was written in standard form, with both and
on the same side. We solved that equation for
in just one step. But for other equations in standard form it is not that easy to solve for
, so we will leave them in standard form. We can still find a first point to plot by letting
and solving for
. We can plot a second point by letting
and then solving for
. Then we will plot a third point by using some other value for
or
.
EXAMPLE 6
Graph the equation .
| Find three points that are solutions to the equation. | |
| First, let | |
| Solve for | |
| Now let | |
| Solve for | |
| We need a third point. Remember, we can choose any value for | |
| Solve for |
We list the ordered pairs in the table below. Plot the points, check that they line up, and draw the line. See (Figure 7).
| 0 | ||
| 3 | 0 | |
| 6 | 2 | |

TRY IT 6.1
Graph the equation .

TRY IT 6.2
Graph the equation .

Graph Vertical and Horizontal Lines
Can we graph an equation with only one variable? Just and no
, or just
without an
? How will we make a table of values to get the points to plot?
Let’s consider the equation . This equation has only one variable,
. The equation says that
is always equal to
, so its value does not depend on
. No matter what
is, the value of
is always
.
So to make a table of values, write in for all the
values. Then choose any values for
. Since
does not depend on
, you can choose any numbers you like. But to fit the points on our coordinate graph, we’ll use 1, 2, and 3 for the y-coordinates. See the table below.
| 1 | ||
| 2 | ||
| 3 | ||
Plot the points from the table and connect them with a straight line. Notice in (Figure 8) that we have graphed a vertical line.

Vertical line
A vertical line is the graph of an equation of the form .
The line passes through the x-axis at .
EXAMPLE 7
Graph the equation .
The equation has only one variable, , and
is always equal to 2. We create the table below where
is always 2 and then put in any values for
. The graph is a vertical line passing through the x-axis at 2. See (Figure 9).
| 2 | 1 | |
| 2 | 2 | |
| 2 | 3 | |

TRY IT 7.1
Graph the equation .

TRY IT 7.2
Graph the equation .

What if the equation has but no
? Let’s graph the equation
. This time the y– value is a constant, so in this equation,
does not depend on
. Fill in 4 for all the
’s in the table below and then choose any values for
. We’ll use 0, 2, and 4 for the x-coordinates.
| 0 | 4 | |
| 2 | 4 | |
| 4 | 4 | |
The graph is a horizontal line passing through the y-axis at 4. See (Figure 10).

Horizontal line
A horizontal line is the graph of an equation of the form .
The line passes through the y-axis at .
EXAMPLE 8
Graph the equation .
The equation has only one variable,
. The value of
is constant. All the ordered pairs in the table below have the same y-coordinate. The graph is a horizontal line passing through the y-axis at
, as shown in (Figure 11).
| 0 | ||
| 3 | ||

TRY IT 8.1
Graph the equation .

TRY IT 8.2
Graph the equation .

The equations for vertical and horizontal lines look very similar to equations like . What is the difference between the equations
and
?
The equation has both
and
. The value of
depends on the value of
. The y-coordinate changes according to the value of
. The equation
has only one variable. The value of
is constant. The y-coordinate is always 4. It does not depend on the value of
. See the table below.
| 0 | 0 | 0 | 4 | |||
| 1 | 4 | 1 | 4 | |||
| 2 | 8 | 2 | 4 | |||

Notice, in (Figure 12), the equation gives a slanted line, while
gives a horizontal line.
EXAMPLE 9
Graph and
in the same rectangular coordinate system.
Notice that the first equation has the variable , while the second does not. See the table below. The two graphs are shown in (Figure 13).
| 0 | 0 | 0 | ||||
| 1 | 1 | |||||
| 2 | 2 | |||||

TRY IT 9.1
Graph and
in the same rectangular coordinate system.

TRY IT 9.2
Graph and
in the same rectangular coordinate system.

Key Concepts
- Graph a Linear Equation by Plotting Points
- Find three points whose coordinates are solutions to the equation. Organize them in a table.
- Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work!
- Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.
Glossary
- graph of a linear equation
- The graph of a linear equation
is a straight line. Every point on the line is a solution of the equation. Every solution of this equation is a point on this line.
- horizontal line
- A horizontal line is the graph of an equation of the form
. The line passes through the y-axis at
.
- vertical line
- A vertical line is the graph of an equation of the form
. The line passes through the x-axis at
.
Practice Makes Perfect
Recognize the Relationship Between the Solutions of an Equation and its Graph
In the following exercises, for each ordered pair, decide:
a) Is the ordered pair a solution to the equation? b) Is the point on the line?
| 1. a)
| 2. a)
|
3. a)
| 4. a)
|
Graph a Linear Equation by Plotting Points
In the following exercises, graph by plotting points.
| 5. | 6. |
| 7. | 8. |
| 9. | 10. |
| 11. | 12. |
| 13. | 14. |
| 15. | 16. |
| 17. | 18. |
| 19. | 20. |
| 21. | 22. |
| 23. | 24. |
| 25. | 26. |
| 27. | 28. |
| 29. | 30. |
| 31. | 32. |
| 33. | 34. |
| 35. | 36. |
| 37. | 38. |
| 39. | 40. |
| 41. | 42. |
| 43. | 44. |
| 45. | 46. |
| 47. | 48. |
Graph Vertical and Horizontal Lines
In the following exercises, graph each equation.
| 49. | 50. |
| 51. | 52. |
| 53. | 54. |
| 55. | 56. |
| 57. | 58. |
| 59. | 60. |
In the following exercises, graph each pair of equations in the same rectangular coordinate system.
| 61. | 62. |
| 63. | 64. |
Mixed Practice
In the following exercises, graph each equation.
| 65. | 66. |
| 67. | 68. |
| 69. | 70. |
| 71. | 72. |
| 73. | 74. |
| 75. | 76. |
| 77. | 78. |
| 79. | 80. |
Everyday Math
| 81. Motor home cost. The Stonechilds rented a motor home for one week to go on vacation. It cost them $594 plus $0.32 per mile to rent the motor home, so the linear equation | 82. Weekly earnings. At the art gallery where he works, Archisma gets paid $200 per week plus 15% of the sales he makes, so the equation |
Writing Exercises
| 83. Explain how you would choose three x– values to make a table to graph the line | 84. What is the difference between the equations of a vertical and a horizontal line? |
Answers
| 1. a) yes; no b) no; no c) yes; yes d) yes; yes | 3. a) yes; yes b) yes; yes c) yes; yes d) no; no |
| 5.
| 7.
|
| 9.
| 11.
|
| 13.
| 15.
|
| 17.
| 19.
|
| 21.
| 23.
|
| 25.
| 27.
|
| 29.
| 31.
|
| 33.
| 35.
|
| 37.
| 39. *ANSWER GRAPH LOOKS OFF; ie. graph should have m=2/5, not (-2/5). |
| 41.
| 43.
|
| 45.
| 47.
|
| 49.
| 51.
|
| 53.
| 55.
|
| 57.
| 59.
|
| 61.
| 63.
|
| 65.
| 67.
|
| 69.
| 71.
|
| 73.
| 75.
|
| 77.
| 79.
|
81. $722, $850, $978![]() | 83. Answers will vary. |
Attributions
This chapter has been adapted from “Graph Linear Equations in Two Variables” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
34
6.3 Graph with Intercepts
Learning Objectives
By the end of this section, you will be able to:
- Identify the
– and
– intercepts on a graph
- Find the
– and
– intercepts from an equation of a line
- Graph a line using the intercepts
Identify the x– and y– Intercepts on a Graph
Every linear equation can be represented by a unique line that shows all the solutions of the equation. We have seen that when graphing a line by plotting points, you can use any three solutions to graph. This means that two people graphing the line might use different sets of three points.
At first glance, their two lines might not appear to be the same, since they would have different points labeled. But if all the work was done correctly, the lines should be exactly the same. One way to recognize that they are indeed the same line is to look at where the line crosses the x– axis and the y– axis. These points are called the intercepts of the line.
Intercepts of a line
The points where a line crosses the x– axis and the y– axis are called the intercepts of a line.
Let’s look at the graphs of the lines in (Figure 1).
Examples of graphs crossing the x-negative axis.

First, notice where each of these lines crosses the negative axis. See (Figure 1).
| Figure | The line crosses the x– axis at: | Ordered pair of this point |
| Figure (a) | 3 | |
| Figure (b) | 4 | |
| Figure (c) | 5 | |
| Figure (d) | 0 |
Do you see a pattern?
For each row, the y– coordinate of the point where the line crosses the x– axis is zero. The point where the line crosses the x– axis has the form and is called the x– intercept of a line. The x– intercept occurs when
is zero.
Now, let’s look at the points where these lines cross the y– axis. See the table below.
| Figure | The line crosses the y-axis at: | Ordered pair for this point |
| Figure (a) | 6 | |
| Figure (b) | ||
| Figure (c) | ||
| Figure (d) | 0 |
What is the pattern here?
In each row, the x– coordinate of the point where the line crosses the y– axis is zero. The point where the line crosses the y– axis has the form and is called the y- intercept of the line. The y– intercept occurs when
is zero.
x– intercept and y– intercept of a line
The x– intercept is the point where the line crosses the x– axis.
The y– intercept is the point where the line crosses the y– axis.

EXAMPLE 1
Find the x– and y– intercepts on each graph.

- The graph crosses the x– axis at the point
. The x– intercept is
.
The graph crosses the y– axis at the point. The y– intercept is
.
- The graph crosses the x– axis at the point
. The x– intercept is
The graph crosses the y– axis at the point. The y– intercept is
.
- The graph crosses the x– axis at the point
. The x– intercept is
.
The graph crosses the y– axis at the point. The y– intercept is
.
TRY IT 1.1
Find the x– and y– intercepts on the graph.

x– intercept: ; y– intercept:
TRY IT 1.2
Find the x– and y– intercepts on the graph.

x– intercept: , y– intercept:
Find the x– and y– Intercepts from an Equation of a Line
Recognizing that the x– intercept occurs when y is zero and that the y– intercept occurs when x is zero, gives us a method to find the intercepts of a line from its equation. To find the x– intercept, let and solve for x. To find the y– intercept, let
and solve for y.
Find the x– and y– intercepts from the equation of a line
Use the equation of the line. To find:
- the x– intercept of the line, let
and solve for
.
- the y– intercept of the line, let
and solve for
.
EXAMPLE 2
Find the intercepts of .
We will let to find the x– intercept, and let
to find the y– intercept. We will fill in the table, which reminds us of what we need to find.

To find the x– intercept, let .
![]() | |
| Let y = 0. | ![]() |
| Simplify. | ![]() |
![]() | |
| The x-intercept is | (3, 0) |
| To find the y-intercept, let x = 0. | |
![]() | |
| Let x = 0. | ![]() |
| Simplify. | ![]() |
![]() | |
| The y-intercept is | (0, 6) |
The intercepts are the points and
as shown in the following table.
| 3 | 0 |
| 0 | 6 |
TRY 2.1
Find the intercepts of .
x– intercept: , y– intercept:
TRY IT 2.2
Find the intercepts of .
x– intercept: , y– intercept:
EXAMPLE 3
Find the intercepts of .
| To find the x-intercept, let y = 0. | |
![]() | |
| Let y = 0. | ![]() |
| Simplify. | ![]() |
![]() | |
![]() | |
| The x-intercept is | (3, 0) |
| To find the y-intercept, let x = 0. | |
![]() | |
| Let x = 0. | ![]() |
| Simplify. | ![]() |
![]() | |
![]() | |
| The y-intercept is | (0, −4) |
The intercepts are the points (3, 0) and (0, −4) as shown in the following table.
| 3 | 0 |
| 0 | |
TRY IT 3.1
Find the intercepts of .
x– intercept: , y– intercept:
TRY IT 3.2
Find the intercepts of .
x– intercept: , y– intercept:
Graph a Line Using the Intercepts
To graph a linear equation by plotting points, you need to find three points whose coordinates are solutions to the equation. You can use the x– and y– intercepts as two of your three points. Find the intercepts, and then find a third point to ensure accuracy. Make sure the points line up—then draw the line. This method is often the quickest way to graph a line.
EXAMPLE 4
Graph using the intercepts.




TRY IT 4.1
Graph using the intercepts.

TRY IT 4.2
Graph using the intercepts.

HOW TO: Graph a linear equation using the intercepts
The steps to graph a linear equation using the intercepts are summarized below.
- Find the x– and y– intercepts of the line.
- Let
and solve for
- Let
and solve for
.
- Let
- Find a third solution to the equation.
- Plot the three points and check that they line up.
- Draw the line.
EXAMPLE 5
Graph using the intercepts.
Find the intercepts and a third point.

We list the points in following table and show the graph below.
| 3 | 0 | |
| 0 | ||
| 6 | 4 | |

TRY IT 5.1
Graph using the intercepts.

TRY IT 5.2
Graph using the intercepts.

EXAMPLE 6
Graph using the intercepts.

This line has only one intercept. It is the point .
To ensure accuracy we need to plot three points. Since the x– and y– intercepts are the same point, we need two more points to graph the line.

See following table..
| 0 | 0 | |
| 1 | 5 | |
Plot the three points, check that they line up, and draw the line.

TRY IT 6.1
Graph using the intercepts.

TRY IT 6.2
Graph the intercepts.

Key Concepts
- Find the x– and y– Intercepts from the Equation of a Line
- Use the equation of the line to find the x– intercept of the line, let
and solve for x.
- Use the equation of the line to find the y– intercept of the line, let
and solve for y.
- Use the equation of the line to find the x– intercept of the line, let
- Graph a Linear Equation using the Intercepts
- Find the x– and y– intercepts of the line.
Letand solve for x.
Letand solve for y.
- Find a third solution to the equation.
- Plot the three points and then check that they line up.
- Draw the line.
- Find the x– and y– intercepts of the line.
- 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 x– axis at
is a horizontal line passing through the y– axis at
.
- If y is isolated on one side of the equation, graph by plotting points.
- Choose any three values for x and then solve for the corresponding y– values.
- If the equation is of the form
, find the intercepts. Find the x– and y– intercepts and then a third point.
Glossary
- intercepts of a line
- The points where a line crosses the x– axis and the y– axis are called the intercepts of the line.
- x– intercept
- The point
where the line crosses the x– axis; the x– intercept occurs when
is zero.
- y-intercept
- The point
where the line crosses the y– axis; the y– intercept occurs when
is zero.
Practice Makes Perfect
Identify the x– and y– Intercepts on a Graph
In the following exercises, find the x– and y– intercepts on each graph.
1. ![]() | 2. ![]() |
3. ![]() | 4. ![]() |
5. ![]() | 6. ![]() |
7. ![]() | 8. ![]() |
9. ![]() | 10. ![]() |
11. ![]() | 12. ![]() |
Find the x– and y– Intercepts from an Equation of a Line
In the following exercises, find the intercepts for each equation.
| 13. | 14. |
| 15. | 17. |
| 18. | 19. |
| 20. | 21. |
| 22. | 23. |
| 24. | 25. |
| 25. | 27. |
| 28. | 28. |
| 30. | 31. |
| 32. | 33. |
| 34. | 35. |
| 36. | 37. |
| 38. | 39. |
| 40. |
Graph a Line Using the Intercepts
In the following exercises, graph using the intercepts.
| 41. | 42. |
| 43. | 44. |
| 45. | 46. |
| 47. | 48. |
| 49. | 49. |
| 51. | 52. |
| 53. | 54. |
| 55. | 56. |
| 57. | 58. |
| 59. | 60. |
| 61. | 62. |
| 63. | 64. |
| 65. | 66. |
Everyday Math
67. Road trip. Damien is driving from Thunder Bay to Montreal, a distance of 1000 miles. The x– axis on the graph below shows the time in hours since Damien left Thunder Bay. The y– axis represents the distance he has left to drive.
| 68. Road trip. Jenna filled up the gas tank of her truck and headed out on a road trip. The x– axis on the graph below shows the number of miles Jenna drove since filling up. The y– axis represents the number of gallons of gas in the truck’s gas tank.
|
Writing Exercises
| 69. How do you find the x– intercept of the graph of | 70. Do you prefer to use the method of plotting points or the method using the intercepts to graph the equation |
| 71. Do you prefer to use the method of plotting points or the method using the intercepts to graph the equation | 72. Do you prefer to use the method of plotting points or the method using the intercepts to graph the equation |
Answers
| 1. | 3. |
| 5. | 7. |
| 9. | 11. |
| 13. | 15. |
| 17. | 19. |
| 21. | 23. |
| 25. | 27. |
| 29. | 31. |
| 33. | 35. |
| 37. | 39. |
| 41.
| 43.
|
| 45.
| 47.
|
| 49.
| 51.
|
| 53.
| 55.
|
| 57.
| 59.
|
| 61.
| 63.
|
| 65.
| 67. a) |
| 69. Answers will vary. | 71. Answers will vary. |
Attributions
This chapter has been adapted from “Graph with Intercepts” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
35
6.4 Understand Slope of a Line
Learning Objectives
By the end of this section, you will be able to:
- Use geoboards to model slope
- Use
to find the slope of a line from its graph
- Find the slope of horizontal and vertical lines
- Use the slope formula to find the slope of a line between two points
- Graph a line given a point and the slope
- Solve slope applications
When you graph linear equations, you may notice that some lines tilt up as they go from left to right and some lines tilt down. Some lines are very steep and some lines are flatter. What determines whether a line tilts up or down or if it is steep or flat?
In mathematics, the ‘tilt’ of a line is called the slope of the line. The concept of slope has many applications in the real world. The pitch of a roof, grade of a highway, and a ramp for a wheelchair are some examples where you literally see slopes. And when you ride a bicycle, you feel the slope as you pump uphill or coast downhill.
In this section, we will explore the concept of slope.
Use Geoboards to Model Slope
A geoboard is a board with a grid of pegs on it. Using rubber bands on a geoboard gives us a concrete way to model lines on a coordinate grid. By stretching a rubber band between two pegs on a geoboard, we can discover how to find the slope of a line.
Doing the Manipulative Mathematics activity “Exploring Slope” will help you develop a better understanding of the slope of a line. (Graph paper can be used instead of a geoboard, if needed.)
We’ll start by stretching a rubber band between two pegs as shown in (Figure 1).

Doesn’t it look like a line?
Now we stretch one part of the rubber band straight up from the left peg and around a third peg to make the sides of a right triangle, as shown in (Figure 2)

We carefully make a 90º angle around the third peg, so one of the newly formed lines is vertical and the other is horizontal.
To find the slope of the line, we measure the distance along the vertical and horizontal sides of the triangle. The vertical distance is called the rise and the horizontal distance is called the run, as shown in (Figure 3).

If our geoboard and rubber band look just like the one shown in (Figure 4), the rise is 2. The rubber band goes up 2 units. (Each space is one unit.)
The rise on this geoboard is 2, as the rubber band goes up two units.

What is the run?
The rubber band goes across 3 units. The run is 3 (see (Figure 4)).
The slope of a line is the ratio of the rise to the run. In mathematics, it is always referred to with the letter .
Slope of a line
The slope of a line of a line is .
The rise measures the vertical change and the run measures the horizontal change between two points on the line.
What is the slope of the line on the geoboard in (Figure 4)?
The line has slope . This means that the line rises 2 units for every 3 units of run.
When we work with geoboards, it is a good idea to get in the habit of starting at a peg on the left and connecting to a peg to the right. If the rise goes up it is positive and if it goes down it is negative. The run will go from left to right and be positive.
EXAMPLE 1
What is the slope of the line on the geoboard shown?

Use the definition of slope: .
Start at the left peg and count the spaces up and to the right to reach the second peg.

| The rise is 3. | |
| The run is 4. | |
| The slope is |
This means that the line rises 3 units for every 4 units of run.
TRY IT 1.1
What is the slope of the line on the geoboard shown?

TRY IT 1.2
What is the slope of the line on the geoboard shown?

EXAMPLE 2
What is the slope of the line on the geoboard shown?

Use the definition of slope: .
Start at the left peg and count the units down and to the right to reach the second peg.

| The rise is −1. | |
| The run is 3. | |
| The slope is |
This means that the line drops 1 unit for every 3 units of run.
TRY IT 2.1
What is the slope of the line on the geoboard?

TRY IT 2.2
What is the slope of the line on the geoboard?

Notice that in (Example 1) the slope is positive and in (Example 2) the slope is negative. Do you notice any difference in the two lines shown in (Figure 5a) and (Figure 5b)?

Positive and negative slopes
We ‘read’ a line from left to right just like we read words in English. As you read from left to right, the line in (Figure 5a) is going up; it has positive slope. The line in (Figure 5b) is going down; it has negative slope.

EXAMPLE 3
Use a geoboard to model a line with slope .
To model a line on a geoboard, we need the rise and the run.
| Use the slope formula. | |
| Replace |
So, the rise is 1 and the run is 2
Start at a peg in the lower left of the geoboard.
Stretch the rubber band up 1 unit, and then right 2 units.

The hypotenuse of the right triangle formed by the rubber band represents a line whose slope is .
TRY IT 3.1
Model the slope . Draw a picture to show your results.

TRY IT 3.2
Model the slope . Draw a picture to show your results.

EXAMPLE 4
Use a geoboard to model a line with slope .
| Use the slope formula. | |
| Replace |
So, the rise is and the run is 4
Since the rise is negative, we choose a starting peg on the upper left that will give us room to count down.
We stretch the rubber band down 1 unit, then go to the right 4 units, as shown.

The hypotenuse of the right triangle formed by the rubber band represents a line whose slope is .
TRY IT 4.1
Model the slope . Draw a picture to show your results.

TRY IT 4.2
Model the slope . Draw a picture to show your results.

Use
to Find the Slope of a Line from its Graph
Now, we’ll look at some graphs on the -coordinate plane and see how to find their slopes. The method will be very similar to what we just modeled on our geoboards.
To find the slope, we must count out the rise and the run. But where do we start?
We locate two points on the line whose coordinates are integers. We then start with the point on the left and sketch a right triangle, so we can count the rise and run.
EXAMPLE 5
Find the slope of the line shown.





TRY IT 5.1
Find the slope of the line shown.

TRY IT 5.2
Find the slope of the line shown.

HOW TO: Find the slope of a line from its graph using .
- Locate two points on the line whose coordinates are integers.
- Starting with the point on the left, sketch a right triangle, going from the first point to the second point.
- Count the rise and the run on the legs of the triangle.
- Take the ratio of rise to run to find the slope,
.
EXAMPLE 6
Find the slope of the line shown.

| Locate two points on the graph whose coordinates are integers. | |
| Which point is on the left? | |
| Starting at | ![]() |
| Count the rise—it is negative. | The rise is |
| Count the run. | The run is 3. |
| Use the slope formula. | |
| Substitute the values of the rise and run. | |
| Simplify. | |
| The slope of the line is |
So increases by 3 units as
decreases by 2 units.
What if we used the points and
to find the slope of the line?

The rise would be and the run would be 9. Then
, and that simplifies to
. Remember, it does not matter which points you use—the slope of the line is always the same.
TRY IT 6.1
Find the slope of the line shown.

TRY IT 6.2
Find the slope of the line shown.

In the last two examples, the lines had y-intercepts with integer values, so it was convenient to use the y-intercept as one of the points to find the slope. In the next example, the y-intercept is a fraction. Instead of using that point, we’ll look for two other points whose coordinates are integers. This will make the slope calculations easier.
EXAMPLE 7
Find the slope of the line shown.

| Locate two points on the graph whose coordinates are integers. | |
| Which point is on the left? | |
| Starting at | ![]() |
| Count the rise. | The rise is 3. |
| Count the run. | The run is 5. |
| Use the slope formula. | |
| Substitute the values of the rise and run. | |
| The slope of the line is |
This means that increases 5 units as
increases 3 units.
When we used geoboards to introduce the concept of slope, we said that we would always start with the point on the left and count the rise and the run to get to the point on the right. That way the run was always positive and the rise determined whether the slope was positive or negative.
What would happen if we started with the point on the right?
Let’s use the points and
again, but now we’ll start at
.

| Count the rise. | The rise is |
| Count the run. It goes from right to left, so it is negative. | The run is |
| Use the slope formula. | |
| Substitute the values of the rise and run. | |
| The slope of the line is |
It does not matter where you start—the slope of the line is always the same.
TRY IT 7.1
Find the slope of the line shown.

EXAMPLE 7.2
Find the slope of the line shown.

Find the Slope of Horizontal and Vertical Lines
Do you remember what was special about horizontal and vertical lines? Their equations had just one variable.
So how do we find the slope of the horizontal line ? One approach would be to graph the horizontal line, find two points on it, and count the rise and the run. Let’s see what happens when we do this.

| What is the rise? | The rise is |
| Count the run. | The run is |
| What is the slope? | |
| The slope of the horizontal line |
All horizontal lines have slope 0. When the y-coordinates are the same, the rise is 0.
Slope of a horizontal line
The slope of a horizontal line, , is 0.
The floor of your room is horizontal. Its slope is 0. If you carefully placed a ball on the floor, it would not roll away.
Now, we’ll consider a vertical line, the line.

| What is the rise? | The rise is |
| Count the run. | The run is |
| What is the slope? |
But we can’t divide by 0. Division by 0 is not defined. So we say that the slope of the vertical line is undefined.
The slope of any vertical line is undefined. When the x-coordinates of a line are all the same, the run is 0.
Slope of a vertical line
The slope of a vertical line, , is undefined.
EXAMPLE 8
Find the slope of each line:
a) b)
.
a)
This is a vertical line.
Its slope is undefined.
b)
This is a horizontal line.
It has slope 0.
TRY IT 8.1
Find the slope of the line: .
undefined
TRY 8.2
Find the slope of the line: .
0
Quick guide to the slopes of lines

Remember, we ‘read’ a line from left to right, just like we read written words in English.
Use the Slope Formula to find the Slope of a Line Between Two Points
Sometimes we’ll need to find the slope of a line between two points when we don’t have a graph to count out the rise and the run. We could plot the points on grid paper, then count out the rise and the run, but as we’ll see, there is a way to find the slope without graphing. Before we get to it, we need to introduce some algebraic notation.
We have seen that an ordered pair gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol
be used to represent two different points? Mathematicians use subscripts to distinguish the points.
The use of subscripts in math is very much like the use of last name initials in elementary school. Maybe you remember Laura C. and Laura M. in your third grade class?
We will use to identify the first point and
to identify the second point.
If we had more than two points, we could use ,
, and so on.
Let’s see how the rise and run relate to the coordinates of the two points by taking another look at the slope of the line between the points and
.

Since we have two points, we will use subscript notation, .
On the graph, we counted the rise of 3 and the run of 5
Notice that the rise of 3 can be found by subtracting the y-coordinates 6 and 3
And the run of 5 can be found by subtracting the x-coordinates 7 and 2
We know . So
.
We rewrite the rise and run by putting in the coordinates .
But 6 is , the y-coordinate of the second point and 3 is
, the y-coordinate of the first point.
So we can rewrite the slope using subscript notation.
Also, 7 is , the x-coordinate of the second point and 2 is
, the x-coordinate of the first point.
So, again, we rewrite the slope using subscript notation.
We’ve shown that is really another version of
. We can use this formula to find the slope of a line when we have two points on the line.
Slope formula
The slope of the line between two points and
is
This is the slope formula.
The slope is:
EXAMPLE 9
Use the slope formula to find the slope of the line between the points and
.
| We’ll call | |
| Use the slope formula. | |
| Substitute the values. | |
| Simplify the numerator and the denominator. | |
| Simplify. |
Let’s confirm this by counting out the slope on a graph using .

It doesn’t matter which point you call point #1 and which one you call point #2. The slope will be the same. Try the calculation yourself.
TRY IT 9.1
Use the slope formula to find the slope of the line through the points: and
.
1
TRY IT 9.2
Use the slope formula to find the slope of the line through the points: and
.
1
EXAMPLE 10
Use the slope formula to find the slope of the line through the points and
.
| We’ll call | |
| Use the slope formula. | |
| Substitute the values. | |
| Simplify. |
Let’s verify this slope on the graph shown.

TRY IT 10.1
Use the slope formula to find the slope of the line through the points: and
.
TRY IT 10.2
Use the slope formula to find the slope of the line through the pair of points: and
.
10
Graph a Line Given a Point and the Slope
Up to now, in this chapter, we have graphed lines by plotting points, by using intercepts, and by recognizing horizontal and vertical lines.
One other method we can use to graph lines is called the point–slope method. We will use this method when we know one point and the slope of the line. We will start by plotting the point and then use the definition of slope to draw the graph of the line.
EXAMPLE 11
Graph the line passing through the point whose slope is
.




EXAMPLE 11.1
Graph the line passing through the point with the slope
.

TRY IT 11.2
Graph the line passing through the point with the slope
.

Graph a line given a point and the slope.
- Plot the given point.
- Use the slope formula
to identify the rise and the run.
- Starting at the given point, count out the rise and run to mark the second point.
- Connect the points with a line.
EXAMPLE 12
Graph the line with y-intercept 2 whose slope is .
Plot the given point, the y-intercept, .

| Identify the rise and the run. | |
Count the rise and the run. Mark the second point.

Connect the two points with a line.

You can check your work by finding a third point. Since the slope is , it can be written as
. Go back to
and count out the rise, 2, and the run,
.
TRY IT 12.1
Graph the line with the y-intercept 4 and slope .

TRY IT 12.2
Graph the line with the x-intercept and slope
.

EXAMPLE 13
Graph the line passing through the point whose slope is
.
Plot the given point.

| Identify the rise and the run. | |
| Write 4 as a fraction. | |
Count the rise and run and mark the second point.

Connect the two points with a line.

You can check your work by finding a third point. Since the slope is , it can be written as
. Go back to
and count out the rise,
, and the run,
.
TRY IT 13.1
Graph the line with the point and slope
.

EXAMPLE 13.2
Graph the line with the point and slope
.

Solve Slope Applications
At the beginning of this section, we said there are many applications of slope in the real world. Let’s look at a few now.
EXAMPLE 14
The ‘pitch’ of a building’s roof is the slope of the roof. Knowing the pitch is important in climates where there is heavy snowfall. If the roof is too flat, the weight of the snow may cause it to collapse. What is the slope of the roof shown?

| Use the slope formula. | |
| Substitute the values for rise and run. | |
| Simplify. | |
| The slope of the roof is | |
| The roof rises 1 foot for every 2 feet of horizontal run. |
TRY IT 14.1
Use (Example 14), substituting the rise = 14 and run = 24
TRY IT 14.2
Use (Example 14), substituting rise = 15 and run = 36
EXAMPLE 15
Have you ever thought about the sewage pipes going from your house to the street? They must slope down inch per foot in order to drain properly. What is the required slope?

| Use the slope formula. | |
| Simplify. | |
| The slope of the pipe is |
The pipe drops 1 inch for every 48 inches of horizontal run.
TRY IT 15.1
Find the slope of a pipe that slopes down inch per foot.
TRY IT 15.2
Find the slope of a pipe that slopes down inch per yard.
Access these online resources for additional instruction and practice with understanding slope of a line.
Key Concepts
- Find the Slope of a Line from its Graph using
- Locate two points on the line whose coordinates are integers.
- Starting with the point on the left, sketch a right triangle, going from the first point to the second point.
- Count the rise and the run on the legs of the triangle.
- Take the ratio of rise to run to find the slope.
- Graph a Line Given a Point and the Slope
- Plot the given point.
- Use the slope formula
to identify the rise and the run.
- Starting at the given point, count out the rise and run to mark the second point.
- Connect the points with a line.
- Slope of a Horizontal Line
- The slope of a horizontal line,
, is 0.
- The slope of a horizontal line,
- Slope of a vertical line
- The slope of a vertical line,
, is undefined
- The slope of a vertical line,
Glossary
- geoboard
- A geoboard is a board with a grid of pegs on it.
- negative slope
- A negative slope of a line goes down as you read from left to right.
- positive slope
- A positive slope of a line goes up as you read from left to right.
- rise
- The rise of a line is its vertical change.
- run
- The run of a line is its horizontal change.
- slope formula
- The slope of the line between two points
and
is
.
- slope of a line
- The slope of a line is
. The rise measures the vertical change and the run measures the horizontal change.
Practice Makes Perfect
Use Geoboards to Model Slope
In the following exercises, find the slope modeled on each geoboard.
1. ![]() | 2. ![]() |
3. ![]() | 4. ![]() |
5. ![]() | 6. ![]() |
7. ![]() | 8. ![]() |
In the following exercises, model each slope. Draw a picture to show your results.
| 9. | 10. |
| 11. | 12. |
| 13. | 14. |
| 15. | 16. |
Use
to find the Slope of a Line from its Graph
In the following exercises, find the slope of each line shown.
17. ![]() | 18. ![]() |
19. ![]() | 20. ![]() |
21. ![]() | 22. ![]() |
23. ![]() | 24. ![]() |
25. ![]() | 26. ![]() |
27. ![]() | 28. ![]() |
29. ![]() | 30. ![]() |
31. ![]() | 32. ![]() |
Find the Slope of Horizontal and Vertical Lines
In the following exercises, find the slope of each line.
| 33. | 34. |
| 35. | 36. |
| 37. | 38. |
| 39. | 40. |
Use the Slope Formula to find the Slope of a Line between Two Points
In the following exercises, use the slope formula to find the slope of the line between each pair of points.
| 41. | 42. |
| 43. | 44. |
| 45. | 46. |
| 47. | 48. |
| 49. | 50. |
| 51. | 52. |
Graph a Line Given a Point and the Slope
In the following exercises, graph each line with the given point and slope.
| 53. | 54. |
| 55. | 56. |
| 57. | 58. |
| 59. | 60. |
| 61. y-intercept 3; | 62. y-intercept 5; |
| 63. x-intercept | 64. x-intercept |
| 65. | 66. |
| 67. | 67. |
Everyday Math
69. Slope of a roof. An easy way to determine the slope of a roof is to set one end of a 12 inch level on the roof surface and hold it level. Then take a tape measure or ruler and measure from the other end of the level down to the roof surface. This will give you the slope of the roof. Builders, sometimes, refer to this as pitch and state it as an “
| 70. The slope of the roof shown here is measured with a 12” level and a ruler. What is the slope of this roof?
|
| 71. Road grade. A local road has a grade of 6%. The grade of a road is its slope expressed as a percent. Find the slope of the road as a fraction and then simplify. What rise and run would reflect this slope or grade? | 72. Highway grade. A local road rises 2 feet for every 50 feet of highway. a) What is the slope of the highway? |
73. Wheelchair ramp. The rules for wheelchair ramps require a maximum 1-inch rise for a 12-inch run. a) How long must the ramp be to accommodate a 24-inch rise to the door? | 74. Wheelchair ramp. A 1-inch rise for a 16-inch run makes it easier for the wheelchair rider to ascend a ramp. a) How long must a ramp be to easily accommodate a 24-inch rise to the door? |
Writing Exercises
| 75. What does the sign of the slope tell you about a line? | 76. How does the graph of a line with slope |
| 77. Why is the slope of a vertical line “undefined”? |
Answers
| 1. | 3. |
| 5. | 7. |
| 9.
| 11.
|
| 13.
| 15.
|
| 17. | 19. |
| 21. | 23. |
| 25. | 27. |
| 29. | 31. |
| 33. 0 | 35. undefined |
| 37. 0 | 39. undefined |
| 41. | 43. |
| 45. | 47. |
| 49. | 51. |
| 53.
| 55.
|
| 57.
| 59.
|
| 61.
| 63.
|
| 65.
| 67.
|
| 69. a) | 71. |
| 73. a) 288 inches (24 feet) b) Models will vary. | 75. When the slope is a positive number the line goes up from left to right. When the slope is a negative number the line goes down from left to right. |
| 77. A vertical line has 0 run and since division by 0 is undefined the slope is undefined. |
Attributions
This chapter has been adapted from “Understand Slope of a Line” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
36
6.5 Use the Slope–Intercept Form of an Equation of a Line
Learning Objectives
By the end of this section, you will be able to:
- Recognize the relation between the graph and the slope–intercept form of an equation of a line
- Identify the slope and y-intercept form of an equation of a line
- Graph a line using its slope and intercept
- Choose the most convenient method to graph a line
- Graph and interpret applications of slope–intercept
- Use slopes to identify parallel lines
- Use slopes to identify perpendicular lines
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.
In Graph Linear Equations in Two Variables, we graphed the line of the equation by plotting points. See (Figure). Let’s find the slope of this line.

The red lines show us the rise is 1 and the run is 2. Substituting into the slope formula:
What is the y-intercept of the line? The y-intercept is where the line crosses the y-axis, so y-intercept is . The equation of this line is:

Notice, the line has:

When a linear equation is solved for , the coefficient of the
term is the slope and the constant term is the y-coordinate of the y-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 y-intercept,
is,
Sometimes the slope–intercept form is called the “y-form.”
EXAMPLE 1
Use the graph to find the slope and y-intercept of the line, .
Compare these values to the equation.
To find the slope of the line, we need to choose two points on the line. We’ll use the points and
.
![]() | |
| Find the rise and run. | ![]() |
![]() | |
![]() | |
| Find the y-intercept of the line. | The y-intercept is the point (0, 1). |
![]() | ![]() |
The slope is the same as the coefficient of and the y-coordinate of the y-intercept is the same as the constant term.
TRY IT 1.1
Use the graph to find the slope and y-intercept of the line . Compare these values to the equation
.

slope and y-intercept
TRY IT 1.2
Use the graph to find the slope and y-intercept of the line . Compare these values to the equation
.

slope and y-intercept
Identify the Slope and y-Intercept From an Equation of a Line
In Understand Slope of a Line, we graphed a line using the slope and a point. When we are given an equation in slope–intercept form, we can use the y-intercept as the point, and then count out the slope from there. Let’s practice finding the values of the slope and y-intercept from the equation of a line.
EXAMPLE 2
Identify the slope and y-intercept of the line with equation .
We compare our equation to the slope–intercept form of the equation.
![]() | |
| Write the equation of the line. | ![]() |
| Identify the slope. | ![]() |
| Identify the y-intercept. | ![]() |
TRY IT 2.1
Identify the slope and y-intercept of the line .
TRY IT 2.2
Identify the slope and y-intercept of the line .
When an equation of a line is not given in slope–intercept form, our first step will be to solve the equation for .
EXAMPLE 3
Identify the slope and y-intercept of the line with equation .
This equation is not in slope–intercept form. In order to compare it to the slope–intercept form we must first solve the equation for.
| Solve for y. | |
| Subtract x from each side. | ![]() |
| Divide both sides by 2. | ![]() |
| Simplify. | ![]() |
| (Remember: | |
| Simplify. | ![]() |
| Write the slope–intercept form of the equation of the line. | ![]() |
| Write the equation of the line. | ![]() |
| Identify the slope. | ![]() |
| Identify the y-intercept. | ![]() |
TRY IT 3.1
Identify the slope and y-intercept of the line .
TRY IT 3.2
Identify the slope and y-intercept of the line .
Graph a Line Using its Slope and Intercept
Now that we know how to find the slope and y-intercept of a line from its equation, we can graph the line by plotting the y-intercept and then using the slope to find another point.
EXAMPLE 4
Graph the line of the equation using its slope and y-intercept.






TRY IT 4.1
Graph the line of the equation using its slope and y-intercept.

TRY IT 4.2
Graph the line of the equation using its slope and y-intercept.

HOW TO: Graph a line using its slope and y-intercept
- Find the slope-intercept form of the equation of the line.
- Identify the slope and y-intercept.
- Plot the y-intercept.
- Use the slope formula
to identify the rise and the run.
- Starting at the y-intercept, count out the rise and run to mark the second point.
- Connect the points with a line.
EXAMPLE 5
Graph the line of the equation using its slope and y-intercept.
| The equation is in slope–intercept form. | |
| Identify the slope and y-intercept. | |
| y-intercept is (0, 4) | |
| Plot the y-intercept. | See graph below. |
| Identify the rise and the run. | |
| Count out the rise and run to mark the second point. | rise −1, run 1 |
| Draw the line. | ![]() |
| To check your work, you can find another point on the line and make sure it is a solution of the equation. In the graph we see the line goes through (4, 0). | |
| Check. | |
TRY IT 5.1
Graph the line of the equation using its slope and y-intercept.

TRY IT 5.2
Graph the line of the equation using its slope and y-intercept.

EXAMPLE 6
Graph the line of the equation using its slope and y-intercept.
Solution
| The equation is in slope–intercept form. | |
| Identify the slope and y-intercept. | |
| Plot the y-intercept. | See graph below. |
| Identify the rise and the run. | |
| Count out the rise and run to mark the second point. | |
| Draw the line. | ![]() |
TRY IT 6.1
Graph the line of the equation using its slope and y-intercept.

TRY IT 6.2
Graph the line of the equation using its slope and y-intercept.

EXAMPLE 7
Graph the line of the equation using its slope and y-intercept.
| Find the slope–intercept form of the equation. | |
| The equation is now in slope–intercept form. | |
| Identify the slope and y-intercept. | |
| y-intercept is (0, −4) | |
| Plot the y-intercept. | See graph below. |
| Identify the rise and the run; count out the rise and run to mark the second point. | |
| Draw the line. | ![]() |
TRY IT 7.1
Graph the line of the equation using its slope and y-intercept.

TRY IT 7.2
Graph the line of the equation using its slope and y-intercept.

We have used a grid with and
both going from about
to 10 for all the equations we’ve graphed so far. Not all linear equations can be graphed on this small grid. Often, especially in applications with real-world data, we’ll need to extend the axes to bigger positive or smaller negative numbers.
EXAMPLE 8
Graph the line of the equation using its slope and y-intercept.
Solution
We’ll use a grid with the axes going from about to 80.
| The equation is in slope–intercept form. | |
| Identify the slope and y-intercept. | |
| The y-intercept is (0, 45) | |
| Plot the y-intercept. | See graph below. |
| Count out the rise and run to mark the second point. The slope is | |
| Draw the line. | ![]() |
TRY IT 8.1
Graph the line of the equation using its slope and y-intercept.

TRY IT 8.2
Graph the line of the equation using its slope and y-intercept.

Methods to graph lines

Choose the Most Convenient Method to Graph a Line
Now that we have seen several methods we can use 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, if we recognize the most convenient way to graph a certain type of equation, our work will be easier. Generally, plotting points is not the most efficient way to graph a line. We saw better methods in sections 4.3, 4.4, and earlier in this section. Let’s look for some patterns to help determine the most convenient method to graph a line.
Here are six equations we graphed in this chapter, and the method we used to graph each of them.
Equations #1 and #2 each have just one variable. Remember, in equations of this form the value of that one variable is constant; it does not depend on the value of the other variable. Equations of this form have graphs that are vertical or horizontal lines.
In equations #3 and #4, both and
are on the same side of the equation. These two equations are of the form
. We substituted
to find the x-intercept and
to find the y-intercept, and then found a third point by choosing another value for
or
.
Equations #5 and #6 are written in slope–intercept form. After identifying the slope and y-intercept from the equation we used them to graph the line.
This leads to the following strategy.
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 x-axis at
.
is a horizontal line passing through the y-axis at
.
- If
is isolated on one side of the equation, in the form
, graph by using the slope and y-intercept.
- Identify the slope and y-intercept and then graph.
- If the equation is of the form
, find the intercepts.
- Find the x– and y-intercepts, a third point, and then graph.
EXAMPLE 9
Determine the most convenient method to graph each line.
a) b )
c)
d)
.
This equation has only one variable,. Its graph is a horizontal line crossing the y-axis at
.
This equation is of the form. The easiest way to graph it will be to find the intercepts and one more point.
There is only one variable,. The graph is a vertical line crossing the x-axis at 7.
Since this equation is inform, it will be easiest to graph this line by using the slope and y-intercept.
TRY IT 9.1
Determine the most convenient method to graph each line: a) b)
c)
d)
.
a) intercepts b) horizontal line c) slope–intercept d) vertical line
TRY IT 9.2
Determine the most convenient method to graph each line: a) b)
c)
d)
.
a) vertical line b) slope–intercept c) horizontal line d) intercepts
Graph and Interpret Applications of Slope–Intercept
Many real-world applications are modeled by linear equations. We will take a look at a few applications here so you can see how equations written in slope–intercept form relate to real-world situations.
Usually when a linear equation models a real-world situation, different letters are used for the variables, instead of x and y. The variable names remind us of what quantities are being measured.
EXAMPLE 10
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 0.
b) Find the Fahrenheit temperature for a Celsius temperature of 20.
c) Interpret the slope and F-intercept of the equation.
d) Graph the equation.
| a) Find the Fahrenheit temperature for a Celsius temperature of 0. Find Simplify. | |
| b) Find the Fahrenheit temperature for a Celsius temperature of 20. Find Simplify. Simplify. |
c) Interpret the slope and F-intercept of the equation.
Even though this equation uses and
, it is still in slope–intercept form.

The slope, , means that the temperature Fahrenheit (F) increases 9 degrees when the temperature Celsius (C) increases 5 degrees.
The F-intercept means that when the temperature is 0° on the Celsius scale, it is 32° on the Fahrenheit scale.
d) Graph the equation.
We’ll need to use a larger scale than our usual. Start at the F-intercept then count out the rise of 9 and the run of 5 to get a second point. See (Figure).

TRY IT 10.1
The equation is used to estimate a woman’s height in inches, h, based on her shoe size, s.
a) Estimate the height of a child who wears women’s shoe size 0.
b) Estimate the height of a woman with shoe size 8.
c) Interpret the slope and h-intercept of the equation.
d) Graph the equation.
- 50 inches
- 66 inches
- The slope, 2, means that the height, h, increases by 2 inches when the shoe size, s, increases by 1. The h-intercept means that when the shoe size is 0, the height is 50 inches.

TRY IT 10.2
The equation is used to estimate the temperature in degrees Fahrenheit, T, based on the number of cricket chirps, n, in one minute.
a) Estimate the temperature when there are no chirps.
b) Estimate the temperature when the number of chirps in one minute is 100.
c) Interpret the slope and T-intercept of the equation.
d) Graph the equation.
- 40 degrees
- 65 degrees
- The slope,
, means that the temperature Fahrenheit (F) increases 1 degree when the number of chirps, n, increases by 4. The T-intercept means that when the number of chirps is 0, the temperature is 40°.

The cost of running some types business has two components—a fixed cost and a variable cost. The fixed cost is always the same regardless of how many units are produced. This is the cost of rent, insurance, equipment, advertising, and other items that must be paid regularly. The variable cost depends on the number of units produced. It is for the material and labour needed to produce each item.
EXAMPLE 11
Stella has a home business selling gourmet pizzas. The equation models the relation between her weekly cost, C, in dollars and the number of pizzas, p, that she sells.
a) Find Stella’s cost for a week when she sells no pizzas.
b) Find the cost for a week when she sells 15 pizzas.
c) Interpret the slope and C-intercept of the equation.
d) Graph the equation.
| a) Find Stella’s cost for a week when she sells no pizzas. | ![]() |
| Find C when | ![]() |
| Simplify. | ![]() |
| Stella’s fixed cost is $25 when she sells no pizzas. | |
| b) Find the cost for a week when she sells 15 pizzas. | ![]() |
| Find C when | ![]() |
| Simplify. | ![]() |
![]() | |
| Stella’s costs are $85 when she sells 15 pizzas. | |
| c) Interpret the slope and C-intercept of the equation. | ![]() |
| The slope, 4, means that the cost increases by $4 for each pizza Stella sells. The C-intercept means that even when Stella sells no pizzas, her costs for the week are $25. | |
| d) Graph the equation. We’ll need to use a larger scale than our usual. Start at the C-intercept (0, 25) then count out the rise of 4 and the run of 1 to get a second point. | ![]() |
TRY IT 11.1
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.
a) Find Sam’s cost for a week when he drives 0 miles.
b) Find the cost for a week when he drives 250 miles.
c) Interpret the slope and C-intercept of the equation.
d) Graph the equation.
- $60
- $185
- The slope, 0.5, means that the weekly cost, C, increases by $0.50 when the number of miles driven, n, increases by 1. The C-intercept means that when the number of miles driven is 0, the weekly cost is $60

TRY IT 11.2
Loreen has a calligraphy business. The equation models the relation between her weekly cost, C, in dollars and the number of wedding invitations, n, that she writes.
a) Find Loreen’s cost for a week when she writes no invitations.
b) Find the cost for a week when she writes 75 invitations.
c) Interpret the slope and C-intercept of the equation.
d) Graph the equation.
- $35
- $170
- The slope, 1.8, means that the weekly cost, C, increases by $1.80 when the number of invitations, n, increases by 1.80.
The C-intercept means that when the number of invitations is 0, the weekly cost is $35.; 
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 y-intercepts are called parallel lines. See (Figure).
Verify that both lines have the same slope, , and different y-intercepts.

What about vertical lines? The slope of a vertical line is undefined, so vertical lines don’t fit in the definition above. We say that vertical lines that have different x-intercepts are parallel. See (Figure).
Vertical lines with different x-intercepts are parallel.

Parallel lines
Parallel lines are lines in the same plane that do not intersect.
- Parallel lines have the same slope and different y-intercepts.
- If
and
are the slopes of two parallel lines then
.
- Parallel vertical lines have different x-intercepts.
Let’s graph the equations and
on the same grid. The first equation is already in slope–intercept form:
. We solve the second equation for
:
Graph the lines.

Notice the lines look parallel. What is the slope of each line? What is the y-intercept of each line?
The slopes of the lines are the same and the y-intercept of each line is different. So we know these lines are parallel.
Since parallel lines have the same slope and different y-intercepts, we can now just look at the slope–intercept form of the equations of lines and decide if the lines are parallel.
EXAMPLE 12
Use slopes and y-intercepts to determine if the lines and
are parallel.
| Solve the first equation for | and | ||
| The equation is now in slope-intercept form. | |||
| The equation of the second line is already in slope-intercept form. | |||
| Identify the slope and | |||
| y-intercept is (0, −3) | y-intercept is (0, 1) |
The lines have the same slope and different y-intercepts and so they are parallel. You may want to graph the lines to confirm whether they are parallel.
TRY IT 12.1
Use slopes and y-intercepts to determine if the lines and
are parallel.
parallel
TRY IT 12.2
Use slopes and y-intercepts to determine if the lines and
are parallel.
parallel
EXAMPLE 13
Use slopes and y-intercepts to determine if the lines and
are parallel.
| and | |||
| Write each equation in slope-intercept form. | |||
| Since there is no | |||
| Identify the slope and | |||
| y-intercept is (0, 4) | y-intercept is (0, 3) |
The lines have the same slope and different y-intercepts and so they are parallel.
There is another way you can look at this example. If you recognize right away from the equations that these are horizontal lines, you know their slopes are both 0. Since the horizontal lines cross the y-axis at and at
, we know the y-intercepts are
and
. The lines have the same slope and different y-intercepts and so they are parallel.
TRY IT 13.1
Use slopes and y-intercepts to determine if the lines and
are parallel.
parallel
TRY IT 13.2
Use slopes and y-intercepts to determine if the lines and
are parallel.
parallel
EXAMPLE 14
Use slopes and y-intercepts to determine if the lines and
are parallel.
Since there is no, the equations cannot be put in slope–intercept form. But we recognize them as equations of vertical lines. Their x-intercepts are
and
. Since their x-intercepts are different, the vertical lines are parallel.
TRY IT 14.1
Use slopes and y-intercepts to determine if the lines and
are parallel.
parallel
TRY IT 14.2
Use slopes and y-intercepts to determine if the lines and
are parallel.
parallel
EXAMPLE 15
Use slopes and y-intercepts to determine if the lines and
are parallel. You may want to graph these lines, too, to see what they look like.
| and | |||
| The first equation is already in slope-intercept form. | |||
| Solve the second equation for | |||
| The second equation is now in slope-intercept form. | |||
| Identify the slope and | |||
The lines have the same slope, but they also have the same y-intercepts. Their equations represent the same line. They are not parallel; they are the same line.
TRY IT 15.1
Use slopes and y-intercepts to determine if the lines and
are parallel.
not parallel; same line
TRY IT 15.2
Use slopes and y-intercepts to determine if the lines and
are parallel.
not parallel; same line
Use Slopes to Identify Perpendicular Lines
Let’s look at the lines whose equations are and
, shown in (Figure).

These lines lie in the same plane and intersect in right angles. We call these lines perpendicular.
What do you notice about the slopes of these two lines? 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 to you that the slopes of two perpendicular lines will have opposite signs?
If we look at the slope of the first line, , and the slope of the second line,
, we can see that they are negative reciprocals of each other. If we multiply them, their product is
.
This is always true for perpendicular lines and leads us to this definition.
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:
and
Vertical lines and horizontal lines are always perpendicular to each other.
We were able to look at the slope–intercept form of linear equations and determine whether or not the lines were parallel. We can do the same thing for perpendicular lines.
We find the slope–intercept form of the equation, and then see if the slopes are negative reciprocals. If the product of the slopes is , the lines are perpendicular. Perpendicular lines may have the same y-intercepts.
EXAMPLE 16
Use slopes to determine if the lines, and
are perpendicular.
| The first equation is already in slope-intercept form. | ||
| Solve the second equation for | ||
| Identify the slope of each line. |
The slopes are negative reciprocals of each other, so the lines are perpendicular. We check by multiplying the slopes,
TRY IT 16.1
Use slopes to determine if the lines and
are perpendicular.
perpendicular
TRY IT 16.2
Use slopes to determine if the lines and
are perpendicular.
perpendicular
EXAMPLE 17
Use slopes to determine if the lines, and
are perpendicular.
| Solve the equations for | ||
| Identify the slope of each line. |
The slopes are reciprocals of each other, but they have the same sign. Since they are not negative reciprocals, the lines are not perpendicular.
TRY IT 17.1
Use slopes to determine if the lines and
are perpendicular.
not perpendicular
TRY IT 17.2
Use slopes to determine if the lines and
are perpendicular.
not perpendicular
Access this online resource for additional instruction and practice with graphs.
Key Concepts
- The slope–intercept form of an equation of a line with slope
and y-intercept,
is,
.
- Graph a Line Using its Slope and y-Intercept
- Find the slope-intercept form of the equation of the line.
- Identify the slope and y-intercept.
- Plot the y-intercept.
- Use the slope formula
to identify the rise and the run.
- Starting at the y-intercept, count out the rise and run to mark the second point.
- Connect the points with a line.
- 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 x-axis at
.
is a horizontal line passing through the y-axis at
.
- If
is isolated on one side of the equation, in the form
, graph by using the slope and y-intercept.
Identify the slope and y-intercept and then graph. - If the equation is of the form
, find the intercepts.
Find the x– and y-intercepts, a third point, and then graph.
- If it only has one variable, it is a vertical or horizontal line.
- Parallel lines are lines in the same plane that do not intersect.
- Parallel lines have the same slope and different y-intercepts.
- If m1 and m2 are the slopes of two parallel lines then
.
- Parallel vertical lines have different x-intercepts.
- Perpendicular lines are lines in the same plane that form a right angle.
- If
are the slopes of two perpendicular lines, then
and
.
- Vertical lines and horizontal lines are always perpendicular to each other.
- If
Glossary
- parallel lines
- Lines in the same plane that do not intersect.
- perpendicular lines
- Lines in the same plane that form a right angle.
- slope-intercept form of an equation of a line
- The slope–intercept form of an equation of a line with slope
and y-intercept,
is,
.
Practice Makes Perfect
Recognize the Relation Between the Graph and the Slope–Intercept Form of an Equation of a Line
In the following exercises, use the graph to find the slope and y-intercept of each line. Compare the values to the equation .
| 1.
| 2.
|
| 3.
| 4.
|
| 5.
| 6.
|
Identify the Slope and y-Intercept From an Equation of a Line
In the following exercises, identify the slope and y-intercept of each line.
| 7. | 8. |
| 9. | 10. |
| 11. | 12. |
| 13. | 14. |
| 15. | 16. |
Graph a Line Using Its Slope and Intercept
In the following exercises, graph the line of each equation using its slope and y-intercept.
| 17. | 18. |
| 19. | 20. |
| 21. | 22. |
| 23. | 24. |
| 25. | 26. |
| 27. | 28. |
| 29. | 30. |
| 31. | 32. |
Choose the Most Convenient Method to Graph a Line
In the following exercises, determine the most convenient method to graph each line.
| 33. | 34. |
| 35. | 36. |
| 37. | 38. |
| 39. | 40. |
| 41. | 42. |
| 43. | 44. |
| 45. | 46. |
| 47. | 48. |
Graph and Interpret Applications of Slope–Intercept
49. The equation
| 50. The equation
|
51. Janelle is planning to rent a car while on vacation. The equation
| 52. Bruce drives his car for his job. The equation
|
53. Patel’s weekly salary includes a base pay plus commission on his sales. The equation
| 54. Cherie works in retail and her weekly salary includes commission for the amount she sells. The equation
|
55. Margie is planning a dinner banquet. The equation
| 56. Costa is planning a lunch banquet. The equation
|
Use Slopes to Identify Parallel Lines
In the following exercises, use slopes and y-intercepts to determine if the lines are parallel.
| 57. | 58. |
| 59. | 60. |
| 61. | 62. |
| 63. | 64. |
| 65. | 66. |
| 67. | 68. |
| 69. | 70. |
| 71. | 72. |
| 73. | 74. |
| 75. | 76. |
| 77. | 78. |
| 79. | 80. |
| 81. | 82. |
Use Slopes to Identify Perpendicular Lines
In the following exercises, use slopes and y-intercepts to determine if the lines are perpendicular.
| 83. | 84. |
| 85. | 86. |
| 87. | 88. |
| 89. | 90. |
| 91. | 92. |
| 93. | 94. |
Everyday Math
95. The equation
| 96. The equation
|
| 97. Why are all horizontal lines parallel? | 98. Explain in your own words how to decide which method to use to graph a line. |
Answers
| 2. slope | 3. slope |
| 6. slope | 7. |
| 10. | 11. |
| 14. | 15. |
| 18.
| 19.
|
| 22.
| 23.
|
| 26.
| 27.
|
| 30.
| 31.
|
| 34. horizontal line | 35. vertical line |
| 38. slope–intercept | 39. intercepts |
| 42. slope–intercept | 43. horizontal line |
| 46. intercepts | 47. slope–intercept |
| 50. a) $28 b) $66.10 c) The slope, 2.54, means that Randy’s payment, P, increases by $2.54 when the number of units of water he used, w, increases by 1. The P–intercept means that if the number units of water Randy used was 0, the payment would be $28. d) | 51. a) $15 b) $143 c) The slope, 0.32, means that the cost, C, increases by $0.32 when the number of miles driven, m, increases by 1. The C-intercept means that if Janelle drives 0 miles one day, the cost would be $15. d) |
| 54. a) $750 b) $2418.60 c) The slope, 0.09, means that Patel’s salary, S, increases by $0.09 for every $1 increase in his sales. The S-intercept means that when his sales are $0, his salary is $750. d) | 55. a) $2850 b) $4950 c) The slope, 42, means that the cost, C, increases by $42 for when the number of guests increases by 1. The C-intercept means that when the number of guests is 0, the cost would be $750. d) |
| 58. parallel | 59. parallel |
| 62. parallel | 63. parallel |
| 66. parallel | 67. parallel |
| 70. parallel | 71. parallel |
| 74. not parallel | 75. not parallel |
| 78. not parallel | 79. not parallel |
| 82. not parallel | 83. perpendicular |
| 86. perpendicular | 87. not perpendicular |
| 90. not perpendicular | 91. perpendicular |
| 94. perpendicular | 95. a) For every increase of one degree Fahrenheit, the number of chirps increases by four. b) There would be |
| 98. Answers will vary. |
| 1. slope | 3. slope |
| 5. slope | 7. |
| 9. | 11. |
| 13. | 15. |
| 17.
| 19.
|
| 21.
| 23.
|
| 25.
| 27.
|
| 29.
| 31.
|
| 33. horizontal line | 35. vertical line |
| 37. slope–intercept | 39. intercepts |
| 41. slope–intercept | 43. horizontal line |
| 45. intercepts | 47. slope–intercept |
| 49. a) $28 b) $66.10 c) The slope, 2.54, means that Randy’s payment, P, increases by $2.54 when the number of units of water he used, w, increases by 1. The P–intercept means that if the number units of water Randy used was 0, the payment would be $28. d) | 51. a) $15 b) $143 c) The slope, 0.32, means that the cost, C, increases by $0.32 when the number of miles driven, m, increases by 1. The C-intercept means that if Janelle drives 0 miles one day, the cost would be $15. d) |
| 53. a) $750 b) $2418.60 c) The slope, 0.09, means that Patel’s salary, S, increases by $0.09 for every $1 increase in his sales. The S-intercept means that when his sales are $0, his salary is $750. d) | 55. a) $2850 b) $4950 c) The slope, 42, means that the cost, C, increases by $42 for when the number of guests increases by 1. The C-intercept means that when the number of guests is 0, the cost would be $750. d) |
| 57. parallel | 59. parallel |
| 61. parallel | 63. parallel |
| 65. parallel | 67. parallel |
| 69. parallel | 71. parallel |
| 73. not parallel | 75. not parallel |
| 77. not parallel | 79. not parallel |
| 81. not parallel | 83. perpendicular |
| 85. perpendicular | 87. not perpendicular |
| 89. not perpendicular | 91. perpendicular |
| 93. perpendicular | 95. a) For every increase of one degree Fahrenheit, the number of chirps increases by four. b) There would be |
| 97. Answers will vary. |
Attributions
This chapter has been adapted from “Use the Slope–Intercept Form of an Equation of a Line” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
37
6.6 Find the Equation of a Line
Learning Objectives
By the end of this section, you will be able to:
- Find an equation of the line given the slope and
-intercept
- Find an equation of the line given the slope and a point
- Find an equation of the line given two points
- Find an equation of a line parallel to a given line
- Find an equation of a line perpendicular to a given line
How do online retailers know that ‘you may also like’ a particular item based on something you just ordered? How can economists know how a rise in the minimum wage will affect the unemployment rate? How do medical researchers create drugs to target cancer cells? How can traffic engineers predict the effect on your commuting time of an increase or decrease in gas prices? It’s all mathematics.
You are at an exciting point in your mathematical journey as the mathematics you are studying has interesting applications in the real world.
The physical sciences, social sciences, and the business world are full of situations that can be modeled with linear equations relating two variables. Data is collected and graphed. If the data points appear to form a straight line, an equation of that line can be used to predict the value of one variable based on the value of the other variable.
To create a mathematical model of a linear relation between two variables, we must be able to find the equation of the line. In this section we will look at several ways to write the equation of a line. The specific method we use will be determined by what information we are given.
Find an Equation of the Line Given the Slope and y-Intercept
We can easily determine the slope and intercept of a line if the equation was written in slope–intercept form, . Now, we will do the reverse—we will start with the slope and y-intercept and use them to find the equation of the line.
EXAMPLE 1
Find an equation of a line with slope and y-intercept
.
Since we are given the slope and y-intercept of the line, we can substitute the needed values into the slope–intercept form, .
| Name the slope. | ![]() |
| Name the y-intercept. | ![]() |
| Substitute the values into | ![]() |
![]() | |
![]() |
TRY IT 1.1
Find an equation of a line with slope and y-intercept
.
TRY IT 1.2
Find an equation of a line with slope and y-intercept
.
Sometimes, the slope and intercept need to be determined from the graph.
EXAMPLE 2
Find the equation of the line shown.

We need to find the slope and y-intercept of the line from the graph so we can substitute the needed values into the slope–intercept form, .
To find the slope, we choose two points on the graph.
The y-intercept is and the graph passes through
.
| Find the slope by counting the rise and run. | ![]() |
![]() | |
| Find the y-intercept. | ![]() |
| Substitute the values into | ![]() |
![]() |
TRY IT 2.1
Find the equation of the line shown in the graph.

TRY IT 2.2
Find the equation of the line shown in the graph.

Find an Equation of the Line Given the Slope and a Point
Finding an equation of a line using the slope–intercept form of the equation works well when you are given the slope and y-intercept or when you read them off a graph. But what happens when you have another point instead of the y-intercept?
We are going to use the slope formula to derive another form of an equation of the line. Suppose we have a line that has slope and that contains some specific point
and some other point, which we will just call
. We can write the slope of this line and then change it to a different form.
| Multiply both sides of the equation by | |
| Simplify. | |
| Rewrite the equation with the |
This format is called the point–slope form of an equation of a line.
Point–slope form of an equation of a line
The point–slope form of an equation of a line with slope and containing the point
is

We can use the point–slope form of an equation to find an equation of a line when we are given the slope and one point. Then we will rewrite the equation in slope–intercept form. Most applications of linear equations use the the slope–intercept form.
EXAMPLE 3
Find an equation of a line with slope that contains the point
. Write the equation in slope–intercept form.




TRY IT 3.1
Find an equation of a line with slope and containing the point
.
TRY IT 3.2
Find an equation of a line with slope and containing thepoint
.
HOW TO: Find an equation of a line given the slope and a point
- Identify the slope.
- Identify the point.
- Substitute the values into the point-slope form,
.
- Write the equation in slope–intercept form.
EXAMPLE 4
Find an equation of a line with slope that contains the point
. Write the equation in slope–intercept form.
Since we are given a point and the slope of the line, we can substitute the needed values into the point–slope form, .
| Identify the slope. | ![]() |
| Identify the point. | ![]() |
| Substitute the values into | ![]() |
![]() | |
| Simplify. | ![]() |
| Write in slope–intercept form. | ![]() |
TRY IT 4.1
Find an equation of a line with slope and containing the point
.
TRY IT 4.2
Find an equation of a line with slope , and containing the point
.
EXAMPLE 5
Find an equation of a horizontal line that contains the point . Write the equation in slope–intercept form.
Every horizontal line has slope 0. We can substitute the slope and points into the point–slope form, .
| Identify the slope. | ![]() |
| Identify the point. | ![]() |
| Substitute the values into | ![]() |
![]() | |
| Simplify. | ![]() |
![]() | |
![]() | |
| Write in slope–intercept form. | It is in y-form, but could be written |
Did we end up with the form of a horizontal line, ?
TRY IT 5.1
Find an equation of a horizontal line containing the point .
TRY IT 5.2
Find an equation of a horizontal line containing the point .
Find an Equation of the Line Given Two Points
When real-world data is collected, a linear model can be created from two data points. In the next example we’ll see how to find an equation of a line when just two points are given.
We have two options so far for finding an equation of a line: slope–intercept or point–slope. Since we will know two points, it will make more sense to use the point–slope form.
But then we need the slope. Can we find the slope with just two points? Yes. Then, once we have the slope, we can use it and one of the given points to find the equation.
EXAMPLE 6
Find an equation of a line that contains the points and
. Write the equation in slope–intercept form.




Use the point and see that you get the same equation.
TRY IT 6.1
Find an equation of a line containing the points and
.
TRY IT 6.2
Find an equation of a line containing the points and
.
HOW TO: Find an equation of a line given two points
- Find the slope using the given points.
- Choose one point.
- Substitute the values into the point-slope form,
.
- Write the equation in slope–intercept form.
EXAMPLE 7
Find an equation of a line that contains the points and
. Write the equation in slope–intercept form.
Since we have two points, we will find an equation of the line using the point–slope form. The first step will be to find the slope.
| Find the slope of the line through (−3, −1) and (2, −2). | ![]() |
![]() | |
![]() | |
![]() | |
| Choose either point. | ![]() |
| Substitute the values into | ![]() |
![]() | |
![]() | |
| Write in slope–intercept form. | ![]() |
TRY IT 7.1
Find an equation of a line containing the points and
.
TRY IT 7.2
Find an equation of a line containing the points and
.
EXAMPLE 8
Find an equation of a line that contains the points and
. Write the equation in slope–intercept form.
Again, the first step will be to find the slope.
| Find the slope of the line through (-2,4) and (-2,-3). | |
| The slope is undefined. |
This tells us it is a vertical line. Both of our points have an x-coordinate of . So our equation of the line is
. Since there is no
, we cannot write it in slope–intercept form.
You may want to sketch a graph using the two given points. Does the graph agree with our conclusion that this is a vertical line?
TRY IT 8.1
Find an equation of a line containing the points and
.
TRY IT 8.2
Find an equation of a line containing the points and
.
We have seen that we can use either the slope–intercept form or the point–slope form to find an equation of a line. Which form we use will depend on the information we are given. This is summarized in the following table.
| If given: | Use: | Form: |
|---|---|---|
| Slope and y-intercept | slope–intercept | |
| Slope and a point | point–slope | |
| Two points | point–slope |
Find an Equation of a Line Parallel to a Given Line
Suppose we need to find an equation of a line that passes through a specific point and is parallel to a given line. We can use the fact that parallel lines have the same slope. So we will have a point and the slope—just what we need to use the point–slope equation.
First let’s look at this graphically.
The graph shows the graph of . We want to graph a line parallel to this line and passing through the point
.

We know that parallel lines have the same slope. So the second line will have the same slope as. That slope is
. We’ll use the notation
to represent the slope of a line parallel to a line with slope
. (Notice that the subscript
looks like two parallel lines.)
The second line will pass through and have
. To graph the line, we start at
and count out the rise and run. With
(or
), we count out the rise 2 and the run 1. We draw the line.

Do the lines appear parallel? Does the second line pass through ?
Now, let’s see how to do this algebraically.
We can use either the slope–intercept form or the point–slope form to find an equation of a line. Here we know one point and can find the slope. So we will use the point–slope form.
EXAMPLE 9
Find an equation of a line parallel to that contains the point
. Write the equation in slope–intercept form.





Does this equation make sense? What is the y-intercept of the line? What is the slope?
TRY IT 9.1
Find an equation of a line parallel to the line that contains the point
. Write the equation in slope–intercept form.
TRY IT 9.2
Find an equation of a line parallel to the line that contains the point
.
HOW TO: Find an equation of a line parallel to a given line
- Find the slope of the given line.
- Find the slope of the parallel line.
- Identify the point.
- Substitute the values into the point–slope form,
.
- Write the equation in slope–intercept form.
Find an Equation of a Line Perpendicular to a Given Line
Now, let’s consider perpendicular lines. Suppose we need to find a line passing through a specific point and which is perpendicular to a given line. We can use the fact that perpendicular lines have slopes that are negative reciprocals. We will again use the point–slope equation, like we did with parallel lines.
The graph shows the graph of . Now, we want to graph a line perpendicular to this line and passing through
.

We know that perpendicular lines have slopes that are negative reciprocals. We’ll use the notation to represent the slope of a line perpendicular to a line with slope
. (Notice that the subscript ⊥ looks like the right angles made by two perpendicular lines.)
We now know the perpendicular line will pass through with
.
To graph the line, we will start at and count out the rise
and the run 2. Then we draw the line.

Do the lines appear perpendicular? Does the second line pass through ?
Now, let’s see how to do this algebraically. We can use either the slope–intercept form or the point–slope form to find an equation of a line. In this example we know one point, and can find the slope, so we will use the point–slope form.
EXAMPLE 10
Find an equation of a line perpendicular to that contains the point
. Write the equation in slope–intercept form.





TRY IT 10.1
Find an equation of a line perpendicular to the line that contains the point
. Write the equation in slope–intercept form.
TRY IT 10.2
Find an equation of a line perpendicular to the line that contains the point
.
HOW TO: Find an equation of a line perpendicular to a given line
- Find the slope of the given line.
- Find the slope of the perpendicular line.
- Identify the point.
- Substitute the values into the point–slope form,
.
- Write the equation in slope–intercept form.
EXAMPLE 11
Find an equation of a line perpendicular to that contains the point
. Write the equation in slope–intercept form.
Again, since we know one point, the point–slope option seems more promising than the slope–intercept option. We need the slope to use this form, and we know the new line will be perpendicular to . This line is vertical, so its perpendicular will be horizontal. This tells us the
.
| Identify the point. | |
| Identify the slope of the perpendicular line. | |
| Substitute the values into | |
| Simplify. |
Sketch the graph of both lines. Do they appear to be perpendicular?
TRY IT 11.1
Find an equation of a line that is perpendicular to the line that contains the point
. Write the equation in slope–intercept form.
TRY IT 11.2
Find an equation of a line that is perpendicular to the line that contains the point
. Write the equation in slope–intercept form.
In (Example 11), we used the point–slope form to find the equation. We could have looked at this in a different way.
We want to find a line that is perpendicular to that contains the point
. The graph shows us the line
and the point
.

We know every line perpendicular to a vertical line is horizontal, so we will sketch the horizontal line through .

Do the lines appear perpendicular?
If we look at a few points on this horizontal line, we notice they all have y-coordinates of . So, the equation of the line perpendicular to the vertical line
is
.
EXAMPLE 12
Find an equation of a line that is perpendicular to that contains the point
.
Write the equation in slope–intercept form.
The line is a horizontal line. Any line perpendicular to it must be vertical, in the form
. Since the perpendicular line is vertical and passes through
, every point on it has an x-coordinate of
. The equation of the perpendicular line is
. You may want to sketch the lines. Do they appear perpendicular?
TRY IT 12.1
Find an equation of a line that is perpendicular to the line that contains the point
. Write the equation in slope–intercept form.
TRY IT 12.1
Find an equation of a line that is perpendicular to the line that contains the point
.
Access this online resource for additional instruction and practice with finding the equation of a line.
Key Concepts
- To Find an Equation of a Line Given the Slope and a Point
- Identify the slope.
- Identify the point.
- Substitute the values into the point-slope form,
.
- Write the equation in slope-intercept form.
- To Find an Equation of a Line Given Two Points
- Find the slope using the given points.
- Choose one point.
- Substitute the values into the point-slope form,
.
- Write the equation in slope-intercept form.
- To Write and Equation of a Line
- If given slope and y-intercept, use slope–intercept form
.
- If given slope and a point, use point–slope form
.
- If given two points, use point–slope form
.
- If given slope and y-intercept, use slope–intercept form
- To Find an Equation of a Line Parallel to a Given Line
- Find the slope of the given line.
- Find the slope of the parallel line.
- Identify the point.
- Substitute the values into the point-slope form,
.
- Write the equation in slope-intercept form.
- To Find an Equation of a Line Perpendicular to a Given Line
- Find the slope of the given line.
- Find the slope of the perpendicular line.
- Identify the point.
- Substitute the values into the point-slope form,
.
- Write the equation in slope-intercept form.
Glossary
- point–slope form
- The point–slope form of an equation of a line with slope
and containing the point
is
.
Practice Makes Perfect
Find an Equation of the Line Given the Slope and y-Intercept
In the following exercises, find the equation of a line with given slope and y-intercept. Write the equation in slope–intercept form.
| 1. slope 4 and y-intercept | 2. slope 3 and y-intercept |
| 3. slope 8 and y-intercept | 4. slope 6 and y-intercept |
| 5. slope | 6. slope |
| 7. slope | 8. slope |
| 9. slope | 10. slope |
| 11. slope | 12. slope |
| 13. slope 0 and y-intercept | 14. slope 0 and y-intercept |
| 15. slope | 16. slope |
In the following exercises, find the equation of the line shown in each graph. Write the equation in slope–intercept form.
17. ![]() | 18. ![]() |
19. ![]() | 20. ![]() |
21. ![]() | 22. ![]() |
23. ![]() | 24. ![]() |
Find an Equation of the Line Given the Slope and a Point
In the following exercises, find the equation of a line with given slope and containing the given point. Write the equation in slope–intercept form.
| 25. | 26. |
| 27. | 28. |
| 29. | 30. |
| 31. | 32. |
| 33. Horizontal line containing | 34. Horizontal line containing |
| 35. Horizontal line containing | 36. Horizontal line containing |
| 37. | 38. |
| 39. | 40. |
| 41. Horizontal line containing | 42. Horizontal line containing |
Find an Equation of the Line Given Two Points
In the following exercises, find the equation of a line containing the given points. Write the equation in slope–intercept form.
| 43. | 44. |
| 45. | 46. |
| 47. | 48. |
| 49. | 50. |
| 51. | 52. |
| 53. | 54. |
| 55. | 56. |
| 57. | 58. |
| 59. | 60. |
| 61. | 62. |
| 63. | 64. |
| 65. | 66. |
| 67. | 68. |
Find an Equation of a Line Parallel to a Given Line
In the following exercises, find an equation of a line parallel to the given line and contains the given point. Write the equation in slope–intercept form.
| 69. line | 70. line |
| 71. line | 72. line |
| 73. line | 74. line |
| 75. line | 76. line |
| 77. line | 78. line |
| 79. line | 80. line |
| 81. line | 82. line |
| 83. line | 84. line |
Find an Equation of a Line Perpendicular to a Given Line
In the following exercises, find an equation of a line perpendicular to the given line and contains the given point. Write the equation in slope–intercept form.
| 85. line | 86. line |
| 87. line | 88. line |
| 89. line | 90. line |
| 91. line | 92. line |
| 93. line | 94. line |
| 95. line y-axis, point | 96. line y-axis, point |
Mixed Practice
In the following exercises, find the equation of each line. Write the equation in slope–intercept form.
| 97. Containing the points | 98. Containing the points |
| 99. | 100. |
| 101. Parallel to the line | 102. Parallel to the line |
| 103. | 104. |
| 105. Perpendicular to the line y-axis, point | 106. Perpendicular to the line |
| 107. Containing the points | 108. Containing the points |
| 109. Parallel to the line | 110. Parallel to the line |
| 111. Containing the points | 112. Containing the points |
| 113. Perpendicular to the line | 114. Perpendicular to the line |
Everyday Math
| 115. Fuel consumption. The city mpg, | 116. Cholesterol. The age, |
Writing Exercises
| 117. Explain in your own words why the slopes of two perpendicular lines must have opposite signs. | 118. Why are all horizontal lines parallel? |
Answers
| 1. | 3. |
| 5. | 7. |
| 9. | 11. |
| 13. | 15. |
| 17. | 19. |
| 21. | 23. |
| 25. | 27. |
| 29. | 31. |
| 33. | 35. |
| 37. | 39. |
| 41. | 43. |
| 45. | 47. |
| 49. | 51. |
| 53. | 55. |
| 57. | 59. |
| 61. | 63. |
| 65. | 67. |
| 69. | 71. |
| 73. | 75. |
| 77. | 79. |
| 81. | 83. |
| 85. | 87. |
| 89. | 91. |
| 93. | 95. |
| 97. | 99. |
| 101. | 103. |
| 105. | 107. |
| 109. | 111. |
| 113. | 115. |
| 117. Answers will vary. |
Attributions
This chapter has been adapted from “Find the Equation of a Line” in Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.
38
6.7 Chapter Review
Review Exercises
Plot Points in a Rectangular Coordinate System
In the following exercises, plot each point in a rectangular coordinate system.
| 1. a) b) c) d) | 2. a) b) c) d) |
| 3. a) b) c) d) | 4. a) b) c) d) |
Identify Points on a Graph
In the following exercises, name the ordered pair of each point shown in the rectangular coordinate system.
5.![]() | 6.![]() |
Verify Solutions to an Equation in Two Variables
In the following exercises, which ordered pairs are solutions to the given equations?
7. a) | 8. a) |
Complete a Table of Solutions to a Linear Equation in Two Variables
In the following exercises, complete the table to find solutions to each linear equation.
9.
| 10. | ||||||||||||||||||||||||
11.
| 12.
|
Find Solutions to a Linear Equation in Two Variables
In the following exercises, find three solutions to each linear equation.
| 13. | 14. |
| 15. | 16. |
Recognize the Relation Between the Solutions of an Equation and its Graph
In the following exercises, for each ordered pair, decide:
a) Is the ordered pair a solution to the equation?
b) Is the point on the line?
| 17.
| 18.
|
Graph a Linear Equation by Plotting Points
In the following exercises, graph by plotting points.
| 19. | 20. |
| 21. | 22. |
| 23. | 24. |
Graph Vertical and Horizontal lines
In the following exercises, graph each equation.
| 25. | 26. |
In the following exercises, graph each pair of equations in the same rectangular coordinate system.
| 27. | 28. |
Identify the x– and y-Intercepts on a Graph
In the following exercises, find the x– and y-intercepts.
29.![]() | 30. ![]() |
Find the x– and y-Intercepts from an Equation of a Line
In the following exercises, find the intercepts of each equation.
| 31. | 32. |
| 33. | 34. |
| 35. | 36. |
Graph a Line Using the Intercepts
In the following exercises, graph using the intercepts.
| 37. | 38. |
| 39. | 40. |
| 41. | 42. |
Use Geoboards to Model Slope
In the following exercises, find the slope modeled on each geoboard.
43. ![]() | 44. ![]() |
45. ![]() | 46. ![]() |
In the following exercises, model each slope. Draw a picture to show your results.
| 47. | 48. |
| 49. | 50. |
In the following exercises, find the slope of each line shown. Use to find the slope of a line from its graph.
51. ![]() | 52. ![]() |
53. ![]() | 54. ![]() |
Find the Slope of Horizontal and Vertical Lines
In the following exercises, find the slope of each line.
| 55. | 56. |
| 57. | 58. |
Use the Slope Formula to find the Slope of a Line between Two Points
In the following exercises, use the slope formula to find the slope of the line between each pair of points.
| 59. | 60. |
| 61. | 62. |
Graph a Line Given a Point and the Slope
In the following exercises, graph each line with the given point and slope.
| 63. | 64. |
| 65. y-intercept 1; | 66. x-intercept |
Solve Slope Applications
In the following exercises, solve these slope applications.
| 67. A mountain road rises 50 feet for a 500-foot run. What is its slope? | 68. The roof pictured below has a rise of 10 feet and a run of 15 feet. What is its slope?![]() |
Recognize the Relation Between the Graph and the Slope–Intercept Form of an Equation of a Line
In the following exercises, use the graph to find the slope and y-intercept of each line. Compare the values to the equation .
| 69.
| 70.
|
Identify the Slope and y-Intercept from an Equation of a Line
In the following exercises, identify the slope and y-intercept of each line.
| 71. | 72. |
| 73. | 74. |
Graph a Line Using Its Slope and Intercept
In the following exercises, graph the line of each equation using its slope and y-intercept.
| 75. | 76. |
| 77. | 78. |
In the following exercises, determine the most convenient method to graph each line.
| 79. | 80. |
| 81. | 82. |
| 83. | 84. |
Graph and Interpret Applications of Slope–Intercept
85. Marjorie teaches piano. The equation
| 86. Katherine is a private chef. The equation
|
Use Slopes to Identify Parallel Lines
In the following exercises, use slopes and y-intercepts to determine if the lines are parallel.
| 87. | 88. |
Use Slopes to Identify Perpendicular Lines
In the following exercises, use slopes and y-intercepts to determine if the lines are perpendicular.
| 89. | 90. |
Find an Equation of the Line Given the Slope and y-Intercept
In the following exercises, find the equation of a line with given slope and y-intercept. Write the equation in slope–intercept form.
| 91. slope | 92. slope |
| 93. slope | 94. slope |
In the following exercises, find the equation of the line shown in each graph. Write the equation in slope–intercept form.
95. ![]() | 96. ![]() |
97. ![]() | 98. ![]() |
Find an Equation of the Line Given the Slope and a Point
In the following exercises, find the equation of a line with given slope and containing the given point. Write the equation in slope–intercept form.
| 99. | 100. |
| 101. | 102. Horizontal line containing |
Find an Equation of the Line Given Two Points
In the following exercises, find the equation of a line containing the given points. Write the equation in slope–intercept form.
| 103. | 104. |
| 105. | 106. |
Find an Equation of a Line Parallel to a Given Line
In the following exercises, find an equation of a line parallel to the given line and contains the given point. Write the equation in slope–intercept form.
| 107. line | 108. line |
| 109. line | 110. line |
Find an Equation of a Line Perpendicular to a Given Line
In the following exercises, find an equation of a line perpendicular to the given line and contains the given point. Write the equation in slope–intercept form.
| 112. line | 111. line |
| 114. line | 113. line |
Review Answers
1. ![]() | 3. ![]() | ||||||||||||||||||||||||
| 5. a) | 7. a, b | ||||||||||||||||||||||||
9.
| 11.
| ||||||||||||||||||||||||
| 13. Answers will vary. | 15. Answers will vary. | ||||||||||||||||||||||||
| 17. a) yes; yes b) yes; no | 19.![]() | ||||||||||||||||||||||||
21. ![]() | 23. ![]() | ||||||||||||||||||||||||
25. ![]() | 27. ![]() | ||||||||||||||||||||||||
| 29. | 31. | ||||||||||||||||||||||||
| 33. | 35. | ||||||||||||||||||||||||
37. ![]() | 39. ![]() | ||||||||||||||||||||||||
41. ![]() | 43. | ||||||||||||||||||||||||
| 45. | 47. ![]() | ||||||||||||||||||||||||
49. ![]() | 51. 1 | ||||||||||||||||||||||||
| 53. | 55. undefined | ||||||||||||||||||||||||
| 57. 0 | 59. | ||||||||||||||||||||||||
| 61. | 63. ![]() | ||||||||||||||||||||||||
65. ![]() | 67. | ||||||||||||||||||||||||
| 69. slope | 71. | ||||||||||||||||||||||||
| 73. | 75. ![]() | ||||||||||||||||||||||||
77. ![]() | 79. horizontal line | ||||||||||||||||||||||||
| 81. intercepts | 83. plotting points | ||||||||||||||||||||||||
85. a) −?250 b) ?450 c) The slope, 35, means that Marjorie’s weekly profit, P, increases by $35 for each additional student lesson she teaches. The P–intercept means that when the number of lessons is 0, Marjorie loses $250. d)![]() | 87. not parallel | ||||||||||||||||||||||||
| 89. perpendicular | 91. | ||||||||||||||||||||||||
| 93. | 95. | ||||||||||||||||||||||||
| 97. | 99. | ||||||||||||||||||||||||
| 101. | 103. | ||||||||||||||||||||||||
| 105. | 107. | ||||||||||||||||||||||||
| 109. | 111. | ||||||||||||||||||||||||
| 113. |
Practice Test
| 1. Plot each point in a rectangular coordinate system. a) | 2. Which of the given ordered pairs are solutions to the equation a) |
| 3. Find three solutions to the linear equation | 4. Find the x– and y-intercepts of the equation |
Find the slope of each line shown.
5. ![]() | 6. ![]() |
7. ![]() |
| 8. Find the slope of the line between the points | 9. Graph the line with slope |
Graph the line for each of the following equations
| 10. | 11. |
| 12. | 13. |
| 14. | 15. |
Find the equation of each line. Write the equation in slope–intercept form.
| 16. slope | 17. |
| 18. containing | 19. parallel to the line |
| 20. perpendicular to the line |
Practice Test Answers
1. ![]() | 2. a) yes b) yes c) no |
| 3. Answer may vary | 4. |
| 5. m = | 6. undefined |
| 7. m = 0 | 8. |
| 9. y = | 10. ![]() |
11. ![]() | 12.![]() |
13. ![]() | 14.![]() |
15. ![]() | 16. |
| 17. | 18. |
| 19. | 20. |
Attributions
This chapter has been adapted from “Review Exercises” and “Practice Test” in Chapter 4 of Elementary Algebra (OpenStax) by Lynn Marecek and MaryAnne Anthony-Smith, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.


















































































































































































































































































































