Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2020-21 · Part B: Section V · 5 marks

Q37: Shortest distance between two lines and their point of intersection, or the foot of a perpendicular to a plane

The question

(a) Find the shortest distance between the lines

r⃗=3i^+2j^−4k^+λ(i^+2j^+2k^)\begin{aligned} \vec r &= 3\hat i + 2\hat j - 4\hat k \\ &\quad + \lambda(\hat i + 2\hat j + 2\hat k) \end{aligned}

and

r⃗=5i^−2j^+μ(3i^+2j^+6k^)\begin{aligned} \vec r &= 5\hat i - 2\hat j \\ &\quad + \mu(3\hat i + 2\hat j + 6\hat k) \end{aligned}

If the lines intersect find their point of intersection

OR

(b) Find the foot of the perpendicular drawn from the point (-1, 3, -6) to the plane 2x+y−2z+5=02x + y - 2z + 5 = 0⁠. Also find the equation and length of the perpendicular.

Part (b) uses the equation of a plane. This topic is no longer in the CBSE syllabus (2025-26).

Exam answer

(a)

We have

a⃗1=3i^+2j^−4k^b⃗1=i^+2j^+2k^a⃗2=5i^−2j^b⃗2=3i^+2j^+6k^\begin{aligned} \vec a_1 &= 3\hat i + 2\hat j - 4\hat k \\ \vec b_1 &= \hat i + 2\hat j + 2\hat k \\ \vec a_2 &= 5\hat i - 2\hat j \\ \vec b_2 &= 3\hat i + 2\hat j + 6\hat k \end{aligned}
Why?

A line r⃗=a⃗+λb⃗\vec r = \vec a + \lambda\vec b passes through the point with position vector a⃗\vec a and runs in the direction b⃗\vec b⁠. Read off a⃗\vec a (the part without λ\lambda or μ\mu⁠) and b⃗\vec b (the vector multiplied by λ\lambda or μ\mu⁠) for each line.

a⃗2−a⃗1=2i^−4j^+4k^\vec a_2 - \vec a_1 = 2\hat i - 4\hat j + 4\hat k b⃗1×b⃗2=∣i^j^k^122326∣=i^(12−4)−j^(6−6)+k^(2−6)=8i^−4k^\begin{aligned} \vec b_1 \times \vec b_2 &= \begin{vmatrix} \hat i & \hat j & \hat k \\ 1 & 2 & 2 \\ 3 & 2 & 6 \end{vmatrix} \\ &= \hat i(12 - 4) - \hat j(6 - 6) \\ &\quad + \hat k(2 - 6) \\ &= 8\hat i - 4\hat k \end{aligned}
Why?

Subtract component by component:

a⃗2−a⃗1=(5−3)i^+(−2−2)j^+(0+4)k^\begin{aligned} &\vec a_2 - \vec a_1 \\ &= (5 - 3)\hat i + (-2 - 2)\hat j \\ &\quad + (0 + 4)\hat k \end{aligned} 5−3=2−2−2=−40−(−4)=0+4=4\begin{aligned} 5 - 3 &= 2 \\ -2 - 2 &= -4 \\ 0 - (-4) &= 0 + 4 = 4 \end{aligned}

The cross product, expanded along the first row: the i^\hat i part is 2×6−2×22 \times 6 - 2 \times 2⁠, the j^\hat j part is 1×6−2×31 \times 6 - 2 \times 3 with a minus in front, and the k^\hat k part is 1×2−2×31 \times 2 - 2 \times 3⁠.

Cover the i^\hat i⁠, j^\hat j⁠, k^\hat k column in turn:

i^:∣2226∣=(2)(6)−(2)(2)=12−4=8j^:∣1236∣=(1)(6)−(2)(3)=6−6=0with the minus: −0=0k^:∣1232∣=(1)(2)−(2)(3)=2−6=−4\begin{aligned} \hat i&: \begin{vmatrix} 2 & 2 \\ 2 & 6 \end{vmatrix} \\ &= (2)(6) - (2)(2) \\ &= 12 - 4 = 8 \\[4pt] \hat j&: \begin{vmatrix} 1 & 2 \\ 3 & 6 \end{vmatrix} \\ &= (1)(6) - (2)(3) \\ &= 6 - 6 = 0 \\ &\text{with the minus: } -0 = 0 \\[4pt] \hat k&: \begin{vmatrix} 1 & 2 \\ 3 & 2 \end{vmatrix} \\ &= (1)(2) - (2)(3) \\ &= 2 - 6 = -4 \end{aligned}

So b⃗1×b⃗2=8i^+0j^−4k^=8i^−4k^\vec b_1 \times \vec b_2 = 8\hat i + 0\hat j - 4\hat k = 8\hat i - 4\hat k⁠.

(b⃗1×b⃗2)⋅(a⃗2−a⃗1)=(8)(2)+(0)(−4)+(−4)(4)=16+0−16=0\begin{aligned} &(\vec b_1 \times \vec b_2)\cdot(\vec a_2 - \vec a_1) \\ &= (8)(2) + (0)(-4) + (-4)(4) \\ &= 16 + 0 - 16 = 0 \end{aligned}
Why?

The dot product multiplies matching components and adds. 8i^−4k^8\hat i - 4\hat k has j^\hat j component 0.

So the shortest distance =∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣∣b⃗1×b⃗2∣=0= \frac{|(\vec b_1 \times \vec b_2)\cdot(\vec a_2 - \vec a_1)|}{|\vec b_1 \times \vec b_2|} = 0⁠.

Why?

This formula gives the shortest distance between two lines that are not parallel. Here b⃗1×b⃗2≠0⃗\vec b_1 \times \vec b_2 \ne \vec 0⁠, so the lines are not parallel, and the denominator ∣b⃗1×b⃗2∣=64+16|\vec b_1 \times \vec b_2| = \sqrt{64 + 16} is not 0.

∣b⃗1×b⃗2∣=82+02+(−4)2=64+0+16=80distance=∣0∣80=0\begin{aligned} |\vec b_1 \times \vec b_2| &= \sqrt{8^2 + 0^2 + (-4)^2} \\ &= \sqrt{64 + 0 + 16} = \sqrt{80} \\[4pt] \text{distance} &= \frac{|0|}{\sqrt{80}} = 0 \end{aligned}

A shortest distance of 0 means the lines meet.

∴\therefore The lines intersect, and the shortest distance between them is 0.

For the point of intersection,

3i^+2j^−4k^+λ(i^+2j^+2k^)=5i^−2j^+μ(3i^+2j^+6k^)\begin{aligned} &3\hat i + 2\hat j - 4\hat k + \lambda(\hat i + 2\hat j + 2\hat k) \\ &= 5\hat i - 2\hat j + \mu(3\hat i + 2\hat j + 6\hat k) \end{aligned} ⇒3+λ=5+3μ…(i)2+2λ=−2+2μ…(ii)−4+2λ=6μ…(iii)\begin{aligned} \Rightarrow 3 + \lambda &= 5 + 3\mu \quad\ldots(\text{i}) \\ 2 + 2\lambda &= -2 + 2\mu \quad\ldots(\text{ii}) \\ -4 + 2\lambda &= 6\mu \quad\ldots(\text{iii}) \end{aligned}
Why?

At the common point the two position vectors are equal, so the i^\hat i⁠, j^\hat j and k^\hat k components must be equal separately. Use different letters λ\lambda and μ\mu⁠: the point is reached at different parameter values on the two lines.

(i)⇒λ−3μ=2(ii)⇒λ−μ=−2(ii)−(i)⇒2μ=−4\begin{aligned} (\text{i}) &\Rightarrow \lambda - 3\mu = 2 \\ (\text{ii}) &\Rightarrow \lambda - \mu = -2 \\ (\text{ii}) - (\text{i}) &\Rightarrow 2\mu = -4 \end{aligned}

Solving (i) and (ii), we get μ=−2\mu = -2 and λ=−4\lambda = -4⁠. These satisfy (iii): −4−8=−12=6(−2)-4 - 8 = -12 = 6(-2)⁠.

Why?

(ii) was divided by 2 first. From μ=−2\mu = -2⁠, λ=−2+μ=−4\lambda = -2 + \mu = -4⁠.

Tidy each equation, one move per line:

(i):3+λ=5+3μ  λ−3μ=5−3=2(ii):2+2λ=−2+2μ  2λ−2μ=−2−2=−4  λ−μ=−2(÷2)\begin{aligned} (\text{i})&: 3 + \lambda = 5 + 3\mu \\ &\ \ \lambda - 3\mu = 5 - 3 = 2 \\[4pt] (\text{ii})&: 2 + 2\lambda = -2 + 2\mu \\ &\ \ 2\lambda - 2\mu = -2 - 2 = -4 \\ &\ \ \lambda - \mu = -2 \quad (\div 2) \end{aligned}

Subtract (i) from (ii) to remove λ\lambda⁠:

(λ−μ)−(λ−3μ)=−2−2λ−μ−λ+3μ=−42μ=−4μ=−2λ=−2+μ=−2+(−2)=−4\begin{aligned} (\lambda - \mu) - (\lambda - 3\mu) &= -2 - 2 \\ \lambda - \mu - \lambda + 3\mu &= -4 \\ 2\mu &= -4 \\ \mu &= -2 \\[4pt] \lambda &= -2 + \mu \\ &= -2 + (-2) = -4 \end{aligned}

Test in (iii):

Left: −4+2(−4)=−4−8=−12Right: 6(−2)=−12 ✓\begin{aligned} \text{Left: } -4 + 2(-4) &= -4 - 8 = -12 \\ \text{Right: } 6(-2) &= -12\ \checkmark \end{aligned}

Two equations fix λ\lambda and μ\mu⁠; the third one is the test. If (iii) had failed, the lines would not meet.

Substituting μ=−2\mu = -2 in the equation of the second line,

r⃗=5i^−2j^−2(3i^+2j^+6k^)=−i^−6j^−12k^\begin{aligned} \vec r &= 5\hat i - 2\hat j - 2(3\hat i + 2\hat j + 6\hat k) \\ &= -\hat i - 6\hat j - 12\hat k \end{aligned}
Why?
−2(3i^+2j^+6k^)=−6i^−4j^−12k^\begin{aligned} &-2(3\hat i + 2\hat j + 6\hat k) \\ &= -6\hat i - 4\hat j - 12\hat k \end{aligned}

Component by component: 5−6=−15 - 6 = -1⁠, −2−4=−6-2 - 4 = -6⁠, 0−12=−120 - 12 = -12⁠.

Check with the first line at λ=−4\lambda = -4⁠: 3−4=−13 - 4 = -1⁠, 2−8=−62 - 8 = -6⁠, −4−8=−12-4 - 8 = -12⁠. The same point.

∴\therefore The point of intersection is (−1,−6,−12)(-1, -6, -12)⁠.

(b)

Let P(−1,3,−6)(-1, 3, -6) be the given point and Q the foot of the perpendicular. PQ is along the normal 2i^+j^−2k^2\hat i + \hat j - 2\hat k of the plane, so the equation of PQ is

x+12=y−31=z+6−2=λ\frac{x + 1}{2} = \frac{y - 3}{1} = \frac{z + 6}{-2} = \lambda
Why?

The normal to ax+by+cz+d=0ax + by + cz + d = 0 has direction ratios a,b,ca, b, c⁠, here 2,1,−22, 1, -2⁠. PQ is perpendicular to the plane, so it runs along the normal.

A line through (x1,y1,z1)(x_1, y_1, z_1) with direction ratios a,b,ca, b, c⁠:

x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}

Let the coordinates of Q be (2λ−1,λ+3,−2λ−6)(2\lambda - 1, \lambda + 3, -2\lambda - 6)⁠. Since Q lies in the plane 2x+y−2z+5=02x + y - 2z + 5 = 0⁠,

Why?
x+1=2λ⇒x=2λ−1y−3=λ⇒y=λ+3z+6=−2λ⇒z=−2λ−6\begin{aligned} x + 1 = 2\lambda &\Rightarrow x = 2\lambda - 1 \\ y - 3 = \lambda &\Rightarrow y = \lambda + 3 \\ z + 6 = -2\lambda &\Rightarrow z = -2\lambda - 6 \end{aligned}

Setting each fraction equal to λ\lambda and solving gives a general point of the line: x=2λ−1x = 2\lambda - 1⁠, y=λ+3y = \lambda + 3⁠, z=−2λ−6z = -2\lambda - 6⁠. The foot Q is the one point of this line that is also on the plane.

2(2λ−1)+(λ+3)−2(−2λ−6)+5=0⇒4λ−2+λ+3+4λ+12+5=0⇒9λ+18=0⇒λ=−2\begin{aligned} &2(2\lambda - 1) + (\lambda + 3) \\ &\quad - 2(-2\lambda - 6) + 5 = 0 \\ &\Rightarrow 4\lambda - 2 + \lambda + 3 \\ &\quad + 4\lambda + 12 + 5 = 0 \\ &\Rightarrow 9\lambda + 18 = 0 \Rightarrow \lambda = -2 \end{aligned}
Why?

Collect the λ\lambda terms: 4λ+λ+4λ=9λ4\lambda + \lambda + 4\lambda = 9\lambda⁠. The numbers: −2+3+12+5=18-2 + 3 + 12 + 5 = 18⁠.

2(2λ−1)=4λ−2−2(−2λ−6)=4λ+12−2+3=11+12=1313+5=189λ+18=09λ=−18λ=−189=−2\begin{aligned} 2(2\lambda - 1) &= 4\lambda - 2 \\ -2(-2\lambda - 6) &= 4\lambda + 12 \\[4pt] -2 + 3 &= 1 \\ 1 + 12 &= 13 \\ 13 + 5 &= 18 \\[4pt] 9\lambda + 18 &= 0 \\ 9\lambda &= -18 \\ \lambda &= \frac{-18}{9} = -2 \end{aligned}

Watch out: −2×(−6)=+12-2 \times (-6) = +12⁠.

Q=(−4−1, −2+3, 4−6)Q = (-4 - 1,\ -2 + 3,\ 4 - 6)
Why?

Put λ=−2\lambda = -2 into (2λ−1,λ+3,−2λ−6)(2\lambda - 1, \lambda + 3, -2\lambda - 6)⁠. Check: 2(−5)+1−2(−2)+5=02(-5) + 1 - 2(-2) + 5 = 0⁠, so Q is on the plane.

x=2(−2)−1=−4−1=−5y=−2+3=1z=−2(−2)−6=4−6=−22(−5)+1−2(−2)+5=−10+1+4+5=−9+4+5=−5+5=0\begin{aligned} x &= 2(-2) - 1 = -4 - 1 = -5 \\ y &= -2 + 3 = 1 \\ z &= -2(-2) - 6 = 4 - 6 = -2 \\[4pt] &2(-5) + 1 - 2(-2) + 5 \\ &= -10 + 1 + 4 + 5 \\ &= -9 + 4 + 5 = -5 + 5 = 0 \end{aligned}

∴\therefore The foot of the perpendicular is Q(−5,1,−2)(-5, 1, -2)⁠.

The equation of the perpendicular is x+12=y−31=z+6−2\frac{x + 1}{2} = \frac{y - 3}{1} = \frac{z + 6}{-2}⁠.

PQ2=(−5+1)2+(1−3)2+(−2+6)2=16+4+16=36\begin{aligned} \text{PQ}^2 &= (-5 + 1)^2 + (1 - 3)^2 \\ &\quad + (-2 + 6)^2 \\ &= 16 + 4 + 16 = 36 \end{aligned}
Why?

Distance formula, with P(−1,3,−6)(-1, 3, -6) and Q(−5,1,−2)(-5, 1, -2)⁠:

PQ2=(x2−x1)2+(y2−y1)2+(z2−z1)2\begin{aligned} \text{PQ}^2 &= (x_2 - x_1)^2 \\ &\quad + (y_2 - y_1)^2 \\ &\quad + (z_2 - z_1)^2 \end{aligned} (−5+1)2=(−4)2=16(1−3)2=(−2)2=4(−2+6)2=42=1616+4=20, 20+16=36PQ=36=6\begin{aligned} (-5 + 1)^2 &= (-4)^2 = 16 \\ (1 - 3)^2 &= (-2)^2 = 4 \\ (-2 + 6)^2 &= 4^2 = 16 \\[4pt] 16 + 4 &= 20,\ 20 + 16 = 36 \\ \text{PQ} &= \sqrt{36} = 6 \end{aligned}

Check with the distance of a point from a plane:

∣2(−1)+3−2(−6)+5∣4+1+4=∣−2+3+12+5∣9=183=6\begin{aligned} &\frac{|2(-1) + 3 - 2(-6) + 5|}{\sqrt{4 + 1 + 4}} \\ &= \frac{|-2 + 3 + 12 + 5|}{\sqrt9} \\ &= \frac{18}{3} = 6 \end{aligned}

∴\therefore Length of the perpendicular PQ=36=6\text{PQ} = \sqrt{36} = 6 units

Where this comes from

Chapter 11, Three Dimensional Geometry: Shortest distance; point of intersection of lines.

Question type: (a) The shortest distance between two lines + the foot of a perpendicular (combined)

How to spot it: click to see

(a) Type 8. The shortest distance between two lines

Spot it: "Find the shortest distance between the lines". First look at the two directions.

Here: The directions i^+2j^+2k^\hat i + 2\hat j + 2\hat k and 3i^+2j^+6k^3\hat i + 2\hat j + 6\hat k are not in proportion, so use the skew formula. The top, (8i^−4k^)⋅(2i^−4j^+4k^)(8\hat i - 4\hat k)\cdot(2\hat i - 4\hat j + 4\hat k)⁠, is 0, so the shortest distance is 0.

(a) Type 10. Beyond the book, but in CBSE papers: the foot of a perpendicular

Spot it: "Find the foot of the perpendicular from a point to a line", "the image of a point in a line", or "do the lines meet?". This book has none of these, but recent CBSE sample papers ask all three.

Here: A distance of 0 means the lines meet: set 3+λ=5+3μ3 + \lambda = 5 + 3\mu and 2+2λ=−2+2μ2 + 2\lambda = -2 + 2\mu⁠, solve for μ=−2\mu = -2⁠, check the k^\hat k equation, and get (−1,−6,−12)(-1, -6, -12)⁠.

Also uses Chapter 10, Vector Algebra.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →

Three Dimensional Geometry in past papers: question 35 of 35 · see them all