Salam Academy
Learn7367Paper 1 · Compulsory contentFurther vectorsFoot of the perpendicular and shortest distances
Further vectors · Subtopic 4 of 4

Foot of the Perpendicular and Shortest Distances

The closest point on a line to a given point is where a perpendicular meets it. Find it with one scalar product, then get distances, reflections and areas almost for free.

Cambridge 9709 Paper 3Edexcel YMA01 WMA14AQA 7367 Paper 1≈ 40 minRevision 5 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Find the foot of the perpendicular from a point to a line using AP→⋅d=0\overrightarrow{AP}\cdot\mathbf{d}=0.
  • Find the perpendicular (shortest) distance from a point to a line.
  • Reflect a point in a line.
  • Use projections and Pythagoras as a check, and to find areas.
Pause and think

You are standing in a field next to a long straight road. Which point on the road is closest to you, and how could you recognise it?

Section 2 of 14

Core idea

Start hereThe closest approach

A ship sails a straight course past a lighthouse. When is it closest, and how close? At the closest moment, the line from the lighthouse to the ship is perpendicular to the course. The scalar product turns that geometric fact into an equation.

The big idea

For point PP and line r=a+λd\mathbf r=\mathbf a+\lambda\mathbf d: write a general point Q(λ)Q(\lambda), set PQ→⋅d=0\overrightarrow{PQ}\cdot\mathbf d=0, solve for λ\lambda to find the foot FF; the shortest distance is ∣PF→∣|\overrightarrow{PF}|.

1. Why perpendicular is shortest

Distance from P to a moving point Q on the line
−224681234560xyline r = (0, 1) + λ(2, 1)shortest: √5P(3, 5)FQ
As QQ slides along the line, the dashed distance PQPQ is smallest exactly when QQ reaches FF, where PFPF meets the line at right angles.
Pythagoras argument
  1. F with PF⊥line; Q any other point on the lineF\text{ with }PF\perp\text{line};\ Q\text{ any other point on the line}
    Setup.
  2. PQ2=PF2+FQ2PQ^2=PF^2+FQ^2
    Right angle at FF.
  3. PQ2>PF2 (FQ≠0)PQ^2>PF^2\ (FQ\neq0)
    So PFPF is the shortest.

2. The method in 3D

Worked exampleP(5,4,2)P(5,4,2); line r=(1,0,2)+λ(1,2,−1)\mathbf r=(1,0,2)+\lambda(1,2,-1)

Find the foot of the perpendicular and the distance.

Goal
FF and ∣PF∣|PF|.
Strategy
General point; dot product zero.
  1. Q=(1+λ, 2λ, 2−λ)Q=(1+\lambda,\ 2\lambda,\ 2-\lambda)
    General point.
  2. PQ→=(λ−4, 2λ−4, −λ)\overrightarrow{PQ}=(\lambda-4,\ 2\lambda-4,\ -\lambda)
    Q−PQ-P.
  3. (λ−4)+2(2λ−4)−(−λ)=0⇒6λ−12=0(\lambda-4)+2(2\lambda-4)-(-\lambda)=0\Rightarrow6\lambda-12=0
    PQ→⋅d=0\overrightarrow{PQ}\cdot\mathbf d=0.
  4. λ=2: F=(3,4,0), PF→=(−2,0,−2)\lambda=2:\ F=(3,4,0),\ \overrightarrow{PF}=(-2,0,-2)
    Foot.
  5. ∣PF∣=8=22|PF|=\sqrt8=2\sqrt2
    Distance.
AnswerF(3,4,0)F(3,4,0); distance 222\sqrt2.
✓ CheckPF→⋅d=−2+0+2=0\overrightarrow{PF}\cdot\mathbf d=-2+0+2=0 ✓.
TrickReflection of P in the line P′=F+PF→=2F−P=(1,4,−2)P'=F+\overrightarrow{PF}=2F-P=(1,4,-2).
Pause and think

Distance from the origin to the line r=(0,3,0)+λ(1,0,0)\mathbf r=(0,3,0)+\lambda(1,0,0)?

Summary

  • General point Q(λ)Q(\lambda).
  • PQ→⋅d=0\overrightarrow{PQ}\cdot\mathbf d=0.
  • Distance ∣PF∣|PF|.
Key words
Foot of perpendicular
Closest point on the line.
HistoryThe method of least squares. Around 1795 the teenage Carl Friedrich Gauss developed the method of least squares: choose the line that makes the total of the squared distances to the data points as small as possible. In 1801 he used it to predict where the lost dwarf planet Ceres would reappear, and astronomers found it almost exactly where he said. Finding shortest distances is at the heart of the method.
Keep reading for free

Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.