IB Maths AI HL Vector Equations of Lines Paper 1 & 2 Scalar product ~8 min read

Angle Between Two Lines

The angle between two lines depends only on their direction vectors — the position vectors don’t matter. Use the scalar product: cos θ = (b1 · b2) / (|b1| |b2|). Take the absolute value on top to get the acute angle directly.

📘 What you need to know

The formula and why |·| gives the acute angle

When two lines cross, they make four angles in two pairs: two acute angles (size θ) and two obtuse angles (size 180° − θ). The scalar product formula gives whichever angle corresponds to the chosen direction vectors. Flip one direction vector (multiply by −1) and the angle flips between θ and 180° − θ. Putting absolute value on the dot product chops off any negative sign — you always land on the acute angle.

Two lines, two angles: θ and 180° − θ l₁ l₂ P b₁ b₂ θ 180°−θ angle depends on directions, not on positions two pairs of equal angles; θ acute, 180°−θ obtuse Angle between two lines ① Any angle θ = cos⁻¹(b₁·b₂ / |b₁||b₂|) sign of b₁·b₂ decides acute or obtuse ② Always acute θ = cos⁻¹(|b₁·b₂| / |b₁||b₂|) absolute value on top → acute ③ Sign of b₁·b₂ +  θ is acute −  θ is obtuse 0  perpendicularother angle = 180° − θ (or π − θ)
The acute angle θ and obtuse angle 180° − θ both lie between the two lines. The sign of b1 · b2 tells you which one cos−1 returns; use absolute value to lock onto the acute one.
Angle between two lines cos θ = b1 · b2|b1| |b2|  or, for the acute angle,  cos θ = |b1 · b2||b1| |b2| obtuse angle = 180° − θ (degrees) or π − θ (radians)

Special cases — parallel and perpendicular

Two quick checks from the direction vectors alone:

Parallel: b1 is a scalar multiple of b2 (i.e. b1 = k b2). Then θ = 0 (same direction) or θ = 180° (opposite).  Perpendicular: b1 · b2 = 0. Then θ = 90°.

🧭 Recipe — angle between two lines

  1. Pick out the direction vectors b1 and b2 from each line equation.
  2. Compute the scalar product: b1 · b2 = l1l2 + m1m2 + n1n2.
  3. Compute the magnitudes: |b1| = √(l12 + m12 + n12), same for |b2|.
  4. For acute angle: take |dot product| on top, then θ = cos−1(|b1·b2|/(|b1||b2|)).
  5. For obtuse angle: compute the acute first, then subtract from 180° (or π).
  6. Set GDC mode — radians or degrees to match the question.

Worked examples

WE 1

Acute angle in radians (from the PDF)

Find the acute angle, in radians, between  l1: r = (203) + λ(1−4−3)  and  l2: r = (1−43) + μ(−325).

scalar product b₁·b₂ = (1)(−3) + (−4)(2) + (−3)(5) = −3 − 8 − 15 = −26 magnitudes |b₁| = √(1 + 16 + 9) = √26 |b₂| = √(9 + 4 + 25) = √38 acute angle: use |dot product| cos θ = 26 / (√26 · √38) θ = cos⁻¹(26 / √988) θ ≈ 0.597 radians (3 sf) sign of dot product was negative → obtuse first; absolute value flips to acute.
WE 2

Angle in degrees, acute case

Find the angle, in degrees, between lines with direction vectors b1 = (212) and b2 = (122).

dot product b₁·b₂ = 2(1) + 1(2) + 2(2) = 8 magnitudes |b₁| = √(4 + 1 + 4) = 3 |b₂| = √(1 + 4 + 4) = 3 angle cos θ = 8 / (3 · 3) = 8/9 θ = cos⁻¹(8/9) ≈ 27.3° dot product positive → already acute, no |…| needed.
WE 3

Perpendicular lines

Show that lines with directions b1 = (23−1) and b2 = (1−1−1) are perpendicular.

compute b₁·b₂ = 2(1) + 3(−1) + (−1)(−1) = 2 − 3 + 1 = 0 dot product = 0 ⇒ θ = 90° lines are perpendicular ✓ no need to compute magnitudes — zero dot product is enough.
WE 4

Obtuse angle requested

Lines have direction vectors b1 = (110) and b2 = (−101). Find the obtuse angle between the two lines in degrees.

dot product b₁·b₂ = 1(−1) + 1(0) + 0(1) = −1 magnitudes |b₁| = √2,  |b₂| = √2 acute angle first (use |−1|) cos θ = 1 / (√2 · √2) = 1/2 θ = 60° obtuse = 180° − 60° obtuse angle = 120°
WE 5

Find the unknown that makes lines perpendicular

Find the value of k such that the lines with direction vectors b1 = (2k−1) and b2 = (32k) are perpendicular.

perpendicular ⇒ b₁·b₂ = 0 2(3) + k(2) + (−1)(k) = 0 6 + 2k − k = 0 6 + k = 0 k = −6 just set the dot product to zero — no magnitudes needed.
WE 6

Identify parallel vs intersecting lines

Two lines have direction vectors b1 = (2−46) and b2 = (−12−3). State the relationship between the directions.

check if scalar multiple b₁ = (2, −4, 6) = −2 · (−1, 2, −3) = −2 · b₂ b₁ is a scalar multiple of b₂ ⇒ parallel directions are parallel (angle = 0° or 180°) parallel directions don’t mean parallel lines — the lines could be identical. Need to also check a point doesn’t lie on both for “skew parallel” to make sense (actually parallel + share a point → same line).

💡 Top tips

⚠ Common mistakes

Next up — Shortest Distance Between a Point and a Line. Drop a perpendicular from the point to the line; that perpendicular’s length is the shortest distance. Find it by parameterising the foot of the perpendicular F and setting FP · b = 0 to solve for λ.

Need help with Vector Equations of Lines?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →