IB Maths AA HL Topic 3 โ€” Geometry & Trigonometry Paper 1 & 2 ~6 min read HL only

Angle Between Two Lines

The angle between two lines is the angle between their direction vectors โ€” found from the scalar product. Two lines crossing produce two angles (one acute, one obtuse), and the sign of b1ยทb2 tells you which one your formula gave.

๐Ÿ“˜ What you need to know

The angle formula

Angle between two lines cos ฮธ  =  b1 ยท b2|b1| |b2|

It’s the same formula as the angle between two vectors โ€” applied to the directions b1 and b2 of the lines. Anchors play no role.

Two angles, one formula

Positive dot product
b1 ยท b2 > 0
formula gives the acute angle directly
Negative dot product
b1 ยท b2 < 0
formula gives the obtuse angle โ€” subtract from 180ยฐ (or ฯ€) for the acute
For the acute angle every time: drop the sign with absolute value. ฮธacute = cosโˆ’1(|b1ยทb2| / (|b1||b2|)) โ€” works no matter which way the directions point.

๐Ÿงญ Recipe โ€” angle between two lines

  1. Read off the direction vectors b1 and b2 (ignore anchor points).
  2. Compute the scalar product b1ยทb2.
  3. Compute magnitudes |b1| and |b2|.
  4. Decide: for the acute angle, use |b1ยทb2| in the numerator.
  5. Apply: ฮธ = cosโˆ’1(numerator รท (|b1||b2|)). Convert units (degrees/radians) as the question asks.

Worked examples

WE 1

Find the acute angle in degrees

Find the acute angle, in degrees, between the lines r1 = (1, 2, 3) + ฮป(2, 1, โˆ’1) and r2 = (4, 0, โˆ’2) + ฮผ(1, 3, 2).

Step 1: Scalar product of direction vectors bโ‚ยทbโ‚‚ = (2)(1) + (1)(3) + (โˆ’1)(2) = 2 + 3 โˆ’ 2 = 3 Step 2: Magnitudes |bโ‚| = โˆš(4+1+1) = โˆš6 |bโ‚‚| = โˆš(1+9+4) = โˆš14 Step 3: Apply the formula cos ฮธ = 3 / (โˆš6 ยท โˆš14) = 3/โˆš84 โ‰ˆ 0.3273 ฮธ โ‰ˆ 70.9ยฐ positive dot product โ†’ the formula already gave the acute angle
WE 2

Acute angle in radians (negative dot product)

Find the acute angle, in radians, between the lines with direction vectors b1 = 3i โˆ’ 2j + k and b2 = i + 4j โˆ’ 3k.

Step 1: Scalar product bโ‚ยทbโ‚‚ = (3)(1) + (โˆ’2)(4) + (1)(โˆ’3) = 3 โˆ’ 8 โˆ’ 3 = โˆ’8 Step 2: Magnitudes |bโ‚| = โˆš(9+4+1) = โˆš14 |bโ‚‚| = โˆš(1+16+9) = โˆš26 Step 3: Use absolute value for the acute angle cos ฮธ = |โˆ’8| / (โˆš14 ยท โˆš26) = 8/โˆš364 โ‰ˆ 0.4193 ฮธ โ‰ˆ 1.14 radians absolute value flips the sign โ€” saves an extra “180ยฐ โˆ’ โ€ฆ” step
WE 3

Find both angles between two lines

Two lines have direction vectors b1 = (2, 0, โˆ’1) and b2 = (1, 2, 3). Find both angles formed where the lines meet, in degrees.

Step 1: Scalar product and magnitudes bโ‚ยทbโ‚‚ = 2 + 0 โˆ’ 3 = โˆ’1 |bโ‚| = โˆš5;   |bโ‚‚| = โˆš14 Step 2: Direct formula โ†’ obtuse (negative dot product) cos ฮธ = โˆ’1/โˆš70 โ‰ˆ โˆ’0.1195 ฮธ โ‰ˆ 96.9ยฐ (obtuse) Step 3: Acute = 180ยฐ โˆ’ obtuse 180ยฐ โˆ’ 96.9ยฐ = 83.1ยฐ Acute โ‰ˆ 83.1ยฐ,   Obtuse โ‰ˆ 96.9ยฐ they sum to 180ยฐ โ€” that’s how supplementary angles at an intersection work
WE 4

Show two lines are perpendicular

Show that the lines with direction vectors b1 = 2i + j โˆ’ 2k and b2 = i + 4j + 3k are perpendicular.

Compute the scalar product bโ‚ยทbโ‚‚ = (2)(1) + (1)(4) + (โˆ’2)(3) = 2 + 4 โˆ’ 6 = 0 bโ‚ยทbโ‚‚ = 0 โ†’ lines are perpendicular no need to compute the angle โ€” zero dot product is the test
WE 5

Angle between a line through two points and a given direction

Line l1 passes through A(1, 0, โˆ’2) and B(3, 4, 1). Line l2 has direction vector d = โˆ’i + 2j โˆ’ k. Find the acute angle between l1 and l2, in degrees.

Step 1: Direction of lโ‚ is AB AB = B โˆ’ A = (2, 4, 3) Step 2: Scalar product with d ABยทd = (2)(โˆ’1) + (4)(2) + (3)(โˆ’1) = โˆ’2 + 8 โˆ’ 3 = 3 Step 3: Magnitudes |AB| = โˆš(4+16+9) = โˆš29;   |d| = โˆš(1+4+1) = โˆš6 Step 4: Apply formula (positive dot product โ†’ acute) cos ฮธ = 3 / (โˆš29 ยท โˆš6) = 3/โˆš174 โ‰ˆ 0.2274 ฮธ โ‰ˆ 76.9ยฐ when only points are given, compute AB first to get the line’s direction
WE 6

Find an unknown so two lines are perpendicular

The lines with direction vectors b1 = 3i + 2j + kk and b2 = 4i โˆ’ j + 2k are perpendicular. Find the value of k.

Step 1: Set bโ‚ยทbโ‚‚ = 0 (3)(4) + (2)(โˆ’1) + (k)(2) = 0 Step 2: Simplify and solve 12 โˆ’ 2 + 2k = 0 10 + 2k = 0 2k = โˆ’10 k = โˆ’5 verify: (3)(4) + (2)(โˆ’1) + (โˆ’5)(2) = 12 โˆ’ 2 โˆ’ 10 = 0 โœ“

๐Ÿ’ก Top tips

โš  Common mistakes

Next: Shortest Distance Between a Point and a Line. The shortest distance is always the perpendicular distance โ€” drop a perpendicular from the point to the line and find its length. Two main methods: parameterise and minimise via dot product, or use the vector product as a one-shot formula.

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 โ†’