Math 2.0

Geometry Proof

Proof of the formula for the distance from a point to a line

Builds on LineEuclidean distanceLength of a vectorDot productNormal vectorPythagorean theorem in an inner product space

Proof

We find the foot of the perpendicular and compare every other point of the line with it.

  1. Let n=(a,b)n = (a, b). It is a normal vector of LL. Since (a,b)≠(0,0)(a, b) \neq (0, 0), its length ∥n∥=a2+b2\norm{n} = \sqrt{a^2 + b^2} is positive.
  2. Let k=ax0+by0+ck = a x_0 + b y_0 + c, let t=k/(a2+b2)t = k / (a^2 + b^2), and let Q0=P−tn=(x0−ta, y0−tb)Q_0 = P - t n = (x_0 - t a, \, y_0 - t b).
  3. The point Q0Q_0 lies on LL. Indeed, a(x0−ta)+b(y0−tb)+c=k−t(a2+b2)=k−k=0a (x_0 - t a) + b (y_0 - t b) + c = k - t (a^2 + b^2) = k - k = 0.
  4. Let Q=(x,y)Q = (x, y) be any point of LL. With the dot product, n⋅Q=ax+by=−cn \cdot Q = a x + b y = -c. By step 3 also n⋅Q0=−cn \cdot Q_0 = -c. So n⋅(Q0−Q)=0n \cdot (Q_0 - Q) = 0.
  5. We have P−Q=(P−Q0)+(Q0−Q)=tn+(Q0−Q)P - Q = (P - Q_0) + (Q_0 - Q) = t n + (Q_0 - Q). The two summands are orthogonal by step 4.
  6. By the Pythagorean theorem for orthogonal vectors, ∥P−Q∥2=t2∥n∥2+∥Q0−Q∥2≥t2∥n∥2\norm{P - Q}^2 = t^2 \norm{n}^2 + \norm{Q_0 - Q}^2 \geq t^2 \norm{n}^2.
  7. The Euclidean distance is d(P,Q)=∥P−Q∥d(P, Q) = \norm{P - Q}. Taking square roots in step 6 gives d(P,Q)≥∣t∣ ∥n∥d(P, Q) \geq \abs{t} \, \norm{n} for each Q∈LQ \in L.
  8. For Q=Q0Q = Q_0, we get d(P,Q0)=∥tn∥=∣t∣ ∥n∥d(P, Q_0) = \norm{t n} = \abs{t} \, \norm{n}. So the bound of step 7 is reached at the point Q0Q_0 of LL.
  9. Hence the smallest distance exists and equals ∣t∣ ∥n∥=∣k∣a2+b2a2+b2=∣ax0+by0+c∣a2+b2\abs{t} \, \norm{n} = \dfrac{\abs{k}}{a^2 + b^2} \sqrt{a^2 + b^2} = \dfrac{\abs{a x_0 + b y_0 + c}}{\sqrt{a^2 + b^2}}.

Idea

Move from PP along the normal vector (a,b)(a, b) until you hit the line. The path from PP to any other point of the line is the hypotenuse of a right triangle with this normal segment as a leg. So it is at least as long, and the normal segment gives the distance.

Reading path

To understand this page from the ground up, read these 14 pages in order. The foundations come first. The path takes the proof Proof of the Pythagorean theorem in an inner product space.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Dot product concept
  2. Euclidean distance concept
  3. Length of a vector concept
  4. Line concept
  5. Normal vector concept
  6. Vector space definition
  7. Inner product definition
  8. Norm definition
  9. Inner product space definition
  10. Orthogonal vectors definition
  11. Norm induced by an inner product definition
  12. Proof of the Pythagorean theorem in an inner product space proof
  13. Pythagorean theorem in an inner product space statement
  14. Proof of the formula for the distance from a point to a line proof

Where this leads

5 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line, Proofs
  2. Web https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_plane, Why this is the closest point
About this page
TagHBCYZJBEH4
URIm2://HBCYZJBEH4
Kindproof
WritingW0 stub
MSC51N20
ProvesDistance from a point to a line
UsesLine, Euclidean distance, Length of a vector, Dot product, Normal vector, Pythagorean theorem in an inner product space
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.