girgit.org

Straight Lines

The angle between two lines

The big ideaThe acute angle \( \theta \) between two lines with slopes \( m_1 \) and \( m_2 \) is given by \( \tan \theta = \left| \dfrac{m_2 - m_1}{1 + m_1 m_2} \right| \).

In simple words

When two lines cross, they make an X. The X has a narrow opening and a wide opening, and the two openings together make a straight line, half a full turn. If you know how steep each line is, you can work out the narrow opening without drawing anything. The wide one is whatever is left of the half turn.

Two lines, two angles

Two lines in a plane either are parallel or cross. When they cross they make two pairs of vertically opposite angles (the angles facing each other across the crossing point are equal). Any two angles side by side, the adjacent angles, add up to \( 180^\circ \). So there are really only two sizes of angle: call them \( \theta \) and \( \phi \), with \( \theta + \phi = 180^\circ \). Usually one is acute and the other obtuse.

Finding the angle from the slopes

Let lines \( L_1 \) and \( L_2 \) have slopes \( m_1 = \tan \alpha_1 \) and \( m_2 = \tan \alpha_2 \), where \( \alpha_1 \) and \( \alpha_2 \) are their inclinations (neither line vertical). Picture \( L_2 \) as the steeper of the two, both crossing the x-axis. In the triangle the lines make with the x-axis, the outside angle \( \alpha_2 \) equals the inside angle \( \alpha_1 \) plus the angle \( \theta \) between the lines (exterior angle of a triangle). So \( \theta = \alpha_2 - \alpha_1 \), and using the formula for \( \tan(A - B) \) from the trigonometry chapter,

\[ \tan \theta = \tan(\alpha_2 - \alpha_1) = \frac{\tan \alpha_2 - \tan \alpha_1}{1 + \tan \alpha_1 \tan \alpha_2} = \frac{m_2 - m_1}{1 + m_1 m_2} \]

as long as \( 1 + m_1 m_2 \ne 0 \).

The other angle is \( \phi = 180^\circ - \theta \), so \( \tan \phi = -\tan \theta = -\dfrac{m_2 - m_1}{1 + m_1 m_2} \).

Exactly one of these two values is positive (unless the answer is 0). If \( \frac{m_2 - m_1}{1 + m_1 m_2} \) is positive, \( \theta \) is acute and \( \phi \) obtuse; if it is negative, it is the other way round. Either way, the acute angle has the positive tangent, so we simply take the size without the sign:

Angle between two lines

  • Acute angle: \( \tan \theta = \left| \dfrac{m_2 - m_1}{1 + m_1 m_2} \right| \), as long as \( 1 + m_1 m_2 \ne 0 \).
  • Obtuse angle: \( \phi = 180^\circ - \theta \).
  • If \( 1 + m_1 m_2 = 0 \), that is \( m_1 m_2 = -1 \), the lines are perpendicular: the angle is \( 90^\circ \).
  • If \( m_1 = m_2 \), \( \tan \theta = 0 \): the lines are parallel.

Try it: change the two slopes and watch both openings of the X, and which one the formula picks.

Worked examples

Worked example 1

Find the acute angle between lines of slope 2 and \( \frac{1}{3} \).

  1. \( \tan \theta = \left| \dfrac{\frac{1}{3} - 2}{1 + 2 \times \frac{1}{3}} \right| = \left| \dfrac{-\frac{5}{3}}{\frac{5}{3}} \right| = 1 \).
  2. So \( \theta = 45^\circ \), and the obtuse angle is \( 135^\circ \).

Worked example 2: a check you can see

Find the acute angle between \( y = \sqrt{3}\,x \) and \( y = \frac{1}{\sqrt{3}}\,x \).

  1. Slopes \( \sqrt{3} \) and \( \frac{1}{\sqrt{3}} \): \( \tan \theta = \left| \dfrac{\frac{1}{\sqrt{3}} - \sqrt{3}}{1 + 1} \right| = \left| \dfrac{-\frac{2}{\sqrt{3}}}{2} \right| = \frac{1}{\sqrt{3}} \), so \( \theta = 30^\circ \).
  2. Check: the inclinations are \( 60^\circ \) and \( 30^\circ \), and \( 60^\circ - 30^\circ = 30^\circ \).

Worked example 3: why there are two answers

A line makes an angle of \( 45^\circ \) with a line of slope 2. What can its slope be?

  1. Let its slope be \( m \). Then \( \left| \dfrac{m - 2}{1 + 2m} \right| = \tan 45^\circ = 1 \), so \( \dfrac{m - 2}{1 + 2m} = 1 \) or \( -1 \).
  2. If \( +1 \): \( m - 2 = 1 + 2m \), so \( m = -3 \).
  3. If \( -1 \): \( m - 2 = -1 - 2m \), so \( 3m = 1 \) and \( m = \frac{1}{3} \).

Picture the line of slope 2 and swing a second line around the crossing point. Turn it \( 45^\circ \) anticlockwise and you get one answer; turn it \( 45^\circ \) clockwise and you get the other. Both make a \( 45^\circ \) angle with the first line. Whenever the bars come off, expect two cases.

Don't mix these up

  • The denominator is \( 1 + m_1 m_2 \), with a plus. It is the bottom of \( \tan(A - B) \).
  • When an angle is given and a slope is asked, drop the bars as \( \pm \): one equation becomes two, and both answers count.

Try it. (a) Find the acute angle between lines with slopes \( -1 \) and 2 (give \( \tan \theta \)). (b) Find the slopes of lines making \( 45^\circ \) with the line \( y = 3x \).

Answer
(a) \( \tan \theta = \left| \dfrac{2 - (-1)}{1 + (-1)(2)} \right| = \left| \dfrac{3}{-1} \right| = 3 \), so \( \theta = \tan^{-1} 3 \approx 71.6^\circ \). (b) \( \dfrac{m - 3}{1 + 3m} = \pm 1 \). With \( +1 \): \( m - 3 = 1 + 3m \), \( m = -2 \). With \( -1 \): \( m - 3 = -1 - 3m \), \( m = \frac{1}{2} \).

Words to know

Vertically opposite angles
Angles facing each other across the crossing point; they are equal.
Adjacent angles
Angles side by side at the crossing; here they add up to \( 180^\circ \).
Acute angle between lines
The smaller angle, with \( \tan \theta = \left| \frac{m_2 - m_1}{1 + m_1 m_2} \right| \).
Obtuse angle between lines
\( 180^\circ \) minus the acute angle.

What is the acute angle between lines with slopes 3 and \( -2 \)?

  1. \( 45^\circ \)
  2. \( 90^\circ \)
  3. \( \tan^{-1} \frac{5}{7} \)

For two lines, \( 1 + m_1 m_2 = 0 \). What is the angle between them?

  1. \( 0^\circ \): they are parallel
  2. \( 90^\circ \)
  3. It cannot be found

You solve \( \left| \frac{m - 1}{1 + m} \right| = \frac{1}{\sqrt{3}} \). How many values of \( m \) should you expect?

  1. One
  2. Two
  3. Infinitely many