- Practice
- About 16 min
- 5 practice questions
Angles between lines: perpendicular and parallel at exam speed
Find the angle between two lines given in any form, decide at a glance whether they are perpendicular or parallel, and find an unknown that makes them so, avoiding the sign and standard-form traps.
If something looks wrong, please tell us.
The foundation course gave the angle between two lines from their direction ratios. In competitive exams the formula is never the difficulty: reading the directions correctly and spotting perpendicular or parallel lines quickly is. This lesson drills the formula on lines written in every form, together with the traps that cost marks.
One formula, two special cases
Only the directions matter for the angle between two lines; the points on them play no part. If the lines have direction ratios (a₁, b₁, c₁) and (a₂, b₂, c₂), then cos θ = |a₁a₂ + b₁b₂ + c₁c₂|/(√(a₁² + b₁² + c₁²) × √(a₂² + b₂² + c₂²)). In vector form, with directions b₁ and b₂, this reads cos θ = |b₁ · b₂|/(|b₁||b₂|).
Angle between lines: cos θ = |a₁a₂ + b₁b₂ + c₁c₂| / (√(a₁² + b₁² + c₁²) × √(a₂² + b₂² + c₂²)). Perpendicular: a₁a₂ + b₁b₂ + c₁c₂ = 0. Parallel: a₁/a₂ = b₁/b₂ = c₁/c₂ (a zero in one set must match a zero in the same place in the other).
Exam-speed order of work
- Put each equation in standard form and read the direction ratios. In vector form, read only the vector multiplied by λ or μ.
- Remove common factors: (4, −2, 6) becomes (2, −1, 3). The angle does not change.
- Work out the sum of products first. If it is 0, stop: the angle is 90°.
- If the ratios are proportional, stop: the lines are parallel.
- Otherwise divide by the two lengths. Lengths 3, 7, 9, 11 and 13 come from triples such as (1, 2, 2), (2, 3, 6), (1, 4, 8), (2, 6, 9) and (3, 4, 12); learn to spot them.
Worked example 1: two different forms
Find the angle between r = (î + 2ĵ) + λ(2î − 2ĵ + k̂) and (x − 3)/4 = (y + 1)/0 = (z − 2)/3. The directions are (2, −2, 1) and (4, 0, 3). A zero denominator is allowed: it only says that y stays constant along the second line, and that direction ratio is 0. Sum of products: 8 + 0 + 3 = 11. Lengths: 3 and 5. So cos θ = 11/15 and θ = cos⁻¹(11/15).
Worked example 2: the standard-form trap
Are the lines (4 − x)/2 = y/6 = (1 − z)/3 and x/6 = (y − 2)/3 = (z + 5)/2 perpendicular? Rewrite the first line: (4 − x)/2 = (x − 4)/(−2) and (1 − z)/3 = (z − 1)/(−3), so its direction ratios are (−2, 6, −3), not (2, 6, 3). With (6, 3, 2): −12 + 18 − 6 = 0, so the lines are perpendicular. Reading the denominators as they stand gives 12 + 18 + 6 = 36 and the false answer cos⁻¹(36/49).
Worked example 3: an unknown for parallel lines
Find k so that (x − 1)/2 = (y + 3)/k = (z − 5)/(−4) is parallel to (x + 2)/(−3) = (y − 1)/6 = z/6. Parallel lines need 2/(−3) = k/6 = (−4)/6. The first and last ratios are both −2/3, so the condition can hold, and k/6 = −2/3 gives k = −4. Always check that the two known ratios agree; if they do not, no value of k makes the lines parallel.
Worked example 4: two answers
Find k so that lines with direction ratios (k, 2, −3) and (k, −k, 1) are perpendicular. The condition is k² − 2k − 3 = 0, that is (k − 3)(k + 1) = 0, so k = 3 or k = −1. When the unknown appears in both lines the condition is often quadratic: give both roots unless the question restricts k.
Traps to avoid
- Leaving out the modulus gives an obtuse angle; the angle between two lines is taken as acute (or right).
- Using a point instead of a direction: in r = a + λb only b matters.
- Reading (1 − x), (2 − y) or 2z in a numerator without rewriting it first.
- Mixing up the tests: perpendicular means the sum of products is zero; parallel means proportional ratios.
Key takeaways. Read directions from the standard form only, simplify them, and test the sum of products before anything else. Perpendicular gives a linear or quadratic condition on an unknown; parallel gives equal ratios, which must agree before you solve for k.
Check your understanding
-
1. What is the angle between the lines r = (î − ĵ) + λ(î + 2ĵ + 2k̂) and r = (2ĵ + k̂) + μ(2î + ĵ − 2k̂)?
- 60°
- 90°
- cos⁻¹(4/9)
- 0°
Show answer
Answer: B. Only the directions matter: (1, 2, 2) and (2, 1, −2). Sum of products: 2 + 2 − 4 = 0, so the lines are perpendicular and the angle is 90°. The points î − ĵ and 2ĵ + k̂ play no part.
-
2. What is the angle between (x + 1)/2 = (y − 3)/3 = (z + 2)/6 and (x − 1)/1 = y/2 = (z − 4)/2?
- cos⁻¹(10/21)
- cos⁻¹(20/63)
- 90°
- cos⁻¹(20/21)
Show answer
Answer: D. Directions (2, 3, 6) and (1, 2, 2), with lengths 7 and 3. Sum of products: 2 + 6 + 12 = 20. So cos θ = 20/(7 × 3) = 20/21.
-
3. For what k is the line (3 − x)/1 = (y − 2)/2 = (2z + 1)/4 perpendicular to a line with direction ratios (4, k, 3)?
- −8
- −4
- −1
- 1
Show answer
Answer: C. Rewrite: (3 − x)/1 = (x − 3)/(−1) and (2z + 1)/4 = (z + 1/2)/2. The direction ratios are (−1, 2, 2). Then −4 + 2k + 6 = 0 gives k = −1. Reading the denominators as (1, 2, 4) gives the wrong value −8.
-
4. For what values of p and q are lines with direction ratios (3, p, −6) and (−1, 2, q) parallel?
- p = 6, q = −2
- p = −6, q = −2
- p = 2, q = −6
- p = −6, q = 2
Show answer
Answer: D. Parallel means (3, p, −6) = t(−1, 2, q) for one number t. The first entries give t = −3. Then p = −3 × 2 = −6 and −6 = −3q gives q = 2.
-
5. For which values of k are lines with direction ratios (k, 1, 2) and (k, −3, k) perpendicular?
- 1 only
- −1 or 3
- 1 or −3
- 3 only
Show answer
Answer: C. Sum of products: k² − 3 + 2k = 0, that is (k + 3)(k − 1) = 0. So k = 1 or k = −3, and both give genuine directions.
Sign in to keep track of the lessons you finish.