3.9 Graph Linear Equations in Two Variables
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
- Recognize the relationship between the solutions of an equation and its graph.
- Graph a linear equation by plotting points.
- Graph vertical and horizontal lines.
- Identify the
-intercept and -intercept on a graph - Find the
-intercept and -intercept from an equation of a line - Graph a line using the intercepts
Try It
Before you get started, take this readiness quiz:
1) Evaluate
2) Evaluate
3) Solve for
4) Evaluate
5) Solve
6) Solve:
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
The horizontal number line is called the
‘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
Ordered Pair
An ordered pair,

The first number is the
The second number is the
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 Origin
The point
We use the coordinates to locate a point on the

Notice that the vertical line through
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
a. Since
b. Since
c. Since
d. Since
e. Since
Try It
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 3.9.4 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
What if one coordinate is zero as shown in Figure 3.9.8? Where is the point
The point
Points on the Axes
Points with a
Points with an
Example 2
Plot each point:
a.
b.
c.
d.
e.
Solution
a. Since
b. Since
c. Since
d. Since
e. Since

Try It
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
Example 3
Solution
Point A is above
- The point is to the left of
on the -axis, so the -coordinate of the point is . - The coordinates of the point are
.
Point B is below
- The point is to the left of
on the -axis, so the -coordinate of the point is . - The coordinates of the point are
.
Point C is above
- The point is to the right of
on the -axis, so the -coordinate of the point is . - The coordinates of the point are
.
Point D is below
- The point is to the right of
on the -axis, so the -coordinate of the point is . - The coordinates of the point are
.
Point E is on the
Point F is on the
Try It
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
Here’s an example of an equation in one variable, and its one solution.
However, equations can have more than one variable. Equations with two variables may be of the form
Linear Equation
An equation of the form
Notice the word line in linear. Here is an example of a linear equation in two variables,
The equation
By rewriting
Standard Form of Linear Equation
A linear equation is in standard form when it is written
Most people prefer to have
Linear equations have infinitely many solutions. For every number that is substituted for
Solution of a Linear Equation in Two Variables
An ordered pair
Example 4
Determine which ordered pairs are solutions to the equation
a.
b.
c.
Solution
Substitute the
(a) | (b) | (c) |
---|---|---|
Try It
13) Which of the following ordered pairs are solutions to
a.
b.
c.
Solution
a, c
14) Which of the following ordered pairs are solutions to the equation
a.
b.
c.
Solution
b, c
Example 5
Which of the following ordered pairs are solutions to the equation
a.
b.
c.
Solution
Substitute the
(a) | (b) | (c) |
---|---|---|
Try It
15) Which of the following ordered pairs are solutions to the equation
a.
b.
c.
Solution
b
16) Which of the following ordered pairs are solutions to the equation
a.
b.
c.
Solution
a, b
Complete a Table of Solutions to a Linear Equation in Two Variables
In the examples above, we substituted the
We’ll start by looking at the solutions to the equation
To find a third solution, we’ll let
The ordered pair
Example 6
Complete the below table to find three solutions to the equation
Solution
Substitute
The results are summarized in the below table.
Try It
17) Complete the table to find three solutions to this equation:
Solution
18) Complete the table to find three solutions to this equation:
Solution
Example 7
Complete the below table to find three solutions to the equation
Solution
Substitute the given value into the equation
The results are summarized in the below table.
Try It
19) Complete the table to find three solutions to this equation:
Solution
20) Complete the table to find three solutions to this equation:
Solution
Find Solutions to a Linear Equation in Two Variables
To find a solution to a linear equation, you really can pick any number you want to substitute into the equation for
When the equation is in
Example 8
Solution
We can substitute any value we want for
Let’s pick
Step 1: Substitute the value into the equation.
Step 2: Simplify.
Step 3: Simplify.
Step 4: Write the ordered pair.
Step 5: Check.
So,
Try It
21) Find three solutions to this equation:
Solution
Answers will vary.
22) Find three solutions to this equation:
Solution
Answers will vary.
We have seen how using zero as one value of
Example 9
Find three solutions to the equation
Solution
We can substitute any value we want for
Step 1: Substitute the value into the equation.
Step 2. Simplify.
Step 3: Solve.
Step 4: Write the ordered pair.
Step 5: Check.
So
Try It
23) Find three solutions to the equation
Solution
Answers will vary.
24) Find three solutions to the equation
Solution
Answers will vary.
Recognize the Relationship Between the Solutions of an Equation and its Graph
In the previous section, we found several solutions to the equation
Notice how the points line up perfectly? We connect the points with a line to get the graph of the equation
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
So the point
So
Graph of a Linear Equation
The graph of a linear equation
- Every point on the line is a solution of the equation.
- Every solution of this equation is a point on this line.
Example 10
The graph of

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
a.
A: | B: | C: | D: |
---|---|---|---|
b. Plot the points A
The points
The points that are solutions to
Try It
Graph a Linear Equation by Plotting Points
Several methods can be used to graph a linear equation. The method we used to graph
Example 11
Graph the equation
Solution
Step 1: Find three points whose coordinates are solutions to the equation.
You can choose any values for
In this case, since
Organize the solutions in a table.
Put the three solutions in a table.
y=2x+1 | ||
x | y | (x,y) |
0 | 1 | (0,1) |
1 | 3 | (1,3) |
-2 | -3 | (-2.-3) |
Step 2: Plot the points in a rectangular coordinate system.
Plot: (0,1), (1, 3), (-2,-3).

Check that the points line up. If they do not, carefully check your work!
Do the points line up? Yes, the points line up.
Step 3: Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.
This line is the graph of

Try It
The steps to take when graphing a linear equation by plotting points are summarized below.
How to
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.
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 3.9.25.
Let’s do another example. This time, we’ll show the last two steps all on one grid.
Try It
When an equation includes a fraction as the coefficient of
Example 13
Solution
Step 1: Find three points that are solutions to the equation.
Since this equation has the fraction
The points are shown in the below table.
Step 2: Plot the points, check that they line up, and draw the line.

So far, all the equations we graphed had
This point has a fraction for the
The solutions for
Can you locate the point
Example 14
Graph the equation
Try It
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
The equation in Example 3.9.14, was written in standard form, with both
Example 15
Graph the equation
Solution
Step 1: Find three points that are solutions to the equation.
Step 2: First, let
Step 3: Solve for
Step 4: Now let
Step 5: Solve for
Step 6: We need a third point. Remember, we can choose any value for
Step 7: Solve for
We list the ordered pairs in the below table. Plot the points, check that they line up, and draw the line. See Figure 3.9.36

Can we graph an equation with only one variable? Just
Let’s consider the equation
So to make a table of values, write
Plot the points from the above table and connect them with a straight line. Notice in Figure 3.9.39 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
What if the equation has
The graph is a horizontal line passing through the
Horizontal Line
A horizontal line is the graph of an equation of the form
The line passes through the
The equation
Notice, in Figure 3.9.47, the equation
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 the same. One way to recognize that they are indeed the same line is to look at where the line crosses the
Intercepts of a Line
Let’s look at the graphs of the lines in Figure 3.9.51.
First, notice where each of these lines crosses the
Figure | The line crosses the x-axis at: | Ordered pair of this point |
---|---|---|
Figure (a) | ||
Figure (b) | ||
Figure (c) | ||
Figure (d) |
Do you see a pattern?
For each row, the
Now, let’s look at the points where these lines cross the
Figure | The line crosses the y-axis at: | Ordered pair for this point |
---|---|---|
Figure (a) | ||
Figure (b) | ||
Figure (c) | ||
Figure (d) |
What is the pattern here?
In each row, the
The
The
x | y | |
---|---|---|
The |
a | 0 |
The |
0 | b |
Example 19
Solution
a. The graph crosses the
The graph crosses the
b. The graph crosses the
The graph crosses the
c. The graph crosses the
The graph crosses the
Recognizing that the
Find the -intercept and -intercept from the Equation of a Line
Use the equation of the line. To find:
- the
-intercept of the line, let and solve for . - the
-intercept of the line, let and solve for .
Example 20
Find the intercepts of
Solution
We will let
0 | ||
0 |
To find the
Step 1: Let
Step 2: Simplify.
Step 3: The
Step 4: To find the
Step 5: Let
Step 6: Simplify.
Step 7: The
The intercepts are the points
Try It
45) Find the intercepts of
Solution
46) Find the intercepts of
Solution
Example 21
Find the intercepts of
Solution
Step 1: To find the
Step 3: Simplify.
Step 4: The
Step 5: To find the
Step 6: Let
Step 7: Simplify.
Step 8: The
The intercepts are the points
Try It
47) Find the intercepts of
Solution
48) Find the intercepts of
Solution
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-intercept and
How to
Graph a linear equation using the intercepts.
The steps to graph a linear equation using the intercepts are summarized below.
- Find the
-intercept and -intercept 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 22
Graph
Solution
Step 1: Find the
Let
Let
Find the
Find the
Step 2: Find another solution to the equation.
We’ll use
Step 3: Plot the three points.
Check that the points line up.
-6 | 0 | (-6,0) |
0 | 3 | (0,3) |
2 | 4 | (2,4) |

Step 4: Draw the line.

See the graph.
Example 24
Graph
Solution
Step 1: Find the
This line has only one intercept. It is the point
Step 2: To ensure accuracy we need to plot three points. Since the
See table below.
Step 3: Plot the three points, check that they line up, and draw the line.

Try It
Key Concepts
- Sign Patterns of the Quadrants
Quadrant I | Quadrant II | Quadrant III | Quadrant IV |
---|---|---|---|
- Points on the Axes
- On the
-axis, . Points with a -coordinate equal to are on the -axis, and have coordinates . - On the
-axis, . Points with an -coordinate equal to are on the -axis, and have coordinates .
- On the
- Solution of a Linear Equation
- An ordered pair
is a solution of the linear equation , if the equation is a true statement when the and values of the ordered pair are substituted into the equation.
- An ordered pair
- 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.
- Find the x-intercept and y-Intercept from the Equation of a Line
- Use the equation of the line to find the
-intercept of the line, let and solve for . - Use the equation of the line to find the
-intercept of the line, let and solve for .
- Use the equation of the line to find the
- Graph a Linear Equation using the Intercepts
- Find the
-intercept and -intercept of the line.
Let and solve for .
Let and solve for . - Find a third solution to the equation.
- Plot the three points and then check that they line up.
- Draw the line.
- Find the
- Strategy for Choosing the Most Convenient Method to Graph a Line:
- Consider the form of the equation.
- If it only has one variable, it is a vertical or horizontal line.
is a vertical line passing through the -axis at .
is a horizontal line passing through the -axis at . - If
is isolated on one side of the equation, graph by plotting points. - Choose any three values for
and then solve for the corresponding -values. - If the equation is of the form
, find the intercepts. Find the -intercept and -intercept, then a third point.
Glossary
- linear equation
- A linear equation is of the form
, where and 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 -axis and -axis intersect.
- quadrant
- The
-axis and the -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
-plane or the ‘coordinate plane’.
- x-coordinate
- The first number in an ordered pair
.
- y-coordinate
- The second number in an ordered pair
.
- 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 -axis at .
- vertical line
- A vertical line is the graph of an equation of the form
. The line passes through the -axis at .
- intercepts of a line
- The points where a line crosses the
-axis and the -axis are called the intercepts of the line.
- x-intercept
- The point
where the line crosses the -axis; the –intercept occurs when is zero.
- y-intercept
- The point
where the line crosses the -axis; the -intercept occurs when is zero.
Exercises: Plot Points in a Rectangular Coordinate System
Instructions: For questions 1-8, plot each point in a rectangular coordinate system and identify the quadrant in which the point is located.
2.
a.
b.
c.
d.
e.
4.
a.
b.
c.
d.
e.
6.
a.
b.
c.
d.
e.
8.
a.
b.
c.
d.
e.
Exercises: Name Ordered Pairs in a Rectangular Coordinate System
Instructions: For questions 9-12, name the ordered pair of each point shown in the rectangular coordinate system.
9.
Exercises: Verify Solutions to an Equation in Two Variables
Instructions: For questions 13-20, which ordered pairs are solutions to the given equations?
13.
a.
b.
c.
Solution
a, b
14.
a.
b.
c.
15.
a.
b.
c.
Solution
a, c
16.
a.
b.
c.
17.
a.
b.
c.
Solution
b, c
18.
a.
b.
c.
19.
a.
b.
c.
Solution
a, b
20.
a.
b.
c.
Exercises: Complete a Table of Solutions to a Linear Equation
Instructions: For questions 21-32, complete the table to find solutions to each linear equation.
21.
Solution
22.
23.
Solution
24.
25.
Solution
26.
27.
Solution
28.
29.
Solution
30.
31.
Solution
32.
Exercises: Find Solutions to a Linear Equation
Instructions: For questions 33-48, find three solutions to each linear equation.
33.
Solution
Answers will vary.
Solution
Answers will vary.
Solution
Answers will vary.
Solution
Answers will vary.
Solution
Answers will vary.
Solution
Answers will vary.
Solution
Answers will vary.
Solution
Answers will vary.
48.
Exercises: Recognize the Relationship Between the Solutions of an Equation and its Graph
Instructions: For questions 49-52, for each ordered pair, decide:
a. Is the ordered pair a solution to the equation?
b. Is the point on the line?
Exercises: Graph a Linear Equation by Plotting Points
Instructions: For questions 53-96, graph by plotting points.
53.
Exercises: Graph Vertical and Horizontal Lines
Exercises: Graph a Pair of Equations in the Same Rectangular Coordinate System
Instructions: For questions 109-112, graph each pair of equations in the same rectangular coordinate system.
Exercises: Mixed Practice
Exercises: Identify the x and y-Intercepts on a Graph
Instructions: For questions 129-140, find the
Exercises: Find the x and y-Intercepts from an Equation of a Line
Instructions: For questions 141-168, find the intercepts for each equation.
141.
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Exercises: Graph a Line Using the Intercepts
Instructions: For questions 169-194, graph using the intercepts.
Exercises: Everyday Math
Instructions: For questions 195-200, answer the given everyday math word problems.
195. 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?
Age |
Weight |
|
196. 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?
Height |
Weight |
|
198. Weekly earnings. At the art gallery where he works, Salvador gets paid
199. Road trip. Damien is driving from Chicago to Denver, a distance of 1000 miles. The

a. Find the
b. Explain what the
Solution
a.
b. At

a. Find the
b. Explain what the
Exercises: Writing Exercises
Instructions: For questions 201-210, answer the given writing exercises.
Solution
Answers will vary.
Solution
Answers will vary.
205. Explain how you would choose three
Solution
Answers will vary.
206. What is the difference between the equations of a vertical and a horizontal line?
Solution
Answers will vary.
Solution
Answers will vary.
A grid system is used in algebra to show a relationship between two variables; also called the xy-plane or the ‘coordinate plane’.
The x-axis and the y-axis divide a plane into four regions, called quadrants.
An ordered pair (x,y) gives the coordinates of a point in a rectangular coordinate system.
The first number in an ordered pair (x,y).
The second number in an ordered pair (x,y)
The origin is the point labeled 0 on a number line.
A vertical line is the graph of an equation of the form x=a. The line passes through the x-axis at (a,0).
A horizontal line is the graph of an equation of the form y=b. The line passes through the y-axis at (0,b).
A linear equation is of the form Ax+By=C, where A and B are not both zero, is called a linear equation in two variables.
The graph of a linear equation Ax+By=C 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.
The points where a line crosses the x- axis and the y- axis are called the intercepts of the line
The point (a,0) where the line crosses the x- axis; the x- intercept occurs when y is zero.
The point (0,b) where the line crosses the y- axis; the y- intercept occurs when x is zero.