Academy

Distance of a point from a line

From a tree to a straight fence, the shortest rope goes straight at the fence, meeting it at a right angle.

ax + by + c = 0 a x + b y + c = 0
-6-4-2246-6-4-224xyax + by + c = 0Pfootsanjibsikder.com
Drag to move · pinch or scroll to zoom · tap to read a point
distance from P to the line2.24
a h + b k + c (put P in the line)-5
h (P across) = 3
k (P up) = 3
a = 1
b = -2
c = -2

Step by step

  1. P is the point. The dashed segment from P meets the line at a right angle, at the foot.
  2. Its length is the distance from P to the line. No other path to the line is shorter.
  3. Put P's numbers into the line: ah + bk + c. It is 0 only when P is on the line.
  4. The distance is |ah + bk + c| ÷ √(a² + b²).
  5. Move P across the line. ah + bk + c changes sign: its sign tells which side of the line P is on.

Try this

  • Put P on the line. What is the distance?
  • Find a point at distance 2 from the line.
  • Move P to the other side and watch the sign of ah + bk + c.

Practise this

Problems on Straight Lines with checks, marks and help from Sir are on the exam site (sign in). Practise Straight Lines on the exam site →