All solutions
MathsJEE Advanced

Shortest Distance Between Skew Lines: Formula & Derivation

Master the JEE Advanced concept of finding the shortest distance between skew lines in 3D. Learn the formula and its derivation using vector methods.

3 min readPublished 4 June 2026
3D Geometrycross product interpretation

Concept Overview

This question tests the understanding of three-dimensional geometry, specifically the concept of skew lines and how to calculate the shortest distance between them. Skew lines are lines in 3D space that are neither parallel nor intersecting. The shortest distance between them is along a line segment perpendicular to both. We will derive the formula for this distance using vector algebra, leveraging the properties of the cross product.

Step 1: Define the equations of the two skew lines. Let the equations of the two skew lines, L1L_1 and L2L_2, in vector form be: r1=a1+λb1\mathbf{r}_1 = \mathbf{a}_1 + \lambda \mathbf{b}_1 r2=a2+μb2\mathbf{r}_2 = \mathbf{a}_2 + \mu \mathbf{b}_2 Here, a1\mathbf{a}_1 and a2\mathbf{a}_2 are position vectors of points on L1L_1 and L2L_2 respectively, and b1\mathbf{b}_1 and b2\mathbf{b}_2 are direction vectors of L1L_1 and L2L_2. λ\lambda and μ\mu are scalar parameters.

Step 2: Understand the geometric interpretation of the shortest distance. The shortest distance between two skew lines is the length of the line segment that is perpendicular to both lines. Let this shortest distance be dd. This segment lies along a vector that is perpendicular to both direction vectors b1\mathbf{b}_1 and b2\mathbf{b}_2.

Step 3: Identify a vector perpendicular to both direction vectors. A vector perpendicular to both b1\mathbf{b}_1 and b2\mathbf{b}_2 can be found using their cross product: b1×b2\mathbf{b}_1 \times \mathbf{b}_2. This resulting vector is normal to the plane containing lines parallel to L1L_1 and L2L_2 passing through the origin.

Step 4: Consider the vector connecting a point on each line. Let P1P_1 be a point on L1L_1 with position vector a1\mathbf{a}_1, and P2P_2 be a point on L2L_2 with position vector a2\mathbf{a}_2. The vector connecting these two points is a2a1\mathbf{a}_2 - \mathbf{a}_1.

Step 5: Project the connecting vector onto the common perpendicular. The shortest distance dd is the scalar projection of the vector a2a1\mathbf{a}_2 - \mathbf{a}_1 onto the direction of the common perpendicular vector b1×b2\mathbf{b}_1 \times \mathbf{b}_2. The scalar projection of a vector v\mathbf{v} onto a vector u\mathbf{u} is given by vuu\frac{|\mathbf{v} \cdot \mathbf{u}|}{|\mathbf{u}|}.

Step 6: Apply the scalar projection formula. Using the formula for scalar projection, the shortest distance dd is: d=(a2a1)(b1×b2)b1×b2d = \frac{|(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{b}_1 \times \mathbf{b}_2)|}{|\mathbf{b}_1 \times \mathbf{b}_2|} The term (a2a1)(b1×b2)(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{b}_1 \times \mathbf{b}_2) is the scalar triple product, which represents the volume of the parallelepiped formed by the vectors a2a1\mathbf{a}_2 - \mathbf{a}_1, b1\mathbf{b}_1, and b2\mathbf{b}_2. The magnitude of the cross product b1×b2|\mathbf{b}_1 \times \mathbf{b}_2| represents the area of the parallelogram formed by b1\mathbf{b}_1 and b2\mathbf{b}_2. The ratio gives the height of the parallelepiped with respect to this base, which is precisely the shortest distance between the skew lines.

Step 7: Alternative form using determinant. The scalar triple product can also be expressed as a determinant: (a2a1)(b1×b2)=x2x1y2y1z2z1b1xb1yb1zb2xb2yb2z(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{b}_1 \times \mathbf{b}_2) = \begin{vmatrix} x_2-x_1 & y_2-y_1 & z_2-z_1 \\ b_{1x} & b_{1y} & b_{1z} \\ b_{2x} & b_{2y} & b_{2z} \end{vmatrix} where a1=(x1,y1,z1)\mathbf{a}_1 = (x_1, y_1, z_1), a2=(x2,y2,z2)\mathbf{a}_2 = (x_2, y_2, z_2), b1=(b1x,b1y,b1z)\mathbf{b}_1 = (b_{1x}, b_{1y}, b_{1z}), and b2=(b2x,b2y,b2z)\mathbf{b}_2 = (b_{2x}, b_{2y}, b_{2z}). Thus, the formula for the shortest distance becomes: d=1b1×b2x2x1y2y1z2z1b1xb1yb1zb2xb2yb2zd = \frac{1}{|\mathbf{b}_1 \times \mathbf{b}_2|} \left| \begin{vmatrix} x_2-x_1 & y_2-y_1 & z_2-z_1 \\ b_{1x} & b_{1y} & b_{1z} \\ b_{2x} & b_{2y} & b_{2z} \end{vmatrix} \right|

Key Takeaways:

  • Skew lines are lines in 3D that are neither parallel nor intersecting.
  • The shortest distance between skew lines is the length of the common perpendicular segment.
  • The direction of the common perpendicular is given by the cross product of the direction vectors of the lines (b1×b2\mathbf{b}_1 \times \mathbf{b}_2).
  • The shortest distance is the scalar projection of the vector connecting any point on one line to any point on the other line, onto the common perpendicular direction.

Answer: d=(a2a1)(b1×b2)b1×b2d = \frac{|(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{b}_1 \times \mathbf{b}_2)|}{|\mathbf{b}_1 \times \mathbf{b}_2|}

More Maths solutions

Still stuck after reading this?

Ask JEE Genius — the AI tutor walks through every step and cites the exact past-paper source.

Open the chat →