ASCENTLEARNING
Join a weekly class
Skip to learning content
YEAR 12 · VECTORS IN THREE DIMENSIONS · 22 MIN

Closest points and distances including skew lines

Use perpendicularity to find closest points and distances, including skew lines.

In this lesson

Before you start
  • Year 11 vector components and dot products
  • Coordinate geometry and exact arithmetic
01 / LEARN

Understand the idea.

Find the foot, then the length

The shortest segment from a point to an infinite line is perpendicular to the line. Write a variable point Q=a+t⁢d, require (q−p)⋅d=0, and solve for the perpendicular foot before taking its distance.

For the plane n⋅r=c, perpendicular motion follows its normal. The distance from P is ∣⁢n⋅p−c⁢∣⁢/⁢∣⁢n⁢∣. The absolute value makes the length non-negative regardless of which side contains P.

Skew is different from parallel

Nonparallel lines in three dimensions may be skew, with no common point. Their shortest joining segment is perpendicular to both direction vectors. Use separate parameters for the two lines and impose both zero dot-product conditions.

A common perpendicular direction is d1×d2. Projecting the anchor displacement onto it gives the shortest distance, but not the closest points. If the directions are parallel, this cross product vanishes and a point-to-line calculation is needed instead.

02 / WORKED EXAMPLES

See the method in action.

EXAMPLE 01

Worked example 1

Find the distance of (1,2,3) from the x axis.

Worked solution

  1. 1

    Choose a variable point on the x axis.

    Q=(t,0,0),Q⁢P⃗=(1−t,2,3)

    Every point on the axis has zero y and z coordinates.

  2. 2

    Require a perpendicular joining vector.

    (1−t,2,3)⋅(1,0,0)=1−t=0

    The shortest displacement to an infinite line is perpendicular to its direction.

  3. 3

    Find the foot and its distance.

    Q=(1,0,0),d=02+22+32=13

    The perpendicular segment varies only in the y and z directions.

Answer

13

EXAMPLE 02

Worked example 2 — oblique skew lines

Find the closest points and shortest distance for ℓ1=s⁢(1,1,0) and ℓ2=(0,1,1)+t⁢(1,0,1).

Worked solution

  1. 1

    Write separate points on the two lines.

    P=(s,s,0)Q=(t,1,1+t)P⁢Q⃗=(t−s,1−s,1+t)

    Independent line parameters allow the closest point on each line to be determined.

  2. 2

    Impose perpendicularity to both directions.

    P⁢Q⃗⋅(1,1,0)=t+1−2⁢s=0P⁢Q⃗⋅(1,0,1)=2⁢t−s+1=0

    A shortest connecting segment has no component along either line.

  3. 3

    Solve the simultaneous parameter equations.

    t=2⁢s−12⁢(2⁢s−1)−s+1=03⁢s=1s=13,t=−13

    Substitution eliminates t and determines both perpendicular feet.

  4. 4

    Calculate the closest points and displacement.

    P=(13,13,0)Q=(−13,1,23)P⁢Q⃗=(−23,23,23)

    Substitute each solved parameter into its own line equation.

  5. 5

    Take the perpendicular length.

    d=49+49+49=23

    The joining vector is perpendicular to both nonparallel lines, so its magnitude is their shortest separation.

Answer

P=(1⁢/3,1⁢/3,0), Q=(−1⁢/3,1,2⁢/3); shortest distance 2⁢/3.

03 / YOUR TURN

Try it yourself.

Check your understanding

Find the distance from (0,0,5) to z=2.

Show answer & reasoning

3

The plane z=2 has vertical normal. The perpendicular foot of (0,0,5) is (0,0,2), so the distance is ∣5−2⁢∣=3.

Keep practising

6 worksheet questions · 14 marks

Read the questions online
  1. Find the closest point on (t,0,0) to (3,4,5) and its distance.
    2 marks
  2. Find the distance from (1,2,3) to x+y+z=0.
    2 marks
  3. Find the foot of the perpendicular from (1,2,3) to x+y+z=0.
    2 marks
  4. Find the closest points and distance between ℓ1=s⁢(1,1,0) and ℓ2=(0,2,1)+t⁢(1,0,1).
    4 marks
  5. Find the distance between (s,0,0) and (t,3,4).
    2 marks
  6. For line (1,0,0)+t⁢(1,1,0) and P⁢(0,1,2), find the closest t and distance.
    2 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Find the closest point on (t,0,0) to (3,4,5) and its distance.
    2 marks

    Perpendicularity requires t=3.

    The remaining displacement is (0,4,5).

    Q=(3,0,0), distance 41.
  2. Find the distance from (1,2,3) to x+y+z=0.
    2 marks

    Use ∣6⁢∣3.

    Simplify to 23.

    23
  3. Find the foot of the perpendicular from (1,2,3) to x+y+z=0.
    2 marks

    Subtract [63]⁢(1,1,1) from the point.

    The result lies in the plane.

    (−1,0,1)
  4. Find the closest points and distance between ℓ1=s⁢(1,1,0) and ℓ2=(0,2,1)+t⁢(1,0,1).
    4 marks

    The joining vector is (t−s,2−s,1+t). Perpendicularity gives t+2−2⁢s=0 and 2⁢t−s+1=0.

    Solve to obtain s=1,t=0. The joining vector is (−1,1,1), which has length 3.

    P=(1,1,0) and Q=(0,2,1); distance 3.
  5. Find the distance between (s,0,0) and (t,3,4).
    2 marks

    The lines are parallel to the x axis.

    The perpendicular displacement is (0,3,4).

    5
  6. For line (1,0,0)+t⁢(1,1,0) and P⁢(0,1,2), find the closest t and distance.
    2 marks

    The dot product (1+t,t−1,−2)⋅(1,1,0)=2⁢t vanishes at 0.

    Then the squared distance is 1+1+4=6.

    t=0, distance 6.
Checking saved progress…
Curriculum reference & lesson scope

SACE Board of South Australia

Stage 2 Specialist Mathematics vector algebra, vector/Cartesian equations and linear systems. Original explanations and tasks.

Official curriculum source ↗

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account