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
- Formula: ฮธ = cosโ1(b1 ยท b2|b1| |b2|) โ uses the direction vectors only.
- Two angles at the intersection: an acute ฮธ and an obtuse 180ยฐ โ ฮธ (or ฯ โ ฮธ).
- Sign of dot product: positive โ formula returns acute; negative โ formula returns obtuse.
- For the acute angle, take the absolute value: ฮธ = cosโ1(|b1 ยท b2||b1| |b2|).
- Perpendicular lines: b1 ยท b2 = 0.
- Lines don’t have to intersect for the angle to make sense โ use the directions even if skew.
- Anchor points don’t matter โ only directions affect the angle.
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
- Read off the direction vectors b1 and b2 (ignore anchor points).
- Compute the scalar product b1ยทb2.
- Compute magnitudes |b1| and |b2|.
- Decide: for the acute angle, use |b1ยทb2| in the numerator.
- Apply: ฮธ = cosโ1(numerator รท (|b1||b2|)). Convert units (degrees/radians) as the question asks.
Worked examples
WE 1Find 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 2Acute 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 3Find 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 4Show 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 5Angle 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 6Find 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
- Anchors are irrelevant for the angle โ use directions only.
- Use absolute value to get the acute angle every time without case-splitting.
- Read the units carefully โ “degrees” or “radians” โ and set your calculator accordingly.
- Lines don’t need to intersect: skew lines still have a well-defined angle from their directions.
- Round only at the end; carry โ values through to avoid rounding error.
โ Common mistakes
- Forgetting the absolute value when the question asks for the acute angle โ yields the obtuse one when dot product is negative.
- Using anchors (aโ, aโ) in the formula instead of directions.
- Calculator in wrong mode โ degrees vs radians mismatch.
- Concluding “perpendicular” based on a small dot product instead of zero.
- Sign errors in the scalar product with negative components โ write each multiplication out explicitly.
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 โ