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

Exercise 11.1 · Q5: Direction cosines of the sides of the triangle (3,5,−4)(3, 5, -4)⁠, (−1,1,2)(-1, 1, 2)⁠, (−5,−5,−2)(-5, -5, -2)

Exercise 11.1Direction cosines of a line through two points · Section 11.2.1
The question

Find the direction cosines of the sides of the triangle whose vertices are (3,5,−4)(3, 5, -4)⁠, (−1,1,2)(-1, 1, 2) and (−5,−5,−2)(-5, -5, -2)⁠.

Exam answer

Let A(3,5,−4)A(3, 5, -4)⁠, B(−1,1,2)B(-1, 1, 2)⁠, C(−5,−5,−2)C(-5, -5, -2)⁠.

Side ABAB⁠. Direction ratios:

−1−3, 1−5, 2+4=−4, −4, 6\begin{aligned} &-1 - 3,\ 1 - 5,\ 2 + 4 \\ &= -4,\ -4,\ 6 \end{aligned} AB=16+16+36=68=217\begin{aligned} AB &= \sqrt{16 + 16 + 36} \\ &= \sqrt{68} = 2\sqrt{17} \end{aligned}

∴\therefore Direction cosines of ABAB are −217,−217,317-\dfrac{2}{\sqrt{17}}, -\dfrac{2}{\sqrt{17}}, \dfrac{3}{\sqrt{17}}⁠.

Side BCBC⁠. Direction ratios:

−5+1, −5−1, −2−2=−4, −6, −4\begin{aligned} &-5 + 1,\ -5 - 1,\ -2 - 2 \\ &= -4,\ -6,\ -4 \end{aligned} BC=16+36+16=68=217\begin{aligned} BC &= \sqrt{16 + 36 + 16} \\ &= \sqrt{68} = 2\sqrt{17} \end{aligned}

∴\therefore Direction cosines of BCBC are −217,−317,−217-\dfrac{2}{\sqrt{17}}, -\dfrac{3}{\sqrt{17}}, -\dfrac{2}{\sqrt{17}}⁠.

Side CACA⁠. Direction ratios:

3+5, 5+5, −4+2=8, 10, −2\begin{aligned} &3 + 5,\ 5 + 5,\ -4 + 2 \\ &= 8,\ 10,\ -2 \end{aligned} CA=64+100+4=168=242\begin{aligned} CA &= \sqrt{64 + 100 + 4} \\ &= \sqrt{168} = 2\sqrt{42} \end{aligned}

∴\therefore Direction cosines of CACA are 442,542,−142\dfrac{4}{\sqrt{42}}, \dfrac{5}{\sqrt{42}}, -\dfrac{1}{\sqrt{42}}⁠.

The NCERT answer key prints 317\frac{3}{17} as the third direction cosine of ABAB⁠; since AB=217AB = 2\sqrt{17}⁠, it is 6217=317\frac{6}{2\sqrt{17}} = \frac{3}{\sqrt{17}}⁠.

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

The one idea this problem is built on

Each side of the triangle is a line through two known points. So each side is Example 3 again: subtract the coordinates to get direction ratios, then divide by the length of the side. Going round the triangle in one order, A→B→C→AA \to B \to C \to A⁠, fixes the direction of every side.

Given, to find, and the plan
Given
The vertices A(3,5,−4)A(3, 5, -4)⁠, B(−1,1,2)B(-1, 1, 2)⁠, C(−5,−5,−2)C(-5, -5, -2)⁠.
To find
The direction cosines of the sides ABAB⁠, BCBC and CACA⁠.
Plan
(1) Name the vertices and the order of travel. (2) Side ABAB⁠. (3) Side BCBC⁠. (4) Side CACA⁠. (5) Check: squares, the closed loop, and that it is a real triangle.

Basics you need

1Direction cosines of the line through two points

For P(x1,y1,z1)P(x_1, y_1, z_1) and Q(x2,y2,z2)Q(x_2, y_2, z_2)⁠: x2−x1PQ,y2−y1PQ,z2−z1PQ\frac{x_2 - x_1}{PQ}, \frac{y_2 - y_1}{PQ}, \frac{z_2 - z_1}{PQ} (Section 11.2.1). Lesson: direction cosines and direction ratios

2Distance between two points

PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}⁠. Basics: distance in 3D

3Simplifying square roots

Take out square factors: 68=4×17=217\sqrt{68} = \sqrt{4 \times 17} = 2\sqrt{17} and 168=4×42=242\sqrt{168} = \sqrt{4 \times 42} = 2\sqrt{42}⁠.

4The check

Direction cosines satisfy l2+m2+n2=1l^2 + m^2 + n^2 = 1⁠. Basics: direction cosines

Solution

  1. Name the vertices and the order

    Let A(3,5,−4)A(3, 5, -4)⁠, B(−1,1,2)B(-1, 1, 2)⁠, C(−5,−5,−2)C(-5, -5, -2)⁠, and take the sides in the order A→BA \to B⁠, B→CB \to C⁠, C→AC \to A⁠.

    A(3, 5, −4) B(−1, 1, 2) C(−5, −5, −2) AB: −4, −4, 6 BC: −4, −6, −4 CA: 8, 10, −2
    Oblique projection, not to scale. Going round the triangle: A→BA \to B has direction ratios −4,−4,6-4, -4, 6⁠, B→CB \to C has −4,−6,−4-4, -6, -4 and C→AC \to A has 8,10,−28, 10, -2⁠.
    A side such as ABAB is a line, so it has two sets of direction cosines, one for each direction. Travelling round the triangle in one order is a natural choice that fixes all three; it is also the choice the answer key makes. Taking a side the other way, say B→AB \to A⁠, just reverses all three signs for that side.
    Direction cosines of a directed line (Section 11.2). Basics: three numbers fix a point
  2. Side ABAB

    Direction ratios: −1−3, 1−5, 2−(−4)=−4,−4,6-1 - 3,\ 1 - 5,\ 2 - (-4) = -4, -4, 6⁠. Length:

    AB=16+16+36=68=217.AB = \sqrt{16 + 16 + 36} = \sqrt{68} = 2\sqrt{17}.

    Direction cosines:

    −4217,−4217,6217=−217,−217,317.\begin{aligned} &\frac{-4}{2\sqrt{17}}, \frac{-4}{2\sqrt{17}}, \frac{6}{2\sqrt{17}} \\ &= -\frac{2}{\sqrt{17}}, -\frac{2}{\sqrt{17}}, \frac{3}{\sqrt{17}}. \end{aligned}
    Second point minus first point gives how far you move along each axis from AA to BB⁠. Dividing these moves by the length ABAB gives the cosines of the angles ABAB makes with the axes (the right triangle PNQPNQ of Fig 11.2). Each fraction is cancelled by 2; in particular 6217=317\frac{6}{2\sqrt{17}} = \frac{3}{\sqrt{17}}⁠.
    x2−x1PQ,y2−y1PQ,z2−z1PQ\frac{x_2 - x_1}{PQ}, \frac{y_2 - y_1}{PQ}, \frac{z_2 - z_1}{PQ} (Section 11.2.1). Example 3: the same method
  3. Side BCBC

    Direction ratios: −5−(−1), −5−1, −2−2=−4,−6,−4-5 - (-1),\ -5 - 1,\ -2 - 2 = -4, -6, -4⁠. Length:

    BC=16+36+16=68=217.BC = \sqrt{16 + 36 + 16} = \sqrt{68} = 2\sqrt{17}.

    Direction cosines:

    −4217,−6217,−4217=−217,−317,−217.\begin{aligned} &\frac{-4}{2\sqrt{17}}, \frac{-6}{2\sqrt{17}}, \frac{-4}{2\sqrt{17}} \\ &= -\frac{2}{\sqrt{17}}, -\frac{3}{\sqrt{17}}, -\frac{2}{\sqrt{17}}. \end{aligned}
    The same rule with BB first and CC second. −5−(−1)=−5+1=−4-5 - (-1) = -5 + 1 = -4⁠. The sides ABAB and BCBC happen to have the same length, so the triangle is isosceles.
    Distance formula. Basics: Pythagoras twice
  4. Side CACA

    Direction ratios: 3−(−5), 5−(−5), −4−(−2)=8,10,−23 - (-5),\ 5 - (-5),\ -4 - (-2) = 8, 10, -2⁠. Length:

    CA=64+100+4=168=242.\begin{aligned} CA &= \sqrt{64 + 100 + 4} \\ &= \sqrt{168} = 2\sqrt{42}. \end{aligned}

    Direction cosines:

    8242,10242,−2242=442,542,−142.\begin{aligned} &\frac{8}{2\sqrt{42}}, \frac{10}{2\sqrt{42}}, \frac{-2}{2\sqrt{42}} \\ &= \frac{4}{\sqrt{42}}, \frac{5}{\sqrt{42}}, -\frac{1}{\sqrt{42}}. \end{aligned}
    Now CC is the first point and AA the second, closing the loop. −4−(−2)=−2-4 - (-2) = -2⁠. Since 168=4×42168 = 4 \times 42 and 42 has no square factor, 168=242\sqrt{168} = 2\sqrt{42} is fully simplified.
    Direction ratios of CACA⁠: xA−xCx_A - x_C⁠, and so on. Exercise 11.1 player
  5. Check

    Squares: 4+4+917=1\frac{4 + 4 + 9}{17} = 1⁠, 4+9+417=1\frac{4 + 9 + 4}{17} = 1⁠, 16+25+142=1\frac{16 + 25 + 1}{42} = 1⁠.

    Closed loop: (−4,−4,6)+(−4,−6,−4)(-4, -4, 6) + (-4, -6, -4) + (8,10,−2)=(0,0,0)+\ (8, 10, -2) = (0, 0, 0)⁠.

    A real triangle: −4−4=1\frac{-4}{-4} = 1 but −4−6=23\frac{-4}{-6} = \frac23⁠, so ABAB and BCBC are not parallel.

    Each set of direction cosines must have squares adding up to 1. Going A→B→C→AA \to B \to C \to A returns to the start, so the three moves add up to zero, which checks the subtractions. Finally, if the direction ratios of ABAB and BCBC were proportional, the three points would be collinear and there would be no triangle; they are not.
    l2+m2+n2=1l^2 + m^2 + n^2 = 1 (Section 11.2). Basics: direction cosines
Result

ABAB⁠: −217,−217,317-\frac{2}{\sqrt{17}}, -\frac{2}{\sqrt{17}}, \frac{3}{\sqrt{17}}⁠; BCBC⁠: −217,−317,−217-\frac{2}{\sqrt{17}}, -\frac{3}{\sqrt{17}}, -\frac{2}{\sqrt{17}}⁠; CACA⁠: 442,542,−142\frac{4}{\sqrt{42}}, \frac{5}{\sqrt{42}}, -\frac{1}{\sqrt{42}}⁠. (Each side taken the other way has all three signs reversed.)

(Textbook answer: −217,−217,317\frac{-2}{\sqrt{17}}, \frac{-2}{\sqrt{17}}, \frac{3}{17}⁠; −217,−317,−217\frac{-2}{\sqrt{17}}, \frac{-3}{\sqrt{17}}, \frac{-2}{\sqrt{17}}⁠; 442,542,−142\frac{4}{\sqrt{42}}, \frac{5}{\sqrt{42}}, \frac{-1}{\sqrt{42}}⁠. The third value for ABAB is printed as 317\frac{3}{17}⁠; it should read 317\frac{3}{\sqrt{17}}⁠, since AB=217AB = 2\sqrt{17} and 6217=317\frac{6}{2\sqrt{17}} = \frac{3}{\sqrt{17}}⁠. With 317\frac{3}{17} the squares would add up to 145289\frac{145}{289}⁠, not 1.)

Check it with numbers

17≈4.123106\sqrt{17} \approx 4.123106 and 42≈6.480741\sqrt{42} \approx 6.480741⁠, so AB=BC≈8.246211AB = BC \approx 8.246211 and CA≈12.961481CA \approx 12.961481⁠.

217≈0.485071\frac{2}{\sqrt{17}} \approx 0.485071⁠, 317≈0.727607\frac{3}{\sqrt{17}} \approx 0.727607⁠; 442≈0.617213\frac{4}{\sqrt{42}} \approx 0.617213⁠, 542≈0.771517\frac{5}{\sqrt{42}} \approx 0.771517⁠, 142≈0.154303\frac{1}{\sqrt{42}} \approx 0.154303⁠. For comparison, 317≈0.176471\frac{3}{17} \approx 0.176471⁠.

Common mistakes
  1. Dividing by 17\sqrt{17} instead of 2172\sqrt{17} (or forgetting to cancel the 2): the length is 68=217\sqrt{68} = 2\sqrt{17}⁠.
  2. Mixing directions between sides, for example A→BA \to B but A→CA \to C for the third side. Pick one order round the triangle, or state the direction of each side.
  3. Sign slips with negative coordinates, such as 2−(−4)=−22 - (-4) = -2⁠. It is 2+4=62 + 4 = 6⁠.
What to take away
  1. Each side of a triangle is a line through two points: subtract, then divide by the length.
  2. Going round the triangle, the three sets of direction ratios add up to zero, a quick check.
  3. Simplify 68=217\sqrt{68} = 2\sqrt{17} and cancel; the third direction cosine of ABAB is 317\frac{3}{\sqrt{17}}⁠.

Every fact used, and where it comes from

FactUsed inSource
A line has two sets of direction cosines, one for each directionStep 1Section 11.2
Direction cosines x2−x1PQ,y2−y1PQ,z2−z1PQ\frac{x_2 - x_1}{PQ}, \frac{y_2 - y_1}{PQ}, \frac{z_2 - z_1}{PQ}⁠, from Fig 11.2Steps 2 to 4Section 11.2.1 (Lesson)
Distance formula PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}Steps 2 to 4Section 11.2.1 (Basics)
l2+m2+n2=1l^2 + m^2 + n^2 = 1⁠; proportional direction ratios mean parallel linesStep 5Sections 11.2 and 11.4 (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 →