Class 12 / Maths / Mathematics Part II / Chapter 11: Three Dimensional Geometry Ch 11 · Three Dimensional Geometry
Solved Examples Exercise 1 of 4
NCERT Solutions – Solved Examples Class 12 Mathematics · Chapter 11 · Three Dimensional Geometry · 10 solved examples · Session 2026-27
Example 1
A line makes angles $90^\circ$, $60^\circ$ and $30^\circ$ with the positive directions of the x, y and z axes. Find its direction cosines.
Solution
Direction cosines: $$l = \cos\alpha,\ m = \cos\beta,\ n = \cos\gamma,\qquad l^{2}+m^{2}+n^{2} = 1$$
$l = \cos90^\circ = 0$. $m = \cos60^\circ = \dfrac12$. $n = \cos30^\circ = \dfrac{\sqrt3}{2}$. Check: $0 + \dfrac14 + \dfrac34 = 1$ ✔Direction cosines: $\mathbf{\left(0,\ \tfrac12,\ \tfrac{\sqrt3}{2}\right)}$.
Example 2
A line has direction ratios $2,-1,-2$. Determine its direction cosines.
Solution
Direction cosines are the normalised direction ratios.
Magnitude: $\sqrt{2^{2}+(-1)^{2}+(-2)^{2}} = \sqrt{4+1+4} = \sqrt9 = 3$. Divide each ratio by 3. Direction cosines: $\mathbf{\left(\tfrac23,\ -\tfrac13,\ -\tfrac23\right)}$ (or their negatives, for the opposite sense).
Example 3
Find the direction cosines of the line through $(-2,4,-5)$ and $(1,2,3)$.
Solution
Direction ratios $= $ differences of coordinates: $\left(1-(-2),\ 2-4,\ 3-(-5)\right) = (3,\ -2,\ 8)$. Magnitude: $\sqrt{9+4+64} = \sqrt{77}$. Direction cosines: $\mathbf{\left(\dfrac{3}{\sqrt{77}},\ \dfrac{-2}{\sqrt{77}},\ \dfrac{8}{\sqrt{77}}\right)}$.
Example 4
Find the direction cosines of the x, y and z axes.
Solution
The x-axis makes angles $0^\circ,90^\circ,90^\circ$ with the three axes: $(\cos0,\cos90,\cos90) = (1,0,0)$. The y-axis makes $90^\circ,0^\circ,90^\circ$: $(0,1,0)$. The z-axis makes $90^\circ,90^\circ,0^\circ$: $(0,0,1)$. x-axis: $(1,0,0)$; y-axis: $(0,1,0)$; z-axis: $(0,0,1)$.
Example 5
Show that the points $A(2,3,-4)$, $B(1,-2,3)$ and $C(3,8,-11)$ are collinear.
Solution
Three points are collinear when the vectors joining them are parallel , i.e. one is a scalar multiple of the other.
Direction ratios of AB: $\left(1-2,\ -2-3,\ 3-(-4)\right) = (-1,\ -5,\ 7)$. Direction ratios of BC: $\left(3-1,\ 8-(-2),\ -11-3\right) = (2,\ 10,\ -14)$. Observe $(2,10,-14) = -2\,(-1,-5,7)$ — so BC is a scalar multiple of AB. Hence AB and BC are parallel, and they share the point B. Since two parallel segments share a common point, A, B and C are collinear . Proved.
Example 6
Find the vector and Cartesian equations of the line through $(5,2,-4)$ parallel to $3\hat{i}+2\hat{j}-8\hat{k}$.
Solution
Equation of a line: $$\vec{r} = \vec{a} + \lambda\vec{b};\qquad \frac{x-x_1}{a} = \frac{y-y_1}{b} = \frac{z-z_1}{c}$$
Here $\vec{a} = 5\hat{i}+2\hat{j}-4\hat{k}$ and $\vec{b} = 3\hat{i}+2\hat{j}-8\hat{k}$. Vector form: $\vec{r} = \left(5\hat{i}+2\hat{j}-4\hat{k}\right) + \lambda\left(3\hat{i}+2\hat{j}-8\hat{k}\right)$.Cartesian form: take the direction ratios as denominators.$\vec{r} = \left(5\hat{i}+2\hat{j}-4\hat{k}\right)+\lambda\left(3\hat{i}+2\hat{j}-8\hat{k}\right)$, i.e. $\mathbf{\dfrac{x-5}{3} = \dfrac{y-2}{2} = \dfrac{z+4}{-8}}$.
Example 7
Find the angle between the lines $\vec{r}=3\hat{i}+2\hat{j}-4\hat{k}+\lambda\left(\hat{i}+2\hat{j}+2\hat{k}\right)$ and $\vec{r}=5\hat{i}-2\hat{j}+\mu\left(3\hat{i}+2\hat{j}+6\hat{k}\right)$.
Solution
Angle between two lines: $$\cos\theta = \left|\frac{\vec{b_1}\cdot\vec{b_2}}{\left|\vec{b_1}\right|\left|\vec{b_2}\right|}\right|$$
Only the direction vectors matter — the points the lines pass through are irrelevant.
$\vec{b_1} = \hat{i}+2\hat{j}+2\hat{k}$, $\left|\vec{b_1}\right| = \sqrt{1+4+4} = 3$. $\vec{b_2} = 3\hat{i}+2\hat{j}+6\hat{k}$, $\left|\vec{b_2}\right| = \sqrt{9+4+36} = 7$. $\vec{b_1}\cdot\vec{b_2} = (1)(3)+(2)(2)+(2)(6) = 3+4+12 = 19$. $\cos\theta = \dfrac{19}{3\times7} = \dfrac{19}{21}$. $\theta = \mathbf{\cos^{-1}\dfrac{19}{21}}$.
Example 8
Find the angle between the lines $\dfrac{x+3}{3}=\dfrac{y-1}{5}=\dfrac{z+3}{4}$ and $\dfrac{x+1}{1}=\dfrac{y-4}{1}=\dfrac{z-5}{2}$.
Solution
Read the direction ratios from the denominators: $\vec{b_1} = (3,5,4)$ and $\vec{b_2} = (1,1,2)$. $\left|\vec{b_1}\right| = \sqrt{9+25+16} = \sqrt{50} = 5\sqrt2$. $\left|\vec{b_2}\right| = \sqrt{1+1+4} = \sqrt6$. $\vec{b_1}\cdot\vec{b_2} = 3+5+8 = 16$. $\cos\theta = \dfrac{16}{5\sqrt2\cdot\sqrt6} = \dfrac{16}{5\sqrt{12}} = \dfrac{16}{10\sqrt3} = \dfrac{8}{5\sqrt3}$. $\theta = \mathbf{\cos^{-1}\dfrac{8}{5\sqrt3}}$.
Example 9
Find the shortest distance between the lines $\vec{r}=\hat{i}+\hat{j}+\lambda\left(2\hat{i}-\hat{j}+\hat{k}\right)$ and $\vec{r}=2\hat{i}+\hat{j}-\hat{k}+\mu\left(3\hat{i}-5\hat{j}+2\hat{k}\right)$.
Solution
Shortest distance between skew lines: $$d = \left|\frac{\left(\vec{b_1}\times\vec{b_2}\right)\cdot\left(\vec{a_2}-\vec{a_1}\right)}{\left|\vec{b_1}\times\vec{b_2}\right|}\right|$$
$\vec{a_1} = \hat{i}+\hat{j}$, $\vec{b_1} = 2\hat{i}-\hat{j}+\hat{k}$; $\vec{a_2} = 2\hat{i}+\hat{j}-\hat{k}$, $\vec{b_2} = 3\hat{i}-5\hat{j}+2\hat{k}$. $\vec{a_2}-\vec{a_1} = \hat{i}+0\hat{j}-\hat{k}$. $\vec{b_1}\times\vec{b_2} = \begin{vmatrix}\hat{i}&\hat{j}&\hat{k}\\2&-1&1\\3&-5&2\end{vmatrix} = \hat{i}\left(-2+5\right) - \hat{j}\left(4-3\right) + \hat{k}\left(-10+3\right)$. $= 3\hat{i} - \hat{j} - 7\hat{k}$, with magnitude $\sqrt{9+1+49} = \sqrt{59}$. $\left(\vec{b_1}\times\vec{b_2}\right)\cdot\left(\vec{a_2}-\vec{a_1}\right) = (3)(1)+(-1)(0)+(-7)(-1) = 3+7 = 10$. $d = \left|\dfrac{10}{\sqrt{59}}\right|$. Shortest distance $= \mathbf{\dfrac{10}{\sqrt{59}}}$ units.
Example 10
Find the distance between the lines $\vec{r}=\hat{i}+2\hat{j}-4\hat{k}+\lambda\left(2\hat{i}+3\hat{j}+6\hat{k}\right)$ and $\vec{r}=3\hat{i}+3\hat{j}-5\hat{k}+\mu\left(2\hat{i}+3\hat{j}+6\hat{k}\right)$.
Solution
Both lines have the same direction vector, so they are parallel — the skew-lines formula does not apply.
Distance between parallel lines: $$d = \left|\frac{\vec{b}\times\left(\vec{a_2}-\vec{a_1}\right)}{\left|\vec{b}\right|}\right|$$
$\vec{b} = 2\hat{i}+3\hat{j}+6\hat{k}$, $\left|\vec{b}\right| = \sqrt{4+9+36} = 7$. $\vec{a_2}-\vec{a_1} = \left(3-1\right)\hat{i} + \left(3-2\right)\hat{j} + \left(-5+4\right)\hat{k} = 2\hat{i}+\hat{j}-\hat{k}$. $\vec{b}\times\left(\vec{a_2}-\vec{a_1}\right) = \begin{vmatrix}\hat{i}&\hat{j}&\hat{k}\\2&3&6\\2&1&-1\end{vmatrix} = \hat{i}(-3-6) - \hat{j}(-2-12) + \hat{k}(2-6)$. $= -9\hat{i} + 14\hat{j} - 4\hat{k}$, magnitude $\sqrt{81+196+16} = \sqrt{293}$. $d = \dfrac{\sqrt{293}}{7}$. Distance $= \mathbf{\dfrac{\sqrt{293}}{7}}$ units.
← Back to chapter Three Dimensional Geometry Next exercise → Exercise 11.1 Swipe left or right to turn the page Use ← → keys to turn the page