Class 12 Maths, Worked in Full Past papersGet updates
Chapter 11 · Three Dimensional Geometry

Example 8: Angle between two lines in Cartesian form, direction ratios 3,5,43, 5, 4 and 1,1,21, 1, 2

ExamplesAngle between two lines, Cartesian form · Section 11.4
The question

Find the angle between the pair of lines

x+33=y−15=z+34\frac{x + 3}{3} = \frac{y - 1}{5} = \frac{z + 3}{4}

and

x+11=y−41=z−52\frac{x + 1}{1} = \frac{y - 4}{1} = \frac{z - 5}{2}
Exam answer

The direction ratios of the first line are 3,5,43, 5, 4 and of the second line 1,1,21, 1, 2⁠. If θ\theta is the angle between them, then

cos⁡θ=∣3(1)+5(1)+4(2)9+25+16 1+1+4∣=1650 6=1652 6=16103=8315\begin{aligned} &\cos\theta \\ &= \left|\frac{3(1) + 5(1) + 4(2)}{\sqrt{9 + 25 + 16}\,\sqrt{1 + 1 + 4}}\right| \\ &= \frac{16}{\sqrt{50}\,\sqrt6} = \frac{16}{5\sqrt2\,\sqrt6} \\ &= \frac{16}{10\sqrt3} = \frac{8\sqrt3}{15} \end{aligned}

∴\therefore The required angle is cos⁡−1(8315)\cos^{-1}\left(\dfrac{8\sqrt3}{15}\right)⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

In the Cartesian form x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}⁠, the denominators are the direction ratios. The angle between two lines depends only on their directions, so the Cartesian angle formula uses the two sets of denominators and nothing else.

Given, to find, and the plan
Given
Two lines in Cartesian form, with denominators 3,5,43, 5, 4 and 1,1,21, 1, 2⁠.
To find
The angle θ\theta between them.
Plan
(1) Read off the direction ratios. (2) Write the formula for cos⁡θ\cos\theta⁠. (3) Compute the top. (4) Compute the bottom. (5) Simplify and name θ\theta⁠. (6) Check with sin⁡θ\sin\theta⁠.

Basics you need

1Reading the Cartesian form

The line x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c} passes through (x1,y1,z1)(x_1, y_1, z_1) and has direction ratios a,b,ca, b, c (Section 11.3.1). A numerator x+3x + 3 means x−(−3)x - (-3)⁠. Basics: a line is a point plus a direction

2Angle between two lines, Cartesian form

For lines with direction ratios a1,b1,c1a_1, b_1, c_1 and a2,b2,c2a_2, b_2, c_2⁠, the acute angle θ\theta between them has

cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12×1a22+b22+c22\begin{aligned} \cos\theta &= \frac{|a_1a_2 + b_1b_2 + c_1c_2|}{\sqrt{a_1^2 + b_1^2 + c_1^2}} \\ &\quad \times \frac{1}{\sqrt{a_2^2 + b_2^2 + c_2^2}} \end{aligned}

(Section 11.4). Lesson: the angle between two lines

3The dot product behind it

The top is the dot product of a1i^+b1j^+c1k^a_1\hat i + b_1\hat j + c_1\hat k and a2i^+b2j^+c2k^a_2\hat i + b_2\hat j + c_2\hat k⁠; the bottom is the product of their lengths. Basics: the dot product

4Simplifying surds

50=25⋅2=52\sqrt{50} = \sqrt{25 \cdot 2} = 5\sqrt2 and 2 6=12=23\sqrt2\,\sqrt6 = \sqrt{12} = 2\sqrt3⁠; to rationalise, multiply top and bottom by 3\sqrt3⁠.

Solution

  1. Read off the direction ratios

    First line: a1,b1,c1=3,5,4a_1, b_1, c_1 = 3, 5, 4⁠. Second line: a2,b2,c2=1,1,2a_2, b_2, c_2 = 1, 1, 2⁠.

    Each line is already in the form x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}⁠, with coefficient 1 in front of xx⁠, yy and zz in every numerator, so the denominators can be read off directly. The numerators only give the points (−3,1,−3)(-3, 1, -3) and (−1,4,5)(-1, 4, 5) on the lines, which do not affect the angle.
    Cartesian equation (3) of Section 11.3.1. Basics: point plus direction
  2. The formula

    cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12×1a22+b22+c22.\begin{aligned} \cos\theta &= \frac{|a_1a_2 + b_1b_2 + c_1c_2|}{\sqrt{a_1^2 + b_1^2 + c_1^2}} \\ &\quad \times \frac{1}{\sqrt{a_2^2 + b_2^2 + c_2^2}}. \end{aligned}
    X Y Z θ along (1, 1, 2) along (3, 5, 4) O
    Oblique projection, not to scale, so the angle drawn is not the true size. Unit arrows from OO along the direction ratios 3,5,43, 5, 4 and 1,1,21, 1, 2⁠; the angle θ\theta between the lines is the angle between these directions.
    This is the dot product formula cos⁡θ=b⃗1⋅b⃗2∣b⃗1∣∣b⃗2∣\cos\theta = \frac{\vec b_1\cdot\vec b_2}{|\vec b_1||\vec b_2|} written with components, for b⃗1=3i^+5j^+4k^\vec b_1 = 3\hat i + 5\hat j + 4\hat k and b⃗2=i^+j^+2k^\vec b_2 = \hat i + \hat j + 2\hat k⁠. The modulus gives the acute angle.
    Section 11.4, Cartesian form of the angle between two lines. Lesson: compare the directions
  3. The top

    a1a2+b1b2+c1c2=3(1)+5(1)+4(2)=3+5+8=16.\begin{aligned} &a_1a_2 + b_1b_2 + c_1c_2 \\ &= 3(1) + 5(1) + 4(2) \\ &= 3 + 5 + 8 = 16. \end{aligned}
    Multiply matching direction ratios and add. The book writes this as 3.1+5.1+4.23.1 + 5.1 + 4.2⁠, where the dot means "times".
    a⃗⋅b⃗=a1b1+a2b2+a3b3\vec a\cdot\vec b = a_1b_1 + a_2b_2 + a_3b_3⁠. Basics: the dot product
  4. The bottom

    32+52+42=9+25+16=50=52,12+12+22=1+1+4=6.\begin{aligned} \sqrt{3^2 + 5^2 + 4^2} &= \sqrt{9 + 25 + 16} \\ &= \sqrt{50} = 5\sqrt2, \\ \sqrt{1^2 + 1^2 + 2^2} &= \sqrt{1 + 1 + 4} = \sqrt6. \end{aligned}
    These are the lengths of the two direction vectors. 50\sqrt{50} simplifies because 50=25×250 = 25 \times 2 and 25=5\sqrt{25} = 5⁠; 6\sqrt6 does not simplify.
    Length of a vector. Basics: Pythagoras in 3D
  5. Simplify and name the angle

    cos⁡θ=∣1652 6∣=16512=16103=853=8315.\begin{aligned} \cos\theta &= \left|\frac{16}{5\sqrt2\,\sqrt6}\right| = \frac{16}{5\sqrt{12}} = \frac{16}{10\sqrt3} \\ &= \frac{8}{5\sqrt3} = \frac{8\sqrt3}{15}. \end{aligned}

    So θ=cos⁡−1(8315)\theta = \cos^{-1}\left(\frac{8\sqrt3}{15}\right)⁠.

    2 6=12=23\sqrt2\,\sqrt6 = \sqrt{12} = 2\sqrt3⁠, so the bottom is 5×23=1035 \times 2\sqrt3 = 10\sqrt3⁠. Cancelling 2 gives 853\frac{8}{5\sqrt3}⁠, and multiplying top and bottom by 3\sqrt3 gives 8315\frac{8\sqrt3}{15}⁠. This number is positive and less than 1 (since 64×3=192<225=15264 \times 3 = 192 < 225 = 15^2⁠), so θ\theta is a genuine acute angle.
    Principal value of cos⁡−1\cos^{-1}⁠; positive argument, acute angle. Lesson: Examples 7–8
  6. Check with sin⁡θ\sin\theta

    By equation (2) of Section 11.4, with a1b2−a2b1=3−5=−2a_1b_2 - a_2b_1 = 3 - 5 = -2⁠, b1c2−b2c1=10−4=6b_1c_2 - b_2c_1 = 10 - 4 = 6 and c1a2−c2a1=4−6=−2c_1a_2 - c_2a_1 = 4 - 6 = -2⁠:

    sin⁡θ=4+36+450 6=44103=3315.\sin\theta = \frac{\sqrt{4 + 36 + 4}}{\sqrt{50}\,\sqrt6} = \frac{\sqrt{44}}{10\sqrt3} = \frac{\sqrt{33}}{15}.

    Then cos⁡2θ+sin⁡2θ=192225+33225=1\cos^2\theta + \sin^2\theta = \frac{192}{225} + \frac{33}{225} = 1⁠.

    The three brackets are the components of the cross product of the direction vectors, so this measures the same angle with sin⁡\sin instead of cos⁡\cos⁠. 44=211\sqrt{44} = 2\sqrt{11}⁠, and 211103=1153=3315\frac{2\sqrt{11}}{10\sqrt3} = \frac{\sqrt{11}}{5\sqrt3} = \frac{\sqrt{33}}{15}⁠. The two answers agree.
    ∣a⃗×b⃗∣=∣a⃗∣∣b⃗∣sin⁡θ|\vec a\times\vec b| = |\vec a||\vec b|\sin\theta⁠. Basics: the cross product
Result

The angle between the lines is θ=cos⁡−1(8315)\theta = \cos^{-1}\left(\frac{8\sqrt3}{15}\right)⁠.

(Textbook answer: cos⁡−1(8315)\cos^{-1}\left(\frac{8\sqrt3}{15}\right)⁠.)

Check it with numbers

50≈7.071068\sqrt{50} \approx 7.071068 and 6≈2.449490\sqrt6 \approx 2.449490⁠, so 16506≈0.923760\frac{16}{\sqrt{50}\sqrt6} \approx 0.923760⁠, and 8315≈0.923760\frac{8\sqrt3}{15} \approx 0.923760 too. So θ≈22.52∘\theta \approx 22.52^\circ⁠.

3315≈0.382971\frac{\sqrt{33}}{15} \approx 0.382971⁠. The squares are 0.9237602≈0.8533330.923760^2 \approx 0.853333 and 0.3829712≈0.1466670.382971^2 \approx 0.146667⁠, which add up to 1.

Common mistakes
  1. Using the numerators. −3,1,−3-3, 1, -3 and −1,4,5-1, 4, 5 are coordinates of points on the lines, not directions.
  2. Simplifying 506\sqrt{50}\sqrt6 wrongly. It is 300=103\sqrt{300} = 10\sqrt3⁠, not 56\sqrt{56}⁠.
  3. Stopping at 16506\frac{16}{\sqrt{50}\sqrt6}⁠. It is correct but unsimplified; the expected form is 8315\frac{8\sqrt3}{15}⁠.
What to take away
  1. In Cartesian form, the denominators are the direction ratios; the numerators give a point.
  2. Top: multiply matching direction ratios and add, then take the modulus. Bottom: the product of the two lengths a2+b2+c2\sqrt{a^2 + b^2 + c^2}⁠.
  3. Simplify the surds and rationalise the denominator in the final answer.

Every fact used, and where it comes from

FactUsed inSource
The denominators of the Cartesian form are direction ratiosStep 1Section 11.3.1, equation (3) (Basics)
Angle between lines from their direction ratios, θ\theta acuteSteps 2 to 5Section 11.4, equation (1) and its Cartesian form (Lesson)
sin⁡θ\sin\theta by equation (2)Step 6Section 11.4, equation (2) (Basics)
Dot product in componentsStep 3Section 10.6.1 (Basics)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →