Understanding Line Equations and Slopes
Understanding Line Equations and Slopes
UNIT 2
UNIT 2: LINES
Unit Objectives
At the end of this unit, we will be able to:
1. define and determine the slope of a line from any two points;
2. determine the equation of a line from a given point and a given slope;
3. determine the equation of a line from a given slope and 𝑦𝑦-intercept;
4. distinguish between equation of vertical lines from horizontal lines; and
5. determine the equations of parallel and perpendicular lines.
Objectives
By the end of this session, you should be able to:
(a)
𝑦𝑦
𝑥𝑥
𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 2.1.2
If a line lies in a coordinate plane, then the run is the change in the 𝑥𝑥-
coordinate and the rise is the corresponding change in the 𝑦𝑦-coordinate
between any two points on the line, as we can see in in the image labelled
Figure 2 and our sketch Figure 1.12. This gives us the following definition of a
slope.
The slope is independent of which two points we choose on the line if we use
that line to draw any triangle. We can see that this is true from the similar
triangles below.
𝑦𝑦2 − 𝑦𝑦1 𝑦𝑦2′ − 𝑦𝑦1′
=
𝑥𝑥2 − 𝑥𝑥1 𝑥𝑥2′ − 𝑥𝑥1′
40 CoDEUCC/BEd/BSc Information Technology
LINES UNIT 2
SESSION 1
It is important to note that, lines with positive slopes slant upward to the right,
whereas lines that have negative slopes slant downward to the right.
Solution 1.3.1
It is helpful to make a sketch of the points in a 𝑥𝑥 − 𝑦𝑦 cartesian coordinates. We
will leave the sketch as an exercise for the learners.
Any two points are enough to determine or sketch of a straight line, since only
one line passes through those two points.
This result says that for every 3 units we move to the right, the line rises 2
units. We urge the learners to draw or make a sketch of the line.
1. Find the slope of the line that passes through the points 𝐴𝐴(2, 1) and
B(3, 4).
2. Find the slope of the line that passes through the points 𝑀𝑀(2, 6) and
N(3, 8).
Self-Assessment Question
Exercise 2.1
1. What is the slope of the line through 𝑃𝑃 and 𝑄𝑄 in the following
examples?
a. 𝑃𝑃(0, 0), 𝑄𝑄(4, 2)
b. 𝑃𝑃(2, 2), 𝑄𝑄(−10, 0)
c. 𝑃𝑃(1, 2), 𝑄𝑄(3, 3)
d. 𝑃𝑃(2, −5), 𝑄𝑄(−4, 3)
e. 𝑃𝑃(−1, −4), 𝑄𝑄(6, 0)
Objectives
By the end of the session, you should be able to:
(a)
Let us begin...
A point 𝑃𝑃(𝑥𝑥, 𝑦𝑦) with 𝑥𝑥 ≠ 𝑥𝑥1 lies on this line if and only if the slope of the line
that passes through point 𝑃𝑃1 and point 𝑃𝑃 is equal to 𝑚𝑚, (see Figure 2.2.2.), that
is,
𝑦𝑦 − 𝑦𝑦1
= 𝑚𝑚
𝑥𝑥 − 𝑥𝑥1
𝑦𝑦
𝑃𝑃(𝑥𝑥, 𝑦𝑦)
𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅
𝑦𝑦 − 𝑦𝑦1
𝑅𝑅𝑅𝑅𝑅𝑅 𝑥𝑥 − 𝑥𝑥1
0 𝑥𝑥
𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 2.2.2.
can be rewritten in the form 𝑦𝑦 − 𝑦𝑦1 = 𝑚𝑚(𝑥𝑥 − 𝑥𝑥1 ); note that the equation is also
satisfied when 𝑥𝑥 = 𝑥𝑥1 and 𝑦𝑦 = 𝑦𝑦1 . Therefore, it is an equation of the given
line.
Definition:
An equation of the line that passes through the point (𝑥𝑥1 , 𝑦𝑦1 ) and has a slope 𝑚𝑚
is defined by,
𝑦𝑦 − 𝑦𝑦1 = 𝑚𝑚(𝑥𝑥 − 𝑥𝑥1 )
2.2 Finding the Equation of a Line with Given Point and Slope
Example 2.2.1
1
a. Find an equation of the line through (1, −3) with slope − .
2
b. Sketch the line.
Solution 2.2.1
1
a) We will use the point-slope form with 𝑚𝑚 = − , 𝑥𝑥1 = 1, and 𝑦𝑦1 = −3. We
2
obtain an equation of the line as follows:
1
The 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆 𝑚𝑚 = − 2, and the point (1, −3)
1
𝑦𝑦 − (−3) = − (𝑥𝑥 − 1)
2
We rearrange to obtain,
𝑥𝑥 + 2𝑦𝑦 + 5 = 0
Example 2.2.2
Determine the equation of the line that passes through the point (5, 2) with a
slope −3.
We begin by subtracting the given 𝑥𝑥1 = 5 and 𝑦𝑦1 = 2 coordinates of the given
point from the general point (𝑥𝑥, 𝑦𝑦)
𝑦𝑦 − 2 = −3(𝑥𝑥 − 5)
3𝑥𝑥 + 𝑦𝑦 − 17 = 0
Solution 2.3.1
We have not been given the slope of the line. We need to determine the slope
of the line through the two given points.
3𝑥𝑥 + 2𝑦𝑦 − 4 + 3 = 0
3𝑥𝑥 + 2𝑦𝑦 − 1 = 0
Example 2.3.2
Find the equation of the line through the points (3, 5) and (4, 7).
Solution 2.3.2
We obtain the slope as follows:
7−5 2
𝑚𝑚 = = =2
4−3 1
First approach:
We use any one of the points and the slope to determine the equation of the
line.
Using the point (3, 5), with slope 2, we obtain
𝑦𝑦 − 5 = 2(𝑥𝑥 − 3)
We expand to obtain,
𝑦𝑦 − 5 = 2𝑥𝑥 − 6
2𝑥𝑥 − 𝑦𝑦 − 6 + 5 = 0
2𝑥𝑥 − 𝑦𝑦 − 1 = 0
Second Approach:
Using the point (4, 7), with slope 2 we obtain
𝑦𝑦 − 7 = 2(𝑥𝑥 − 4)
We expand to obtain,
𝑦𝑦 − 7 = 2𝑥𝑥 − 8
2𝑥𝑥 − 𝑦𝑦 − 8 + 7 = 0
2𝑥𝑥 − 𝑦𝑦 − 1 = 0
1. Find the equation of the line that passes through the points (2, −4) and
has a slope −3.
2. What is the equation of the line that goes through (2, 1) and (3, 4)?
Self-Assessment Question
Exercise 2.2
1. Find the equation of the line that passes through the given point and the
given slope in the following:
a. Through (2, 3); slope 5
b. Through (−1, 4); slope −1
2
c. Through (1, 7); slope 3
7
d. Through (−3, −5); slope − 2
2
e. Through (3, −5) ; slope 5
Objectives
By the end of the session, you should be able to:
(a)
Suppose a nonvertical line has a slope 𝑚𝑚 and 𝑦𝑦-intercept 𝑏𝑏 (see Figure 1.3.0.).
This means that the line intersects the 𝑦𝑦-axis at the point (0, 𝑏𝑏), so the point-
slope form of the equation of the line, with 𝑥𝑥 = 0 and 𝑦𝑦 = 𝑏𝑏, becomes,
𝑦𝑦 − 𝑏𝑏 = 𝑚𝑚(𝑥𝑥 − 0)
(0, 𝑏𝑏)
𝑦𝑦 = 𝑚𝑚𝑚𝑚 + 𝑏𝑏
0
𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 2.3.0. 𝑥𝑥
Definition:
An equation of the line that has slope 𝑚𝑚 and 𝑦𝑦-intercept 𝑏𝑏 is defined by,
𝑦𝑦 = 𝑚𝑚𝑚𝑚 + 𝑏𝑏
Solution 3.1.1
a) We have been given the slope 𝑚𝑚 = 3, and the 𝑦𝑦-intercept 𝑏𝑏 = −2.
From the slope-intercept form of the equation of a line, we get,
𝑦𝑦 = 3𝑥𝑥 − 2
b) This time, we have been given the equation of the line, and we are to
determine the slope and the 𝑦𝑦-intercept from the equation.
3𝑦𝑦 − 2𝑥𝑥 = 1
3𝑦𝑦 + 0 = 2𝑥𝑥 + 1
2 1
𝑦𝑦 = 𝑥𝑥 +
3 3
It is now in the form,
𝑦𝑦 = 𝑚𝑚𝑚𝑚 + 𝑏𝑏
2 1
Where 𝑚𝑚 = 3 and 𝑏𝑏 = 3
2 1
Therefore, the slope 𝑚𝑚 = 3 and the 𝑦𝑦-intercept is 3.
Solution 3.1.2
a) We have been given the slope 𝑚𝑚 = −5, and the 𝑦𝑦-intercept 𝑏𝑏 = 4.
From the slope-intercept form of the equation of a line, we get,
𝑦𝑦 = 4 − 5𝑥𝑥
b) Again, we have been given the equation of the line, and we are to
determine the slope and the 𝑦𝑦-intercept from the equation.
2𝑦𝑦 + 4𝑥𝑥 = 12
2𝑦𝑦 + 0 = 12 − 4𝑥𝑥
𝑦𝑦 = −(2𝑥𝑥 − 6)
Where 𝑚𝑚 = −2 and 𝑏𝑏 = 6
Find the equation of the line with slope 5 and an intercept on the 𝑦𝑦-axis −3
Summary please
Self-Assessments Questions
Exercise 2.3
1. Find the equation of the line that has the following conditions:
a. 𝑦𝑦-intercept −2 and slope 3
2
b. 𝑦𝑦-intercept 4 and slope 5
c. 𝑦𝑦-intercept 2 and slope −3
d. 𝑦𝑦-intercept 4 and slope 2
e. 𝑦𝑦-intercept 3 and slope −5
2. Find the 𝑦𝑦-intercepts and the slopes of the following equations of lines:
a. 𝑥𝑥 + 3𝑦𝑦 = 0
b. 3𝑥𝑥 − 4𝑦𝑦 − 12 = 0
c. 3𝑥𝑥 + 4𝑦𝑦 − 1 = 0
d. 4𝑥𝑥 + 5𝑦𝑦 − 10 = 0
e. −3𝑥𝑥 − 5𝑦𝑦 + 30 = 0
Objectives
By the end of the session, you should be able to:
(a)
A vertical line does not have a slope, but we can write its equation as 𝑥𝑥 = 𝑎𝑎,
where 𝑎𝑎 is its 𝑥𝑥-intercept, because the 𝑥𝑥-coordinate of every point on the line is
𝑎𝑎.
Self-Assessments Questions
Exercise 2.4
1. Write the equation for the vertical line that passes through the point
(−3, 7)
2. Write the equation for the horizontal line that passes through the point
(2, −5)
3. Write the equation for the vertical line that has an intercept at 𝑥𝑥 = −12
4. Write the equation for the horizontal line that has an intercept at 𝑦𝑦 = 9
Objectives
By the end of the session, you should be able to:
(a)
Where 𝐴𝐴, 𝐵𝐵 and 𝐶𝐶 are constants and 𝐴𝐴 and 𝐵𝐵 are not both 0. The equation of a
line is a linear equation:
A nonvertical line has the equation 𝑦𝑦 = 𝑚𝑚𝑚𝑚 + 𝑏𝑏 or −𝑚𝑚𝑚𝑚 + 𝑦𝑦 − 𝑏𝑏 = 0, which
is a linear equation with 𝐴𝐴 = −𝑚𝑚, 𝐵𝐵 = 1, and 𝐶𝐶 = −𝑏𝑏.
A vertical line has the equation 𝑥𝑥 = 𝑎𝑎 or 𝑥𝑥 − 𝑎𝑎 = 0, which is a linear
equation with values for 𝐴𝐴 = 1, 𝐵𝐵 = 0, and 𝐶𝐶 = −𝑎𝑎
Conversely, the graph of a linear equation is a line.
If 𝐵𝐵 ≠ 0 the equation becomes,
𝐴𝐴 𝐶𝐶
𝑦𝑦 = − 𝑥𝑥 −
𝐵𝐵 𝐵𝐵
And this is the slope-intercept form of the equation of a line (with 𝑚𝑚 = −𝐴𝐴/𝐵𝐵
and 𝑏𝑏 = −𝐶𝐶/𝐵𝐵).
With these points, (6, 0) and (0, −4), we can sketch the graph as follows:
Alternative Solution:
We write the equation in slope-intercept form:
2𝑥𝑥 − 3𝑦𝑦 − 12 = 0
2𝑥𝑥 − 3𝑦𝑦 = 12
−3𝑦𝑦 = 12 − 2𝑥𝑥
To sketch the graph, we plot 𝑦𝑦-intercept and then move 3 units to the right and
2 units up as shown in the image below.
Self-Assessments Question
Exercise 2.5
1. Identify the following types of equations:
a. 𝑃𝑃𝑃𝑃 + 𝑄𝑄𝑄𝑄 + 𝑅𝑅 = 0
b. 𝑦𝑦 = 𝑝𝑝𝑝𝑝 + 𝑞𝑞 or 𝑦𝑦 − 𝑝𝑝𝑝𝑝 − 𝑞𝑞 = 0
c. 𝑥𝑥 = 𝑝𝑝 or 𝑥𝑥 − 𝑝𝑝 = 0
d. 𝑦𝑦 = 𝑝𝑝 or 𝑦𝑦 − 𝑝𝑝 = 0
Objectives
By the end of the session, you should be able to:
(a)
The Proof:
Let the lines 𝑙𝑙1 and 𝑙𝑙2 represent any two lines with slope 𝑚𝑚1 and 𝑚𝑚2 . If the
lines are parallel, then we can draw any right-angled triangle on each line. For
example, a triangle 𝐴𝐴𝐴𝐴𝐴𝐴 on line 𝑙𝑙1 will be similar to another right-angled
triangle on 𝐸𝐸𝐸𝐸𝐸𝐸 on line 𝑙𝑙2 (see Figure 13) below.
We have proved that two parallel lines have the same slope.
One the other hand, if the slopes are equal, then the triangles will be similar, so
∠𝐵𝐵𝐵𝐵𝐵𝐵 = ∠𝐸𝐸𝐸𝐸𝐸𝐸 and the lines are parallel.
Solution 6.3.1
First, we will write the given equation of the line in the slope-intercept form,
𝑦𝑦 = 𝑚𝑚𝑚𝑚 + 𝑏𝑏.
6𝑦𝑦 = −4𝑥𝑥 − 5
2 5
𝑦𝑦 = − 𝑥𝑥 −
3 6
2
The given line has slope 𝑚𝑚 = − 3.
From the point-slope form of the equation of a line, we use the given point
2
(5, 2) and the slope 𝑚𝑚 = − 3 to get,
2
𝑦𝑦 − 2 = − (𝑥𝑥 − 5)
3
2𝑥𝑥 + 3𝑦𝑦 − 16 = 0
Two lines with slopes 𝑚𝑚1 and 𝑚𝑚2 are perpendicular if and only if 𝑚𝑚1 𝑚𝑚2 =
−1, that is, their slopes are negative reciprocals:
1
𝑚𝑚1 = −
𝑚𝑚2
If the lines 𝑙𝑙1 and 𝑙𝑙2 have slopes 𝑚𝑚1 and 𝑚𝑚2 , then their equations are 𝑦𝑦 = 𝑚𝑚1 𝑥𝑥
and 𝑦𝑦 = 𝑚𝑚2 𝑥𝑥. Notice that 𝐴𝐴(1, 𝑚𝑚1 ) lies on 𝑙𝑙1 and 𝐵𝐵(1, 𝑚𝑚2 ) lies on 𝑙𝑙2 . By the
Pythagorean Theorem and its converse, (which we shall state soon), 𝑂𝑂𝑂𝑂 is
perpendicular to 𝑂𝑂𝑂𝑂 if and only if,
[𝑑𝑑(𝑂𝑂, 𝐴𝐴)]2 + [𝑑𝑑(𝑂𝑂, 𝐵𝐵)]2 = [𝑑𝑑(𝐴𝐴, 𝐵𝐵)]2
2 = −2𝑚𝑚1 𝑚𝑚2
𝑚𝑚1 𝑚𝑚2 = −1
Example 6.4.1
Show that the points 𝑃𝑃(3, 3), 𝑄𝑄(8, 17), and 𝑅𝑅(11, 5) are the vertices of a right
triangle.
Solution 6.4.1
We proceed by finding the slopes for the sides, say side 𝑃𝑃𝑃𝑃, 𝑃𝑃𝑃𝑃 and 𝑄𝑄𝑄𝑄
(5 − 17) −12
𝑚𝑚3 = = = −4
11 − 8 3
1
We have the slopes 𝑚𝑚2 = 4 and 𝑚𝑚3 = −4
1
𝑚𝑚2 𝑚𝑚3 = × (−4) = −1
4
It means the lines 𝑃𝑃𝑃𝑃 and 𝑄𝑄𝑄𝑄 are perpendicular, hence the points 𝑃𝑃(3, 3),
𝑄𝑄(8, 17) and 𝑅𝑅(11, 5) are the vertices of a right-angled triangle.
Solution 6.5.1
We have seen this equation before: 4𝑥𝑥 + 6𝑦𝑦 + 5 = 0.
Also, we have been informed that the line passes through the origin, (0, 0)
3
𝑦𝑦 − 0 = (𝑥𝑥 − 0)
2
3
𝑦𝑦 = 𝑥𝑥
2
Self-Assessments Questions
Exercise 2.6
1. Find the equation of the line that passes through the point (3, 2) and is
parallel to the line 2𝑥𝑥 + 4𝑦𝑦 − 6 = 0.
2. Find the equation of the line that passes through the point (2, 3) and is
parallel to the line 2𝑦𝑦 − 4𝑥𝑥 + 6 = 0.
3. Find the equation of the line that is perpendicular to the line 2𝑦𝑦 −
8𝑥𝑥 + 4 = 0 and passes through the point (3, 4).
4. Find the equation of the line that is perpendicular to the line 3𝑦𝑦 − 6𝑥𝑥 +
2 = 0 and passes through the point (2, 3)/
5. Find the equation of the line that is perpendicular to the line 12𝑥𝑥 −
3𝑦𝑦 + 2 = 0 and passes through the point (5, −3).