Image (reflection) of point (x₁, y₁) in the line ax + by + c = 0.
The image P′ of point P(x1,y1) in line L:ax+by+c=0 is the point such that L is the perpendicular bisector of PP′.
From the foot of perpendicular derivation, the foot N corresponds to parameter:
t=−a2+b2ax1+by1+c
Since N is the midpoint of PP′, the image P′=P+2PN. The displacement PN=(at,bt), so:
P′=(x1+2at,y1+2bt)
Substituting t:
ax−x1=by−y1=−a2+b22(ax1+by1+c)
The foot uses parameter t once; the image uses 2t. This is the only difference between the two results.
Note
Special cases — all follow by substituting into the general formula.
>
> | Mirror line | $a$ | $b$ | $c$ | Image of $(x_1, y_1)$ |
> |---|---|---|---|---|
> | $x$-axis ($y = 0$) | $0$ | $1$ | $0$ | $(x_1,\ -y_1)$ |
> | $y$-axis ($x = 0$) | $1$ | $0$ | $0$ | $(-x_1,\ y_1)$ |
> | $y = x$ | $1$ | $-1$ | $0$ | $(y_1,\ x_1)$ |
> | $y = -x$ | $1$ | $1$ | $0$ | $(-y_1,\ -x_1)$ |
> | Origin | — | — | — | $(-x_1,\ -y_1)$ |
> | $x = k$ | $1$ | $0$ | $-k$ | $(2k - x_1,\ y_1)$ |
> | $y = k$ | $0$ | $1$ | $-k$ | $(x_1,\ 2k - y_1)$ |
>
> The origin is a point, not a line — its reflection is a rotation by $180°$, equivalent to reflecting twice (in $x$-axis then $y$-axis).