Skip to main content

The angle between two lines in the plane

2026-10-22 Cùng Học Toán Comments: 0

Compute the non-obtuse angle using two normal or direction vectors and handle perpendicular, parallel, and vertical cases.

High schoolPlane Coordinate Geometry

Content updated: October 22, 2026

The angle between two lines in a plane is chosen between 0° and 90°. Compute it using two normal vectors or two direction vectors, but use the same type for both lines and retain the absolute value.

Learning goals: compute angles, recognize perpendicular lines, and apply slope conditions only when their assumptions hold.

Prerequisites: normal and direction vectors (English lesson); the dot product and angles between vectors.

On this page: The idea · Method · Examples · Practice · Further learning

1. Distinguishing line angles from vector angles

Two vectors different from $\vec0$ have an angle $\theta\in[0^\circ;180^\circ]$, whereas the angle $\varphi$ between two lines belongs to $[0^\circ;90^\circ]$. For two chosen direction vectors, $\varphi=\min\{\theta,180^\circ-\theta\}$. The angles are therefore equal or supplementary; the angle between lines is not necessarily acute.

Parallel or coincident lines have angle $0^\circ$; perpendicular lines have angle $90^\circ$. The angle alone does not distinguish distinct parallel lines from coincident lines, so positional questions also require checking common points.

2. Formulas in Oxy

Let $d_1:a_1x+b_1y+c_1=0$ and $d_2:a_2x+b_2y+c_2=0$, with $a_i^2+b_i^2>0$ for $i=1,2$. The normal vectors $\vec n_i=(a_i;b_i)$ then differ from $\vec0$, and

$$\cos\varphi=\frac{|a_1a_2+b_1b_2|}{\sqrt{a_1^2+b_1^2}\sqrt{a_2^2+b_2^2}}.$$

Both normal vectors may be replaced by both direction vectors. In a plane, rotating both normal vectors by $90^\circ$ gives the two line directions and preserves their angle. Do not combine one normal vector with one direction vector in this formula for the angle between lines.

Perpendicularity is equivalent to $\vec n_1\cdot\vec n_2=0$, or to $\vec u_1\cdot\vec u_2=0$ for direction vectors different from $\vec0$. If both lines have finite slopes $k_1,k_2$, it is also equivalent to $k_1k_2=-1$. A vertical line has no finite slope and must be treated separately; a vertical line is perpendicular to a horizontal line.

Compute the dot product and both lengths, simplify the ratio, and then find the angle in the prescribed interval. The ratio must lie in $[0;1]$. For an approximation, use degree mode and round only the final result.

3. Worked examples

Example 1. A vertical line

Find the angle between $d_1:x-5=0$ and $d_2:2x+y-14=0$. Choose normal vectors $(1;0)$ and $(2;1)$. Then

$$\cos\varphi=\frac{|1\cdot2+0\cdot1|}{1\cdot\sqrt5}=\frac2{\sqrt5}.$$

Thus $\varphi=\arccos(2/\sqrt5)\approx26.565^\circ$, or approximately $26^\circ33^{\prime}54^{\prime\prime}$. The product-of-slopes condition is unavailable because $d_1$ is vertical.

Example 2. Combining general and parametric equations

Let $d_1:2x+3y-2=0$ and $d_2:x=1+2t$, $y=-2+3t$, $t\in\mathbb R$. The line $d_1$ has normal vector $(2;3)$. The line $d_2$ has direction vector $(2;3)$, so we may choose normal vector $(3;-2)$. The normal vectors have dot product $2\cdot3+3(-2)=0$, so the lines are perpendicular.

Example 3. The endpoints of the angle range

The lines $x=0$ and $x=2$ share normal vector $(1;0)$, so the cosine is $1$ and the angle is $0^\circ$. The lines $x=0$ and $y=2$ have normal vectors $(1;0)$ and $(0;1)$, so the cosine is $0$ and the angle is $90^\circ$.

4. Practice exercises

  1. Find the angle between $x+y-1=0$ and $x-y+2=0$.
  2. Find the angle between $y=0$ and $y=x+1$.
  3. Two direction vectors form an angle of $150^\circ$. What is the angle between the corresponding lines?
Show answers and hints
  1. The dot product of normal vectors $(1;1)$ and $(1;-1)$ is $0$, so the angle is $90^\circ$.
  2. Choose direction vectors $(1;0)$ and $(1;1)$. The cosine is $1/\sqrt2$, so the angle is $45^\circ$.
  3. Take the supplementary angle: $180^\circ-150^\circ=30^\circ$.

5. Common mistakes

  • Omitting the absolute value and obtaining an obtuse angle between lines.
  • Applying a slope formula to a vertical line.
  • Choosing one normal and one direction vector without adjusting the angle relation.
  • Treating an equation whose coefficients of $x,y$ are both $0$ as a line.

6. Related lessons

Leave a Reply

Your email address will not be published. Required fields are marked *