PYQ Vault

JEE Mains Maths · Three Dimensional Geometry

Shortest Distance, Intersection and Coplanar Lines

Two lines in space: the shortest distance between skew or parallel lines, the common perpendicular, where two lines meet and when they are coplanar, and a third line drawn to meet both.

Why this matters

Sixty-nine PYQs, the largest page in the chapter; more than half are one formula, the shortest distance between skew lines. Five ideas cover the page.

Concept 1 of 5: Shortest distance between skew lines

Two skew lines neither meet nor run parallel. Their common perpendicular has direction d⃗1×d⃗2\vec d_1\times\vec d_2, and the shortest distance is the length of the projection of any joining vector a⃗2−a⃗1\vec a_2-\vec a_1 onto that direction. It is zero exactly when the lines meet.

Definition

  • SD=∣(a⃗2−a⃗1)⋅(d⃗1×d⃗2)∣∣d⃗1×d⃗2∣SD=\frac{|(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)|}{|\vec d_1\times\vec d_2|}.
  • SD=0SD=0: the lines intersect. d⃗1×d⃗2=0⃗\vec d_1\times\vec d_2=\vec 0: they are parallel (use the next concept).
  • Rewrite odd forms first: x+1=2y=−12zx+1=2y=-12z is x+11=y1/2=z−1/12\frac{x+1}{1}=\frac{y}{1/2}=\frac{z}{-1/12}, direction (12,6,−1)(12,6,-1).
  • With an unknown in a point or direction, the formula gives an equation in it; an absolute value usually gives two roots.

Shortest distance between skew lines

SD=∣(a⃗2−a⃗1)⋅(d⃗1×d⃗2)∣∣d⃗1×d⃗2∣SD=\frac{\left|(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)\right|}{|\vec d_1\times\vec d_2|}

Worked example

Find the shortest distance between r⃗=(1,0,0)+λ(1,1,0)\vec r=(1,0,0)+\lambda(1,1,0) and r⃗=(0,0,2)+μ(0,1,1)\vec r=(0,0,2)+\mu(0,1,1).
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2026 · 6 Apr 2026 Shift 2 · Q64Moderate

Example 1 · Three Dimensional Geometry · Shortest Distance, Intersection and Coplanar Lines

The shortest distance between the lines x−41=y−32=z−2−3\frac{x - 4}{1}=\frac{y - 3}{2}=\frac{z - 2}{- 3} and x+22=y−64=z−5−5\frac{x + 2}{2}=\frac{y - 6}{4}=\frac{z - 5}{- 5} is:

Absolute value, and two answers

The formula has ∣…∣|\dots|. With an unknown inside, ∣expression∣=c|expression|=c gives two cases; questions asking for 'the sum of all values' need both.

Concept 2 of 5: Distance between parallel lines

When the directions are parallel, d⃗1×d⃗2=0⃗\vec d_1\times\vec d_2=\vec 0 and the skew-line formula breaks. The distance is then just the distance of a point of one line from the other line.

Definition

  • Parallel lines share a direction d⃗\vec d.
  • d=∣(a⃗2−a⃗1)×d⃗∣∣d⃗∣d=\frac{|(\vec a_2-\vec a_1)\times\vec d|}{|\vec d|}.

Distance between parallel lines

d=∣(a⃗2−a⃗1)×d⃗∣∣d⃗∣d=\frac{|(\vec a_2-\vec a_1)\times\vec d|}{|\vec d|}

Worked example

Find the distance between x−12=y−23=z−36\frac{x-1}{2}=\frac{y-2}{3}=\frac{z-3}{6} and x−32=y−23=z−36\frac{x-3}{2}=\frac{y-2}{3}=\frac{z-3}{6}.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2024 · 8 April 2024 · Q158Moderate

Example 2 · Three Dimensional Geometry · Shortest Distance, Intersection and Coplanar Lines

If the shortest distance between the lines x−λ2=y−43=z−34\frac{x - \lambda}{2}=\frac{y - 4}{3}=\frac{z - 3}{4} and x−24=y−46=z−78\frac{x - 2}{4}=\frac{y - 4}{6}=\frac{z - 7}{8} is 1329\frac{13}{\sqrt{29}}, then a value of λ\lambda is :

Check for parallel directions first

(2,3,4)(2,3,4) and (4,6,8)(4,6,8) are parallel. Plugging them into the skew-line formula divides by zero; spot it before computing.

Concept 3 of 5: The line of shortest distance: its feet on the two lines

Sometimes the question wants the ends of the common perpendicular, not just its length. Take a general point PP on the first line and QQ on the second. PQ⃗\vec{PQ} must be perpendicular to both directions: two linear equations in the two parameters. Solve them and you have both feet.

Definition

  • P=a⃗1+λd⃗1P=\vec a_1+\lambda\vec d_1, Q=a⃗2+μd⃗2Q=\vec a_2+\mu\vec d_2.
  • PQ⃗⋅d⃗1=0\vec{PQ}\cdot\vec d_1=0 and PQ⃗⋅d⃗2=0\vec{PQ}\cdot\vec d_2=0.
  • PQPQ is the shortest distance, and PQ⃗\vec{PQ} is parallel to d⃗1×d⃗2\vec d_1\times\vec d_2.
  • A point lies on the line of shortest distance if it is P+s PQ⃗P+s\,\vec{PQ} for some ss.

Conditions for the feet

PQ⃗⋅d⃗1=0,PQ⃗⋅d⃗2=0\vec{PQ}\cdot\vec d_1=0,\qquad \vec{PQ}\cdot\vec d_2=0

Worked example

Find the feet of the common perpendicular of the xx-axis and the line through (1,0,1)(1,0,1) with direction (0,1,0)(0,1,0).
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2024 · 29 January 2024 · Q176Moderate

Example 3 · Three Dimensional Geometry · Shortest Distance, Intersection and Coplanar Lines

Let OO be the origin, and MM and NN be the points on the lines x−54=y−41=z−53\frac{x- 5}{4}=\frac{y- 4}{1}=\frac{z- 5}{3} and x+812=y+25=z+119\frac{x + 8}{12}=\frac{y + 2}{5}=\frac{z + 11}{9} respectively such that MNMN is the shortest distance between the given lines. Then OM→⋅ON→\overrightarrow{OM}\cdot\overrightarrow{ON} is equal to

Perpendicular to BOTH lines

Making PQ⃗\vec{PQ} perpendicular to only one direction gives the foot from a point, not the common perpendicular. Both dot products must vanish.

Concept 4 of 5: Where two lines meet, and when they are coplanar

To find where two lines meet, set their general points equal: three equations, two unknowns. Two of them give λ\lambda and μ\mu; the third either checks out (they meet) or fails (they are skew). Equivalently, two lines are coplanar exactly when the joining vector, d⃗1\vec d_1 and d⃗2\vec d_2 lie in one plane: their scalar triple product is zero.

Definition

  • Meeting point: solve a⃗1+λd⃗1=a⃗2+μd⃗2\vec a_1+\lambda\vec d_1=\vec a_2+\mu\vec d_2 using two coordinates; check the third.
  • Coplanar: (a⃗2−a⃗1)⋅(d⃗1×d⃗2)=0(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)=0.
  • Non-parallel coplanar lines meet; parallel lines are always coplanar.
  • A line given as two planes: find its direction and one point first.

Condition for coplanar lines

(a⃗2−a⃗1)⋅(d⃗1×d⃗2)=0(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)=0

Worked example

Where do x−11=y−22=z−33\frac{x-1}{1}=\frac{y-2}{2}=\frac{z-3}{3} and x−21=y−31=z−41\frac{x-2}{1}=\frac{y-3}{1}=\frac{z-4}{1} meet?
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2024 · 5 Apr 2024 · Q61Moderate

Example 4 · Three Dimensional Geometry · Shortest Distance, Intersection and Coplanar Lines

Let dd be the distance of the point of intersection of the lines x+63=y2=z+11\frac{x + 6}{3}=\frac{y}{2}=\frac{z + 1}{1} and x−74=y−93=z−42\frac{x- 7}{4}=\frac{y- 9}{3}=\frac{z- 4}{2} from the point (7,8,9)(7,8,9). Then d2+6d^{2}+ 6 is equal to:

Always check the third equation

Any two coordinates can be solved for λ\lambda and μ\mu. Only if the third coordinate also agrees do the lines actually meet.

Concept 5 of 5: A line that meets two given lines

A third line that meets two given lines is fixed by its two meeting points PP (on the first) and QQ (on the second). Write both as general points. If the third line has a given direction, PQ⃗\vec{PQ} must be parallel to it; if it passes through a given point RR, then RR, PP, QQ must be collinear. Either way you get equations in the two parameters.

Definition

  • P=a⃗1+λd⃗1P=\vec a_1+\lambda\vec d_1, Q=a⃗2+μd⃗2Q=\vec a_2+\mu\vec d_2.
  • Given direction v⃗\vec v: PQ⃗=kv⃗\vec{PQ}=k\vec v (compare ratios).
  • Through a given point RR: RP⃗∥RQ⃗\vec{RP}\parallel\vec{RQ}.
  • Then PQPQ, the points themselves, or a point on the line follow directly.

Condition for a given direction

Q−P=k v⃗Q-P=k\,\vec v

Worked example

A line with direction (1,1,1)(1,1,1) meets the xx-axis at PP and the line through (0,0,1)(0,0,1) with direction (0,1,0)(0,1,0) at QQ. Find PP, QQ and PQPQ.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2024 · 29 January 2024 · Q90Moderate

Example 5 · Three Dimensional Geometry · Shortest Distance, Intersection and Coplanar Lines

A line with direction ratios 2,1,22,1,2 meets the lines x=y+2=zx = y + 2 = z and x+2=2y=2zx + 2 = 2y = 2z respectively at the point PP and QQ. if the length of the perpendicular from the point (1,2,12)(1,2,12) to the line PQPQ is ll, then l2l^{2} is

Two parameters, not one

Using the same letter for the parameters on both lines forces the meeting points to correspond, which they do not. Give each line its own parameter.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (5)

Watch out for (5)

Test yourself on Three Dimensional Geometry

20 past JEE Mains questions from this chapter, timed at 48 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.