Skip to content

Mathematics · Ch 11 — Straight Lines

Angle Between Two Lines

3

Angle Between Two Lines

When two non-parallel lines intersect, they form two pairs of equal vertically-opposite angles that are supplementary to each other; this section finds those angles directly from the two lines' slopes.

Setting up. Let two lines L1,L2L_1, L_2 have inclinations θ1,θ2\theta_1,\theta_2 and slopes m1=tan⁡θ1m_1=\tan\theta_1, m2=tan⁡θ2m_2=\tan\theta_2 respectively, and let θ\theta be the angle measured from L1L_1 round to L2L_2 at their point of intersection. Since an exterior angle of the triangle formed by the two lines and the x-axis equals the sum of the two interior opposite angles, θ2=θ1+θ\theta_2 = \theta_1+\theta, i.e. θ=θ2−θ1\theta=\theta_2-\theta_1.

Derivation. Using the tangent-subtraction identity,

tan⁡θ=tan⁡(θ2−θ1)=tan⁡θ2−tan⁡θ11+tan⁡θ1tan⁡θ2=m2−m11+m1m2,(1+m1m2≠0).\tan\theta = \tan(\theta_2-\theta_1) = \frac{\tan\theta_2-\tan\theta_1}{1+\tan\theta_1\tan\theta_2} = \frac{m_2-m_1}{1+m_1m_2}, \qquad (1+m_1m_2\ne 0).

The two lines actually form two angles at their intersection, θ\theta and its supplement 180∘−θ180^\circ-\theta, and tan⁡(180∘−θ)=−tan⁡θ\tan(180^\circ-\theta)=-\tan\theta. So the magnitude of either angle is recovered by taking the absolute value:

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

— written with m1−m2m_1-m_2 in the numerator purely by convention, since the sign is discarded by the modulus anyway. Once tan⁡θ\tan\theta is known, θ=tan⁡−1∣m1−m21+m1m2∣\theta=\tan^{-1}\left|\dfrac{m_1-m_2}{1+m_1m_2}\right| gives the acute angle between the lines; the obtuse angle is its supplement, 180∘−θ180^\circ-\theta.

Corollary 1 — condition for parallel lines. Two lines are parallel exactly when they never meet, i.e. the angle between them is 0∘0^\circ, i.e. tan⁡θ=0\tan\theta=0. From the formula this happens exactly when the numerator vanishes:

L1∥L2  ⟺  m1=m2L_1 \parallel L_2 \iff m_1 = m_2

(equivalently: two distinct lines with the same inclination never cross).

Corollary 2 — condition for perpendicular lines. Two lines are perpendicular when the angle between them is 90∘90^\circ, where tan⁡θ\tan\theta is undefined — which, from the formula, happens exactly when the denominator vanishes (while the numerator does not):

L1⊥L2  ⟺  1+m1m2=0  ⟺  m1m2=−1.L_1 \perp L_2 \iff 1+m_1m_2=0 \iff m_1m_2=-1. …

Figure 3.1Two straight lines intersecting at a point, with the angle between them marked

What this figure shows. A pair of coordinate axes with two distinct straight lines L1 and L2 drawn crossing each other at a single point O somewhere in the plane (not at the origin). Each line is extended in both directions with arrowheads. Where each line crosses the x-axis, its own inclination angle is marked with a small arc: theta-1 for L1 and theta-2 for L2, both measured counter-clockwise from the positive x-axis direction up to the line. At the intersection point O itself, a separate small arc is drawn between L1 and L2 marking the angle theta between the two lines at that point, distinct from the two inclination arcs drawn against the x-axis. The four angles formed at O (two pairs of vertically opposite angles) are visually indicated as theta and its suppleme …