Chapter 11 Three Dimensional Geometry

The moving power of mathematical invention is not reasoning but imagination. - A.DEMORGAN

11.1 Introduction

In Class XI, while studying Analytical Geometry in two dimensions, and the introduction to three dimensional geometry, we confined to the Cartesian methods only. In the previous chapter of this book, we have studied some basic concepts of vectors. We will now use vector algebra to three dimensional geometry. The purpose of this approach to 3-dimensional geometry is that it makes the study simple and elegant*.

In this chapter, we shall study the direction cosines and direction ratios of a line joining two points and also discuss about the equations of lines and planes in space under different conditions, angle between two lines, two planes, a line and a plane, shortest distance between two skew lines and distance of a point from a plane. Most of the above results are obtained in vector form. Nevertheless, we shall also translate these results in the Cartesian form which, at times, presents a more clear geometric and analytic picture of the situation.

Leonhard Euler $(\mathbf{1 7 0 7 - 1 7 8 3 })$

11.2 Direction Cosines and Direction Ratios of a Line

From Chapter 10, recall that if a directed line $L$ passing through the origin makes angles $\alpha, \beta$ and $\gamma$ with $x, y$ and $z$-axes, respectively, called direction angles, then cosine of these angles, namely, $\cos \alpha, \cos \beta$ and $\cos \gamma$ are called direction cosines of the directed line $L$.

If we reverse the direction of $L$, then the direction angles are replaced by their supplements, i.e., $\pi-\alpha, \pi-\beta$ and $\pi-\gamma$. Thus, the signs of the direction cosines are reversed.

Fig 11.1

Note that a given line in space can be extended in two opposite directions and so it has two sets of direction cosines. In order to have a unique set of direction cosines for a given line in space, we must take the given line as a directed line. These unique direction cosines are denoted by $l, m$ and $n$.

Remark If the given line in space does not pass through the origin, then, in order to find its direction cosines, we draw a line through the origin and parallel to the given line. Now take one of the directed lines from the origin and find its direction cosines as two parallel line have same set of direction cosines.

Any three numbers which are proportional to the direction cosines of a line are called the direction ratios of the line. If $l, m, n$ are direction cosines and $a, b, c$ are direction ratios of a line, then $a=\lambda l, b=\lambda m$ and $c=\lambda n$, for any nonzero $\lambda \in \mathbf{R}$.

Note Some authors also call direction ratios as direction numbers.

Let $a, b, c$ be direction ratios of a line and let $l, m$ and $n$ be the direction cosines (d.c’s) of the line. Then

$$ \frac{l}{a}=\frac{m}{b}=\frac{n}{c}=k \text{ (say), } k \text{ being a constant. } $$

Therefore $ \qquad l=a k, m=b k, n=c k $

But $ \qquad l^{2}+m^{2}+n^{2}=1 $

Therefore $ \qquad k^{2}(a^{2}+b^{2}+c^{2})=1 $

or $ \qquad k= \pm \frac{1}{\sqrt{a^{2}+b^{2}+c^{2}}} $

Hence, from (1), the d.c.’s of the line are $ \qquad l= \pm \frac{a}{\sqrt{a^{2}+b^{2}+c^{2}}}, m= \pm \frac{b}{\sqrt{a^{2}+b^{2}+c^{2}}}, n= \pm \frac{c}{\sqrt{a^{2}+b^{2}+c^{2}}} $

where, depending on the desired sign of $k$, either a positive or a negative sign is to be taken for $l, m$ and $n$. For any line, if $a, b, c$ are direction ratios of a line, then $k a, k b, k c ; k \neq 0$ is also a set of direction ratios. So, any two sets of direction ratios of a line are also proportional. Also, for any line there are infinitely many sets of direction ratios.

11.2.1 Direction cosines of a line passing through two points

Since one and only one line passes through two given points, we can determine the direction cosines of a line passing through the given points $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ as follows (Fig 11.2 (a)).

Fig 11.2

Let $l, m, n$ be the direction cosines of the line PQ and let it makes angles $\alpha, \beta$ and $\gamma$ with the $x, y$ and $z$-axis, respectively.

Draw perpendiculars from $P$ and $Q$ to $XY$-plane to meet at $R$ and $S$. Draw a perpendicular from $P$ to $QS$ to meet at $N$. Now, in right angle triangle $PNQ, \angle PQN=\gamma$ (Fig 11.2 (b)).

$$ \begin{aligned} & \cos \gamma=\frac{\mathrm{NQ}}{\mathrm{PQ}}=\frac{z _{2}-z _{1}}{\mathrm{PQ}} \\ & \cos \alpha=\frac{x _{2}-x _{1}}{\mathrm{PQ}} \text { और } \cos \beta=\frac{y _{2}-y _{1}}{\mathrm{PQ}} \end{aligned} $$

Therefore Hence, the direction cosines of the line segment joining the points $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ are

$$ \frac{x_2-x_1}{PQ}, \frac{y_2-y_1}{PQ}, \frac{z_2-z_1}{PQ} $$

where $ \qquad PQ=\sqrt{(x_2-x_1)^{2}+(y_2-y_1)^{2}+(z_2-z_1)^{2}} $

Note The direction ratios of the line segment joining $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ may be taken as

$$ x_2-x_1, y_2-y_1, z_2-z_1 \text{ or } x_1-x_2, y_1-y_2, z_1-z_2 $$

Example 1 If a line makes angle $90^{\circ}, 60^{\circ}$ and $30^{\circ}$ with the positive direction of $x, y$ and $z$-axis respectively, find its direction cosines.

Solution Let the $d . c$. ’ $s$ of the lines be $l, m, n$. Then $l=\cos 90^{\circ}=0, m=\cos 60^{\circ}=\frac{1}{2}$, $n=\cos 30^{\circ}=\frac{\sqrt{3}}{2}$.

Example 2 If a line has direction ratios 2, - 1, - 2, determine its direction cosines.

Solution Direction cosines are

$$ \frac{2}{\sqrt{2^{2}+(-1)^{2}+(-2)^{2}}}, \frac{-1}{\sqrt{2^{2}+(-1)^{2}+(-2)^{2}}}, \frac{-2}{\sqrt{2^{2}+(-1)^{2}+(-2)^{2}}} $$

or $\qquad \frac{2}{3}, \frac{-1}{3}, \frac{-2}{3}$

Example 3 Find the direction cosines of the line passing through the two points $(-2,4,-5)$ and $(1,2,3)$.

Solution We know the direction cosines of the line passing through two points $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ are given by

where $ \qquad \frac{x_2-x_1}{PQ}, \frac{y_2-y_1}{PQ}, \frac{z_2-z_1}{PQ} $

$$ PQ=\sqrt{(x_2-x_1)^{2}+(y_2-y_1)^{2}+(z_2-z_1)^{2}} $$

Here $P$ is $(-2,4,-5)$ and $Q$ is $(1,2,3)$.

So $ \qquad P Q=\sqrt{(1-(-2))^{2}+(2-4)^{2}+(3-(-5))^{2}}=\sqrt{77} $

Thus, the direction cosines of the line joining two points is

$ \qquad \frac{3}{\sqrt{77}}, \frac{-2}{\sqrt{77}}, \frac{8}{\sqrt{77}} $

Example 4 Find the direction cosines of $x, y$ and $z$-axis.

Solution The $x$-axis makes angles $0^{\circ}, 90^{\circ}$ and $90^{\circ}$ respectively with $x, y$ and $z$-axis. Therefore, the direction cosines of $x$-axis are $\cos 0^{\circ}, \cos 90^{\circ}, \cos 90^{\circ}$ i.e., $1,0,0$. Similarly, direction cosines of $y$-axis and $z$-axis are $0,1,0$ and $0,0,1$ respectively.

Example 5 Show that the points A $(2,3,-4), B(1,-2,3)$ and $C(3,8,-11)$ are collinear.

Solution Direction ratios of line joining A and B are

$1-2,-2-3,3+4$ i.e., $-1,-5,7$.

The direction ratios of line joining $B$ and $C$ are $3-1,8+2,-11-3$, i.e., $2,10,-14$.

It is clear that direction ratios of $AB$ and $BC$ are proportional, hence, $AB$ is parallel to $BC$. But point $B$ is common to both $AB$ and $BC$. Therefore, $A, B, C$ are collinear points.

11.3 Equation of a Line in Space

We have studied equation of lines in two dimensions in Class XI, we shall now study the vector and cartesian equations of a line in space.

A line is uniquely determined if

(i) it passes through a given point and has given direction, or

(ii) it passes through two given points.

11.3.1 Equation of a line through a given point and parallel to $\vec{a}$ given vector $\vec{b}$

Let $\vec{a}$ be the position vector of the given point A with respect to the origin $O$ of the rectangular coordinate system. Let $l$ be the line which passes through the point $A$ and is parallel to a given vector $\vec{b}$. Let $\vec{r}$ be the position vector of an arbitrary point $P$ on the line (Fig 11.3).

Then $\overrightarrow{{}AP}$ is parallel to the vector $\vec{b}$, i.e., $\overrightarrow{{}AP}=\lambda \vec{b}$, where $\lambda$ is some real number.

But $$ \overrightarrow{{}AP}=\overrightarrow{{}OP}-\overrightarrow{{}OA} $$

i.e. $$\lambda \vec{b}=\vec{r}-\vec{a}$$

Conversely, for each value of the parameter $\lambda$, this equation gives the position vector of a point $P$ on the line. Hence, the vector equation of the line is given by

$$ \begin{equation*} \vec{r}=\vec{a}+\lambda \vec{b} \tag{1} \end{equation*} $$

Remark If $\vec{b}=a \hat{i}+b \hat{j}+c \hat{k}$, then $a, b, c$ are direction ratios of the line and conversely, if $a, b, c$ are direction ratios of a line, then $\vec{b}=a \hat{i}+b \hat{j}+c \hat{k}$ will be the parallel to the line. Here, $b$ should not be confused with $|\vec{b}|$. Derivation of cartesian form from vector form

Let the coordinates of the given point $A$ be $(x_1, y_1, z_1)$ and the direction ratios of the line be $a, b, c$. Consider the coordinates of any point $P$ be $(x, y, z)$. Then

$$ \overrightarrow{{}r}=x \hat{i}+y \hat{j}+z \hat{k} ; \overrightarrow{{}a}=x_1 \hat{i}+y_1 \hat{j}+z_1 \hat{k} $$

and $$ \vec{b}=a \hat{i}+b \hat{j}+c \hat{k} $$

Substituting these values in (1) and equating the coefficients of $\hat{i}, \hat{j}$ and $\hat{k}$, we get

$$ \begin{equation*} x=x _{1}+\lambda a ; \quad y=y _{1}+\lambda b ;\quad z=z _{1}+\lambda c \tag{2} \end{equation*} $$

These are parametric equations of the line. Eliminating the parameter $\lambda$ from (2), we get

$$ \begin{equation*} \frac{x-x _{1}}{a}=\frac{y-y _{1}}{b}=\frac{z-z _{1}}{c} \tag{3} \end{equation*} $$

This is the Cartesian equation of the line.

Note If $l, m, n$ are the direction cosines of the line, the equation of the line is

$$ \frac{x-x_1}{l}=\frac{y-y_1}{m}=\frac{z-z_1}{n} $$

Example 6 Find the vector and the Cartesian equations of the line through the point $(5,2,-4)$ and which is parallel to the vector $3 \hat{i}+2 \hat{j}-8 \hat{k}$.

Solution We have

$$ \vec{a}=5 \hat{i}+2 \hat{j}-4 \hat{k} \text{ and } \vec{b}=3 \hat{i}+2 \hat{j}-8 \hat{k} $$

Therefore, the vector equation of the line is

$$ \vec{r}=5 \hat{i}+2 \hat{j}-4 \hat{k}+\lambda(3 \hat{i}+2 \hat{j}-8 \hat{k}) $$

Now, $\vec{r}$ is the position vector of any point $P(x, y, z)$ on the line.

Therefore, $$\quad x \hat{i}+y \hat{j}+z \hat{k}=5 \hat{i}+2 \hat{j}-4 \hat{k}+\lambda(3 \hat{i}+2 \hat{j}-8 \hat{k})$$ $$ =(5+3 \lambda) \hat{i}+(2+2 \lambda) \hat{j}+(-4-8 \lambda) \hat{k} $$

Eliminating $\lambda$, we get

$$ \frac{x-5}{3}=\frac{y-2}{2}=\frac{z+4}{-8} $$

which is the equation of the line in Cartesian form.

11.4 Angle between Two Lines

Let $L_1$ and $L_2$ be two lines passing through the origin and with direction ratios $a_1, b_1, c_1$ and $a_2, b_2, c_2$, respectively. Let $P$ be a point on $L_1$ and $Q$ be a point on $L_2$. Consider the directed lines $OP$ and $OQ$ as given in Fig 11.6. Let $\theta$ be the acute angle between OP and OQ. Now recall that the directed line segments OP and OQ are vectors with components $a_1, b_1, c_1$ and $a_2, b_2, c_2$, respectively. Therefore, the angle $\theta$ between them is given by $\cos \theta=\left|\frac{a _{1} a _{2}+b _{1} b _{2}+c _{1} c _{2}}{\sqrt{a _{1}^{2}+b _{1}^{2}+c _{1}^{2}} \sqrt{a _{2}^{2}+b _{2}^{2}+c _{2}^{2}}}\right|$

The angle between the lines in terms of $\sin \theta$ is given by

$$ \begin{aligned} \sin \theta & =\sqrt{1-\cos ^{2} \theta} \\ & =\sqrt{1-\frac{(a_1 a_2+b_1 b_2+c_1 c_2)^{2}}{(a_1^{2}+b_1^{2}+c_1^{2})(a_2^{2}+b_2^{2}+c_2^{2})}} \\ & =\frac{\sqrt{(a_1^{2}+b_1^{2}+c_1^{2})(a_2^{2}+b_2^{2}+c_2^{2})-(a_1 a_2+b_1 b_2+c_1 c_2)^{2}}}{\sqrt{(a_1^{2}+b_1^{2}+c_1^{2})} \sqrt{(a_2^{2}+b_2^{2}+c_2^{2})}} \\ & =\frac{\sqrt{(a_1 b_2-a_2 b_1)^{2}+(b_1 c_2-b_2 c_1)^{2}+(c_1 a_2-c_2 a_1)^{2}}}{\sqrt{a_1^{2}+b_1^{2}+c_1^{2}} \sqrt{a_2^{2}+b_2^{2}+c_2^{2}}} \end{aligned} $$

Note In case the lines $L_1$ and $L_2$ do not pass through the origin, we may take lines $L_1^{\prime}$ and $L_2^{\prime}$ which are parallel to $L_1$ and $L_2$ respectively and pass through the origin.

If instead of direction ratios for the lines $L_1$ and $L_2$, direction cosines, namely, $l_1, m_1, n_1$ for $L_1$ and $l_2, m_2, n_2$ for $L_2$ are given, then (1) and (2) takes the following form:

$$ \cos \theta=|l_1 l_2+m_1 m_2+n_1 n_2| \quad(\text{ as } l_1^{2}+m_1^{2}+n_1^{2}=1=l_2^{2}+m_2^{2}+n_2^{2}) $$

and $$ \sin \theta=\sqrt{(l_1 m_2-l_2 m_1)^{2}-(m_1 n_2-m_2 n_1)^{2}+(n_1 l_2-n_2 l_1)^{2}} $$

Two lines with direction ratios $a_1, b_1, c_1$ and $a_2, b_2, c_2$ are

(i) perpendicular i.e. if $\theta=90^{\circ}$ by (1)

$$ a_1 a_2+b_1 b_2+c_1 c_2=0 $$

(ii) parallel i.e. if $\theta=0$ by (2)

$$\frac{\boldsymbol{a} _{\mathbf{1}}}{\boldsymbol{a} _{2}}=\frac{\boldsymbol{b} _{\mathbf{1}}}{\boldsymbol{b} _{\mathbf{2}}}=\frac{\boldsymbol{c} _{\mathbf{1}}}{\boldsymbol{c} _{\mathbf{2}}}$$

Now, we find the angle between two lines when their equations are given. If $\theta$ is acute the angle between the lines $\vec{r}=\vec{a} _{1}+\lambda \vec{b} _{1}$ और $\vec{r}=\vec{a} _{2}+\mu \vec{b} _{2}$ In Cartesian form, if $\theta$ is the angle between the lines

then $$ \begin{aligned} \cos \theta & =\left|\frac{\vec{b}_1 \cdot \vec{b}_2}{\left|\vec{b}_1\right|\left|\vec{b}_2\right|}\right|
\end{aligned} $$

$$ \frac{x-x_1}{a_1}=\frac{y-y_1}{b_1}=\frac{z-z_1}{c_1} \tag{1} $$

and $$ \frac{x-x_2}{a_2}=\frac{y-y_2}{b_2}=\frac{z-z_2}{c_2} \tag{2} $$

where, $a_1, b _{1,} c_1$ and $a _{2,}, b_2, c_2$ are the direction ratios of the lines (1) and (2), respectively, then

$$ \cos \theta=|\frac{a_1 a_2+b_1 b_2+c_1 c_2}{\sqrt{a_1^{2}+b_1^{2}+c_1^{2}} \sqrt{a_2^{2}+b_2^{2}+c_2^{2}}}| $$

Example 7 Find the angle between the pair of lines given by

$$ \vec{r}=3 \hat{i}+2 \hat{j}-4 \hat{k}+\lambda(\hat{i}+2 \hat{j}+2 \hat{k}) $$

and $$ \vec{r}=5 \hat{i}-2 \hat{j}+\mu(3 \hat{i}+2 \hat{j}+6 \hat{k}) $$

Solution Here $ \vec{b} _ {1}=\hat{i} + 2 \hat{j} + 2 \hat{k} $ and $ \vec{b} _ {2}=3 \hat{i} + 2 \hat{j} + 6 \hat{k} $

The angle $\theta$ between the two lines is given by

$$ \begin{aligned} \cos \theta & = |\frac{ \vec{b} _ {1} \cdot \vec{b} _ {2}}{| \vec{b} _ {1}|| \vec{b} _ {2}|}| = |\frac{(\hat{i} + 2 \hat{j} + 2 \hat{k}) \cdot(3 \hat{i} + 2 \hat{j} + 6 \hat{k})}{\sqrt{1 + 4+ 4} \sqrt{9 + 4 + 36}}| \\ & =|\frac{3+4+12}{3 \times 7}|=\frac{19}{21} ) \end{aligned} $$

Hence $$ \theta=\cos ^{-1}\left(\frac{19}{21}\right) $$

Example 8 Find the angle between the pair of lines

and $$ \begin{aligned} & \frac{x+3}{3}=\frac{y-1}{5}=\frac{z+3}{4} \\ & \frac{x+1}{1}=\frac{y-4}{1}=\frac{z-5}{2} \end{aligned} $$

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

$$ \cos \theta=|\frac{3.1+5.1+4.2}{\sqrt{3^{2}+5^{2}+4^{2}} \sqrt{1^{2}+1^{2}+2^{2}}}|=\frac{16}{\sqrt{50} \sqrt{6}}=\frac{16}{5 \sqrt{2} \sqrt{6}}=\frac{8 \sqrt{3}}{15} $$

Hence, the required angle is $\cos ^{-1}(\frac{8 \sqrt{3}}{15})$.

11.5 Shortest Distance between Two Lines

If two lines in space intersect at a point, then the shortest distance between them is zero. Also, if two lines in space are parallel, then the shortest distance between them will be the perpendicular distance, i.e. the length of the perpendicular drawn from a point on one line onto the other line.

Further, in a space, there are lines which are neither intersecting nor parallel. In fact, such pair of lines are non coplanar and are called skew lines. For example, let us consider a room of size 1, 3, 2 units along

Fig 11.5 $x, y$ and $z$-axes respectively Fig 11.5.

The line GE that goes diagonally across the ceiling and the line DB passes through one corner of the ceiling directly above A and goes diagonally down the wall. These lines are skew because they are not parallel and also never meet.

By the shortest distance between two lines we mean the join of a point in one line with one point on the other line so that the length of the segment so obtained is the smallest. For skew lines, the line of the shortest distance will be perpendicular to both the lines.

11.5.1 Distance between two skew lines

We now determine the shortest distance between two skew lines in the following way: Let $l_1$ and $l_2$ be two skew lines with equations (Fig. 11.6)

and $$ \vec{r} = \vec{a} _ {1}+\lambda \vec{b} _ {1} \tag{1}$$ $$ \vec{r} = \vec{a} _ {2}+\mu \vec{b} _ {2} \tag{2} $$

Take any point $ S $ on $l_ {1} $ with position vector $ \overrightarrow{{}a}_ {1} $ and $ T $ on $ l_ {2} $, with position vector $ \overrightarrow{{}a}_ {2} $. Then the magnitude of the shortest distance vector will be equal to that of the projection of ST along the direction of the line of shortest distance (See 10.6.2).

If $\overrightarrow{{}PQ}$ is the shortest distance vector between $l_1$ and $l_2$, then it being perpendicular to both $ \vec{b} _1$ and $ \vec{b} _2$, the unit vector $\hat{n}$ along $\overrightarrow{{}PQ}$ would therefore be

Fig 11.6

$$ \hat{n} = \frac{ \vec{b} _ {1} \times \vec{b} _ {2}}{| \vec{b} _ {1} \times \vec{b} _ {2}|} \tag{3} $$

Then $$ \overrightarrow{{}PQ}=d \hat{n} $$

where, $d$ is the magnitude of the shortest distance vector. Let $\theta$ be the angle between $\overrightarrow{{}ST}$ and $\overrightarrow{{}PQ}$. Then

But $$ \begin{aligned} PQ & = ST|\cos \theta| \\ \cos \theta & = |\frac{\overrightarrow{{}PQ} \cdot \overrightarrow{{}ST}}{|\overrightarrow{{}PQ}||\overrightarrow{{}ST}|}| \\ & = |\frac{d \hat{n} \cdot( \vec{a} _ {2}- \vec{a} _ {1})}{d ST}| \quad(\text{ since } \overrightarrow{{}ST}= \vec{a} _ {2}- \vec{a} _ {1}) \\ & = |\frac{( \vec{b} _ {1} \times \vec{b} _ {2}) \cdot( \vec{a} _ {2}- \vec{a} _ {1})}{ST| \vec{b} _ {1} \times \vec{b} _ {2}|}| \end{aligned} $$

Hence, the required shortest distance is

or $$ \begin{aligned} & d = PQ = ST|\cos \theta| \\ & \boldsymbol{{}d} = |\frac{(\overrightarrow{{}b}_ {1} \times \overrightarrow{{}b}_ {2}) \cdot( \vec{a} _ {2} \times \vec{a} _ {1})}{| \vec{b} _ {1} \times \vec{b} _ {2}|}| \end{aligned} $$

Cartesian form

and $$ l _{1}: \frac{x-x _{1}}{a _{1}}=\frac{y-y _{1}}{b _{1}}=\frac{z-z _{1}}{c _{1}} $$

and $$ l _{2}: \frac{x-x _{2}}{a _{2}}=\frac{y-y _{2}}{b _{2}}=\frac{z-z _{2}}{c _{2}} $$

$$ \frac{\left|\begin{array}{ccc} x _{2}-x _{1} & y _{2}-y _{1} & z _{2}-z _{1} \\ a _{1} & b _{1} & c _{1} \\ a _{2} & b _{2} & c _{2} \end{array}\right|}{\sqrt{\left(b _{1} c _{2}-b _{2} c _{1}\right)^{2}+\left(c _{1} a _{2}-c _{2} a _{1}\right)^{2}+\left(a _{1} b _{2}-a _{2} b _{1}\right)^{2}}} $$

11.5.2 Distance between parallel lines

If two lines $l_1$ and $l_2$ are parallel, then they are coplanar. Let the lines be given by

$$ \begin{align*} & \vec{r}=\vec{a} _{1}+\lambda \vec{b} \tag{1}\\ & \vec{r}=\vec{a} _{2}+\mu \vec{b} \tag{2} \end{align*} $$

where, $ \vec{a} _1$ is the position vector of a point $S$ on $l_1$ and $ \vec{a} _2$ is the position vector of a point $T$ on $l_2$ Fig 11.7.

As $l_1, l_2$ are coplanar, if the foot of the perpendicular from $T$ on the line $l_1$ is $P$, then the distance between the lines $l_1$ and $l_2=|TP|$.

Let $\theta$ be the angle between the vectors $\overrightarrow{{}ST}$ and $\vec{b}$. Then

$$ \vec{b} \times \overrightarrow{{}ST}=(|\vec{b}||\overrightarrow{{}ST}| \sin \theta) \hat{n} \ldots \tag{3} $$

where $\hat{n}$ is the unit vector perpendicular to the plane of the lines $l_1$ and $l_2$.

But $$ \overrightarrow{{}ST} = \vec{a} _2 - \vec{a} _1 $$

Therefore, from (3), we get $$ \begin{matrix} & \quad \vec{b} \times ( \vec{a} _2 - \vec{a} _1) = \vec{b} , |PT| \hat{n} \quad (\text{since } PT = ST \sin \theta) \\ \text{i.e.,} & |\vec{b} \times ( \vec{a} _2 - \vec{a} _1)| = |\vec{b}| , |PT| \cdot 1 \quad (\text{as } |\hat{n}| = 1) \end{matrix} $$

Hence, the distance between the given parallel lines is

$$ d=|\overrightarrow{{}\mathbf{P T}}| = |\frac{\vec{b} \times(\vec{a} _ {2}-\vec{a} _ {1})}{|\vec{b}|}| $$

Example 9 Find the shortest distance between the lines $l_1$ and $l_2$ whose vector equations are

$$ \begin{aligned} & \vec{r} =\hat{i}+\hat{j}+\lambda(2 \hat{i}-\hat{j}+\hat{k}) \\ \text{ and } \qquad& \vec{r} =2 \hat{i}+\hat{j}-\hat{k}+\mu(3 \hat{i}-5 \hat{j}+2 \hat{k}) \end{aligned} $$

Solution Comparing (1) and (2) with $\vec{r} = \vec{a} _ {1} + \lambda \vec{b} _ {1} $ and $ \overrightarrow{{}r} = \overrightarrow{{}a} _ {2} + \mu \overrightarrow{{}b} _ {2} $ respectively, we get

$ \begin{aligned} & a _{1}=\hat{i}+\hat{j}, b _{1}=2 \hat{i}-\hat{j}+\hat{k} \\ & a _{2}=2 \hat{i}+\hat{j}-\hat{k} \text { and } b _{2}=3 \hat{i}-5 \hat{j}+2 \hat{k} \end{aligned} $

Therefore $\qquad a _{2}-a _{1}=\hat{i}-\hat{k}$

and $\qquad b _{1} \times b _{2}=(2 \hat{i}-\hat{j}+\hat{k}) \times(3 \hat{i}-5 \hat{j}+2 \hat{k})$

$$ =\left|\begin{array}{ccc} \hat{i} & \hat{j} & \hat{k} \\ 2 & -1 & 1 \\ 3 & -5 & 2 \end{array}\right|=3 \hat{i}-\hat{j}-7 \hat{k} $$

So, $$ \left|b _{1} \times b _{2}\right|=\sqrt{9+1+49}=\sqrt{59} $$

Hence, the shortest distance between the given lines is given by

$$ d=|\frac{(\overrightarrow{{}b}_ {1} \times \overrightarrow{{}b}_ {2}) \cdot(\overrightarrow{{}a}_ {2}-\overrightarrow{{}a}_ {1})}{|\overrightarrow{{}b}_ {1} \times \overrightarrow{{}b}_ {2}|}|=\frac{|3-0+7|}{\sqrt{59}}=\frac{10}{\sqrt{59}} $$

Example 10 Find the distance between the lines $l_1$ and $l_2$ given by $$ \begin{aligned} & \vec{r}=\hat{i}+2 \hat{j}-4 \hat{k}+\lambda(2 \hat{i}+3 \hat{j}+6 \hat{k}) \\ \text{ and } \qquad& \vec{r}=3 \hat{i}+3 \hat{j}-5 \hat{k}+\mu(2 \hat{i}+3 \hat{j}+6 \hat{k}) \end{aligned} $$

Solution The two lines are parallel (Why?) We have

$$ \overrightarrow{{}a}_ {1}=\hat{i}+2 \hat{j}-4 \hat{k}, \overrightarrow{{}a}_ {2}=3 \hat{i}+3 \hat{j}-5 \hat{k} \text{ and } \vec{b}=2 \hat{i}+3 \hat{j}+6 \hat{k} $$

Therefore, the distance between the lines is given by

$$ \begin{aligned} & d =\left|\frac{\vec{b} \times( \vec{a} _ {2}- \vec{a} _ {1})}{|\vec{b}|}\right| =\left|\frac{ \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & 3 & 6 \\ 2 & 1 & -1 \end{vmatrix} }{\sqrt{4+9+36}}\right| , \\ &=\frac{|-9 \hat{i}+14 \hat{j}-4 \hat{k}|}{\sqrt{49}}=\frac{\sqrt{293}}{\sqrt{49}}=\frac{\sqrt{293}}{7} \\ \end{aligned} $$

Summary

  • Direction cosines of a line are the cosines of the angles made by the line with the positive directions of the coordinate axes.

  • If $l, m, n$ are the direction cosines of a line, then $l^{2}+m^{2}+n^{2}=1$.

  • Direction cosines of a line joining two points $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ are

  • $ \frac{x_2-x_1}{PQ}, \frac{y_2-y_1}{PQ}, \frac{z_2-z_1}{PQ} $

where $PQ=\sqrt{(x_2-x_1)^{2}+(y_2-y_1)^{2}+(z_2-z_1)^{2}}$

  • $\Delta$ Direction ratios of a line are the numbers which are proportional to the direction cosines of a line.
  • If $l, m, n$ are the direction cosines and $a, b, c$ are the direction ratios of a line then

$$ l=\frac{a}{\sqrt{a^{2}+b^{2}+c^{2}}} ; m=\frac{b}{\sqrt{a^{2}+b^{2}+c^{2}}} ; n=\frac{c}{\sqrt{a^{2}+b^{2}+c^{2}}} $$

  • Skew lines are lines in space which are neither parallel nor intersecting. They lie in different planes.
  • Angle between skew lines is the angle between two intersecting lines drawn from any point (preferably through the origin) parallel to each of the skew lines.
  • If $l_1, m_1, n_1$ and $l_2, m_2, n_2$ are the direction cosines of two lines; and $\theta$ is the acute angle between the two lines; then

$$ \cos \theta=|l_1 l_2+m_1 m_2+n_1 n_2| $$

If $a_1, b_1, c_1$ and $a_2, b_2, c_2$ are the direction ratios of two lines and $\theta$ is the acute angle between the two lines; then

$$ \cos \theta=|\frac{a_1 a_2+b_1 b_2+c_1 c_2}{\sqrt{a_1^{2}+b_1^{2}+c_1^{2}} \sqrt{a_2^{2}+b_2^{2}+c_2^{2}}}| $$

  • Vector equation of a line that passes through the given point whose position vector is $\vec{a}$ and parallel to a given vector $\vec{b}$ is $\vec{r}=\vec{a}+\lambda \vec{b}$.

  • Equation of a line through a point $(x_1, y_1, z_1)$ and having direction cosines $l, m, n$ is $ \frac{x-x_1}{l}=\frac{y-y_1}{m}=\frac{z-z_1}{n} $

  • The vector equation of a line which passes through two points whose position vectors are $\vec{a}$ and $\vec{b}$ is $\vec{r}=\vec{a}+\lambda(\vec{b}-\vec{a})$.

  • $\Delta$ If $\theta$ is the acute angle between $\vec{r}= \vec{a} _ {1}+\lambda \vec{b} _ {1}$ and $\vec{r}= \vec{a} _ {2}+\lambda \vec{b} _ {2}$, then $\cos \theta=|\frac{ \vec{b} _ {1} \cdot \vec{b} _ {2}}{| \vec{b} _ {1}|| \vec{b} _ {2}|}|$

  • $\checkmark$ If $\frac{x-x_1}{l_1}=\frac{y-y_1}{m_1}=\frac{z-z_1}{n_1}$ and $\frac{x-x_2}{l_2}=\frac{y-y_2}{m_2}=\frac{z-z_2}{n_2}$

  • are the equations of two lines, then the acute angle between the two lines is given by $\cos \theta=|l_1 l_2+m_1 m_2+n_1 n_2|$.

  • Shortest distance between two skew lines is the line segment perpendicular to both the lines.

  • Shortest distance between $\vec{r}= \vec{a} _ {1}+\lambda \vec{b} _ {1}$ and $\vec{r}= \vec{a} _ {2}+\mu \vec{b} _ {2}$ is

$$ |\frac{( \vec{b} _ {1} \times \vec{b} _ {2}) \cdot( \vec{a} _ {2}- \vec{a} _ {1})}{| \vec{b} _ {1} \times \vec{b} _ {2}|}| $$

  • Shortest distance between the lines: $\frac{x-x_1}{a_1}=\frac{y-y_1}{b_1}=\frac{z-z_1}{c_1}$ and $ \frac{x-x_2}{a_2}=\frac{y-y_2}{b_2}=\frac{z-z_2}{c_2} \text{ is } $

$$ \frac{ \begin{vmatrix} x_2-x_1 & y_2-y_1 & z_2-z_1 \\ a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{vmatrix} }{\sqrt{(b_1 c_2-b_2 c_1)^{2}+(c_1 a_2-c_2 a_1)^{2}+(a_1 b_2-a_2 b_1)^{2}}} $$

Distance between parallel lines $\vec{r}= \vec{a} _ {1}+\lambda \vec{b}$ and $\vec{r}= \vec{a} _ {2}+\mu \vec{b}$ is

$$|\frac{\vec{b} \times( \vec{a} _ {2}- \vec{a} _ {1})}{|\vec{b}|}|$$

ICAR AIEEA (UG) Exam