MathorynMathematical Formula Database

Analytic Geometry

Angle Between Two Lines

This formula gives the acute angle between two lines with slopes m1m_1 and m2m_2 (with m1m2≠−1m_1m_2\neq-1; if m1m2=−1m_1m_2=-1 the lines are perpendicular). It follows from the tangent subtraction formula.

tan⁡θ=∣m2−m11+m1m2∣\tan\theta=\left|\frac{m_2-m_1}{1+m_1m_2}\right|
LaTeX\tan\theta=\left|\frac{m_2-m_1}{1+m_1m_2}\right|

Variables

m1, m2m_1,\ m_2
slopes
θ\theta
acute angle between the lines

Example

Angle between lines with slopes 22 and −3-3.

  1. ∣−3−21−6∣=1\left|\frac{-3-2}{1-6}\right|=1.

Answer: θ=45∘\theta=45^\circ.

Related formulas