Slopes make it easy to answer geo­met­ric ques­tions with a lit­tle arith­metic. Are two lines par­al­lel? Do they meet at right angles? Do three points lie on one line? Is a quadri­lat­eral a par­al­lel­o­gram, a rec­tan­gle or a rhom­bus? This les­son gives the slope con­di­tions for par­al­lel and per­pen­dic­u­lar lines and uses them, together with the dis­tance for­mula, to answer all these ques­tions.

Par­al­lel lines

Two non-ver­ti­cal lines are par­al­lel exactly when they have the same incli­na­tion, and hence the same slope:

ℓ1∥ℓ2  ⟺  m1=m2\ell_1 \parallel \ell_2 \iff m_1 = m_2

Two ver­ti­cal lines are also par­al­lel to each other, even though nei­ther has a slope.

Per­pen­dic­u­lar lines

Two non-ver­ti­cal lines are per­pen­dic­u­lar exactly when the prod­uct of their slopes is −1-1:

ℓ1⊥ℓ2  ⟺  m1m2=−1,that is,m2=−1m1\displaystyle \ell_1 \perp \ell_2 \iff m_1 m_2 = -1, \quad \text{that is,} \quad m_2 = -\frac{1}{m_1}

Why. If ℓ1\ell_1 has incli­na­tion θ\theta (acute, say), then a line per­pen­dic­u­lar to it has incli­na­tion 90°+θ90° + \theta. Its slope is tan⁡(90°+θ)=−cot⁡θ=−1tan⁡θ=−1m1\displaystyle \tan(90° + \theta) = -\cot\theta = -\frac{1}{\tan\theta} = -\frac{1}{m_1}.

In words: the slope of a per­pen­dic­u­lar line is the neg­a­tive rec­i­p­ro­cal. For exam­ple, a line of slope 23\displaystyle \frac{2}{3} is per­pen­dic­u­lar to any line of slope −32\displaystyle -\frac{3}{2}.

A hor­i­zon­tal line (slope 00) and a ver­ti­cal line (no slope) are also per­pen­dic­u­lar; this case is not cov­ered by the for­mula.

Collinear points

Three points AA, BB, CC are collinear (lie on one straight line) exactly when the slope of ABAB equals the slope of BCBC. The two seg­ments then have the same steep­ness and share the point BB, so they lie on the same line.

Exam­ple 1

Show that A(1,1)A(1, 1), B(3,5)B(3, 5) and C(4,7)C(4, 7) are collinear.

slope of AB=5−13−1=2,slope of BC=7−54−3=2\displaystyle \text{slope of } AB = \frac{5 - 1}{3 - 1} = 2, \qquad \text{slope of } BC = \frac{7 - 5}{4 - 3} = 2

The slopes are equal and BB is com­mon, so the points are collinear.

Exam­ple 2

Show that A(1,2)A(1, 2), B(4,5)B(4, 5) and C(6,3)C(6, 3) are the ver­tices of a right-angled tri­an­gle.

slope of AB=5−24−1=1,slope of BC=3−56−4=−1\displaystyle \text{slope of } AB = \frac{5 - 2}{4 - 1} = 1, \qquad \text{slope of } BC = \frac{3 - 5}{6 - 4} = -1

Their prod­uct is 1×(−1)=−11 \times (-1) = -1, so AB⊥BCAB \perp BC. The tri­an­gle has a right angle at BB.

Exam­ple 3

The line through (2,k)(2, k) and (5,7)(5, 7) is (a) par­al­lel (b) per­pen­dic­u­lar to the line through (1,3)(1, 3) and (4,9)(4, 9). Find kk in each case.

The sec­ond line has slope 9−34−1=2\displaystyle \frac{9 - 3}{4 - 1} = 2. The first has slope 7−k5−2=7−k3\displaystyle \frac{7 - k}{5 - 2} = \frac{7 - k}{3}.

(a) Par­al­lel: 7−k3=2\displaystyle \frac{7 - k}{3} = 2, so 7−k=67 - k = 6 and k=1k = 1.

(b) Per­pen­dic­u­lar: 7−k3=−12\displaystyle \frac{7 - k}{3} = -\frac{1}{2}, so 7−k=−32\displaystyle 7 - k = -\frac{3}{2} and k=172\displaystyle k = \frac{17}{2}.

Test­ing quadri­lat­er­als

Slopes show which sides are par­al­lel or per­pen­dic­u­lar; the dis­tance for­mula shows which sides are equal. Recall that a par­al­lel­o­gram has both pairs of oppo­site sides par­al­lel, a rec­tan­gle is a par­al­lel­o­gram with a right angle, and a rhom­bus is a par­al­lel­o­gram with all sides equal (equiv­a­lently, with per­pen­dic­u­lar diag­o­nals).

Exam­ple 4

Show that A(0,0)A(0, 0), B(4,1)B(4, 1), C(6,4)C(6, 4), D(2,3)D(2, 3), taken in order, form a par­al­lel­o­gram.

slope AB=14,slope DC=4−36−2=14,slope AD=32,slope BC=4−16−4=32\displaystyle \text{slope } AB = \frac{1}{4}, \quad \text{slope } DC = \frac{4 - 3}{6 - 2} = \frac{1}{4}, \quad \text{slope } AD = \frac{3}{2}, \quad \text{slope } BC = \frac{4 - 1}{6 - 4} = \frac{3}{2}

Both pairs of oppo­site sides are par­al­lel, so ABCDABCD is a par­al­lel­o­gram. It is not a rec­tan­gle, because 14×32≠−1\displaystyle \frac{1}{4} \times \frac{3}{2} \neq -1, so adja­cent sides are not per­pen­dic­u­lar.

Exam­ple 5

Show that the line join­ing (2,−3)(2, -3) and (−5,1)(-5, 1) is par­al­lel to the line join­ing (7,−1)(7, -1) and (0,3)(0, 3).

The slopes are 1−(−3)−5−2=−47\displaystyle \frac{1 - (-3)}{-5 - 2} = -\frac{4}{7} and 3−(−1)0−7=−47\displaystyle \frac{3 - (-1)}{0 - 7} = -\frac{4}{7}. They are equal, so the lines are par­al­lel (they are not the same line, because the slope from (2,−3)(2, -3) to (7,−1)(7, -1) is 25\displaystyle \frac{2}{5}, which is dif­fer­ent).

Prac­tice

  1. Are lines with slopes 23\displaystyle \frac{2}{3} and −32\displaystyle -\frac{3}{2} per­pen­dic­u­lar?
  2. Is the line through (1,2)(1, 2) and (3,8)(3, 8) par­al­lel to the line through (0,−1)(0, -1) and (2,5)(2, 5)?
  3. Show that (−2,−1)(-2, -1), (0,3)(0, 3) and (2,7)(2, 7) are collinear.
  4. Find kk so that (1,2)(1, 2), (3,k)(3, k) and (5,10)(5, 10) are collinear.
  5. Show that A(2,1)A(2, 1), B(5,4)B(5, 4), C(7,2)C(7, 2) form a right-angled tri­an­gle, and say where the right angle is.
  6. The line through (3,k)(3, k) and (6,5)(6, 5) is per­pen­dic­u­lar to a line of slope 33. Find kk.
  7. The line through (k,1)(k, 1) and (2,4)(2, 4) is par­al­lel to the line through (0,0)(0, 0) and (3,6)(3, 6). Find kk.
  8. Show that A(1,0)A(1, 0), B(4,1)B(4, 1), C(5,4)C(5, 4), D(2,3)D(2, 3) form a par­al­lel­o­gram, and that its diag­o­nals are per­pen­dic­u­lar. What kind of par­al­lel­o­gram is it?

Answers

Show answers
  1. Yes: 23×(−32)=−1\displaystyle \frac{2}{3} \times \left(-\frac{3}{2}\right) = -1.
  2. Yes: both slopes are 33.
  3. The slopes of the two seg­ments are 3+10+2=2\displaystyle \frac{3 + 1}{0 + 2} = 2 and 7−32−0=2\displaystyle \frac{7 - 3}{2 - 0} = 2.
  4. The slope of the whole is 10−25−1=2\displaystyle \frac{10 - 2}{5 - 1} = 2, so k−23−1=2\displaystyle \frac{k - 2}{3 - 1} = 2 and k=6k = 6.
  5. Slope AB=1AB = 1 and slope BC=2−47−5=−1\displaystyle BC = \frac{2 - 4}{7 - 5} = -1; their prod­uct is −1-1, so the right angle is at BB.
  6. 5−k3=−13\displaystyle \frac{5 - k}{3} = -\frac{1}{3}, so 5−k=−15 - k = -1 and k=6k = 6.
  7. The sec­ond slope is 22, so 4−12−k=2\displaystyle \frac{4 - 1}{2 - k} = 2, giv­ing 3=4−2k3 = 4 - 2k and k=12\displaystyle k = \frac{1}{2}.
  8. The slopes of ABAB and DCDC are both 13\displaystyle \frac{1}{3}, and the slopes of BCBC and ADAD are both 33, so it is a par­al­lel­o­gram. Slope AC=44=1\displaystyle AC = \frac{4}{4} = 1 and slope BD=3−12−4=−1\displaystyle BD = \frac{3 - 1}{2 - 4} = -1, so the diag­o­nals are per­pen­dic­u­lar: it is a rhom­bus. (Indeed AB=BC=10AB = BC = \sqrt{10}.)