← 2026 Paper 1

UPSC 2026 Maths Optional Paper 1 Q2c — Step-by-Step Solution

15 marks · Section A

Shortest distance between two skew lines · Analytic Geometry · asked 5× in 14 yrs · Read the full method →

Question

Find the points on the lines x−31=y−5−2=z−71\dfrac{x-3}{1} = \dfrac{y-5}{-2} = \dfrac{z-7}{1} and x+17=y+1−6=z+11\dfrac{x+1}{7} = \dfrac{y+1}{-6} = \dfrac{z+1}{1} which are nearest to each other. Hence find the shortest distance between the lines and its equation.

Technique

Parametrise a general point on each line, impose that the joining vector PQ⃗\vec{PQ} is perpendicular to both direction vectors (PQ⃗⋅d⃗1=0\vec{PQ}\cdot\vec d_1=0, PQ⃗⋅d⃗2=0\vec{PQ}\cdot\vec d_2=0), solve the resulting 2×22\times2 linear system for the parameters. Cross-check the distance against ∣(a⃗2−a⃗1)⋅(d⃗1×d⃗2)∣∣d⃗1×d⃗2∣\dfrac{|(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)|}{|\vec d_1\times\vec d_2|}; the line of shortest distance is the line through the two feet, with direction d⃗1×d⃗2\vec d_1\times\vec d_2.

Solution

Step 1 — Read off points and directions.

L1: x−31=y−5−2=z−71=t,a⃗1=(3,5,7),d⃗1=(1,−2,1),L_1:\ \frac{x-3}{1}=\frac{y-5}{-2}=\frac{z-7}{1}=t,\qquad \vec a_1=(3,5,7),\quad \vec d_1=(1,-2,1), L2: x+17=y+1−6=z+11=s,a⃗2=(−1,−1,−1),d⃗2=(7,−6,1).L_2:\ \frac{x+1}{7}=\frac{y+1}{-6}=\frac{z+1}{1}=s,\qquad \vec a_2=(-1,-1,-1),\quad \vec d_2=(7,-6,1).

d⃗1\vec d_1 and d⃗2\vec d_2 are not proportional (1/7≠−2/−61/7\neq -2/-6), so the lines are not parallel and a unique common perpendicular exists.

Step 2 — General points and the joining vector.

P=(3+t,  5−2t,  7+t)∈L1,Q=(−1+7s,  −1−6s,  −1+s)∈L2,P=(3+t,\;5-2t,\;7+t)\in L_1,\qquad Q=(-1+7s,\;-1-6s,\;-1+s)\in L_2, PQ⃗=Q−P=(−4+7s−t,    −6−6s+2t,    −8+s−t).\vec{PQ}=Q-P=\big(-4+7s-t,\;\; -6-6s+2t,\;\; -8+s-t\big).

Step 3 — Impose perpendicularity to both lines.

PQPQ is the shortest segment precisely when PQ⃗⊥d⃗1\vec{PQ}\perp\vec d_1 and PQ⃗⊥d⃗2\vec{PQ}\perp\vec d_2.

PQ⃗⋅d⃗1=0\vec{PQ}\cdot\vec d_1=0:

(−4+7s−t)(1)+(−6−6s+2t)(−2)+(−8+s−t)(1)=0(-4+7s-t)(1)+(-6-6s+2t)(-2)+(-8+s-t)(1)=0 (−4+12−8)+(7+12+1)s+(−1−4−1)t=0 ⟹ 20s−6t=0 ⟹ 10s−3t=0.(i)(-4+12-8)+(7+12+1)s+(-1-4-1)t=0\ \Longrightarrow\ 20s-6t=0\ \Longrightarrow\ 10s-3t=0. \tag{i}

PQ⃗⋅d⃗2=0\vec{PQ}\cdot\vec d_2=0:

(−4+7s−t)(7)+(−6−6s+2t)(−6)+(−8+s−t)(1)=0(-4+7s-t)(7)+(-6-6s+2t)(-6)+(-8+s-t)(1)=0 (−28+36−8)+(49+36+1)s+(−7−12−1)t=0 ⟹ 86s−20t=0 ⟹ 43s−10t=0.(ii)(-28+36-8)+(49+36+1)s+(-7-12-1)t=0\ \Longrightarrow\ 86s-20t=0\ \Longrightarrow\ 43s-10t=0. \tag{ii}

Step 4 — Solve the system.

From (i), t=10s3t=\dfrac{10s}{3}. Substituting in (ii):

43s−10⋅10s3=0 ⟹ 129s−100s3=0 ⟹ 29s=0 ⟹ s=0,43s-10\cdot\frac{10s}{3}=0\ \Longrightarrow\ \frac{129s-100s}{3}=0\ \Longrightarrow\ 29s=0\ \Longrightarrow\ s=0,

and hence t=0t=0. (The determinant ∣10−343−10∣=−100+129=29≠0\begin{vmatrix}10&-3\\43&-10\end{vmatrix}=-100+129=29\neq0, so this is the unique solution.)

Therefore the nearest points are the base points of the two given lines themselves:

P=(3, 5, 7),Q=(−1, −1, −1).P=(3,\,5,\,7),\qquad Q=(-1,\,-1,\,-1).

Step 5 — Shortest distance.

PQ⃗=Q−P=(−4,−6,−8),\vec{PQ}=Q-P=(-4,-6,-8), SD=∣PQ⃗∣=16+36+64=116=229≈10.77.SD=|\vec{PQ}|=\sqrt{16+36+64}=\sqrt{116}=2\sqrt{29}\approx 10.77.

Perpendicularity check (worth writing down):

PQ⃗⋅d⃗1=−4+12−8=0,PQ⃗⋅d⃗2=−28+36−8=0. ✓\vec{PQ}\cdot\vec d_1=-4+12-8=0,\qquad \vec{PQ}\cdot\vec d_2=-28+36-8=0.\ \checkmark

Step 6 — Cross-check by the scalar-triple-product formula.

d⃗1×d⃗2=∣i^j^k^1−217−61∣=i^(−2+6)−j^(1−7)+k^(−6+14)=(4, 6, 8),\vec d_1\times\vec d_2=\begin{vmatrix}\hat i & \hat j & \hat k\\ 1 & -2 & 1\\ 7 & -6 & 1\end{vmatrix} =\hat i(-2+6)-\hat j(1-7)+\hat k(-6+14)=(4,\,6,\,8), ∣d⃗1×d⃗2∣=16+36+64=116=229.|\vec d_1\times\vec d_2|=\sqrt{16+36+64}=\sqrt{116}=2\sqrt{29}. a⃗2−a⃗1=(−4,−6,−8),(a⃗2−a⃗1)⋅(d⃗1×d⃗2)=−16−36−64=−116.\vec a_2-\vec a_1=(-4,-6,-8),\qquad (\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)=-16-36-64=-116. SD=∣−116∣229=116229=5829=582929=229.SD=\frac{|-116|}{2\sqrt{29}}=\frac{116}{2\sqrt{29}}=\frac{58}{\sqrt{29}}=\frac{58\sqrt{29}}{29}=2\sqrt{29}.

The two independent routes agree. Note also that PQ⃗=(−4,−6,−8)=−(4,6,8)\vec{PQ}=(-4,-6,-8)=-(4,6,8) is exactly antiparallel to d⃗1×d⃗2\vec d_1\times\vec d_2, which is precisely the geometric signature of the common perpendicular — a further confirmation.

Step 7 — Equation of the line of shortest distance.

It is the line through P(3,5,7)P(3,5,7) and Q(−1,−1,−1)Q(-1,-1,-1); its direction is PQ⃗∥(4,6,8)∥(2,3,4)\vec{PQ}\parallel(4,6,8)\parallel(2,3,4) (also ∥d⃗1×d⃗2\parallel \vec d_1\times\vec d_2, as it must be). In symmetric form:

x−32=y−53=z−74.\frac{x-3}{2}=\frac{y-5}{3}=\frac{z-7}{4}.

Check that QQ lies on it: putting x=−1,y=−1,z=−1x=-1,y=-1,z=-1 gives −42=−63=−84=−2\dfrac{-4}{2}=\dfrac{-6}{3}=\dfrac{-8}{4}=-2 — all three ratios equal. ✔

(Equivalently, referred to QQ: x+12=y+13=z+14\dfrac{x+1}{2}=\dfrac{y+1}{3}=\dfrac{z+1}{4}.)

Answer

  Nearest points: P(3,5,7) on L1,Q(−1,−1,−1) on L2,Shortest distance =116=229 ≈10.77,Line of shortest distance: x−32=y−53=z−74.  \boxed{\; \begin{aligned} &\text{Nearest points: } P(3,5,7)\ \text{on } L_1,\quad Q(-1,-1,-1)\ \text{on } L_2,\\[2pt] &\text{Shortest distance } = \sqrt{116}=2\sqrt{29}\ \approx 10.77,\\[2pt] &\text{Line of shortest distance: } \frac{x-3}{2}=\frac{y-5}{3}=\frac{z-7}{4}. \end{aligned}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.