Section 3

Section 3.3
Equations of Lines
271
3.3 Equations of Lines
In this section we will develop the slope-intercept form of a line. When you have
completed the work in this section, you should be able to look at the graph of a line
and determine its equation in slope-intercept form.
The Slope-Intercept Form
In the previous section, we developed the formula for the slope of a line. Let’s assume
that the dependent variable is y and the independent variable is x and we have a line
passing through the points P (x1 , y1 ) and Q(x2 , y2 ), as shown in Figure 1.
y
Q(x2 ,y2 )
∆y=y2 −y1
x
P (x1 ,y1 )
∆x=x2 −x1
Figure 1. Determining the slope of a line
through two points.
As we sweep our eyes from left to right, note that the change in x is ∆x = x2 − x1
and the change in y is ∆y = y2 − y1 . Thus, the slope of the line is determined by the
formula
Slope =
∆y
y2 − y1
=
.
∆x
x2 − x1
(1)
Now consider the line in Figure 2. Suppose that we are given two facts about this
line:
1. The point where the line crosses the y-axis (the y-intercept) is (0, b).
2. The “slope” of the line is some number m.
To find the equation of the line pictured in Figure 2, select an arbitrary point
Q(x, y) on the line, then compute the slope of the line using (x1 , y1 ) = P (0, b) and
(x2 , y2 ) = Q(x, y) in the slope formula (1).
Slope =
1
y2 − y1
y−b
=
x2 − x1
x−0
Copyrighted material. See: http://msenux.redwoods.edu/IntAlgText/
Version: Fall 2007
272
Chapter 3
Linear Functions
y
P (0,b)
x
Q(x,y)
Slope=m
Figure 2. Find the equation of the line
in slope-intercept form.
Simplify.
y−b
x
We’re given that the slope is the number m, so substitute this number for the word
“Slope” in the last result.
y−b
m=
x
Multiply both sides of the last equation by x.
Slope =
mx = y − b
Add b to both sides of the last equation to obtain
mx + b = y,
or upon exchanging sides of the equation,
y = mx + b.
The above discussion leads to the following result.
The Slope-Intercept Form of a Line. If the line L intercepts the y-axis at the
point (0, b) and has slope m, then the equation of the line is
y = mx + b.
(2)
This form of the equation of a line is called the slope-intercept form. The
function defined by the equation
f (x) = mx + b
is called a linear function.
Version: Fall 2007
Section 3.3
Equations of Lines
273
It is important to note two key facts about the slope-intercept form y = mx + b.
•
•
The coefficient of x (the m in y = mx + b) is the slope of the line.
The constant term (the b in y = mx + b) is the y-coordinate of the y-intercept (0, b).
Procedure for Using the Slope-Intercept Form of a Line. When given
the slope of a line and the y-intercept of the line, use the slope-intercept form as
follows:
1. Substitute the given slope for m in the formula y = mx + b.
2. Substitute the y-coordinate of the y-intercept for b in the formula y = mx + b.
For example, if the line has slope −2 and the y-intercept (the point where the
line crosses the y-axis) is (0, 3), then substitute m = −2 and b = 3 in the formula
y = mx + b to obtain
y = −2x + 3.
Let’s look at some examples of use of this all-important formula.
I Example 3. What is the equation of the line having slope −2/3 and y-intercept
at (0, 3)? Sketch the line on graph paper.
The equation of the line is
y = mx + b.
(4)
We’re given that the slope is −2/3. Hence, m = −2/3. Secondly, we’re given that the
line intercepts the y-axis at the point (0, 3). In the slope-intercept form y = mx + b,
recall that b represents the y-coordinate of the y-intercept. Hence, b = 3. Substitute
m = −2/3 and b = 3 in equation (4), obtaining
2
y = − x + 3.
3
To sketch the graph of the line, first locate the y-intercept at P (0, 3), as shown in
Figure 3. Starting from the y-intercept at P (0, 3), move 3 units to the right and 2
units downward to the point Q(3, 1). The required line passes through the points P
and Q.
Note that the line “intercepts” the y-axis at 3 and slants downhill, in accordance
with the fact that the slope is negative in this example.
I Example 5. Given the graph of the line in Figure 4(a), determine the equation
of the line.
First, locate the y-intercept of the line, which we’ve labeled P (0, −1) in Figure 4(b).
In the formula y = mx + b, recall that b represents the y-coordinate of the y-intercept.
Thus, b = −1.
Version: Fall 2007
274
Chapter 3
Linear Functions
5
y
∆x=3
P (0,3)
∆y=−2
Q(3,1)
5
x
Figure 3. The line has y-intercept at
(0, 3) and slope −2/3.
Secondly, we need to determine the slope of the line. In Figure 4(b), start at the
point P , move 2 units to the right, then 3 units upward to the point Q(2, 2). This
makes the slope
m=
3
∆y
= .
∆x
2
Substitute m = 3/2 and b = −1 into the slope-intercept form y = mx + b to obtain
y=
3
x − 1,
2
which is the desired equation of the line.
5
y
5
y
Q(2,2)
5
∆y=3
x
P (0,−1)
∆x=2
(a)
Figure 4.
Version: Fall 2007
(b)
Determining the equation of a line from its graph.
5
x
Section 3.3
Equations of Lines
275
Making Connections
If the connection between rate and slope is still not clear, let’s recall an example we
did earlier in the chapter.
Sebastian waves good-bye to his brother, who is talking to a group of his
friends approximately 20 feet away. Sebastian then begins to walk away from
his brother at a constant rate of 4 feet per second.
The distance between the brothers depends upon the amount of time that has
passed, so we set distance d on the vertical axis and time t on the horizontal axis,
as shown in Figure 5. Note that d and t are taking the “usual” place of y and x,
respectively. The distance separating the brothers at time t = 0 is d = 20 feet. This is
indicated with the “d-intercept” at P (0, 20) in Figure 5.
Next, the distance between the brothers is increasing at a rate of 4 feet per second.
Starting at the point P (0, 20), move 1 second to the right (2 boxes) and 4 units up (1
box) to the point Q(1, 24), as shown in Figure 5. The line through the points P and
Q then models the distance between the brothers as a function of time.
d (ft)
60
40
Q(1,24)
4
P (0,20)
1
0
t (s)
0
5
10
Figure 5. Distance between brothers as a
function of time.
If you recall, we then determined a relation between distance d and time t by examining the distance between the brothers at times t = 0, 1, 2, and 3, and summarizing
the results in Table 1.
t
0
1
2
3
d
20
20 + 4(1)
20 + 4(2)
20 + 4(3)
Table 1. Determining
a model equation.
Intuition then led to the following model, which provides the distance d between the
brothers as a function of time t.
Version: Fall 2007
276
Chapter 3
Linear Functions
d = 20 + 4t
(6)
Again, readers should check that equation (6) produces the results in Table 1 at
t = 0, 1, 2, and 3.
Alternatively, with the theory developed in this section, we would develop the equation of the line by using the slope-intercept form of the line; that is,
y = mx + b.
(7)
However, in this case, the dependent variable is d, not y, and the independent variable
is t, not x. So, replace y and x in equation (7) with d and t, respectively, obtaining
d = mt + b.
(8)
Next, the line intercepts the d-axis at P (0, 20), so b = 20. Furthermore, the slope of
the line is 4 feet per second, so m = 4. Substitute m = 4 and b = 20 in equation (8)
to obtain
d = 4t + 20,
(9)
or using function notation, d(t) = 4t + 20. Note that equation (9) is identical to the
intuitively generated model of equation (6).
Hopefully, this development should cement for all time the idea that slope of the line
is the rate at which the dependent variable is changing with respect to the independent
variable.
The Standard Form of a Line
We now know that if our equation has the form y = mx + b (or can be manipulated
into this form), the graph will be a line. Let’s take a moment to demonstrate that the
graph of the equation Ax + By = C, where A, B, and C are constants, is a line.
If we can place the form Ax + By = C into slope-intercept form y = mx + b,
then that will demonstrate that the graph of Ax + By = C is a line. So, start with
Ax + By = C and subtract Ax from both sides of the equation.
By = −Ax + C
Divide both sides of this last equation by B. Note that there is an assumption here
that B 6= 0. We will handle the case when B = 0 separately, at the end of this section.
By
−Ax + C
=
B
B
A
C
y =− x+
B
B
When we compare y = −(A/B)x + (C/B) with y = mx + b, we note that the slope
is m = −A/B and the y-coordinate of the y-intercept is b = C/B. Because we were
Version: Fall 2007
Section 3.3
Equations of Lines
277
successful in placing the equation Ax + By = C into slope-intercept form, we now know
that the graph of Ax + By = C is a line (we’ll need this result in later work). 2
The Standard Form of a Line. The graph of the equation Ax + By = C is a
line. The form
Ax + By = C
(10)
is called the standard form of a line.
Let’s look at an example.
I Example 11. The equation 3x + 4y = 12 is in standard form. Place this equation
in slope-intercept form, determine the slope and y-intercept, then use these results to
draw the graph of the line.
First, solve the equation 3x + 4y = 12 for y.
3x + 4y = 12
4y = −3x + 12 .
3
y =− x+3
4
Note in the last step how the distributive property came into play. When we divided
−3x + 12 by 4, we divided each term by 4, getting (−3/4)x + 3.
When we compare y = (−3/4)x+3 with the general slope-intercept form y = mx+b,
we determine that the slope is m = −3/4 and the y-coordinate of the y-intercept is
b = 3. To sketch the graph of the line, as we’ve done in Figure 6, plot the y-intercept
at P (0, 3), then move 4 units to the right and 3 units down to the point Q(4, 0). The
line passing through the points P and Q is the required line.
Note again that the slope is m = −3/4 and the line slants “downhill.” Also, b = 3
and the line “intercepts” the y-axis at P (0, 3).
Let’s look at another example.
I Example 12. In Example 5, we determined that the given line had the equation
3
y = x − 1.
2
Place this equation in standard from Ax + By = C, where A, B, and C are integers
and A > 0.
2
Some would argue that it is useful to memorize that the line Ax + By = C has slope m = −A/B
and the y-coordinate of the y-intercept is b = C/B. If you memorize these facts, then you can quickly
determine that the slope of the line 3x + 4y = 12 is m = −A/B = −3/4 and the y-coordinate of the
y-intercept is b = C/B = 12/4 = 3.
Version: Fall 2007
278
Chapter 3
Linear Functions
5
y
∆x=4
P (0,3)
∆y=−3
5
Q(4,0)
x
Figure 6. The graph
of 3x + 4y = 12.
We’re requested to place the equation y = (3/2)x − 1 in the form Ax + By = C,
where A, B, and C are integers, so let’s begin by clearing fractions from the equation.
Multiply both sides of the equation by the common denominator 2.
3
y = x−1
2
3
x−1
2y = 2
2
2y = 3x − 2
Now, subtract 2y from both sides of the equation, then add 2 to both sides of the
equation to obtain
2 = 3x − 2y,
or equivalently,
3x − 2y = 2.
Note that this last result is in standard form Ax + By = C, where A, B, and C are
integers and A > 0. 3
Intercepts
We now know that the graph of the equation Ax + By = C, where A, B, and C are
constants, is a line. Because the graph of Ax + By = C is a line, to draw the graph of
the line, we need only find two points that satisfy the equation, plot them, then draw
a line through them. Our two favorite points to work with are the x- and y-intercepts,
because each involves the number zero, an easy number to work with.
3
This is a traditional request. When placing a linear function in the form Ax + By = C, we will always
require that A, B, and C be integers and that A > 0.
Version: Fall 2007
Section 3.3
Equations of Lines
279
Consider the graph in Figure 7(a). Note that the graph passes through the x-axis
three times. The points where the graph intercepts the x-axis are called x-intercepts.
Note that each of these points has a defining value in common: the y-value of each of
these x-intercepts is equal to zero.
y
y
(0,3)
(0,1)
(−3,0)
(1,0)
(3,0)
x
x
(0,−3)
(a) x-intercepts.
(b) y-intercepts.
Figure 7.
How to Find an x-intercept. To find an x intercept, let y = 0 in the equation
and solve for x.
On the other hand, consider the graph in Figure 7(b). Note that this is not a
function (fails the vertical line test) but the graph intercepts the y-axis three separate
times. The points where the graph intercepts the y-axis are called y-intercepts. Note
that each of the y-intercepts in Figure 7(b) has a defining value in common: the
x-value of each of the y-intercepts is equal to zero.
How to Find a y-intercept. To find a y-intercept, let x = 0 in the equation
and solve for y.
Let’s put what we’ve learned into practice.
I Example 13.
Sketch the graph of 3x + 4y = 12.
We drew the graph of the equation 3x + 4y = 12 in Figure 6. There we solved the
equation for y to determine the slope and the y-intercept. These, in turn, were used to
draw the graph of 3x + 4y = 12 in Figure 6.
Here, our approach will be different. We will first determine the x- and y-intercepts,
plot them, then draw a line through these intercepts. Hopefully, we will get a result
that matches that in Figure 6.
To find the x-intercept, let y = 0 in 3x + 4y = 12 and solve for x.
Version: Fall 2007
280
Chapter 3
Linear Functions
3x + 4y = 12
3x + 4(0) = 12
3x = 12
x=4
Hence, the x-intercept is the point Q(4, 0). To find the y-intercept, let x = 0 in
3x + 4y = 12 and solve for y.
3x + 4y
3(0) + 4y
4y
y
= 12
= 12
= 12
=3
Hence, the y-intercept is the point P (0, 3). In Figure 8, we’ve plotted both x- and
y-intercepts and drawn a line through them. Note that the resulting line in Figure 8
matches the same line drawn in Figure 6 (where we used a different method).
5
y
P (0,3)
5
Q(4,0)
x
Figure 8. Plotting
the x- and y-intercepts.
We recommend that whenever the line is given in Standard Form Ax + By = C, find
the x- and y-intercepts, plot them, then draw a line through them. This technique is
quite efficient because working with the number zero greatly simplifies the calculations.
Horizontal and Vertical Lines
We’ve introduced the standard form of the line Ax + By = C. The case where A and
B are simultaneously equal to zero is not very interesting. 4 However, the following two
cases are of interest.
4
In the case of 0x + 0y = C, where C is non zero, there are no points satisfying this equation. Hence, no
graph. In the case 0x + 0y = 0, all points in the plane satisfy this equation, so the graph would consist
of every point in the Cartesian plane.
Version: Fall 2007
Section 3.3
Equations of Lines
281
1. If we let A = 0 and B 6= 0 in the standard form Ax + By = C, then By = C, or
equivalently y = C/B. Note that this has the form y = b, where b is some constant.
2. Similarly, if we let B = 0 and A 6= 0 in the standard form Ax + By = C, then
Ax = C, or equivalently, x = C/A. Note that this has the form x = a, where a is
some constant.
The lines having the form x = a and y = b are two of the easiest lines to plot. Let’s
look at an example of each.
I Example 14.
Sketch the graph of the equation x = 3.
The direction “sketch the graph of the equation x = 3” can be quite vexing unless
one remembers that a graph of an equation is the set of all points that satisfy the
equation. Thus, the direction is better posed if we say “sketch the set of all points
(x, y) that satisfy x = 3,” or equivalently, “sketch the set of all points (x, y) that have
an x-value of 3.” Then it is an easy matter to sketch the vertical line shown in Figure 9.
5
y
5
x
x=3
Figure 9. The graph
of the equation x = 3.
Note that each point on the line has an x-value equal to 3. Also, note that the slope
of this vertical line is undefined.
I Example 15.
Sketch the graph of the equation y = 3.
This direction is better posed if we say “sketch the set of all points (x, y) that satisfy
y = 3,” or equivalently, “sketch the set of all points (x, y) that have a y-value of 3.”
Then it is an easy matter to sketch the horizontal line shown in Figure 10.
Note that each point on the line has a y-value equal to 3. Also, note that this
horizontal line has slope zero.
Two final comments are in order. Because the line in Figure 10 has slope zero
and y-intercept (0, 3), we can insert m = 0 and b = 3 into the slope intercept form
y = mx + b and obtain
y = 0x + 3,
Version: Fall 2007
282
Chapter 3
Linear Functions
5
y
y=3
5
Figure 10.
tion y = 3.
x
The graph of the equa-
which of course, is equivalent to y = 3. However, the vertical line shown in Figure 9
has “undefined” slope, so this approach is unavailable. We must simply recognize that
the vertical line in Figure 9 consists of all points having an x-value equal to 3, and
then intuit that its equation is x = 3.
Version: Fall 2007