Linear Equations and Inequalities in Two Variables: Vocabulary
Linear Equations and Inequalities in Two Variables: Vocabulary
Vocabulary
• xy-plane
• Plotting ordered pairs
• Graph
• Intercepts (x– and y–intercept of a line in an xy-plane)
• Slope of a line
• Parallel lines
• Perpendicular lines
• Horizontal lines
• Vertical lines
• Slope-intercept form of a linear equation in two variables
• Point-slope form of a linear equation in two variables
• System of linear equations
85
86 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
It’s easy to see a few examples of solutions to this equation: (1, 4), (2, 3), and
(3, 2), for example.#With $ a little more thought, more exotic solutions come to
1 1
mind: (−1, 6) and , 4 , for example. On the other hand, not every ordered
2 2
pair is a solution to this equation: (2, 2) is not a solution, for example.
Answer. Our strategy will be to “eliminate” one of the variables and to solve the
remaining linear equation in one variable. We eliminate a variable by choosing
a value for that variable, then substituting the value into the original equation.
The solution to the original equation will be an ordered pair consisting of the
chosen value for the “eliminated” variable and the value obtained by solving the
resulting (one-variable) equation.
For example, let’s choose the value 0 for x. Substituting into the given
equation for x gives 2(0) − 5y = 10; the variable x has been “eliminated.” We
then solve:
2(0) − 5y = 10
0 − 5y = 10
−5y = 10
−5y 10
−5 = −5
y = −2.
For another solution, let’s choose the value 0 for y. Substituting this value
for y gives 2x − 5(0) = 10. Solving:
2x − 5(0) = 10
2x − 0 = 10
2x = 10
2x 10
2 = 2
x = 5.
2x − 5(1) = 10
2x − 5 = 10
..
+ 5 . +5
2x = 15
2x 15
2 = 2
15
x = 2 .
x y Solution
0 −2 (0, −2)
5 0 (5, 0)
15/2 1 (15/2, 1)
Notice that we have indicated the value that was chosen with a boxed number,
while the value obtained by solving the corresponding equation with an unboxed
number.
2. Substitute the chosen value into the equation and solve the resulting
equation in one variable.
The ordered pair corresponding to the chosen value with the value obtained
by solving the resulting equation (in the appropriate order) will be a solu-
tion to the original equation in two variables.
One thing should be clear from the method described in the example above:
A linear equation in two variables will typically have infinitely many solutions,
one for each choice of value for x (or y). This will present some problems from
the point of view of solving such equations—finding all solutions.
• It is formed by two number lines placed at right angles and meeting where
both are labeled 0. The number lines are called the x-axis (the horizontal
number line) and the y-axis (the vertical number line). The point of
intersection of the axes is called the origin.
y
5
0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3
−4
−5
•(−1, 6)
y
5
•(0.5, 4.5)
4 •(1, 4)
3 •(2, 3)
2 •(3, 2)
0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3
−4
−5
Five solutions of x + y = 5
This graph, obtained by plotting five solutions of the same linear equation
in two variables, points to a crucial fact that will be central to our treatment of
90 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
This fact, combined with some basic geometry, gives a powerful technique
to solve a linear equation in two variables in the form of a graph.
Notice that geometry comes into the picture due to the fact, written down
as far back as Euclid, that two (different) points determine a unique line passing
through them. This fact is what allows us to “buy two solutions, get infinitely
many solutions free.”
Combined with our method for producing solutions to linear equations in
two variables above, we are hence able to graph any linear equation in two
variables.
Example 5.1.2. Graph the equation 2x − 5y = 10.
Answer. Recall in Example 5.1.1 above, we found three solutions to 2x − 5y =
10, given in the table
x y Solution
0 −2 (0, −2)
5 0 (5, 0)
15/2 1 (15/2, 1)
We plot these solutions in Figure 5.2.
5.1. SOLVING LINEAR EQUATIONS IN TWO VARIABLES 91
y
5
1 •(7.5, 1)
0 •(5, 0)
−2 −1 0 1 2 3 4 5 6 7 8 x
−1
−2 •(0, −2)
−3
−4
−5
Notice that the three solutions appear to lie on the same line, as we expected
from our Big Fact. All that remains is to “connect the dots” in Figure 5.3.
y
5
1 •(7.5, 1)
0 •(5, 0)
−2 −1 0 1 2 3 4 5 6 7 8 x
−1
−2 •(0, −2)
−3
−4
−5
It is important to emphasize that the last “connect the dots” step, simplest
from the procedural point of view, is also the most significant. We have gone
from three solutions to infinitely many solutions—one for each point on the line.
Let’s look at two more examples.
Example 5.1.3. Graph the solutions of 3x + 4y = 12.
92 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
3(0) + 4y = 12
0 + 4y = 12
4y = 12
4y 12
4 = 4
y = 3.
So (0, 3) is a solution.
Choosing 0 for y, we substitute and solve:
3x + 4(0) = 12
3x + 0 = 12
3x = 12
3x 12
3 = 3
x = 4.
So (4, 0) is a solution.
Choosing −3 for y, we substitute and solve:
3x + 4(−3) = 12
3x − 12 = 12
..
+ 12 . +12
3x = 24
3x 24
3 = 3
x = 8.
x y Solution
0 3 (0, 3)
4 0 (4, 0)
8 −3 (8, −3)
We now plot the three solutions and connect them with a line. See Figure
5.4.
Notice that choosing 0 first for x and then for y is useful for more than just
the ease of working with the number 0. The point whose x-coordinate is 0 (the
point (0, 3) in the previous example) is the y-intercept of the line: the point
5.1. SOLVING LINEAR EQUATIONS IN TWO VARIABLES 93
y
5
3 •(0, 3)
0 •(4, 0)
−2 −1 0 1 2 3 4 5 6 7 8 x
−1
−2
−3 •(8, −3)
−4
−5
where the line intersects the y-axis. Likewise, the point whose y-coordinate is
0 (the point (4, 0) in the previous example) is the x-intercept of the line, or
the point where the line intersects the x-axis. We will often refer to these two
special points on a line in the xy-plane, as they stand out on the graph.
1
Example 5.1.4. Graph the solutions of y = x − 2.
4
Answer. As usual, we will make three choices to find three solutions. This time,
however, we will take advantage of the form in which the equation is written,
with the y by itself on one side of the equation, and only choose values of x.
Choosing 0 for x, we substitute and solve:
1
y = 4(0) − 2
y = 0 − 2
y = −2.
So (8, 0) is a solution.
Hence we have the table:
x y Solution
0 −2 (0, −2)
4 −1 (4, −1)
8 0 (8, 0)
(Can you see why we chose the values of x that we did?)
Plotting the solutions and connecting them with a line gives Figure 5.5.
y
5
0 •(8, 0)
−2 −1 0 1 2 3 4 5 6 7 8 x
−1 •(4, −1)
−2 •(0, −2)
−3
−4
−5
1
Figure 5.5: All solutions of y = x − 2.
4
5.1.3 Exercises
For each of the linear equations in two variables below, graph the solutions.
1. x − y = 4
2. 2x + 3y = −6
3. 5x − y = 2
4. −4x + 3y = 12
5. −x + 3y = 9
6. y = 2x − 1
1
7. y = x−2
3
3
8. y = − x + 1
4
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 95
How do we make this measurement called slope? It turns out than an effec-
tive way to assign a number that matches exactly with our expectations from
the previous paragraph is to define the slope as the ratio of the vertical change
in distance between two points on the line to the horizontal change in distance
between the same two points, with the understanding that a change from upper
to lower (going from left to right) will be negative1 . See Figure 5.7.
V
V m= H
•
H
The slope of a line in an xy-plane passing through the points with coordi-
nates (x1 , y1 ) and (x2 , y2 ) is given by the ratio
y2 − y1
m= .
x2 − x1
It should be pointed out that in this context, the notation ∆y and ∆x are
1 This definition in itself is based on an important fact from geometry. Recall that two
triangles are similar if their corresponding angles have equal measurements. The ratio of
corresponding sides of similar triangles are equal. For that reason, the slope does not depend
on the two points chosen. Can you see why?
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 97
sometimes used to represent the change in x and y respectively, so the slope can
be remembered as
∆y
m= .
∆x
• (x2 , y2 )
V = y2 − y1
V y2 − y1
m= =
H x2 − x1
H = x2 − x1
(x1 , y1 ) •
In order to use the formula defining the slope, the coordinates of (any!) two
points on the line are needed.
Example 5.2.1. Find the slope of the line passing through the points with
coordinates (6, −2) and (3, 7).
Answer. Since we are given the coordinates of two points on the line, all that
remains to do is to label the coordinates, substitute into the formula defining the
slope, and evaluate.
Labelling,
x1 y1 x2 y2
( 6 , −2 ), ( 3 , 7 )
Substituting and evaluating:
(7) − (−2)
m=
(3) − (6)
7+2
=
3 + (−6)
9
=
−3
= −3.
For the sake of the reader who is seeing the slope formula in action for the
first time, let’s re-do the previous example, but labeling the coordinates in the
opposite way:
x1 y1 x2 y2
( 3 , 7 ), ( 6 , −2 )
Then substituting,
(−2) − (7)
m=
(6) − (3)
(−2) + (−7)
=
3
−9
=
3
= −3.
We obtain the same answer, the slope being −3. This is a special case of the
point that we made in the definition: the slope does not depend on which two
points on the line are chosen, and in particular, does not depend on the order
that the points are used.
Although a graph is not necessary for the purpose of computing the slope
of a line, the reader might want to plot the two given ordered pairs (6, −2) and
(3, 7) to visualize the line passing through the corresponding points to verify
that the line slants downwards going from left to right, as we would expect from
a line with a negative slope.
We next illustrate an example where the required information to compute
the slope from the definition is not given directly. We will see shortly that there
is another, more effective way to approach this example.
Example 5.2.2. Use the definition to find the slope of the line given by the
equation 2x + y = 2.
Answer. Although we are not given the coordinates of two points on the line,
in some ways we have better: we have an equation for the line. We have already
seen a method for obtaining as many solutions to this equation as we want—two
will be enough.
Choosing 0 for y, we substitute and solve:
2x + (0) = 2
2x = 2
2x 2
2 = 2
x = 1.
So (1, 0) is a solution.
Choosing 0 for x, we substitute and solve:
2(0) + y = 2
0 + y = 2
y = 2.
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 99
So (0, 2) is a solution.
Summarizing our results so far, we have the table:
x y Solution
1 0 (1, 0)
0 2 (0, 2)
x1 y1 x2 y2
( 1 , 0 ), ( 0 , 2 )
(2) − (0)
m=
(0) − (1)
2
=
0 + (−1)
2
=
−1
= −2.
This example also gives us a way to illustrate even more surely that the
slope does not depend on the points chosen. Suppose your classmate’s choices
are different from yours, and they obtain two different solutions (−1, 4) and
(2, −2). (Check that these are really solutions to 2x + y = 2!) In that case, they
would label:
x1 y1 x2 y2
( −1 , 4 ), ( 2 , −2 ).
Substituting and evaluating would give:
(−2) − (4)
m=
(2) − (−1)
(−2) + (−4)
=
2 + (1)
−6
=
3
= −2.
The two points were chosen differently, but the slope of the line is the same!
We conclude this subsection with an example that will lead in to the next
main use of the slope concept.
2
Example 5.2.3. Find the slope of the line given by the equation y = x − 4.
3
100 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
y = mx + b,
with the variable y by itself on one side of the equation. Then m (the
coefficient of x) is the slope of the line, and the y-intercept has coordinates
(0, b).
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 101
This special form of writing a linear equation in two variables, where the
variable y is written by itself on one side of the equation, is known as the slope-
intercept form of the equation of a line, since both the slope and the y-coordinate
of the y-intercept can be read directly from the equation.
2
Notice that in Example 5.2.3, the equation y = x − 4 was written in slope-
3
intercept form. The slope 2/3 was indeed the coefficient of x. Notice also,
although we didn’t mention it at the time, that the y-intercept has coordinates
(0, −4), a fact that we could also read from the form of the equation. (Keep in
mind that the b term in the special slope-intercept form is added, so we should
2
think of the equation as being written y = x + (−4).)
3
If a linear equation in two variables is not written in slope-intercept form,
then there is no way to read off the information so easily. However, by changing
the form of the equation, we can take advantage of the special slope-intercept
form for any equation.
Example 5.2.4. Find the slope and y-intercept of the line given by the equation
3x − 4y = 12.
Answer. The equation is not written in slope-intercept form, since the variable
y is not by itself. However, we can solve for y in terms of x:
3x − 4y = 12
..
−3x . −3x
−4y = −3x + 12
−4y −3x+12
−4 = −4
−3x 12
y = −4 + −4
3
y = 4x − 3.
The slope is 3/4 and the y-intercept has coordinates (0, −3).
4•
• 2
• 0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
up 2 units
(−3, −2) • −2
−4
−5
Repeating the procedure two more times gives two other new points with
coordinates (−1, 2) and (0, 4). (Even though we could write down a “formula”
to obtain the numerical coordinates of one point from the next, it is by far simpler
in the cases we will encounter to just read the coordinates from the xy-plane.)
Using the method of the previous example gives us an effective way to graph
the solutions of a linear equation in two variables—especially if the equation is
written in slope-intercept form.
2 More properly, we should think of moving “in the same direction” or “in the opposite
direction,” so that, for example, we can also obtain a second point from a given one on a line
with positive slope by moving down and to the left.
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 103
y
5
3 • (0, 3)
2 • (1, 2)
0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3
−4
−5
While the previous example was straightforward due to the fact that the
equation was written in slope-intercept form to begin with, we have already
seen that it doesn’t take much effort to rewrite an equation in slope-intercept
form if it isn’t written that way to begin with, by solving for y.
Example 5.2.7. Graph the solutions of 2x − y = 6.
Answer. The equation is not written in slope-intercept form, since y is not by
itself on one side of the equation. Solving for y in terms of x:
2x − y = 6
..
−2x . −2x
−y = −2x + 6
−y −2x+6
−1 = −1
−2x 6
y = −1 + −1
y = 2x − 6.
104 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
We now see that the slope is 2 and the y-intercept has coordinates (0, −6).
2
Using the slope m = 2 = , we start at the point representing (0, −6) and
1
“move” upwards two units and to the right one unit in order to obtain a second
solution (1, −4).
The graph is given in Figure 5.11.
y
2
0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3
−4 • (1, −4)
−5
−6 • (0, −6)
−7
−8
The only possible difficulty in this method of graphing is that when following
the method too literally, we will occasionally be forced to plot points with
fractional coordinates, as the next example illustrates.
3x + 2y = 5
..
−3x . −3x
2y = −3x + 5
2y −3x+5
2 = 2
−3x 5
y = 2 + 2
y = − 23 x + 5
2.
We see that the slope is −3/2 and the y-intercept has coordinates (0, 5/2).
Since 5/2 = 2 12 , the point representing (0, 5/2) is plotted halfway between
−3
those representing (0, 2) and (0, 3). Using the slope m = , we start at the
2
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 105
point representing (0, 5/2) and “move” downwards three units and to the right
two units to obtain a second solution (2, −1/2).
The graph is given in Figure 5.12.
y
5
3
• (0, 52 )
2
0
−5 −4 −3 −2 −1 0 1 •2 3 4 5 x
(2, − 12 )
−1
−2
−3
−4
−5
• A line described by one point on the line, given that it is parallel to another
line;
The simplest example will show that we already have tools to answer this
question.
Example 5.2.9. Find an equation for the line passing through the point with
coordinates (0, −2) and having slope 3.
Answer. Notice that in this case, the point given happens to be the y-intercept!
(That can be seen even without plotting the point by noticing that the x-coordinate
is 0.) Hence we can treat the slope-intercept form of a line, which we have writ-
ten as y = mx + b, as a formula, and substitute the values of m and b.
In this case, m = 3 and b = −2, so an equation of the line, in slope-intercept
form, would be
y = 3x − 2.
“That was too good to be true!” Of course, we had been given exactly the
data needed to substitute into the slope-intercept “formula” for a line. In the
next example, we show that the previous method still applies in a more general
context. We also illustrate a second method which is better adapted to the more
general setting.
Example 5.2.10. Find an equation for the line passing through the point with
coordinates (1, −2) and having slope −4.
Answer. This time, the given point is not the y-intercept (the x-coordinate is
not 0!), so we cannot proceed as directly as in the previous example.
Method 1
Even though we do not have all the information needed to substitute into the
slope-intercept “formula,” we can proceed in two steps.
The first, easy step is to substitute the information we do have, which is the
slope (m = −4), into the formula:
y = −4x + b.
y = −4x + 2.
Method 2
Instead of trying to use the slope-intercept “formula,” the second method will
use the definition of the slope directly. Namely, we will substitute the coordinates
for the given point (1, −2) along with the coordinates of a second unknown point
(x, y), along with the value of the slope, into the formula defining the slope
y2 − y1
m= . Namely, we label:
x2 − x1
x1 y1 x2 y2
( 1 , −2 ), ( x , y ).
(y)−(−2)
−4 = (x)−(1)
y+2
−4 = x−1
y+2
−4 · (x − 1) = x−1 · (x − 1)
−4x +4 = y + 2
..
−2 . −2
−4x +2 = y.
An equation for the line with slope m and passing through the point with
coordinates (x0 , y0 ) is given by
y − y0 = m(x − x0 ).
Example 5.2.11. Find an equation for the line passing through the points with
coordinates (4, 1) and (−2, 5).
Answer. Unlike the previous examples in this section, this time we are not
given the slope. Fortunately, since we have the coordinates of two points on the
line, we can use the definition to find the slope.
Step 1: Find the slope Labelling
x1 y1 x2 y2
( 4 , 1 ), ( −2 , 5 ),
(5) − (1)
m=
(−2) − (4)
4
=
−6
2
=− .
3
x0 y0
( 4 , 1 ),
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 109
we can substitute into the point-slope formula and solve for y in terms of x:
y − (1) = (− 23 )(x − (4))
y − 1 = (− 23 )(x − 4)
y − 1 = (− 23 )(x) − (− 32 )(4)
y − 1 = − 23 x − (− 83 )
y − 1 = − 23 x + 8
3
..
+ 1 . + 1
y = − 23 x + 11
3 .
(Notice that solving for y in terms of x amounts to writing the answer in slope-
intercept form.)
Since this is the first example of its type, let’s verify that the result does
not depend on which of the two points we choose. If we had instead chosen the
second point, we would have obtained
x0 y0
( −2 , 5 ).
We can now substitute into the point-slope formula and solve for y in terms of
x:
y − (5) = (− 32 )(x − (−2))
y − 5 = (− 23 )(x + 2)
− 32 (x)
" ! " 2!
y − 5 = + − 3 (2)
− 23 x − 34
" !
y − 5 = +
y − 5 = − 32 x − 4
3
..
+ 5 . + 5
y = − 23 x + 11
3 .
While the equation looked different immediately after substituting into the point-
slope formula, the slope-intercept form of the equation is the same.
2 11
The answer, in slope-intercept form, is y = − x + .
3 3
The last two examples of this subsection will rely on the the following trans-
lation of geometric facts into the language of slopes. Recall that two lines in a
110 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
plane are parallel if they have no point of intersection; two lines in a plane are
perpendicular if they intersect at right angles. These geometric definitions
can be translated (with some work) into algebraic facts by means of the slope.
In algebraic terms, suppose two lines have slopes m1 and m2 . If the lines are
parallel, then m1 = m2 . If the lines are perpendicular, then m2 = −1/m1
(where m1 ̸= 0). (It might be helpful to think of m2 = −1/m1 in words:
“m2 is the opposite of the reciprocal of m1 .”)
Example 5.2.12. Find an equation for the line passing through the point with
coordinates (−3, 2) and which is parallel to the line x + 6y = 1.
Answer. We are not given the slope of the line in question. However, we are
given the equation of a parallel line. Let’s find the slope of the parallel line, then
use the same slope for the line in question.
Step 1: Find the slope of the parallel line.
Since we are given an equation for the parallel line, let’s rewrite it in slope-
intercept form:
x + 6y = 1
..
−x . −x
6y = −x + 1
6y −x+1
6 = 6
−x 1
y = 6 + 6
y = − 61 x + 1
6.
We will substitute m = −1/6 (using the same slope as the parallel line)
and the coordinates of the given point
x0 y0
( −3 , 2 )
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 111
y − 2 = (− 16 )(x + 3)
− 61 (x)
" ! " 1!
y − 2 = + − 6 (3)
− 16 x − 63
" !
y − 2 = +
y − 2 = − 61 x − 1
2
..
+ 2 . + 2
y = − 16 x + 3
2.
1 3
The answer, in slope-intercept form, is y = − x + .
6 2
Example 5.2.13. Find an equation for the line passing through the point with
coordinates (3, 5) which is perpendicular to the line 3x − 2y = 12.
Answer. Again, we are not given the slope of the line in question.
Step 1: Find the slope of the perpendicular line.
3x − 2y = 12
..
−3x . −3x
−2y = −3x + 12
−2y −3x+12
−2 = −2
−3x 12
y = −2 + −2
3
y = 2x − 6.
For the slope of the line in question, we will use the opposite of the recip-
rocal of the slope of the perpendicular line: we will substitute m = −2/3 along
with and the coordinates of the given point
x0 y0
( 3 , 5 )
112 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
y − 5 = (− 23 )(x − 3)
− 23 (x) − 23 (3)
" ! " !
y − 5 = −
− 23 x − 36
" !
y − 5 = −
y − 5 = − 23 x + 2
..
+ 5 . + 5
y = − 23 x + 7.
2
The answer, in slope-intercept form, is y = − x + 7.
3
Notice that in none of the examples in this section were we asked to graph
the lines in question. Having done the work of writing their equations in slope-
intercept form, however, doing so would have not been much extra effort.
y = −7.
5.2. A DETOUR: SLOPE AND THE GEOMETRY OF LINES 113
The answer is y = −7. Notice that although the example was clearly stated
in the setting of two variables (an ordered pair was given!), only one variable
appears in the equation describing the line.
Let’s consider the equation y = −7 from the previous example more carefully.
A solution to this equation, which in this context will be an ordered pair (x, y),
must make the equation y = −7 after substituting its coordinates into the
equation. However, there is no place to substitute x-values. In other words, the
equation y = −7 imposes no restrictions at all on x! A table might look like:
x y Solution
0 −7 (1, −7)
−4 −7 (−4, −7)
29 −7 (29, −7)
−0.717 −7 (−0.717, −7)
3 −7 (3, −7)
Whatever x value we choose, the equation requires that the y-coordinate be −7.
Turning our attention to vertical lines, we immediately run into the problem
that a vertical line does not have a slope (roughly speaking, the slope of a
vertical line is “infinite”). Because of this, our strategy of relying on the point-
slope formula would lead nowhere.
However, our discussion of a table of values for solutions to an equation in
two variables with one variable missing still applies.
x y Solution
−1 0 (−1, 0)
−1 −2 (−1, −2)
−1 1 (−1, 1)
Plotting these three solutions and drawing the line through them, we obtain
Figure 5.13.
Notice that the line given by the equation x = −1 is a vertical line.
There are some obvious patterns in the previous two examples, which we
can summarize as follows:
114 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
y
5
(−1, −1) • 1
(−1, 0)
• 0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
(−1, −2) • −2
−3
−4
−5
• An equation for a horizontal line passing through the point with co-
ordinates (a, b) is y = b.
• An equation for a vertical line passing through the point with coor-
dinates (a, b) is x = a.
For future reference, it is worth remembering two special cases of this pattern
in an xy-plane:
5.2.4 Exercises
1. Find the slope of the lines in an xy-plane described by the following in-
formation:
4. Find an equation of the line having slope 3/4 and passing through the
point (3, −2).
5. Find an equation of the line passing through the points (2, −1) and (5, 1).
6. Find an equation of the line passing through the point (4, −2) and parallel
to the line given by 3x − 4y = 6.
7. Find an equation of the line passing through the point (1, 0) and perpen-
dicular to the line given by x + 4y = 2.
9. Use the result of the previous exercise to find an equation of the line
parallel to 3x + 5y = 8 and passing through the point with coordinates
(2, −3).
10. (*) Show that for any values of A, B, C1 , C2 , (A, B ̸= 0) the line described
by the equations Ax + By = C1 is perpendicular to the line described by
−Bx + Ay = C2 .
11. Use the result of the previous exercise to find an equation of the line per-
pendicular to −x + 5y = 7 and passing through the point with coordinates
(−1, 5).
116 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
4 ◦
3 ◦
2 ◦
• 1•
0•
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3 •
−4
−5
Figure 5.14: Four solutions (•) and three non-solutions (◦) to x + y < 3.
The key to seeing a pattern here is to take a step back and remember that
solutions to a linear equation all lie on a line. Points not on the line do not
represent solutions to the linear equation—or, equivalently, represent solutions
to a linear inequality. In other words, if an ordered pair (a, b) is not a solution
to the equation Ax + By = C (and so the corresponding point is not on the line
5.3. SOLVING LINEAR INEQUALITIES IN TWO VARIABLES 117
given by Ax+By = C), then the ordered pair (a, b) is a solution to Ax+By ̸= C.
Now there are two ways that the inequality Ax + By ̸= C can be true: either
Ax + By < C is true, or Ax + By > C is true. It is an important fact about
an xy-plane that all points representing solutions to Ax + By < C lie on the
same side of the line Ax + By = C in an xy-plane, and all points representing
solutions to Ax + By > C lie on the other side of the same line. Figure 5.15
is the same as Figure 5.14, except with the “border” line x + y = 3 indicated.
(Notice that the ordered pair (1, 2), which is not a solution to x + y < 3, is
represented by a point on the border line described by x + y = 3.)
y
5
4 ◦
3 ◦
2 ◦
• 1•
0•
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3 •
−4
−5
Figure 5.15: Solutions (•) and non-solutions (◦) to x + y < 3, with border line
x + y = 3.
We can summarize the above discussion as follows: The graph of all solutions
to a typical linear inequality in two variables will consist of all points on one
side of a line in an xy-plane. The border line will not (or will) be included
depending on whether the inequality is strict (or not).
Our strategy to solve a linear inequality in two variables will then be the
following:
118 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
1. Draw the border line. Use a dotted line for strict inequalities (so
that points on the border line do not represent solutions) or a solid
line for non-strict inequalities (so that the border points do represent
solutions).
As in Section 4.4.2, we will discuss two methods to decide which side of the
border line to shade.
The idea of this method is to choose any point in the xy-plane not on the
border line. Test whether the chosen point represents a solution to the inequality.
If it does represent a solution, shade all points on the same side of the border
line as the test point. If it does not, shade all points on the opposite side of the
border line.
We will give three examples using this method.
Example 5.3.1. Graph the solutions of x − 3y < 6.
Answer. The first step is to graph the border line represented by x − 3y = 6;
notice that we will draw the border as a dotted line since the inequality is strict
(and the points on the border do not represent solutions to the inequality). To
do that, we can use either of our methods for graphing linear equations. We list
here a possible table of values to find two solutions:
x y Solution
0 −2 (0, −2)
6 0 (6, 0)
Now we choose a test point to determine which side of the border line to
shade. Let’s choose one with coordinates (1, 1). To test it, we substitute these
coordinates into the original inequality x − 3y < 6:
(1) − 3(1) < 6
1 − 3 < 6
−2 < 6.
The inequality is true, and so (1, 1) is a solution. We shade all points on
the same side of the border line as the one representing (1, 1) to represent all
solutions of x − 3y < 6. See Figure 5.16.
5.3. SOLVING LINEAR INEQUALITIES IN TWO VARIABLES 119
y
5
2
Test point (1, 1)
1 •
0 •
−5 −4 −3 −2 −1 0 1 2 3 4 5 6 7 8 9 10 x
−1
−2 •
−3
−4
−5
x y Solution
0 2 (0, 2)
5 0 (5, 0)
Now we choose a test point; this time let’s choose the origin, with coordinates
(0, 0). Substituting these coordinates into the original inequality 2x + 5y ≥ 10,
2(0) + 5(0) ≥ 10
0 + 0 ≥ 10
0 ≥ 10.
y
5
2•
1
Test point (0, 0)
0◦ •
−5 −4 −3 −2 −1 0 1 2 3 4 5 6 7 8 x
−1
−2
−3
−4
−5
coordinates (0, 1). A second solution can be obtained by “moving” down one
unit and to the right three units to give (3, 0).
Now we choose a test point; since zero is a nice number to work with let’s
choose the origin with coordinates (0, 0) again. To decide whether it is a solution,
1
we substitute into y < − x + 1:
3
1
The inequality is true; (0, 0) is a solution of y < − x + 1. We will shade all
3
points on the same side of the border line as the origin (0, 0). See Figure 5.18.
Many students look at a few examples of linear inequalities and try to find
patterns, or “shortcuts,” to the test point method. “Wouldn’t it be great,”
someone might say, “if every ‘less than’ inequality had a graph shaded below
the border line! Then I don’t have to waste my time with test points.” However,
look back at Examples 5.3.1 and 5.3.3; if there is a pattern, it is not so simple.
In fact, since the an inequality can be written in so many equivalent forms, there
is really no hope for an easy “shortcut.”
However, if we make the effort of writing the inequality in a standard form,
it is possible to make “rules” for which side of the border line to shade. Here is
an example of such rules:
5.3. SOLVING LINEAR INEQUALITIES IN TWO VARIABLES 121
y
5
1•
Test point (0, 0)
0• •
−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 6 x
−1
−2
−3
−4
−5
1
Figure 5.18: All solutions of y < − x + 1.
3
−3x 12
y ≥ 4 + 4
y ≥ − 43 x + 3.
Notice that at no point did we divide by a negative number; the sense of the
inequality ≥ does not change.
One advantage of the standard form we have chosen is that the equation
3
of the border line y = − x + 3 is in slope-intercept form. The y-intercept has
4
3
coordinates (0, 3) and the slope is − , so the coordinates of a second point on
4
the line is obtained by “moving” down three units and to the right four units
from (0, 3), giving (4, 0). We draw the border line with a solid line since the
inequality ≥ is not strict.
Since the inequality in standard form is ≥, we will shade above the border
line. See Figure 5.19.
y
8
3•
0 •
−5 −4 −3 −2 −1 0 1 2 3 4 5 6 x
−1
−2
−3
4x − 2y > 5
..
−4x . −4x
−2y > −4x + 5
−2y −4x+5
−2 < −2
−4x 5
y < −2 + −2
5
y < 2x − 2.
This time, when we divided by −2 on the fourth line, the sense of the inequality
changes from > to <. # $
5 5
The border line, represented by y = 2x − , has y-intercept 0, − and
2 # 2$
2 5
slope m = 2 = . We can obtain a second point by starting from 0, − and
1 # $ 2
1
“moving” up 2 units and to the right 1 unit to give 1, − . (Notice that
2
−5/2 = −2.5) We will draw the border line with a dashed line since the original
inequality > is strict.
Even though the original inequality was >, in standard form the inequality
changed to < (when we divided by a negative number). For that reason, we will
shade below the border line. See Figure 5.20.
y
8
0
−5 −4 −3 −2 −1 0 1• 2 3 4 5 x
(1, −0.5)
−1
−2
• (0, −2.5)
−3
−4
−5
−6
−7
−8
−9
−10
5.3.1 Exercises
Solve the following linear inequalities in two variables. In each case, graph all
solutions and list five individual solutions.
1. −x − y > 6
2. 2x + 5y ≤ 10
3. 3x − 2y ≥ 12
4. −4x + y > 4
1
5. y ≥ − x + 4
2
6. y < 1
5.4. SOLVING SYSTEMS OF LINEAR EQUATIONS 125
There are a few things to notice about our notation in writing systems of
linear equations:
• The system is indicated by the symbol {. This indicates that a solution
must make both equations true. (Caution: Not every text uses this sym-
bol.)
• We write both equations is the general form Ax + By = C, where all
variable terms are on the left side of the equations and all constant terms
are on the right side. (If an equation is not written in this form, it can be
rewritten as an equivalent one in the general form by using the addition
principle.)
• We have written the equations so that like terms are in the same “column,”
with x-terms written above x-terms and y-terms written above y-terms.
• We use the symbols ! and " to represent the two equations. For example,
in this case, “Equation !,” or just !, will refer to the equation 2x + 5y =
13.
Let’s look at some potential solutions for System (5.1). The reader should
check the validity of the statements below:
• (9, −1) is a solution to Equation !, but (9, −1) is not a solution to Equa-
tion ". So (9, −1) IS NOT a solution to System (5.1).
• (6, 2) is a NOT solution to Equation !, but (6, 2) is a solution to Equation
". So (6, 2) IS NOT a solution to System (5.1).
• (4, 1) is a solution to Equation !, and (4, 1) is not a solution to Equation
". So (4, 1) IS a solution to System (5.1).
• (0, 0) is a not solution to Equation !, and (0, 0) is not a solution to
Equation ". So (0, 0) IS NOT a solution to System (5.1).
The preceding paragraph should convince the reader that to find solutions
to a system of equations, it is not enough to solve the two equations separately.
At this point, we found one solution to System (5.1), but we can’t be sure that
126 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
A typical system of two linear equations in two variables will have exactly
one solution. The solution, when plotted on an xy-plane, represents the
point of intersection of the lines represented by the two equations.
In fact, this discussion already gives one method to solve a system of linear
equations: Graph both equations on the same xy-plane, and the solution will
be the coordinates of the point of intersection. However, this method requires
a high degree of accuracy in plotting, and we will not generally rely on this
method to solve systems of linear equations.
There is another, more algebraic way to solve systems of linear equations.
Beginning with one of the equations, we could solve for one of the variables, say
y, in terms of the other variable x. Then we could substitute this expression
for y in terms of x into the second equation to obtain a new equation in just
one variable x. This new linear equation (in one variable) will typically have
one solution. Substituting this solution into the first equation (for y in terms
of x) will give a corresponding value of y. The solution will be an ordered pair
consisting of the solutions for x and y.
The method in the preceding paragraph is sometimes known (for obvious
reasons) as the substitution method. Despite the fact this method applies to
a wide variety of systems beyond those that we are considering here, we will
not pursue this method any further. In many situations it requires detailed
calculations with fractions, which as it turns out can be avoided in most cases
we will encounter.
Answer. Looking at System (5.2), we can notice that the y-terms have a special
form in Equations ! and ": they are “opposites,” in the sense that their coef-
ficients (1 and −1) have the same magnitude but opposite sign. Let’s apply the
addition principle, which as a reminder states that we can add the same quantity
to both sides of an equation without changing the solutions. For a solution to
Equation ", both sides are equal, so we will “add Equation " to Equation !,”
meaning add the left sides and right sides of the equations.
Eliminate y:
x + y = 4 !
x − y = 1 "
2x = 5 !+"
Notice that the new equation, which we denote ! + ", is an equation in one
variable, with solution 5/2. We have learned so far that if (x, y) is a solution to
System (5.2), then x must have the value 5/2.
What is the corresponding y-value for the solution? One way to find this
would be to substitute the x-value 5/2 into either Equation ! or " to obtain a
new equation in one variable y and then solve. However, let’s stay in the spirit
of “elimination.”
The preceding step of eliminating y worked so well because the original co-
efficients of y were so nice. If we wanted to eliminate x, adding the equations
directly does not work, as we just saw. While the coefficients of x, which are
both 1, do have the same magnitude, they have the same sign, and so are not
“opposites.”
But why not, instead of adding the two equations, subtract them—or, what
is the same, add the opposite of Equation " to Equation !?
Eliminate x:
x + y = 4 !
−x + y = −1 " × (−1)
2y = 3 ! − "
Notice that we multiplied every term on both sides of Equation " by −1.
We represent this with the notation " × (−1).
So after adding to obtain ! − " (which is the same as ! + (−1) × "), we
obtain the equation in one variable 2y = 3, which has solution 3/2. This tells
us that if (x, y) is a solution to System (5.2), then y must have the value 3/2.
From our preceding discussion, we expect that System (5.2) has one solution.
We conclude: # $
5 3
The solution to System (5.2) is , .
2 2
It is worth pointing out from this first example that we did encounter frac-
tions in our solution, even though the system involved equations without frac-
tional coefficients. This is completely normal. However, we did not encounter
fractions until the very last step of each elimination, and in fact, we never
128 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
had to perform operations with these fractions. As we will see, this is typical
for systems with integer coefficients and a major advantage of the elimination
method.
From our first example, we can already see the outlines of the elimination
method: Combine the two equations in such a way that one of the variables
is “eliminated” in order to find a value for the other variable. Then repeat
the process, eliminating the other variable to find the value for the remaining
unknown. The solution is the ordered pair formed by the two values obtained
in this way.
What remains to investigate is exactly how to combine the equations in such
a way that one variable is always eliminated. The next example is a step in that
direction.
Eliminate y:
6x + 2y = 18 ! × 2
x − 2y = −6 "
7x = 12 2×! + "
Eliminate x:
3x + y = 9 !
−3x + 6y = 18 " × (−3)
7y = 27 ! + (−3) × "
In the resulting equation ! + (−3) × ", we have eliminated x to obtain an
equation in one variable y with solution 27/7.
The solution to System (5.3) is
# $
12 27
, .
7 7
One thing should be clear from these examples so far: Be careful of signs
when multiplying both sides by a negative number!
Example 5.4.3. Solve:
'
2x + 5y = 13 !
(5.4)
x − 2y = 2 "
Answer. This is the example that we used in the opening of the section (System
(5.1). We already saw the solution at that time, when we were checking if
various ordered pairs were solutions. Now we will apply the elimination method
to actually find the solution “from scratch.”
In looking at the system, we see that we can eliminate x exactly as in the
previous example. We will multiply Equation " by −2 (notice that the coeffi-
cients of x initially have the same sign, so we need to multiply by a negative
number in order to make the resulting coefficients “opposite.”
Eliminate x:
2x + 5y = 13 !
−2x + 4y = −4 " × (−2)
9y = 9 ! + (−2) × "
The equation 9y = 9 has 1 as a solution, so the y-coordinate of the solution
to System (5.4) is 1.
When we turn to eliminating y, we encounter a new problem. The good news
is that the coefficients of y (5 and −2) have opposite signs. But there is no way
to multiply just one of the equations by an integer to make the coefficients of y
“opposites,” as we need to eliminate y.
It turns out that the way around this difficulty is not hard: we will use the
multiplication principle on both equations. First, we find a common multiple
of the magnitudes 2 and 5. That is, we find an integer that both 2 and 5 divide
evenly. The least common multiple of 2 and 5 is 10. (The reader might notice
that finding a common multiple of 2 and 5 is exactly the same mental process as
finding a common denominator4 for two fractions with denominators 2 and 5.)
4 In fact, a common denominator is just a common multiple of the denominators.
130 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
Eliminate y:
4x + 10y = 26 ! × 2
5x − 10y = 10 " × 5
9x = 36 2×! + 5×"
The resulting equation 9x = 36 has 4 as a solution, so the x-coordinate of
the solution to System (5.4) is 4.
Putting this together with the result of the previous elimination step, we find
that the solution to System (5.4) is (4, 1).
With the three preceding examples as guides, we can write down a general
method that describes the “elimination” that is at the heart of the elimination
method.
• If the coefficients of the desired variable originally had the same sign,
multiply one equation by a positive number and one equation by
a negative number so that the magnitude of the coefficients of the
desired variable is the common multiple.
After these preparations, adding the resulting equations will result in a new
equation that does not involve the variable to be eliminated.
Answer. To eliminate x, we see that the least common multiple of the coeffi-
cients of x (6 and 9) is 18. Since the signs of the coefficients are the same, we
will multiply one equation (say Equation ") by a negative number. Specifically,
we will multiply Equation ! by 3 and Equation " by −2:
5.4. SOLVING SYSTEMS OF LINEAR EQUATIONS 131
Eliminate x:
18x + 12y = 48 !×3
−18x + 10y = −14 " × (−2)
22y = 34 3×! + (−2) × "
The solution to the resulting equation 22y = 34 is 17/11 (after reducing), so
the y-coordinate of the solution to System (5.5) is 17/11
Now to eliminate y, we see that the least common multiple of the magnitudes
of the coefficients of y in System (5.5) (4 and −5) is 20. Since the signs of
the coefficients are already different, we will multiply both equations by positive
numbers to achieve the common multiple. Specifically, we will multiply Equation
! by 5 and Equation " by 4:
Eliminate y:
Eliminate x:
−3x − 6y = −27 ! × (−3)
3x + 6y = 10 "×1
0 = −17 (−3) × ! + "
Although we were aiming to eliminate x, both variables were eliminated in
the resulting equation!
As in Section 4.2.3, the question in such cases is whether the new equation
is true or false.
Since the equation 0 = −17 is false, System (5.6) has no solution.
What went “wrong” in the previous example? Why did our elimination pro-
cedure end up eliminating both variables, instead of the ”typical” one variable
at a time?
To investigate Example 5.2.12 more closely, let’s rewrite both equations in
slope-intercept form. Solving Equation ! for y gives:
x + 2y = 9
..
−x . −x
2y = −x + 9
2y −x+9
2 = 2
−x 9
y = 2 + 2
y = − 21 x + 9
2.
We see that the slope of the line given by Equation ! is −1/2 and the y-intercept
is (0, 9/2).
Turning to Equation ", we solve for y:
3x + 6y = 10
..
−3x . −3x
6y = −3x + 10
6y −3x+10
6 = 6
−3x 10
y = 6 + 6
y = − 21 x + 5
3.
The slope of the line given by Equation " is −1/2 and the y-intercept is (0, 5/3).
Comparing, we see that the two lines represented by Equations ! and "
have the same slope, but different y-intercepts. In other words, the Equations
represent parallel lines!
In fact, this shouldn’t be a big surprise. Our geometric thinking that led us
to the conclusion that the typical system of two linear equations in two variables
5.4. SOLVING SYSTEMS OF LINEAR EQUATIONS 133
had a single solution was that two different lines in a plane typically intersect
in one point—except when the two lines are parallel, in which case they have
no point of intersection.
Keeping in mind that we saw two “unusual” situations in Section 4.2.3, let’s
look at one last example.
Eliminate x:
−4x + 2y = −10 ! × (−2)
4x + 2y = 10 "×1
0 = 0 (−2) × ! + "
Again, we have eliminated both variables. This time, though, the resulting
equation is true.
In the one-variable situation in Section 4.2.3, this would have led us to con-
clude that all real numbers were solutions. However, in this case, not every
ordered pair is a solution. For example, the reader can check that (0, 0) is not
a solution to System (5.7).
To understand what the resulting true equation is telling us, let’s again
rewrite the equations in slope-intercept form to see what some geometry can
tell us.
Solving Equation ! for y gives:
2x − y = 5
..
−2x . −2x
−y = −2x + 5
−y −2x+5
−1 = −1
−2x 5
y = −1 + −1
y = 2x − 5.
The slope of the line given by Equation ! is 2 and the y-intercept is (0, −5).
134 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
4x − 2y = 10
..
−4x . −4x
−2y = −4x + 10
−2y −4x+10
−2 = −2
−4x 10
y = −2 + −2
y = 2x − 5.
The slope of the line given by Equation " is 2 and the y-intercept is (0, −5).
Notice that the two equations represent lines with the same slope and the
same y-intercept—they actually represent the same line.
In other words, System (5.7) has infinitely many solutions, all of which are
represented by the points on the line given by either Equation ! or Equation ".
We could graph the solutions: See Figure 5.21.
y
4
0
−5 −4 −3 −2 −1 0 1 2 3 4 5 x
−1
−2
−3 • (1, −3)
−4
−5 • (0, −5)
−6
The unusual cases in this section are detected using the elimination method
when both variables are eliminated. We can summarize our results as follows:
5.4. SOLVING SYSTEMS OF LINEAR EQUATIONS 135
• If the resulting equation is true, the system has infinitely many solu-
tions, represented by the points on the graph of either equation. The
lines represented by the two equations are the same.
5.4.2 Exercises
Solve the following systems of linear equations.
x−y =8
'
1.
2x + y = 1
3x − 2y = −1
'
2.
2x + y = −3
x − 2y = 4
'
3.
5x + 6y = 3
2x − 3y = 6
'
4.
x + 4y = 8
3x + 2y = 4
'
5.
−x + 5y = 10
4x − y = 6
'
6.
2x + 3y = 8
−2x + y = 5
'
7.
4x − 2y = 8
' y = 2x − 5
8. x+4
y=
2
136 CHAPTER 5. LINEAR STATEMENTS IN TWO VARIABLES
• The most basic strategy to graph all solutions of a linear equation in two
variables is to plot two solutions, then draw the line passing through these
two.
• Given the slope of a line and the coordinates of one point on the line, the
point-slope form of a line gives a “formula” to write an equation of the
line.
• A typical system of two linear equations in two variables has one solution.