IB Maths AI HLVector Equations of LinesPaper 1 & 2Scalar 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
Formula (in booklet): θ = cos−1(b1 · b2|b1| |b2|)
Use direction vectors only — ignore a1 and a2. Two parallel lines have angle 0 even if they’re far apart.
Two pairs of angles are formed at any intersection: θ and 180° − θ (one acute, one obtuse). They add to 180°.
Sign of the scalar product:
· b1 · b2 > 0 ⇒ θ is acute
· b1 · b2 < 0 ⇒ θ is obtuse
· b1 · b2 = 0 ⇒ lines perpendicular
To always get the acute angle, put |…| around the scalar product: cos θ = |b1 · b2| / (|b1| |b2|).
Scalar product: b1 · b2 = l1l2 + m1m2 + n1n2.
Magnitude: |b| = √(l2 + m2 + n2).
Radians or degrees: check what the question asks for and set your GDC accordingly.
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.
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 = kb2). Then θ = 0 (same direction) or θ = 180° (opposite). Perpendicular: b1 · b2 = 0. Then θ = 90°.
🧭 Recipe — angle between two lines
Pick out the direction vectorsb1 and b2 from each line equation.
Find the value of k such that the lines with direction vectors b1 = (2k−1) and b2 = (32k) are perpendicular.
perpendicular ⇒ b₁·b₂ = 02(3) + k(2) + (−1)(k) = 06 + 2k − k = 06 + k = 0k = −6just 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 multipleb₁ = (2, −4, 6) = −2 · (−1, 2, −3) = −2 · b₂b₁ is a scalar multiple of b₂ ⇒ paralleldirections 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
Only direction vectors matter — ignore the a1, a2 position vectors entirely.
Take |b₁·b₂| at the top to lock onto the acute angle. Save 180° − θ for when the obtuse is specifically asked for.
For perpendicular, just check b1 · b2 = 0 — no need for magnitudes or arccos.
For parallel, check whether one direction vector is a scalar multiple of the other.
GDC angle mode — set radians vs degrees to match the question before pressing cos−1.
⚠ Common mistakes
Using the position vectorsa1, a2 in the formula — only direction vectors go in.
Forgetting absolute value when the acute angle is requested and the dot product is negative — gives the obtuse angle by mistake.
Wrong angle unit — answering in radians when degrees was asked (or vice versa).
Missing the magnitudes — without dividing by |b1||b2|, cos θ won’t be in [−1, 1] and cos−1 errors out.
Assuming parallel directions ⇒ parallel lines — parallel directions can mean the same line. Check whether they share a point.
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.