Shortest Distance Between Two Lines (DP IB Applications & Interpretation (AI): HL): Revision Note

Amber

Written by: Amber

Reviewed by: Dan Finlay

Updated on

Shortest distance between two lines

What is the shortest distance between two skew lines?

  • The shortest distance between two lines is always the perpendicular to both lines

    • Let l1 be a line with equation r=a1+λb1  

    • Let l2 be a line with equation r=a2+μb2  

  • The vector product of the two direction vectors is perpendicular to both lines

Diagram showing two skew lines, with explanations on calculating shortest distance, involving vector product and points on each line.
Example of the shortest distance between two skew lines

How do I find the shortest distance between two skew lines?

  • For example, consider the lines with equations:

    • l1 : r=(312)+λ(120)

    • l2 : r=(999)+μ(141)

Using the vector product

  • STEP 1
    Find the vector product of the direction vectors b1 and b2

    • d=(120)×(141)=(212)

  • STEP 2
    Find an expression for the position vector of a point A on l1 and a point B on l2  in terms of λ and μ

    • OA =(3+λ12λ2)

    • OB =(9μ9+4μ9+μ)

  • STEP 3
    Find the displacement vector between the general points

    • AB=(9μ9+4μ9+μ)(3+λ12λ2)=(6μλ10+4μ+2λ7+μ)

  • STEP 4
    Set the displacement vector parallel to the vector product and set up a system of three linear equations in terms of k, λ and μ

    • (6μλ10+4μ+2λ7+μ)=k(212)μλ+2k=64μ+2λ+k=10μ2k=7

  • STEP 5
    Solve the system to find the value of k

    • k=4

  • STEP 6
    Multiply the vector product by kand find the magnitude |kd| 

    • |4(212)|=12

Using the scalar product

  • STEP 1
    Sketch a diagram showing the point F1 on the line l1 that is closest to the point F2 on the line l2

    • The vector F1F2 will be perpendicular to both lines

  • STEP 2
    Use the equations of the lines to find the position vector of the point F1  in terms of λ and F2 in terms of μ

    • OF1 =(3+λ12λ2)

    • OF2 =(9μ9+4μ9+μ)

  • STEP 3
    Use this to find the displacement vector F1F2 in terms of λ and μ

    • F1F2=(9μ9+4μ9+μ)(3+λ12λ2)=(6μλ10+4μ+2λ7+μ)

  • STEP 4
    Form two equations by setting the scalar product of the direction vector of each line and the displacement vector F1F2 equal to zero

    • (6μλ10+4μ+2λ7+μ)·(120)=09μ5λ=14

    • (6μλ10+4μ+2λ7+μ)·(141)=018μ+9λ=27

  • STEP 5
    Solve the equations simultaneously to find the values of λ and μ

    • λ=1 and μ=1

  • STEP 6
    Substitute λ and μ into F1F2 and find the magnitude |F1F2| 

    • |(6(1)(1)10+4(1)+2(1)7+(1))|=12

How do I find the shortest distance between two parallel lines?

How do I find the shortest distance between a point on a line and an interesting line?

  • You can use the steps to find the shortest distance between a point and a line

  • It might be quicker to use right-angled trigonometry if you also know the point of intersection and/or the angle between the lines

    • The shortest length between the point and the line is perpendicular to the line

Worked Example

A drone travels in a straight line and at a constant speed. It moves from an initial point (-5, 4, -8) in the direction of the vector (1  2  1). At the same time as the drone begins moving a bird takes off from initial point (6, -4, 3) and moves in a straight line at a constant speed in the direction of the vector (  23  4).

Find the minimum distance between the bird and the drone during this movement.

Answer:

3-10-5-ib-aa-hl-short-distance-lines-we-2

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Amber

Author: Amber

Expertise: Maths Content Creator

Amber gained a first class degree in Mathematics & Meteorology from the University of Reading before training to become a teacher. She is passionate about teaching, having spent 8 years teaching GCSE and A Level Mathematics both in the UK and internationally. Amber loves creating bright and informative resources to help students reach their potential.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.