Foot of Perpendicular Formula & How to Find It
In this article
The foot of the perpendicular from a point to a line is the point on the line that is closest to the given point; for a line ax + by + c = 0 and a point (x₁, y₁), its coordinates are (x₁ − a·d, y₁ − b·d) where d = (ax₁ + by₁ + c) / (a² + b²). This formula gives the exact point where a perpendicular dropped from the point meets the line, and it is the same point you get by projecting the point onto the line.
Why the Foot of the Perpendicular Matters
The foot of the perpendicular is a core idea in coordinate geometry. It appears in distance problems, reflections, and in finding the shortest path from a point to a line. For example, the distance from a point to a line is simply the length of the segment joining the point to its foot. The foot is also the point of tangency when a circle centered at the given point just touches the line. In physics and graphics, projecting a point onto a plane or line uses the same principle: you are finding the closest point on the line to the given point, which is exactly the foot of the perpendicular.
The Standard Formula
For a line written in the general form ax + by + c = 0 and a point P(x₁, y₁), the foot F is computed as:
F = (x₁ − a·d, y₁ − b·d) where d = (ax₁ + by₁ + c) / (a² + b²).
Here:
- a, b are the coefficients of x and y in the line equation.
- c is the constant term.
- x₁, y₁ are the coordinates of the given point.
- d is a signed scalar; its absolute value is the distance from the point to the line (before dividing by √(a²+b²)).
If the line is given in slope-intercept form y = mx + k, you can rewrite it as mx − y + k = 0 so that a = m, b = −1, c = k. Then apply the same formula.
Step-by-Step Example
Find the foot of the perpendicular from the point (3, 2) to the line 2x + 3y − 6 = 0.
- Identify: a = 2, b = 3, c = −6, x₁ = 3, y₁ = 2.
- Compute d = (2·3 + 3·2 − 6) / (2² + 3²) = (6 + 6 − 6) / (4 + 9) = 6 / 13.
- Foot x-coordinate: x₁ − a·d = 3 − 2·(6/13) = 3 − 12/13 = 27/13.
- Foot y-coordinate: y₁ − b·d = 2 − 3·(6/13) = 2 − 18/13 = 8/13.
So the foot is (27/13, 8/13). Checking, this point lies on the line: 2·(27/13) + 3·(8/13) − 6 = 54/13 + 24/13 − 78/13 = 0. The segment from (3,2) to the foot has slope (8/13 − 2)/(27/13 − 3) = (−18/13)/(−12/13) = 3/2, and the line's slope is −2/3; the product is −1, confirming perpendicularity.
How to Choose the Right Formula
If your line is in general form ax + by + c = 0, use the formula directly. If it is in slope-intercept form y = mx + k, convert it to general form first, or use the alternative formula for the foot:
F = ( (x₁ + m·y₁ − m·k) / (m² + 1), (m·x₁ + m²·y₁ + k) / (m² + 1) ).
Both give the same result. For vertical lines (x = h), the foot is simply (h, y₁). For horizontal lines (y = k), the foot is (x₁, k). These are special cases of the general formula where a or b is zero.
Common Mistakes and How to Avoid Them
- Forgetting the sign of c: When the line is 2x + 3y = 6, rewrite as 2x + 3y − 6 = 0 so c = −6. Using c = 6 gives the wrong foot.
- Dividing by the wrong denominator: The denominator is a² + b², not a + b.
- Mixing up the order: The foot is (x₁ − a·d, y₁ − b·d), not (x₁ + a·d, ...). The sign depends on the sign of d.
- Using the distance formula instead: The distance from point to line is |ax₁ + by₁ + c| / √(a²+b²). That gives a length, not the coordinates of the foot.
A quick check: the foot must lie on the line, so plug its coordinates back into the line equation; the result should be 0. Also, the vector from the point to the foot must be perpendicular to the line, meaning its dot product with the line's direction vector is 0.
Relation to Projection and Reflection
The foot of the perpendicular is exactly the orthogonal projection of the point onto the line. In vector terms, if the line passes through a point A and has direction vector u, the projection of point P onto the line is A + t·u where t = ((P−A)·u) / (u·u). The foot is that projected point. This connection is useful in 3D graphics, where projecting a point onto a plane uses the same idea but with a normal vector. The reflection of a point across a line is the point on the opposite side of the line at the same distance; it is found by moving from the point to the foot and then continuing the same distance beyond the foot. So if the foot is F, the reflection is 2F − P.
Frequently Asked Questions
What is the foot of the perpendicular?
The foot of the perpendicular from a point to a line is the point on the line where a perpendicular segment from the given point meets the line. It is the closest point on the line to the given point.
How do I find the foot if the line is given in slope-intercept form?
Convert y = mx + k to mx − y + k = 0, so a = m, b = −1, c = k, then apply the general formula. Alternatively, use the slope-intercept version of the foot formula directly.
What if the line is vertical or horizontal?
For a vertical line x = h, the foot is (h, y₁). For a horizontal line y = k, the foot is (x₁, k). These are special cases of the general formula.
Is the foot of the perpendicular the same as the projection?
Yes, the foot is the orthogonal projection of the point onto the line. Both give the closest point on the line to the given point.
How is the foot used to find the distance from a point to a line?
Once you have the foot, the distance is the length of the segment joining the point to the foot. That length equals |ax₁ + by₁ + c| / √(a²+b²). You can compute it directly without finding the foot first.
Can the formula be extended to 3D?
Yes. For a point and a line in 3D, the foot is found using vector projection: if the line is A + t·u, then the foot is A + t·u with t = ((P−A)·u) / (u·u). The same idea applies to projecting a point onto a plane.