Two dif­fer­ent lines in a plane either meet at exactly one point or are par­al­lel. This les­son shows how to find the meet­ing point, how to mea­sure the angle between two lines, how to write down at once a line par­al­lel or per­pen­dic­u­lar to a given one, and how to tell whether three lines pass through a sin­gle point.

Point of inter­sec­tion

The point where two lines meet lies on both, so its coor­di­nates sat­isfy both equa­tions. Solve the two equa­tions simul­ta­ne­ously.

Exam­ple 1

Find the point of inter­sec­tion of 2x+3y=132x + 3y = 13 and x−y=−1x - y = -1.

From the sec­ond equa­tion, x=y−1x = y - 1. Sub­sti­tute into the first:

2(y−1)+3y=13  ⟹  5y=15  ⟹  y=32(y - 1) + 3y = 13 \implies 5y = 15 \implies y = 3

Then x=3−1=2x = 3 - 1 = 2. The lines meet at (2,3)(2, 3).

Angle between two lines

Let two non-ver­ti­cal lines have slopes m1m_1 and m2m_2, and let θ\theta be the acute angle between them. Then

tan⁡θ=∣m1−m21+m1m2∣\displaystyle \tan\theta = \left|\frac{m_1 - m_2}{1 + m_1 m_2}\right|

Why. If the incli­na­tions are θ1\theta_1 and θ2\theta_2, the angle between the lines is θ1−θ2\theta_1 - \theta_2 (or its sup­ple­ment), and

tan⁡(θ1−θ2)=tan⁡θ1−tan⁡θ21+tan⁡θ1tan⁡θ2=m1−m21+m1m2\displaystyle \tan(\theta_1 - \theta_2) = \frac{\tan\theta_1 - \tan\theta_2}{1 + \tan\theta_1\tan\theta_2} = \frac{m_1 - m_2}{1 + m_1 m_2}

Tak­ing the mod­u­lus gives the acute angle. The for­mula also shows the ear­lier con­di­tions again: the lines are par­al­lel when m1=m2m_1 = m_2 (so tan⁡θ=0\tan\theta = 0), and per­pen­dic­u­lar when 1+m1m2=01 + m_1 m_2 = 0 (so tan⁡θ\tan\theta is unde­fined and θ=90°\theta = 90°).

Exam­ple 2

Find the acute angle between y=2x+1y = 2x + 1 and y=−3x+4y = -3x + 4.

Here m1=2m_1 = 2 and m2=−3m_2 = -3:

tan⁡θ=∣2−(−3)1+(2)(−3)∣=∣5−5∣=1\displaystyle \tan\theta = \left|\frac{2 - (-3)}{1 + (2)(-3)}\right| = \left|\frac{5}{-5}\right| = 1

So θ=45°\theta = 45°.

Exam­ple 3

Find the acute angle between x−3y+1=0x - 3y + 1 = 0 and 2x−y+5=02x - y + 5 = 0.

The slopes are m1=−1−3=13\displaystyle m_1 = -\frac{1}{-3} = \frac{1}{3} and m2=−2−1=2\displaystyle m_2 = -\frac{2}{-1} = 2:

tan⁡θ=∣13−21+23∣=∣−5353∣=1,so θ=45°\displaystyle \tan\theta = \left|\frac{\frac{1}{3} - 2}{1 + \frac{2}{3}}\right| = \left|\frac{-\frac{5}{3}}{\frac{5}{3}}\right| = 1, \quad \text{so } \theta = 45°

Par­al­lel and per­pen­dic­u­lar lines in gen­eral form

For a1x+b1y+c1=0a_1x + b_1y + c_1 = 0 and a2x+b2y+c2=0a_2x + b_2y + c_2 = 0, com­par­ing slopes −a1b1\displaystyle -\frac{a_1}{b_1} and −a2b2\displaystyle -\frac{a_2}{b_2} gives:

  • Par­al­lel when a1a2=b1b2\displaystyle \frac{a_1}{a_2} = \frac{b_1}{b_2} (that is, a1b2=a2b1a_1b_2 = a_2b_1).
  • Per­pen­dic­u­lar when a1a2+b1b2=0a_1a_2 + b_1b_2 = 0.

This gives two quick rules for writ­ing down lines.

  • A line par­al­lel to ax+by+c=0ax + by + c = 0 has the form ax+by+k=0ax + by + k = 0 (same xx and yy coef­fi­cients).
  • A line per­pen­dic­u­lar to ax+by+c=0ax + by + c = 0 has the form bx−ay+k=0bx - ay + k = 0 (swap the coef­fi­cients and change one sign).

The num­ber kk is found from a point the line must pass through.

Exam­ple 4

Find the lines through (1,−2)(1, -2) that are (a) par­al­lel (b) per­pen­dic­u­lar to 3x−4y+7=03x - 4y + 7 = 0.

(a) The line is 3x−4y+k=03x - 4y + k = 0. Through (1,−2)(1, -2): 3+8+k=03 + 8 + k = 0, so k=−11k = -11. The line is 3x−4y−11=03x - 4y - 11 = 0.

(b) The line is 4x+3y+k=04x + 3y + k = 0. Through (1,−2)(1, -2): 4−6+k=04 - 6 + k = 0, so k=2k = 2. The line is 4x+3y+2=04x + 3y + 2 = 0.

Con­cur­rent lines

Three or more lines are con­cur­rent if they all pass through one point. To test three lines: find where two of them meet, and check whether that point lies on the third.

There is also a deter­mi­nant test: the lines arx+bry+cr=0a_rx + b_ry + c_r = 0 (r=1,2,3r = 1, 2, 3), no two of them par­al­lel, are con­cur­rent exactly when

∣a1b1c1a2b2c2a3b3c3∣=0\begin{vmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{vmatrix} = 0

Exam­ple 5

Show that x+y−5=0x + y - 5 = 0, 2x−y−1=02x - y - 1 = 0 and 3x+2y−12=03x + 2y - 12 = 0 are con­cur­rent.

Adding the first two equa­tions: 3x−6=03x - 6 = 0, so x=2x = 2 and y=3y = 3. In the third: 3(2)+2(3)−12=03(2) + 2(3) - 12 = 0. So all three pass through (2,3)(2, 3).

By deter­mi­nants: ∣11−52−1−132−12∣=1(12+2)−1(−24+3)−5(4+3)=14+21−35=0\begin{vmatrix} 1 & 1 & -5 \\ 2 & -1 & -1 \\ 3 & 2 & -12 \end{vmatrix} = 1(12 + 2) - 1(-24 + 3) - 5(4 + 3) = 14 + 21 - 35 = 0.

Lines through the meet­ing point of two lines

Exam­ple 6

Find the line through the ori­gin and the point of inter­sec­tion of x+y−5=0x + y - 5 = 0 and 2x−y−1=02x - y - 1 = 0.

From Exam­ple 5 the lines meet at (2,3)(2, 3). The line through (0,0)(0, 0) and (2,3)(2, 3) has slope 32\displaystyle \frac{3}{2}, so it is y=32x\displaystyle y = \frac{3}{2}x, that is, 3x−2y=03x - 2y = 0.

Prac­tice

  1. Find the point of inter­sec­tion of x+2y=7x + 2y = 7 and 3x−y=73x - y = 7.
  2. Find the acute angle between y=3x+2y = 3x + 2 and y=−2x+5y = -2x + 5.
  3. Find the acute angle between 3x−y+1=0\sqrt{3}x - y + 1 = 0 and x−3y+2=0x - \sqrt{3}y + 2 = 0.
  4. Show that 2x+3y−6=02x + 3y - 6 = 0 and 3x−2y+4=03x - 2y + 4 = 0 are per­pen­dic­u­lar.
  5. Find the line through (2,3)(2, 3) par­al­lel to 4x−y+1=04x - y + 1 = 0.
  6. Find the line through (−1,2)(-1, 2) per­pen­dic­u­lar to 2x+5y−3=02x + 5y - 3 = 0.
  7. Find kk so that kx+2y−3=0kx + 2y - 3 = 0 is per­pen­dic­u­lar to 3x−4y+1=03x - 4y + 1 = 0.
  8. Show that x−y+1=0x - y + 1 = 0, 2x+y−4=02x + y - 4 = 0 and x+2y−5=0x + 2y - 5 = 0 are con­cur­rent.
  9. Find kk so that x+y−3=0x + y - 3 = 0, 2x−y−3=02x - y - 3 = 0 and kx+3y−7=0kx + 3y - 7 = 0 are con­cur­rent.
  10. Find the line through the point of inter­sec­tion of 2x+y−5=02x + y - 5 = 0 and x−y−1=0x - y - 1 = 0, par­al­lel to 3x+4y=03x + 4y = 0.

Answers

Show answers
  1. From the sec­ond, y=3x−7y = 3x - 7; then x+6x−14=7x + 6x - 14 = 7, so x=3x = 3 and y=2y = 2: the point (3,2)(3, 2).
  2. tan⁡θ=∣3+21−6∣=1\displaystyle \tan\theta = \left|\frac{3 + 2}{1 - 6}\right| = 1, so θ=45°\theta = 45°.
  3. The slopes are 3\sqrt{3} and 13\displaystyle \frac{1}{\sqrt{3}} (incli­na­tions 60°60° and 30°30°), so θ=30°\theta = 30°. By the for­mula, tan⁡θ=3−131+1=13\displaystyle \tan\theta = \frac{\sqrt{3} - \frac{1}{\sqrt{3}}}{1 + 1} = \frac{1}{\sqrt{3}}.
  4. a1a2+b1b2=6−6=0a_1a_2 + b_1b_2 = 6 - 6 = 0.
  5. 4x−y+k=04x - y + k = 0 with 8−3+k=08 - 3 + k = 0, so k=−5k = -5: 4x−y−5=04x - y - 5 = 0.
  6. 5x−2y+k=05x - 2y + k = 0 with −5−4+k=0-5 - 4 + k = 0, so k=9k = 9: 5x−2y+9=05x - 2y + 9 = 0.
  7. 3k+2(−4)=03k + 2(-4) = 0, so k=83\displaystyle k = \frac{8}{3}.
  8. The first two meet where 3x=33x = 3, at (1,2)(1, 2); and 1+4−5=01 + 4 - 5 = 0, so the third passes through it too.
  9. The first two meet at (2,1)(2, 1); then 2k+3−7=02k + 3 - 7 = 0, so k=2k = 2.
  10. The lines meet where 3x=63x = 6, at (2,1)(2, 1). The required line is 3x+4y+k=03x + 4y + k = 0 with 6+4+k=06 + 4 + k = 0, so 3x+4y−10=03x + 4y - 10 = 0.