Maths WorkshopMaths problems with full solutions
Exercise 324Geometry › Analytic geometryHigh schoolAdded 31 Oct 2026

Distance from a point to a line

#lines#projection

Statement

Compute the distance from the point M(1,2)M(1,2) to the line D: 3x+4y−5=0\mathcal D:\ 3x+4y-5=0.

Hint

The vector n⃗=(3,4)\vec n=(3,4) is normal to D\mathcal D. Project MM onto D\mathcal D along n⃗\vec n.

Show solutionHide solution

Solution

The foot HH of the perpendicular from MM has the form H=M−t n⃗H=M-t\,\vec n. Requiring H∈DH\in\mathcal D:
3(1−3t)+4(2−4t)−5=0⟹6−25t=0⟹t=625.3(1-3t)+4(2-4t)-5=0\quad\Longrightarrow\quad6-25t=0\quad\Longrightarrow\quad t=\frac6{25}.

Then MH=∣t∣ ∥n⃗∥=625⋅5=65MH=|t|\,\|\vec n\|=\dfrac6{25}\cdot5=\dfrac65.

This agrees with the general formula d=∣ax0+by0+c∣a2+b2=∣3+8−5∣5=65d=\dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}=\dfrac{|3+8-5|}{5}=\dfrac65.