Straight Line in Space

RS Aggarwal Class 12 Maths Solutions Exercise 27D — Straight Line in Space

RS Aggarwal, Class 12 Mathematics — Straight Line in Space, Exercise 27D. All 19 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

Exercise 27D is about the distance between two lines in space. For skew lines (neither parallel nor meeting) it is the length of the common perpendicular, found from the cross product of the directions. For parallel lines the cross product of directions vanishes, so a different formula is used. Questions 10 to 12 ask whether lines meet, and in Q12 where.

Key insight. For $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$ the shortest distance is $\dfrac{|(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)|}{|\vec b_1\times\vec b_2|}$. If $\vec b_1\times\vec b_2=\vec 0$ the lines are parallel and the distance is $\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}$. A distance of zero means the lines meet.

Question 1

Find the shortest distance between the two lines

$$\vec r=(\hat i+\hat j)+\lambda(2\hat i-\hat j+\hat k),\qquad \vec r=(2\hat i+\hat j-\hat k)+\mu(3\hat i-5\hat j+2\hat k).$$

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\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$ and $\vec b_2=3\hat i-5\hat j+2\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&-1&1\\ 3&-5&2\end{vmatrix}=3\hat i-\hat j-7\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{59}.$$

Also $\vec a_2-\vec a_1=\hat i-\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=10$. Hence

$$SD=\frac{|10|}{\sqrt{59}}=\frac{10 \sqrt{59}}{59}\text{ units}.$$

$SD=\frac{10 \sqrt{59}}{59}$ units

Question 2

Find the shortest distance between the two lines

$$\vec r=(-4\hat i+4\hat j+\hat k)+\lambda(\hat i+\hat j-\hat k),\qquad \vec r=(-3\hat i-8\hat j-3\hat k)+\mu(2\hat i+3\hat j+3\hat k).$$

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=-4\hat i+4\hat j+\hat k$, $\vec b_1=\hat i+\hat j-\hat k$, $\vec a_2=-3\hat i-8\hat j-3\hat k$ and $\vec b_2=2\hat i+3\hat j+3\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 1&1&-1\\ 2&3&3\end{vmatrix}=6\hat i-5\hat j+\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{62}.$$

Also $\vec a_2-\vec a_1=\hat i-12\hat j-4\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=62$. Hence

$$SD=\frac{|62|}{\sqrt{62}}=\sqrt{62}\text{ units}.$$

$SD=\sqrt{62}$ units

Question 3

Find the shortest distance between the two lines

$$\vec r=(\hat i+2\hat j+3\hat k)+\lambda(\hat i-3\hat j+2\hat k),\qquad \vec r=(4\hat i+5\hat j+6\hat k)+\mu(2\hat i+3\hat j+\hat k).$$

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=\hat i+2\hat j+3\hat k$, $\vec b_1=\hat i-3\hat j+2\hat k$, $\vec a_2=4\hat i+5\hat j+6\hat k$ and $\vec b_2=2\hat i+3\hat j+\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 1&-3&2\\ 2&3&1\end{vmatrix}=-9\hat i+3\hat j+9\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{171}=3 \sqrt{19}.$$

Also $\vec a_2-\vec a_1=3\hat i+3\hat j+3\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=9$. Hence

$$SD=\frac{|9|}{3 \sqrt{19}}=\frac{3 \sqrt{19}}{19}\text{ units}.$$

$SD=\frac{3 \sqrt{19}}{19}$ units

Question 4

Find the shortest distance between the two lines

$$\vec r=(\hat i+2\hat j+\hat k)+\lambda(\hat i-\hat j+\hat k),\qquad \vec r=(2\hat i-\hat j-\hat k)+\mu(2\hat i+\hat j+2\hat k).$$

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=\hat i+2\hat j+\hat k$, $\vec b_1=\hat i-\hat j+\hat k$, $\vec a_2=2\hat i-\hat j-\hat k$ and $\vec b_2=2\hat i+\hat j+2\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 1&-1&1\\ 2&1&2\end{vmatrix}=-3\hat i+3\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{18}=3 \sqrt{2}.$$

Also $\vec a_2-\vec a_1=\hat i-3\hat j-2\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=-9$. Hence

$$SD=\frac{|-9|}{3 \sqrt{2}}=\frac{3 \sqrt{2}}{2}\text{ units}.$$

$SD=\frac{3 \sqrt{2}}{2}$ units

Question 5

Find the shortest distance between the two lines

$$\vec r=(\hat i+2\hat j-4\hat k)+\lambda(2\hat i+3\hat j+6\hat k),\qquad \vec r=(3\hat i+3\hat j-5\hat k)+\mu(-2\hat i+3\hat j+8\hat k).$$

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=\hat i+2\hat j-4\hat k$, $\vec b_1=2\hat i+3\hat j+6\hat k$, $\vec a_2=3\hat i+3\hat j-5\hat k$ and $\vec b_2=-2\hat i+3\hat j+8\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&3&6\\ -2&3&8\end{vmatrix}=6\hat i-28\hat j+12\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{964}=2 \sqrt{241}.$$

Also $\vec a_2-\vec a_1=2\hat i+\hat j-\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=-28$. Hence

$$SD=\frac{|-28|}{2 \sqrt{241}}=\frac{14 \sqrt{241}}{241}\text{ units}.$$

$SD=\frac{14 \sqrt{241}}{241}$ units

Question 6

Find the shortest distance between the two lines

$$\vec r=(6\hat i+3\hat k)+\lambda(2\hat i-\hat j+4\hat k),\qquad \vec r=(-9\hat i+\hat j-10\hat k)+\mu(4\hat i+\hat j+6\hat k).$$

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=6\hat i+3\hat k$, $\vec b_1=2\hat i-\hat j+4\hat k$, $\vec a_2=-9\hat i+\hat j-10\hat k$ and $\vec b_2=4\hat i+\hat j+6\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&-1&4\\ 4&1&6\end{vmatrix}=-10\hat i+4\hat j+6\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{152}=2 \sqrt{38}.$$

Also $\vec a_2-\vec a_1=-15\hat i+\hat j-13\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=76$. Hence

$$SD=\frac{|76|}{2 \sqrt{38}}=\sqrt{38}\text{ units}.$$

$SD=\sqrt{38}$ units

Question 7

Find the shortest distance between the lines $\vec r=(3-t)\hat i+(4+2t)\hat j+(t-2)\hat k$ and $\vec r=(1+s)\hat i+(3s-7)\hat j+(2s-2)\hat k$.

Solution. Reading off the parameters, line one is $(3,4,-2)+t(-1,2,1)$ and line two is $(1,-7,-2)+s(1,3,2)$. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=3\hat i+4\hat j-2\hat k$, $\vec b_1=-\hat i+2\hat j+\hat k$, $\vec a_2=\hat i-7\hat j-2\hat k$ and $\vec b_2=\hat i+3\hat j+2\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ -1&2&1\\ 1&3&2\end{vmatrix}=\hat i+3\hat j-5\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{35}.$$

Also $\vec a_2-\vec a_1=-2\hat i-11\hat j$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=-35$. Hence

$$SD=\frac{|-35|}{\sqrt{35}}=\sqrt{35}\text{ units}.$$

$SD=\sqrt{35}$ units

Question 8

Find the shortest distance between the lines $\vec r=(\lambda-1)\hat i+(\lambda+1)\hat j-(\lambda+1)\hat k$ and $\vec r=(1-\mu)\hat i+(2\mu-1)\hat j+(\mu+2)\hat k$.

Solution. Reading off the coefficients of the parameters, line one passes through $(-1,1,-1)$ with direction $(1,1,-1)$, and line two through $(1,-1,2)$ with direction $(-1,2,1)$. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=-\hat i+\hat j-\hat k$, $\vec b_1=\hat i+\hat j-\hat k$, $\vec a_2=\hat i-\hat j+2\hat k$ and $\vec b_2=-\hat i+2\hat j+\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 1&1&-1\\ -1&2&1\end{vmatrix}=3\hat i+3\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{18}=3 \sqrt{2}.$$

Also $\vec a_2-\vec a_1=2\hat i-2\hat j+3\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=15$. Hence

$$SD=\frac{|15|}{3 \sqrt{2}}=\frac{5 \sqrt{2}}{2}\text{ units}.$$

$SD=\frac{5 \sqrt{2}}{2}$ units

Question 9

Work out how far apart the lines $\vec r=(\hat i-\hat j)+\lambda(2\hat i-\hat k)$ and $\vec r=(2\hat i-\hat j)+\mu(\hat i-\hat j-\hat k)$ are at their closest, and decide whether they meet.

Solution. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=\hat i-\hat j$, $\vec b_1=2\hat i-\hat k$, $\vec a_2=2\hat i-\hat j$ and $\vec b_2=\hat i-\hat j-\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&0&-1\\ 1&-1&-1\end{vmatrix}=-\hat i+\hat j-2\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{6}.$$

Also $\vec a_2-\vec a_1=\hat i$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=-1$. Hence

$$SD=\frac{|-1|}{\sqrt{6}}=\frac{\sqrt{6}}{6}\text{ units}.$$

Since $SD=\dfrac{1}{\sqrt6}\neq0$, the lines do not intersect (and, as $\vec b_1\times\vec b_2\neq\vec 0$, they are not parallel either: they are skew).

$SD=\dfrac{1}{\sqrt6}=\dfrac{\sqrt6}{6}$ units $\neq0$, so the lines do not intersect.

Question 10

Prove that the lines $\vec r=(3\hat i-15\hat j+9\hat k)+\lambda(2\hat i-7\hat j+5\hat k)$ and $\vec r=(-\hat i+\hat j+9\hat k)+\mu(2\hat i+\hat j-3\hat k)$ never meet.

Solution. Two lines meet only if the scalar triple product $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)$ is zero (and they are not parallel). Here $\vec a_2-\vec a_1=-4\hat i+16\hat j$, and

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&-7&5\\ 2&1&-3\end{vmatrix}=16\hat i+16\hat j+16\hat k.$$

The directions are not proportional, so the lines are not parallel. Then

$$(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=(-4)(16)+(16)(16)+0\cdot16=192\neq0.$$

To see it directly: equating components gives $3+2\lambda=-1+2\mu$, $-15-7\lambda=1+\mu$ and $9+5\lambda=9-3\mu$. The third gives $\mu=-\tfrac{5\lambda}{3}$ and the first gives $\mu=2+\lambda$, so $\lambda=-\tfrac34$, $\mu=\tfrac54$. The second equation then reads $-15+\tfrac{21}{4}=-\tfrac{39}{4}$ on the left but $1+\tfrac54=\tfrac94$ on the right, so it fails, confirming the lines never meet. In fact their distance is $\dfrac{192}{16\sqrt3}=4\sqrt3$ units, which is not zero.

The lines do not intersect: $SD=4\sqrt3\neq0$.

Question 11

Examine whether the lines $\vec r=(2\hat i-3\hat k)+\lambda(\hat i+2\hat j+3\hat k)$ and $\vec r=(2\hat i+6\hat j+3\hat k)+\mu(2\hat i+3\hat j+4\hat k)$ intersect, and find the point of intersection if they do.

Solution. Write the points as $(2+\lambda,\,2\lambda,\,-3+3\lambda)$ and $(2+2\mu,\,6+3\mu,\,3+4\mu)$. For a common point the three coordinates must agree:

$$2+\lambda=2+2\mu,\qquad 2\lambda=6+3\mu,\qquad -3+3\lambda=3+4\mu.$$

The first gives $\lambda=2\mu$. Putting this in the second, $4\mu=6+3\mu$, so $\mu=6$ and $\lambda=12$. The third equation then reads $-3+36=33$ on the left but $3+24=27$ on the right, so it fails. The three equations have no common solution.

The triple product confirms it: $\vec b_1\times\vec b_2=-\hat i+2\hat j-\hat k$, $\vec a_2-\vec a_1=6\hat j+6\hat k$, and their dot product is $12-6=6\neq0$. So the lines are skew, with

$$SD=\frac{6}{\sqrt6}=\sqrt6\text{ units}.$$

The point $(2,6,3)$ lies on the second line (take $\mu=0$) but not on the first, because $x=2$ forces $\lambda=0$ there, giving $y=0\neq6$.

As given, the lines do not intersect (they are skew, $SD=\sqrt6$ units).

Question 12

Examine whether the lines $\vec r=(\hat i+2\hat j+3\hat k)+\lambda(2\hat i+3\hat j+4\hat k)$ and $\vec r=(4\hat i+\hat j)+\mu(5\hat i+2\hat j+\hat k)$ intersect, and find the point of intersection if they do.

Solution. A point of the first line is $(1+2\lambda,\,2+3\lambda,\,3+4\lambda)$ and of the second $(4+5\mu,\,1+2\mu,\,\mu)$. Equating coordinates:

$$1+2\lambda=4+5\mu,\qquad 2+3\lambda=1+2\mu,\qquad 3+4\lambda=\mu.$$

The third equation gives $\mu=3+4\lambda$. Substituting in the first: $1+2\lambda=4+15+20\lambda$, so $-18=18\lambda$, i.e. $\lambda=-1$ and $\mu=-1$. Check in the second equation: $2-3=-1$ and $1-2=-1$. All three hold, so the lines intersect. (The triple product $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=0$ agrees.)

Putting $\lambda=-1$ in the first line gives $(1-2,\,2-3,\,3-4)=(-1,-1,-1)$.

The lines intersect at $(-1,-1,-1)$.

Question 13

The lines $L_1:\ \vec r=(\hat i+2\hat j-4\hat k)+\lambda(2\hat i+3\hat j+6\hat k)$ and $L_2:\ \vec r=(3\hat i+3\hat j-5\hat k)+\mu(2\hat i+3\hat j+6\hat k)$ are given. Calculate the least distance between them.

Solution. The two direction vectors are identical, so the lines are parallel and the cross-product formula for skew lines would give $0/0$. Use the parallel-lines distance instead. For parallel lines with common direction $\vec b=2\hat i+3\hat j+6\hat k$ the distance is $\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}$. Here $\vec a_2-\vec a_1=2\hat i+\hat j-\hat k$ and

$$(\vec a_2-\vec a_1)\times\vec b=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&1&-1\\ 2&3&6\end{vmatrix}=9\hat i-14\hat j+4\hat k,$$

with $|(\vec a_2-\vec a_1)\times\vec b|=\sqrt{293}$ and $|\vec b|=\sqrt{49}$. Therefore

$$d=\frac{\sqrt{293}}{\sqrt{49}}=\frac{\sqrt{293}}{7}\text{ units}.$$

$d=\frac{\sqrt{293}}{7}$ units

Question 14

Two parallel lines $L_1:\ \vec r=(\hat i+2\hat j+3\hat k)+\lambda(\hat i-\hat j+\hat k)$ and $L_2:\ \vec r=(2\hat i-\hat j-\hat k)+\mu(\hat i-\hat j+\hat k)$ are given. How far apart are they?

Solution. Both lines have direction $\hat i-\hat j+\hat k$, so they are parallel. For parallel lines with common direction $\vec b=\hat i-\hat j+\hat k$ the distance is $\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}$. Here $\vec a_2-\vec a_1=\hat i-3\hat j-4\hat k$ and

$$(\vec a_2-\vec a_1)\times\vec b=\begin{vmatrix}\hat i&\hat j&\hat k\\ 1&-3&-4\\ 1&-1&1\end{vmatrix}=-7\hat i-5\hat j+2\hat k,$$

with $|(\vec a_2-\vec a_1)\times\vec b|=\sqrt{78}$ and $|\vec b|=\sqrt{3}$. Therefore

$$d=\frac{\sqrt{78}}{\sqrt{3}}=\sqrt{26}\text{ units}.$$

$d=\sqrt{26}$ units

Question 15

A line goes through the point $(2,3,2)$ and runs parallel to $\vec r=(-2\hat i+3\hat j)+\lambda(2\hat i-3\hat j+6\hat k)$. Write its vector equation and find the distance between the two lines.

Solution. A line parallel to the given one has the same direction $2\hat i-3\hat j+6\hat k$, and it passes through $(2,3,2)$, so its equation is

$$\vec r=(2\hat i+3\hat j+2\hat k)+\mu(2\hat i-3\hat j+6\hat k).$$

For the distance, take $\vec a_1=-2\hat i+3\hat j$, $\vec a_2=2\hat i+3\hat j+2\hat k$. For parallel lines with common direction $\vec b=2\hat i-3\hat j+6\hat k$ the distance is $\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}$. Here $\vec a_2-\vec a_1=4\hat i+2\hat k$ and

$$(\vec a_2-\vec a_1)\times\vec b=\begin{vmatrix}\hat i&\hat j&\hat k\\ 4&0&2\\ 2&-3&6\end{vmatrix}=6\hat i-20\hat j-12\hat k,$$

with $|(\vec a_2-\vec a_1)\times\vec b|=\sqrt{580}$ and $|\vec b|=\sqrt{49}$. Therefore

$$d=\frac{\sqrt{580}}{\sqrt{49}}=\frac{2 \sqrt{145}}{7}\text{ units}.$$

Line: $\vec r=(2\hat i+3\hat j+2\hat k)+\mu(2\hat i-3\hat j+6\hat k)$; distance $=\dfrac{\sqrt{580}}{7}=\dfrac{2\sqrt{145}}{7}$ units.

Question 16

Convert $\dfrac{x-1}{2}=\dfrac{y-2}{3}=\dfrac{z+4}{6}$ and $\dfrac{x-3}{4}=\dfrac{y-3}{6}=\dfrac{z+5}{12}$ to vector form and find the distance between them.

Solution. The first line passes through $(1,2,-4)$ with direction ratios $2,3,6$, so $\vec r=(\hat i+2\hat j-4\hat k)+\lambda(2\hat i+3\hat j+6\hat k)$. The second passes through $(3,3,-5)$ with ratios $4,6,12=2(2,3,6)$, so $\vec r=(3\hat i+3\hat j-5\hat k)+\mu(4\hat i+6\hat j+12\hat k)$; scaling the direction (absorbing the 2 into $\mu$) gives $\vec r=(3\hat i+3\hat j-5\hat k)+\mu'(2\hat i+3\hat j+6\hat k)$. The directions are proportional, so the lines are parallel and the distance is $\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}$ with $\vec b=2\hat i+3\hat j+6\hat k$.

Here $\vec a_2-\vec a_1=2\hat i+\hat j-\hat k$ and

$$(\vec a_2-\vec a_1)\times\vec b=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&1&-1\\ 2&3&6\end{vmatrix}=9\hat i-14\hat j+4\hat k,$$

with magnitude $\sqrt{81+196+16}=\sqrt{293}$, while $|\vec b|=7$. Therefore the distance is $\dfrac{\sqrt{293}}{7}$ units.

Distance $=\dfrac{\sqrt{293}}{7}$ units.

Question 17

Rewrite $\dfrac{x-1}{2}=\dfrac{y-2}{3}=\dfrac{z-3}{4}$ and $\dfrac{x-2}{3}=\dfrac{y-3}{4}=\dfrac{z-5}{5}$ as vector equations and hence find the shortest distance between them.

Solution. The lines in vector form are $\vec r=(\hat i+2\hat j+3\hat k)+\lambda(2\hat i+3\hat j+4\hat k)$ and $\vec r=(2\hat i+3\hat j+5\hat k)+\mu(3\hat i+4\hat j+5\hat k)$.

Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=\hat i+2\hat j+3\hat k$, $\vec b_1=2\hat i+3\hat j+4\hat k$, $\vec a_2=2\hat i+3\hat j+5\hat k$ and $\vec b_2=3\hat i+4\hat j+5\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ 2&3&4\\ 3&4&5\end{vmatrix}=-\hat i+2\hat j-\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{6}.$$

Also $\vec a_2-\vec a_1=\hat i+\hat j+2\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=-1$. Hence

$$SD=\frac{|-1|}{\sqrt{6}}=\frac{\sqrt{6}}{6}\text{ units}.$$

$SD=\dfrac{1}{\sqrt6}=\dfrac{\sqrt6}{6}$ units.

Question 18

Find the shortest distance between $\dfrac{x-1}{-1}=\dfrac{y+2}{1}=\dfrac{z-3}{-2}$ and $\dfrac{x-1}{1}=\dfrac{y+1}{2}=\dfrac{z+1}{-2}$.

Solution. Read off a point and direction from each. The first line passes through $(1,-2,3)$ with direction $-\hat i+\hat j-2\hat k$; the second through $(1,-1,-1)$ with direction $\hat i+2\hat j-2\hat k$. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=\hat i-2\hat j+3\hat k$, $\vec b_1=-\hat i+\hat j-2\hat k$, $\vec a_2=\hat i-\hat j-\hat k$ and $\vec b_2=\hat i+2\hat j-2\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ -1&1&-2\\ 1&2&-2\end{vmatrix}=2\hat i-4\hat j-3\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{29}.$$

Also $\vec a_2-\vec a_1=\hat j-4\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=8$. Hence

$$SD=\frac{|8|}{\sqrt{29}}=\frac{8 \sqrt{29}}{29}\text{ units}.$$

$SD=\dfrac{8}{\sqrt{29}}=\dfrac{8\sqrt{29}}{29}$ units

Question 19

Find the shortest distance between $\dfrac{x-12}{-9}=\dfrac{y-1}{4}=\dfrac{z-5}{2}$ and $\dfrac{x-23}{-6}=\dfrac{y-19}{-4}=\dfrac{z-25}{3}$.

Solution. Read off a point and direction from each. The first line passes through $(12,1,5)$ with direction $-9\hat i+4\hat j+2\hat k$; the second through $(23,19,25)$ with direction $-6\hat i-4\hat j+3\hat k$. Take the lines as $\vec r=\vec a_1+\lambda\vec b_1$ and $\vec r=\vec a_2+\mu\vec b_2$, where $\vec a_1=12\hat i+\hat j+5\hat k$, $\vec b_1=-9\hat i+4\hat j+2\hat k$, $\vec a_2=23\hat i+19\hat j+25\hat k$ and $\vec b_2=-6\hat i-4\hat j+3\hat k$. Lines that are not parallel have shortest distance $\left|\dfrac{(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)}{|\vec b_1\times\vec b_2|}\right|$, the component of the join along the common perpendicular.

$$\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\ -9&4&2\\ -6&-4&3\end{vmatrix}=20\hat i+15\hat j+60\hat k,\qquad |\vec b_1\times\vec b_2|=\sqrt{4225}=65.$$

Also $\vec a_2-\vec a_1=11\hat i+18\hat j+20\hat k$, so $(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=1690$. Hence

$$SD=\frac{|1690|}{65}=26\text{ units}.$$

$SD=26$ units

Common mistakes

  • Using the skew-lines formula when the directions are proportional (Q13 to Q16). The cross product $\vec b_1\times\vec b_2$ is then zero and the formula breaks down, so check for proportional directions first.
  • Dividing by $|\vec b_1|\,|\vec b_2|$, or forgetting to divide by $|\vec b_1\times\vec b_2|$ at all. The denominator is the length of the cross product itself.
  • Reading symmetric equations carelessly: in $\dfrac{z+4}{6}$ the point has $z=-4$, not $4$ (Q16, Q18). In Q16 the second direction $(4,6,12)$ is twice $(2,3,6)$.
  • Concluding that two lines meet because the equations are consistent for two coordinates; all three must hold, as Q11 shows.

Practise next

For more skew-line and parallel-line distances, try the questions at the start of the next exercise on lines and planes in this chapter.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe