Question 13 Marks
Find the direction cosines of the line passing through two points $(-2, 4, -5)$ and $(1, 2, 3)$.
Answer
View full question & answer→The direction consines of the line passing through two points $P x_1, y_1, z_1$, and $Q (x_2, y_2, z_2)$ are $\frac{\text{x}_2-\text{x}_1}{\text{PQ}},\frac{\text{y}_2-\text{y}_1}{\text{PQ}},\frac{\text{z}_2-\text{z}_1}{\text{PQ}}.$
Here,
$\text{PQ}=\sqrt{(\text{x}_2-\text{x}_1)^2+(\text{y}_2-\text{y}_1)^2+(\text{z}_2-\text{z}_1)^2}$
$\text{P}=2,4,-5$
$\text{Q}=1,2,3$
$\therefore\text{PQ}=1-(-2)^2+(2-4)^2+[3-(-5)]^2=\sqrt{77}$
Thus, the direction cosines of the line joining two points are
$\frac{1-(-2)}{\sqrt{77}},\frac{2-4}{\sqrt{77}},\frac{3-(-5)}{\sqrt{77}},\text{i.e.}\frac{3}{\sqrt{77}}77,\frac{-2}{\sqrt{77}}77,\frac{8}{\sqrt{77}}.$
Here,
$\text{PQ}=\sqrt{(\text{x}_2-\text{x}_1)^2+(\text{y}_2-\text{y}_1)^2+(\text{z}_2-\text{z}_1)^2}$
$\text{P}=2,4,-5$
$\text{Q}=1,2,3$
$\therefore\text{PQ}=1-(-2)^2+(2-4)^2+[3-(-5)]^2=\sqrt{77}$
Thus, the direction cosines of the line joining two points are
$\frac{1-(-2)}{\sqrt{77}},\frac{2-4}{\sqrt{77}},\frac{3-(-5)}{\sqrt{77}},\text{i.e.}\frac{3}{\sqrt{77}}77,\frac{-2}{\sqrt{77}}77,\frac{8}{\sqrt{77}}.$