Math Core

Lesson 3.3 · Parallel and Perpendicular Lines

Slopes of parallel and perpendicular lines

Angle measures are one way to tell whether lines are parallel. On the coordinate plane there is a faster way: compare slopes. With slopes you can decide whether two lines are parallel or perpendicular using nothing but arithmetic, which turns many geometry questions into quick calculations.

Slope review

The slope of a nonvertical line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is

m=riserun=y2−y1x2−x1.m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}.

A line rising from left to right has positive slope; a falling line has negative slope. A horizontal line has slope 00, and a vertical line has undefined slope, because its run is 00. When a line is written as y=mx+by = mx + b, its slope is mm. If it's written another way, such as 4x−2y=64x - 2y = 6, solve for yy first: y=2x−3y = 2x - 3, so the slope is 22.

Parallel lines

Picture a slope triangle on a line: go right 33, up 22. If you slide (translate) that line anywhere in the plane, every slope triangle slides with it, so the new line still goes right 33, up 22. Parallel lines are exactly the lines you can get this way, so they have the same slope.

Both lines have slope 2/3: from each marked point, right 3 and up 2 reaches the next.Open in grapher →

Slopes of parallel lines

Two distinct nonvertical lines are parallel if and only if they have the same slope.

Any two distinct vertical lines are parallel.

The word distinct matters. The equations y=2x+1y = 2x + 1 and 4x−2y=−24x - 2y = -2 have the same slope, but the second one simplifies to y=2x+1y = 2x + 1 as well, so they describe the same line, not two parallel lines.

Perpendicular lines

Now rotate a line 90∘90^\circ counterclockwise about a point on it. A slope triangle with run aa and rise bb turns into a triangle with run −b-b and rise aa. (Rotating the point (a,b)(a, b) by 90∘90^\circ about the origin gives (−b,a)(-b, a).) So the original slope is ba\dfrac{b}{a}, and the slope of the perpendicular line is

a−b=−ab.\frac{a}{-b} = -\frac{a}{b}.

Flip the fraction, then change its sign. Multiplying the two slopes gives ba⋅(−ab)=−1\dfrac{b}{a} \cdot \left(-\dfrac{a}{b}\right) = -1.

Slopes 2 and −1/2 multiply to −1, so the lines are perpendicular. They meet at (2, 3).Open in grapher →

Slopes of perpendicular lines

Two nonvertical lines are perpendicular if and only if their slopes are opposite reciprocals, meaning their product is −1-1:

m1⋅m2=−1.m_1 \cdot m_2 = -1.

A vertical line and a horizontal line are always perpendicular.

Some opposite-reciprocal pairs: 33 and −13-\dfrac{1}{3}; −45-\dfrac{4}{5} and 54\dfrac{5}{4}; 11 and −1-1.

Worked example: Classifying pairs of lines

Decide whether each pair of lines is parallel, perpendicular or neither.

  1. y=3x−2y = 3x - 2 and 6x−2y=106x - 2y = 10
  2. 2x+5y=52x + 5y = 5 and y=52x+1y = \dfrac{5}{2}x + 1
  3. y=4xy = 4x and y=−4x+7y = -4x + 7

Solutions.

  1. Solve the second equation for yy: −2y=−6x+10-2y = -6x + 10, so y=3x−5y = 3x - 5. Both slopes are 33 and the yy-intercepts differ (−2-2 and −5-5), so the lines are parallel.
  2. Solve the first equation for yy: 5y=−2x+55y = -2x + 5, so y=−25x+1y = -\dfrac{2}{5}x + 1. The slopes are −25-\dfrac{2}{5} and 52\dfrac{5}{2}, and −25⋅52=−1-\dfrac{2}{5} \cdot \dfrac{5}{2} = -1, so the lines are perpendicular.
  3. The slopes are 44 and −4-4. They aren't equal, and their product is −16-16, not −1-1. The lines are neither. (Changing the sign without flipping isn't enough.)

Worked example: Lines through given points

Line AB↔\overleftrightarrow{AB} passes through A(−2,1)A(-2, 1) and B(2,7)B(2, 7). Line CD↔\overleftrightarrow{CD} passes through C(1,−3)C(1, -3) and D(7,−7)D(7, -7). Are the lines parallel, perpendicular or neither?

mAB=7−12−(−2)=64=32,mCD=−7−(−3)7−1=−46=−23.m_{AB} = \frac{7 - 1}{2 - (-2)} = \frac{6}{4} = \frac{3}{2}, \qquad m_{CD} = \frac{-7 - (-3)}{7 - 1} = \frac{-4}{6} = -\frac{2}{3}.

Since 32⋅(−23)=−1\dfrac{3}{2} \cdot \left(-\dfrac{2}{3}\right) = -1, the lines are perpendicular.

Worked example: Is it a right triangle?

Triangle PQRPQR has vertices P(1,1)P(1, 1), Q(4,5)Q(4, 5) and R(8,2)R(8, 2). Is it a right triangle? If so, which angle is the right angle?

Find the slope of each side:

mPQ=5−14−1=43,mQR=2−58−4=−34,mPR=2−18−1=17.m_{PQ} = \frac{5 - 1}{4 - 1} = \frac{4}{3}, \qquad m_{QR} = \frac{2 - 5}{8 - 4} = -\frac{3}{4}, \qquad m_{PR} = \frac{2 - 1}{8 - 1} = \frac{1}{7}.

43⋅(−34)=−1\dfrac{4}{3} \cdot \left(-\dfrac{3}{4}\right) = -1, so PQ‾⊥QR‾\overline{PQ} \perp \overline{QR}. The two sides meet at QQ, so ∠Q\angle Q is a right angle and △PQR\triangle PQR is a right triangle.

Worked example: Finding an unknown coordinate

The line through (1,k)(1, k) and (4,5)(4, 5) is perpendicular to the line 3x−2y=73x - 2y = 7. Find kk.

First find the slope of the given line: −2y=−3x+7-2y = -3x + 7, so y=32x−72y = \dfrac{3}{2}x - \dfrac{7}{2}, with slope 32\dfrac{3}{2}. A perpendicular line has slope −23-\dfrac{2}{3}. Set the slope formula equal to it:

5−k4−1=−235−k=−2k=7\begin{aligned} \frac{5 - k}{4 - 1} &= -\frac{2}{3} \\ 5 - k &= -2 \\ k &= 7 \end{aligned}

Check: the slope from (1,7)(1, 7) to (4,5)(4, 5) is 5−73=−23\dfrac{5 - 7}{3} = -\dfrac{2}{3}. ✓

Common mistake

An opposite reciprocal needs both steps: flip the fraction and change the sign. The perpendicular slope to 23\dfrac{2}{3} is −32-\dfrac{3}{2}, not 32\dfrac{3}{2} and not −23-\dfrac{2}{3}. Also watch the special case: a line perpendicular to a horizontal line (slope 00) is vertical, with undefined slope, since 00 has no reciprocal.

Tip

Slopes let you classify quadrilaterals on the coordinate plane. If both pairs of opposite sides have equal slopes, the figure is a parallelogram. If, in addition, adjacent sides have slopes that multiply to −1-1, it is a rectangle.

Practice

Practice 1

What is the slope of any line parallel to y=−4x+9y = -4x + 9?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

What is the slope of any line perpendicular to y=35x−2y = \dfrac{3}{5}x - 2?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

What is the slope of any line perpendicular to 4x−3y=124x - 3y = 12?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Classify the lines 2x+y=72x + y = 7 and x−2y=4x - 2y = 4.

Practice 5

Line jj passes through (0,3)(0, 3) and (4,5)(4, 5). Line kk passes through (−1,−2)(-1, -2) and (3,0)(3, 0). Classify the lines.

Practice 6

The line through (k,2)(k, 2) and (3,8)(3, 8) is parallel to y=3x−1y = 3x - 1. Find kk.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Triangle JKLJKL has vertices J(−2,1)J(-2, 1), K(1,4)K(1, 4) and L(4,1)L(4, 1). Which angle, if any, is a right angle?

Practice 8

A parallelogram is a quadrilateral with both pairs of opposite sides parallel, and a rectangle is a parallelogram with four right angles. Quadrilateral ABCDABCD has vertices A(0,0)A(0, 0), B(4,1)B(4, 1), C(5,5)C(5, 5) and D(1,4)D(1, 4). Which best describes it?