Using Vector Projections for Shortest Distances

#hsc-maths#extension-1#vectors

Finding the shortest distance from a point to a line is a classic geometry problem, but in HSC Mathematics Extension 1, vector methods offer an elegant and insightful solution. This topic connects directly to the syllabus's treatment of vectors and their geometric applications, giving you a technique that bypasses coordinate geometry or calculus. By projecting one vector onto another, you'll learn how to decompose displacement into parallel and perpendicular components—a skill that appears in many applied contexts.

Problem Statement

A line LL passes through the points A(1,2)A(-1, 2) and B(3,5)B(3, 5). A point P(4,1)P(4, 1) does not lie on the line.

  1. Find the vector AB\vec{AB} and the vector AP\vec{AP}.
  2. Using vector projection, find the shortest distance from the point PP to the line LL.

Hints

  • Recall that the shortest distance from a point to a line is the perpendicular distance.
  • The scalar projection of AP\vec{AP} onto AB\vec{AB} gives the length of the adjacent side of the right-angled triangle formed by AA, PP, and the point on the line closest to PP.
  • You can use Pythagoras' theorem with the length of AP\vec{AP} and the scalar projection of AP\vec{AP} onto AB\vec{AB} to find the perpendicular distance.
  • Alternatively, the vector projection projABAP\text{proj}_{\vec{AB}} \vec{AP} can be used. The perpendicular vector is APprojABAP\vec{AP} - \text{proj}_{\vec{AB}} \vec{AP}, and its magnitude is the shortest distance.

Solutions

  1. We begin by computing the two key displacement vectors. The vector AB\vec{AB} gives the direction of the line, while AP\vec{AP} connects a known point on the line to the external point.

    AB=(3(1)52)=(43)\vec{AB} = \begin{pmatrix} 3 - (-1) \\ 5 - 2 \end{pmatrix} = \begin{pmatrix} 4 \\ 3 \end{pmatrix}

    AP=(4(1)12)=(51)\vec{AP} = \begin{pmatrix} 4 - (-1) \\ 1 - 2 \end{pmatrix} = \begin{pmatrix} 5 \\ -1 \end{pmatrix}

  2. The shortest distance is the perpendicular length, so we can decompose AP\vec{AP} into components along and perpendicular to AB\vec{AB}. Let NN be the point on the line LL that is closest to PP. The line segment PNPN is perpendicular to LL. The length ANAN is the scalar projection of AP\vec{AP} onto AB\vec{AB}. Let's calculate this scalar projection.

    The scalar projection formula gives the signed length of the component along AB\vec{AB}:

    Scalar Projection=APABAB\text{Scalar Projection} = \frac{\vec{AP} \cdot \vec{AB}}{|\vec{AB}|}

    First, find the dot product APAB\vec{AP} \cdot \vec{AB}:

    APAB=(5)(4)+(1)(3)=203=17\vec{AP} \cdot \vec{AB} = (5)(4) + (-1)(3) = 20 - 3 = 17

    Next, find the magnitude of AB\vec{AB}:

    AB=42+32=16+9=25=5|\vec{AB}| = \sqrt{4^2 + 3^2} = \sqrt{16 + 9} = \sqrt{25} = 5

    So, the scalar projection AN=175AN = \frac{17}{5}.

    Now, we find the magnitude of AP\vec{AP} (the hypotenuse of the right-angled triangle APN\triangle APN):

    AP=52+(1)2=25+1=26|\vec{AP}| = \sqrt{5^2 + (-1)^2} = \sqrt{25 + 1} = \sqrt{26}

    With the hypotenuse and one leg known, the perpendicular distance is simply the other leg, obtained via Pythagoras' theorem in APN\triangle APN:

    AP2=AN2+PN2|\vec{AP}|^2 = AN^2 + PN^2

    26=(175)2+d226 = \left(\frac{17}{5}\right)^2 + d^2

    d2=2628925=65028925=36125d^2 = 26 - \frac{289}{25} = \frac{650 - 289}{25} = \frac{361}{25}

    Taking the positive square root:

    d=195=3.8d = \frac{19}{5} = 3.8

    The shortest distance from PP to the line LL is exactly 3.83.8 units.


Takeaways

  • Vectors provide a powerful, geometric way to solve shortest distance problems without needing to find the equation of a line or use calculus.
  • The scalar projection breaks a vector into orthogonal components, making it ideal for perpendicularity problems.
  • Always draw a quick diagram mentally or on paper to visualize how AP\vec{AP}, its projection along the line, and the perpendicular distance form a right-angled triangle.

Further Readings

HSC Vectors, HSC Mechanics

Written by Vu Hung Nguyen

Mathematics Educator · LinkedIn · About