EngineeringRise

Skew Lines and the Shortest Distance: JEE Main Notes

Reviewed Last updated 2026-11-20. Syllabus topic: Skew lines and the shortest distance.

In short. Two lines in space can be parallel, intersecting or skew. The shortest distance between lines is the length of their common perpendicular: |(a2 - a1) . (d1 x d2)|/|d1 x d2|, zero when the lines are coplanar and meet.

  • Skew lines are neither parallel nor intersecting, so no plane contains both.
  • The common perpendicular is along d1 x d2; the shortest distance is the length of the projection of a2 - a1 on that direction.
  • The triple product (a2 - a1) . (d1 x d2) equals zero exactly when the lines are coplanar (intersecting, if not parallel).
  • Its equation is found by writing the feet P = a1 + s d1 and Q = a2 + t d2, with PQ perpendicular to both directions.

Syllabus line: THREE DIMENSIONAL GEOMETRY : Coordinates of a point in space, the distance between two points, section formula, direction ratios and direction cosines and the angle between two intersecting lines. Equation of a line; Skew lines, the shortest distance between them and its equation. (NTA JEE (Main) 2026 syllabus, Mathematics, Unit 11 (https://jeemain.nta.nic.in/document/syllabus-2026/))

Before you start

Prerequisites

Related topics

The concept step by step

  1. Parallel, intersecting and skew lines

    In a plane, two distinct lines either meet or are parallel. In space there is a third case. Two lines are skew if they are not parallel and do not meet. Then no single plane contains both. Two lines with a common plane (parallel or meeting) are coplanar. Example: the x-axis and the line through (0, 0, 1) parallel to the y-axis never meet and are not parallel, so they are skew; the distance between them is 1, the gap along the z-direction.

  2. The common perpendicular

    For skew lines there is exactly one line segment that is perpendicular to both and has its end points on them; its length is the shortest distance between any point of one line and any point of the other. Its direction is perpendicular to both d1 and d2, so it is parallel to d1 x d2. The segment is called the line of shortest distance, and the unit vector along it is n = (d1 x d2)/|d1 x d2|.

  3. The shortest distance formula

    Take points A1 on the first line and A2 on the second, with direction vectors d1 and d2. The vector A1A2 = a2 - a1 joins the lines. The shortest distance is the component of this vector along the common perpendicular: SD = |(a2 - a1) . n| = |(a2 - a1) . (d1 x d2)|/|d1 x d2|. The numerator is the volume of the parallelepiped on three vectors, the denominator is the area of its base. In Cartesian form the numerator is the 3 x 3 determinant of the rows (x2 - x1, y2 - y1, z2 - z1), d1 and d2.

  4. Intersecting and parallel lines as special cases

    If the numerator, the triple product, is zero the shortest distance is zero: the lines are coplanar, and since they are not parallel (d1 x d2 not zero) they intersect. This is the standard test for intersection and is used to find an unknown constant. If d1 is parallel to d2 then d1 x d2 = 0 and the formula fails; use the distance between parallel lines instead: SD = |(a2 - a1) x d|/|d|, the perpendicular distance of a2 from the first line.

  5. Equation of the line of shortest distance

    Let P = a1 + s d1 on the first line and Q = a2 + t d2 on the second. The vector PQ = a2 - a1 + t d2 - s d1 is perpendicular to both directions, so PQ . d1 = 0 and PQ . d2 = 0: two linear equations in s and t. Solve for the two parameters and get the feet P and Q; the line of shortest distance is the line through P and Q, with direction proportional to d1 x d2. A shortcut when the lines are perpendicular (d1 . d2 = 0) is that each equation involves only one parameter.

Worked examples

Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.

Example 1 (easy)

Find the shortest distance between the x-axis and the line through (0, 3, 4) parallel to the z-axis, in units.

Marks-style solution of example 1
StepMarks
d1 = (1, 0, 0), d2 = (0, 0, 1), so d1 x d2 = (0, -1, 0), with magnitude 1.1
a2 - a1 = (0, 3, 4), and its dot product with (0, -1, 0) is -3.1
SD = 3/1 = 3 units.1
Total: 3 marks3

Answer: 3 units

Fast method: Look along the z-axis: the x-axis becomes a line y = 0 and the other line a point (0, 3); the distance is 3.

Sanity check: Units: length. The segment from (0, 0, 0) on the x-axis to (0, 3, 0) on the other line is perpendicular to both lines and has length 3, which matches.

Example 2 (easy)

Do the lines through (1, 2, 3) with direction (1, 1, 1) and through (2, 3, 4) with direction (1, 2, 3) intersect? Give the value of the triple product.

Marks-style solution of example 2
StepMarks
d1 x d2 = (1 x 3 - 1 x 2, 1 x 1 - 1 x 3, 1 x 2 - 1 x 1) = (1, -2, 1).1
a2 - a1 = (1, 1, 1), so the triple product is 1 - 2 + 1 = 0.1
Triple product 0 and d1 x d2 is not zero, so the lines intersect; the value is 0.1
Total: 3 marks3

Answer: yes, they intersect (triple product 0)

Fast method: The point (2, 3, 4) = (1, 2, 3) + (1, 1, 1), so the second line's base point is already on the first line.

Sanity check: The distance formula gives 0 and the shortcut confirms it: the base point of the second line lies on the first. Directions differ, so the lines meet at that single point.

Example 3 (medium)

Find the shortest distance, in units, between the lines through (1, 2, 3) with direction (1, 1, 1) and through (2, 3, 5) with direction (1, 2, 3).

Marks-style solution of example 3
StepMarks
d1 x d2 = (1, -2, 1), with magnitude sqrt(6).2
a2 - a1 = (1, 1, 2); the triple product is 1 - 2 + 2 = 1.1
SD = 1/sqrt(6) = 0.408 units.1
Total: 4 marks4

Answer: 1/sqrt(6) = 0.408 units

Fast method: Reuse the earlier cross product; only the joining vector changed, from (1, 1, 1) to (1, 1, 2).

Sanity check: The distance must be less than the gap between the base points, sqrt(1 + 1 + 4) = 2.449; 0.408 is. Moving the base point of the second line by (0, 0, 1) from an intersecting position changed the distance from 0 to 1/sqrt(6), plausible for a unit shift.

Example 4 (medium)

Find the distance between the parallel lines through (1, -1, 2) and (7, 2, 2), both with direction ratios (2, 2, 1), in units.

Marks-style solution of example 4
StepMarks
Parallel lines: use |(a2 - a1) x d|/|d|, because d1 x d2 = 0.1
a2 - a1 = (6, 3, 0); (6, 3, 0) x (2, 2, 1) = (3 x 1 - 0 x 2, 0 x 2 - 6 x 1, 6 x 2 - 3 x 2) = (3, -6, 6).2
|cross| = sqrt(9 + 36 + 36) = 9 and |d| = 3, so the distance is 3 units.1
Total: 4 marks4

Answer: 3 units

Fast method: Remove the component of (6, 3, 0) along d: (6, 3, 0) - 2 (2, 2, 1) = (2, -1, -2), whose magnitude is 3.

Sanity check: The distance cannot exceed the gap |a2 - a1| = sqrt(45) = 6.71; 3 is less, and (2, -1, -2) . (2, 2, 1) = 0 confirms perpendicularity to d.

Example 5 (medium)

Find the shortest distance between the lines through the origin with direction (3, 4, 0) and through (1, 2, 7) with direction (0, 0, 1), in units.

Marks-style solution of example 5
StepMarks
d1 x d2 = (4 x 1 - 0, 0 - 3 x 1, 0) = (4, -3, 0), with magnitude 5.2
a2 - a1 = (1, 2, 7); the triple product is 4 - 6 + 0 = -2.1
SD = |-2|/5 = 0.4 units.1
Total: 4 marks4

Answer: 0.4 units

Fast method: Both lines are vertical or horizontal: look from above (along z). The first becomes the line 4x - 3y = 0 and the second the point (1, 2). Its distance from the line is |4 - 6|/5 = 0.4.

Sanity check: Units: length. The distance 0.4 is smaller than the horizontal gap of the point from the origin, sqrt(5) = 2.24, so it is plausible. Viewed along z the distance of (1, 2) from 4x - 3y = 0 is |4 - 6|/5 = 0.4, which agrees; the unnormalised 2 is a volume, not a length.

Typical trap: Leaving out the division by |d1 x d2|. The triple product alone is a volume, not a length. Here it is 2 while the shortest distance is 2/5.

Example 6 (hard, multi-step)

Lines L1: x/2 = (y - 1)/1 = (z - 1)/2 and L2: (x + 2)/1 = y/2 = (z - 8)/(-2). Find the shortest distance, the feet P on L1 and Q on L2, and the equation of the line of shortest distance.

Marks-style solution of example 6
StepMarks
d1 = (2, 1, 2), d2 = (1, 2, -2), d1 . d2 = 2 + 2 - 4 = 0, so |d1 x d2| = 3 x 3 = 9; d1 x d2 = (-6, 6, 3).2
a2 - a1 = (-2, -1, 7): the triple product is 12 - 6 + 21 = 27, so SD = 27/9 = 3 units.2
P = (2s, 1 + s, 1 + 2s), Q = (-2 + t, 2t, 8 - 2t). PQ . d1 = 0 and PQ . d2 = 0 give 9s = 9 and 9t = 18, so s = 1, t = 2.2
P = (2, 2, 3), Q = (0, 4, 4); PQ = (-2, 2, 1), length 3; the line is (x - 2)/(-2) = (y - 2)/2 = (z - 3)/1, SD 3 units.1
Total: 7 marks7

Answer: SD = 3 units; P = (2, 2, 3), Q = (0, 4, 4); line (x - 2)/(-2) = (y - 2)/2 = (z - 3)/1

Fast method: Because d1 . d2 = 0 each perpendicularity condition has one unknown, so s and t come out without solving a pair.

Sanity check: |PQ| = sqrt(4 + 4 + 1) = 3, equal to the formula value, and PQ is proportional to (-6, 6, 3) = 3 (-2, 2, 1), the cross product direction. Both checks agree.

Example 7 (hard)

The lines through (0, 0, 0) with direction (1, 2, 1) and through (2, k, 3) with direction (3, 1, 2) intersect. Find k.

Marks-style solution of example 7
StepMarks
d1 x d2 = (2 x 2 - 1 x 1, 1 x 3 - 1 x 2, 1 x 1 - 2 x 3) = (3, 1, -5).2
a2 - a1 = (2, k, 3); the triple product is 6 + k - 15 = k - 9.1
Intersection needs the triple product to be zero: k = 9.1
Total: 4 marks4

Answer: k = 9

Fast method: The numerator is linear in k, so evaluate it at k = 0 (value -9) and note it grows by 1 per unit of k: zero at k = 9.

Sanity check: Check by finding the point: with k = 9 the first line gives (s, 2 s, s) and the second (2 + 3 t, 9 + t, 3 + 2 t); equal x and z give s = 2 + 3 t and s = 3 + 2 t, so t = 1, s = 5, and y: 10 = 10. All three agree at (5, 10, 5).

Formulas and units

Formula and unit box for Skew lines and the shortest distance
ResultFormulaValid whenUnits or noteWorked example
Vector form of a liner = a + t da is a point on the line, d its direction, t reallengthExample 6
Common perpendicular directiond1 x d2d1, d2 direction vectors; zero if lines are parallellength²Example 1
Shortest distance (skew lines)|(a2 - a1) . (d1 x d2)|/|d1 x d2|skew lines; d1 x d2 not zerolengthExample 1
Cartesian determinant formnumerator = determinant of rows (x2 - x1, y2 - y1, z2 - z1), (a1, b1, c1), (a2, b2, c2)cartesian lines with ratios (a1,b1,c1), (a2,b2,c2); skewlength³none
Lines intersect(a2 - a1) . (d1 x d2) = 0 with d1 x d2 not zerolines in space, not parallel; coplanar means they meetlength³Example 2
Distance between parallel lines|(a2 - a1) x d|/|d|parallel lines with common direction dlengthExample 4
Feet of the common perpendicularPQ . d1 = 0 and PQ . d2 = 0 with P = a1 + s d1, Q = a2 + t d2skew lines; P on first, Q on second lineparameters s, tExample 6
Shortcut for perpendicular directionsd1 . d2 = 0 gives |d1 x d2| = |d1||d2|d1 perpendicular to d2length²Example 6

Use your browser's print command to print this page; the formula box prints on its own page. Download the one-page formula sheet (PDF).

Common mistakes and speed

  • Forgetting to divide the triple product by |d1 x d2|. Why it tempts: The triple product is the long computation, so the arithmetic feels complete; the unnormalised value is usually one of the options.
  • Using the skew-lines formula for parallel lines. Why it tempts: Both are 'distance between two lines'; for parallel lines d1 x d2 = 0 and the formula gives 0 divided by 0, so the correct method is the perpendicular distance of a point from a line.
  • Losing one of the two values of an unknown constant when the distance is given. Why it tempts: The modulus produces two cases, k - 1 = 7 and k - 1 = -7, but the positive case is solved first and the other is dropped, so a sum or product question gives a wrong answer.
  • An arithmetic slip in a cross product component. Why it tempts: The cross product has six products with alternating signs; an error changes the numerator and denominator together, so the answer still looks reasonable.
  • Concluding that two lines intersect because they are not parallel. Why it tempts: In a plane that is true; in space non-parallel lines may be skew, and the triple product has to be zero.

Time per question and fast method

Target: about 120 seconds per question.

Reduce the directions to small integers, write the cross product once, then dot it with the joining vector. If d1 . d2 = 0 the magnitude of the cross product is |d1||d2|. For an unknown constant, note that the triple product is linear in it, so the zero-distance value and the two values for a given distance are symmetric around it.

Recall quiz

Pick an option for each question. Your answers stay on this page and are not sent anywhere.

Question 1. The shortest distance between the lines through the origin along the x-axis and through (3, 4, 7) along the y-axis is
Show the answer

Answer: D: 7 units. d1 x d2 = (0, 0, 1) and the joining vector (3, 4, 7) has z-component 7, so the distance is 7. The values 3 and 4 are the other coordinates.

Question 2. The magnitude of d1 x d2 for d1 = (1, 2, 2) and d2 = (2, 1, -2), which are perpendicular, is
Show the answer

Answer: B: 9. For perpendicular vectors |d1 x d2| = |d1||d2| = 3 x 3 = 9.

Question 3. The triple product (a2 - a1) . (d1 x d2) for two lines is zero and d1 x d2 is not zero. The lines are
Show the answer

Answer: D: intersecting. A zero triple product means the lines are coplanar; with non-parallel directions that means they meet.

Question 4. The distance between the parallel lines through (0, 0, 0) and (0, 5, 0), both along the x-axis direction, is
Show the answer

Answer: B: 5 units. (a2 - a1) x d = (0, 5, 0) x (1, 0, 0) = (0, 0, -5), magnitude 5, over |d| = 1.

Question 5. The line through (1, 0, 0) with direction (1, 1, 0) meets the line through (0, 1, k) with direction (0, 1, 1). The value of k is
Show the answer

Answer: C: 2. d1 x d2 = (1, -1, 1) and a2 - a1 = (-1, 1, k), so the triple product is -1 - 1 + k = k - 2. It must be zero, so k = 2.

Practice

Test your answers nowFull-length mocks

Previous-year questions

Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.

Going deeper and revision

Classifying a pair of lines

Compute d1 x d2. If it is the zero vector the lines are parallel (or the same line if a2 - a1 is also parallel to d). Otherwise compute the triple product T = (a2 - a1) . (d1 x d2). If T = 0 the lines intersect; if T is not zero they are skew and the shortest distance is |T|/|d1 x d2|. The triple product is a determinant, so subtracting one row from another does not change it, and a common factor in a row can be taken out. A good habit: reduce each direction triple to the smallest integers before taking the cross product, since only direction matters. Units: the distance is in the length units of the coordinates.

Derivation and checks of the distance formula

Project a2 - a1 on n: this is the length of the component perpendicular to both lines. Any displacement along d1 or d2 leaves the projection unchanged, which is why the choice of the points A1 and A2 on the lines does not matter. Check with the axes: the x-axis (d1 = (1, 0, 0), a1 = 0) and the line through (0, 3, 4) parallel to z (d2 = (0, 0, 1)): d1 x d2 = (0, -1, 0) and the distance is |(0, 3, 4) . (0, -1, 0)| = 3, as expected from the picture. If d1 . d2 = 0 then |d1 x d2| = |d1||d2|, a useful shortcut for the denominator. The formula gives the same value on swapping the lines.

Common perpendicular: method and verification

Method: write the general points P(s) and Q(t); impose PQ . d1 = 0 and PQ . d2 = 0; solve the pair; verify that PQ is parallel to d1 x d2 and that |PQ| equals the formula value. The line of shortest distance is (x - xP)/(xQ - xP) = (y - yP)/(yQ - yP) = (z - zP)/(zQ - zP), or with the ratios of d1 x d2 through P. When the exam asks only for the distance, never find the feet; use the triple product. When it asks for the feet or the equation, the linear system is faster than the equation of planes, which are outside the syllabus line, so avoid them.

What examiners test and edge cases

Tested items: shortest distance between two given skew lines (often with perpendicular direction vectors to reduce arithmetic); distance between parallel lines; the value of a constant for which the lines intersect (triple product zero) or are at a given distance (linear in the constant inside a modulus, so two values); the feet of the common perpendicular or its equation; and coordinate-axis cases. Traps: forgetting the denominator |d1 x d2|; losing the second value of the constant when the modulus is removed; using the formula for skew lines when the lines are parallel (division by zero); making an arithmetic slip in the cross product. A sign error in one component of the cross product changes both numerator and denominator, so recompute the magnitude from components.

Memory hook

Suppose a metro track runs along the ground and a flyover bridge crosses over it at an angle, without touching it. A cable car wire is to be dropped straight from the bridge to the rails in the shortest possible length.

  1. The track direction and the bridge direction are different, and the two never meet, so they are skew.
  2. The shortest cable has to be at right angles to the track and to the bridge at once; it is the one direction perpendicular to both, found by the cross product of the two directions.
  3. Its length is how far apart the two structures are measured along that common perpendicular direction: the gap between any two points on them, projected onto it.

The shortest distance between skew lines is the projection of any joining vector onto the common perpendicular direction d1 x d2.

The shortest gap between skew lines is the joining vector measured along the cross product.

Revision card

Try to answer each without looking above.

  1. Define skew lines and state how they differ from parallel and intersecting lines.
  2. Write the shortest distance formula between two skew lines in vector form.
  3. State the test that two lines intersect, in terms of a triple product.
  4. What is the distance formula between two parallel lines?
  5. Describe the steps to find the feet and the equation of the common perpendicular.
  6. What shortcut applies to |d1 x d2| when the two directions are perpendicular?

Sources and review

Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.

  • Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
  • Reviewer: independent verifier agent run (not the author)
  • Date: 2026-11-20
  • Defects found: 4; fixed: 4
  • Report: content/reviews/learn7-tdg-2026-11-20.md

Textbook references

  • NCERT Mathematics Part 2, Class 12 (reprint 2026-27), Chapter 11: Three Dimensional Geometry, 11.3.1 Equation of a line through a given point and parallel to a given vector b (read from the page image, PDF page 6) (read 2026-11-22)
  • NCERT Mathematics Part 2, Class 12 (reprint 2026-27), Chapter 11: Three Dimensional Geometry, 11.5.1 Distance between two skew lines (read from the page image, PDF page 11) (read 2026-11-22)
  • NCERT Mathematics Part 2, Class 12 (reprint 2026-27), Chapter 11: Three Dimensional Geometry, 11.5.2 Distance between parallel lines (read from the page image, PDF page 12) (read 2026-11-22)

Sources used

  • Syllabus: NTA JEE (Main) 2026 syllabus, Mathematics, Unit 11 (https://jeemain.nta.nic.in/document/syllabus-2026/), imported into syllabus/lines/jee-main/2026.json
  • Standard results of analytic geometry in three dimensions (shortest distance between skew lines); no textbook section reference attached yet (to be sourced at verification). Content written fresh for this site.

How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.