Orthogonal projection and reflection of a point across a line
Find a point’s projection onto a line and its reflection across the line, with formulas that also cover points already on the line.
Content updated: October 22, 2026
The orthogonal projection of a point onto a line is the foot of its perpendicular. The reflection of the point across the line is obtained from the projection by the midpoint formula.
Learning goals: find a projection using intersections or a dot-product condition, find a reflected point, and handle a point already on the line.
Prerequisites: normal and direction vectors, solving a two-line system, and the midpoint formula.
On this page: Concepts · Method · Examples · Practice · Further learning
1. Conditions defining the projection
Let $d:ax+by+c=0$, with $a^2+b^2>0$, and let $M(x_0;y_0)$ be a point. If $M\notin d$, the projection $H$ is characterized by $H\in d$ and $MH\perp d$. If $M\in d$, then $H=M$; coincident points must not be used to name a line $MH$.
Construct the line $\Delta$ through $M$ with direction vector equal to the normal vector $(a;b)$ of $d$. The two nonzero direction vectors are perpendicular, so $\Delta$ meets $d$ at exactly one point, the projection. This construction also works when $M$ lies on $d$: the intersection is $M$ itself.
2. A direct formula and the reflected point
Set $q=ax_0+by_0+c$. A formula that does not divide by the individual coefficients is
Substituting these coordinates into the equation of $d$ gives zero. Also, $\overrightarrow{MH}=-q(a;b)/(a^2+b^2)$, so whenever this vector is nonzero it points perpendicular to $d$. If $q=0$, the formula gives $H=M$. The reflection $M^{\prime}$ of $M$ across $d$ satisfies
Since $H$ is the midpoint of $MM^{\prime}$ and the joining segment follows the normal direction, the line $d$ is the axis of reflection. When $M\in d$, we have $M^{\prime}=M$. One may also find $H$ by writing the general coordinates of a point on $d$ and requiring the relevant dot product with a direction vector to vanish.
3. Worked examples
Example 1. Two methods for the same projection
Find the projection of $M(-1;3)$ onto $d:2x-y+1=0$. Choose normal vector $(2;-1)$ and direction vector $(1;2)$. The line $\Delta$ through $M$ perpendicular to $d$ has normal vector $(1;2)$, so
Solving this together with $2x-y+1=0$ gives $H(3/5;11/5)$. For an alternative check, since $H\in d$, write $H(h;2h+1)$. Then $\overrightarrow{MH}=(h+1;2h-2)$ and
Both methods give the same $H$. The direct formula also confirms this: $q=2(-1)-3+1=-4$ and $a^2+b^2=5$, so $H=(-1+8/5;3-4/5)$.
Example 2. Finding the reflected point
For the same $M,d$, take $H(3/5;11/5)$. Then
The midpoint of $M,M^{\prime}$ is exactly $H$, and $\overrightarrow{MM^{\prime}}=(16/5;-8/5)=\frac85(2;-1)$ is perpendicular to $d$. These two conditions verify the reflection.
Example 3. A point on the line
The point $M(1;3)$ satisfies $2\cdot1-3+1=0$. Its projection is therefore $(1;3)$, and its reflection is also $(1;3)$. No perpendicular segment of positive length is needed in this case.
4. Practice exercises
- Find the projection and reflection of $M(2;1)$ across the $Ox$ axis.
- Find the projection and reflection of $M(-3;4)$ across the line $x=1$.
- Find the projection and reflection of $O(0;0)$ across $x+y-2=0$.
Show answers and hints
- $H(2;0)$, $M^{\prime}(2;-1)$.
- $H(1;4)$, $M^{\prime}(5;4)$.
- $q=-2$ and normal vector $(1;1)$ give $H(1;1)$ and $O^{\prime}(2;2)$.
5. Common mistakes
- Taking a direction vector of $d$ as a direction vector of a line perpendicular to $d$.
- Checking only $H\in d$ and omitting perpendicularity.
- Using $H-M$ instead of $2H-M$ to find the reflected point.
- Dividing separately by a coefficient that may be zero, or calling $MH$ a line when $M=H$.
6. Related lessons and resources
- Normal and direction vectors (English lesson)
- Finding the intersection of two lines (English lesson)
- Distance from a point to a line (English lesson)
Original source resources
These original source resources have not been translated.
Leave a Reply