← 2018 Paper 1

UPSC 2018 Maths Optional Paper 1 Q2d — Step-by-Step Solution

12 marks · Section A

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

Question

Find the shortest distance between the lines

a1x+b1y+c1z+d1=0a2x+b2y+c2z+d2=0\begin{aligned}a_1x+b_1y+c_1z+d_1&=0\\ a_2x+b_2y+c_2z+d_2&=0\end{aligned}

and the zz-axis.

Technique

Skew-line distance (AO)(u×v)u×v\dfrac{|(A-O)\cdot(\vec u\times\vec v)|}{|\vec u\times\vec v|} with u=n1×n2\vec u=\vec n_1\times\vec n_2 and v=k^\vec v=\hat k; the cross product collapses to (q,p,0)(q,-p,0).

Solution

Step 1 — Direction of the given line LL

LL is the intersection of the two planes, so its direction is the cross product of their normals n1=(a1,b1,c1), n2=(a2,b2,c2)\vec n_1=(a_1,b_1,c_1),\ \vec n_2=(a_2,b_2,c_2):

u=n1×n2=(p,q,r),where p=b1c2b2c1, q=c1a2c2a1, r=a1b2a2b1.\vec u=\vec n_1\times\vec n_2=(p,q,r),\quad\text{where } p=b_1c_2-b_2c_1,\ q=c_1a_2-c_2a_1,\ r=a_1b_2-a_2b_1.

Step 2 — Skew-lines distance formula

The zz-axis passes through O=(0,0,0)O=(0,0,0) with direction v=(0,0,1)\vec v=(0,0,1). For two lines through AA (on LL) and OO with directions u,v\vec u,\vec v, the shortest distance is

SD=(AO)(u×v)u×v.\text{SD}=\frac{\big|(A-O)\cdot(\vec u\times\vec v)\big|}{|\vec u\times\vec v|}.

Now

u×v=(p,q,r)×(0,0,1)=(q,p,0),u×v=p2+q2.\vec u\times\vec v=(p,q,r)\times(0,0,1)=(q,\,-p,\,0),\qquad |\vec u\times\vec v|=\sqrt{p^2+q^2}.

Step 3 — A point AA on LL and the final formula

Take the point of LL in the plane z=0z=0: solve a1x+b1y+d1=0, a2x+b2y+d2=0a_1x+b_1y+d_1=0,\ a_2x+b_2y+d_2=0, giving (Cramer)

A=(Ax,Ay,0),Ax=b1d2b2d1a1b2a2b1,  Ay=d1a2d2a1a1b2a2b1.A=\left(A_x,A_y,0\right),\quad A_x=\frac{b_1d_2-b_2d_1}{a_1b_2-a_2b_1},\ \ A_y=\frac{d_1a_2-d_2a_1}{a_1b_2-a_2b_1}.

(The denominator is r=a1b2a2b1r=a_1b_2-a_2b_1.) Then (AO)(q,p,0)=qAxpAy(A-O)\cdot(q,-p,0)=qA_x-pA_y, so

Answer

  SD=qAxpAyp2+q2,p=b1c2b2c1, q=c1a2c2a1.  \boxed{\;\text{SD}=\frac{\big|\,q\,A_x-p\,A_y\,\big|}{\sqrt{p^2+q^2}},\qquad p=b_1c_2-b_2c_1,\ q=c_1a_2-c_2a_1.\;}
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 — 13 years, mapped. Get the take-away PDF free.