Straight Line in 3D

Shortest Distance Between Two Lines

0:00
LearnStep 1/3

Shortest Distance Between Two Lines

Shortest Distance Between Two Lines

Hello JEE aspirants! The "Shortest Distance Between Two Lines" is a crucial concept in 3D geometry. You'll often encounter problems based on this in JEE Main, and mastering it will significantly boost your score. It's all about finding the minimum distance between lines in 3D space, a skill that finds applications in various fields like physics and engineering.

Conceptual Explanation and Intuition

Imagine two lines floating in 3D space. They can be parallel, intersecting, or skew (non-parallel and non-intersecting). The shortest distance is the length of the line segment that is perpendicular to both lines. For intersecting lines, the shortest distance is, of course, zero.

The key idea is to understand the vector representation of lines. Each line can be defined by a point on the line and a direction vector. The shortest distance calculations use vector algebra to find the perpendicular distance.

1. Shortest Distance Between Skew Lines

Skew lines are lines that are neither parallel nor intersecting. Think of them as two lines that pass over and under each other in 3D space without ever meeting.

SD=(a2a1)(b1×b2)b1×b2SD = \frac{|(\vec{a_2}-\vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2})|}{|\vec{b_1} \times \vec{b_2}|}

Here, the lines are given in vector form as: r=a1+λb1\vec{r} = \vec{a_1} + \lambda \vec{b_1} and r=a2+μb2\vec{r} = \vec{a_2} + \mu \vec{b_2}, where:

  • a1\vec{a_1} and a2\vec{a_2} are position vectors of points on the two lines.
  • b1\vec{b_1} and b2\vec{b_2} are the direction vectors of the two lines.
  • λ\lambda and μ\mu are scalar parameters.

Derivation/Explanation:

The vector a2a1\vec{a_2} - \vec{a_1} connects a point on line 1 to a point on line 2. We want the component of this vector that is perpendicular to *both* lines. The cross product b1×b2\vec{b_1} \times \vec{b_2} gives us a vector that *is* perpendicular to both lines.

The dot product (a2a1)(b1×b2)(\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2}) gives us the component of a2a1\vec{a_2} - \vec{a_1} that lies in the direction of b1×b2\vec{b_1} \times \vec{b_2}. The absolute value ensures we have a positive distance. We then divide by the magnitude of b1×b2\vec{b_1} \times \vec{b_2} to normalize and get the shortest distance.

Example: Consider the lines r=(i^+j^)+λ(i^j^+k^)\vec{r} = (\hat{i} + \hat{j}) + \lambda (\hat{i} - \hat{j} + \hat{k}) and r=(2i^+j^k^)+μ(2i^+j^+k^)\vec{r} = (2\hat{i} + \hat{j} - \hat{k}) + \mu (2\hat{i} + \hat{j} + \hat{k}). Here, a1=i^+j^\vec{a_1} = \hat{i} + \hat{j}, b1=i^j^+k^\vec{b_1} = \hat{i} - \hat{j} + \hat{k}, a2=2i^+j^k^\vec{a_2} = 2\hat{i} + \hat{j} - \hat{k}, and b2=2i^+j^+k^\vec{b_2} = 2\hat{i} + \hat{j} + \hat{k}. Calculate a2a1\vec{a_2} - \vec{a_1}, b1×b2\vec{b_1} \times \vec{b_2}, and then apply the formula.

2. Shortest Distance Between Parallel Lines

When lines are parallel, their direction vectors are proportional. Finding the shortest distance is a slightly different calculation.

SD=b×(a2a1)bSD = \frac{|\vec{b} \times (\vec{a_2}-\vec{a_1})|}{|\vec{b}|}

Here, the lines are given as r=a1+λb\vec{r} = \vec{a_1} + \lambda \vec{b} and r=a2+μb\vec{r} = \vec{a_2} + \mu \vec{b}, where:

  • a1\vec{a_1} and a2\vec{a_2} are position vectors of points on the two lines.
  • b\vec{b} is the direction vector (same for both lines).

Derivation/Explanation:

The vector a2a1\vec{a_2} - \vec{a_1} connects a point on line 1 to a point on line 2. The cross product b×(a2a1)\vec{b} \times (\vec{a_2} - \vec{a_1}) gives a vector whose magnitude represents the area of the parallelogram formed by b\vec{b} and a2a1\vec{a_2} - \vec{a_1}. Dividing this area by the base (b|\vec{b}|) gives the height of the parallelogram, which is the shortest distance between the parallel lines.

Example: Consider the parallel lines r=(i^+2j^+3k^)+λ(i^+j^+k^)\vec{r} = (\hat{i} + 2\hat{j} + 3\hat{k}) + \lambda (\hat{i} + \hat{j} + \hat{k}) and r=(2i^+3j^+4k^)+μ(i^+j^+k^)\vec{r} = (2\hat{i} + 3\hat{j} + 4\hat{k}) + \mu (\hat{i} + \hat{j} + \hat{k}). Here, a1=i^+2j^+3k^\vec{a_1} = \hat{i} + 2\hat{j} + 3\hat{k}, a2=2i^+3j^+4k^\vec{a_2} = 2\hat{i} + 3\hat{j} + 4\hat{k}, and b=i^+j^+k^\vec{b} = \hat{i} + \hat{j} + \hat{k}. Compute a2a1\vec{a_2} - \vec{a_1}, b×(a2a1)\vec{b} \times (\vec{a_2} - \vec{a_1}), and then apply the formula.

3. Condition for Lines to Intersect

Two lines intersect if the shortest distance between them is zero.

SD=0SD = 0

For skew lines, this means: (a2a1)(b1×b2)=0|(\vec{a_2}-\vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2})| = 0. For parallel lines, the formula SD=b×(a2a1)bSD = \frac{|\vec{b} \times (\vec{a_2}-\vec{a_1})|}{|\vec{b}|} isn't helpful (it will either be 0 or non-zero, trivially determining if they are the *same* line). Instead, check if (a2a1)=kb(\vec{a_2} - \vec{a_1}) = k\vec{b}, where kk is some scalar. If this condition holds, the point a2\vec{a_2} lies on the line r=a1+λb\vec{r} = \vec{a_1} + \lambda \vec{b}.

Example: If (a2a1)(b1×b2)=0(\vec{a_2}-\vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2}) = 0, the lines intersect (or are coplanar). This means the vector a2a1\vec{a_2} - \vec{a_1} is perpendicular to the normal vector of the plane containing b1\vec{b_1} and b2\vec{b_2}, implying the lines lie in the same plane and intersect.

Tip: Always check if the lines are parallel first. If they are, use the parallel lines formula; otherwise, use the skew lines formula. Calculating b1×b2\vec{b_1} \times \vec{b_2} early on helps in both cases!
Common Mistake: Forgetting the absolute value in the shortest distance formula. Distance is always non-negative! Also, make sure you are using the correct formula (skew vs. parallel). A quick check: if b1\vec{b_1} and b2\vec{b_2} are proportional, the lines are parallel.
JEE Trick: Sometimes, JEE questions will give you the lines in Cartesian form. Convert them to vector form r=a+λb\vec{r} = \vec{a} + \lambda \vec{b} to easily apply the formulas. Remember the conversion: xx1a=yy1b=zz1c\frac{x-x_1}{a} = \frac{y-y_1}{b} = \frac{z-z_1}{c} translates to a=x1i^+y1j^+z1k^\vec{a} = x_1\hat{i} + y_1\hat{j} + z_1\hat{k} and b=ai^+bj^+ck^\vec{b} = a\hat{i} + b\hat{j} + c\hat{k}.

Master these formulas and practice applying them to various problems. Good luck with your JEE preparation!