Sub topic 5
Parallel Lines Have Equal Slopes
Prerequisites and the main idea
Assume you can plot points on a coordinate plane, calculate slope, work with fractions, and solve linear equations.
Parallel lines are lines in the same plane that never meet. They keep the same direction, so they rise and run at the same rate. This gives the algebraic test:
- Nonvertical lines are parallel if and only if they have equal slopes.
- Equal slopes can also mean the lines are the same line.
- To prove that two equal-slope lines are distinct parallel lines, compare their equations or a point on each line.
Why equal slopes mean parallel lines
The slope of a line measures its change in \(y\) divided by its change in \(x\):
\[ m=\frac{y2-y1}{x2-x1} \]
Suppose a line has slope \(2\). For every increase of \(1\) in \(x\), \(y\) increases by \(2\). Any other line with slope \(2\) follows the same direction. If the second line starts at a different height, the two lines remain the same distance apart and never intersect.
For example:
\[ y=2x+1 \]
and
\[ y=2x-5 \]
both have slope \(2\). Their \(y\)-intercepts differ, so they are distinct parallel lines.
In slope-intercept form,
\[ y=mx+b \]
the number \(m\) is the slope and \(b\) is the \(y\)-intercept. Therefore, two lines in this form are distinct and parallel when their \(m\) values are equal and their \(b\) values are different.
| Line | Slope | \(y\)-intercept | Relationship |
|---|---|---|---|
| \(y=3x+2\) | \(3\) | \(2\) | |
| \(y=3x-4\) | \(3\) | \(-4\) | Parallel |
Finding a slope from two points
Use the slope formula carefully. Subtract the \(y\)-coordinates in the same order as the \(x\)-coordinates:
\[ m=\frac{y2-y1}{x2-x1} \]
For \(P=(2,1)\) and \(Q=(6,9)\),
\[ m=\frac{9-1}{6-2}=\frac{8}{4}=2 \]
For \(R=(-1,4)\) and \(S=(3,12)\),
\[ m=\frac{12-4}{3-(-1)}=\frac{8}{4}=2 \]
The lines through these pairs of points have equal slopes. Unless they are the same line, they are parallel.
from fractions import Fraction
def slope(p, q):
(x1, y1), (x2, y2) = p, q
if x1 == x2:
return None # vertical line
return Fraction(y2 - y1, x2 - x1)
line_one = slope((2, 1), (6, 9))
line_two = slope((-1, 4), (3, 12))
print(line_one) # 2
print(line_two) # 2
print(line_one == line_two) # TrueOther equation forms
A line may be written in standard form:
\[ Ax+By=C \]
When \(B\neq 0\), solve for \(y\):
\[ By=-Ax+C \]
\[ y=-\frac{A}{B}x+\frac{C}{B} \]
Therefore, the slope is \(-A/B\). For example:
\[ 4x+2y=7 \]
has slope
\[ -\frac{4}{2}=-2 \]
The line
\[ 6x+3y=10 \]
also has slope
\[ -\frac{6}{3}=-2 \]
The equations have different constants, so they represent distinct parallel lines.
A geometric view
A translation moves a line without rotating it. Because translation preserves direction, the slope stays unchanged. This is why a family of parallel lines can be represented by one slope and many different intercepts.
Exercise
Determine whether the lines through (1, -2), (5, 6) and through (-3, 4), (1, -4) are parallel, the same line, or neither. Explain using their slopes.
Show answer
The first slope is (6 - (-2)) / (5 - 1) = 8 / 4 = 2. The second slope is (-4 - 4) / (1 - (-3)) = -8 / 4 = -2. The slopes are not equal, so the lines are neither parallel nor the same line.