Image of line L₁ in mirror line L₂. Method: reflect any two points on L₁ using the point-reflection formula, then find the line through their images.
To reflect line L1 in mirror line L2, note that every point on the image line L1′ is the reflection of some point on L1 in L2. A line is determined by two points, so reflecting any two points on L1 and joining their images gives L1′.
Setup
Let L1:a1x+b1y+c1=0 and mirror L2:a2x+b2y+c2=0.
Pick two convenient points on L1 — typically where L1 cuts the axes, or any two points easy to compute with.
Reflecting Each Point
For each point P(x1,y1) on L1, its image P′(x′,y′) in L2 satisfies:
a2x′−x1=b2y′−y1=−a22+b222(a2x1+b2y1+c2)
Let k=−a22+b222(a2x1+b2y1+c2). Then:
x′=x1+a2k,y′=y1+b2k
Getting the Image Line
Apply this to two points P1,P2 on L1 to get P1′,P2′. The image line L1′ passes through both.
If P1′=(x1′,y1′) and P2′=(x2′,y2′), the image line is:
x2′−x1′x−x1′=y2′−y1′y−y1′
or equivalently by the two-point form.
Special Case: L1∥L2
When L1∥L2, the image L1′ is also parallel to both, on the opposite side of L2 at the same distance. If d is the distance between L1 and L2, then L1′ is at distance 2d from L1.
Special Case: L1 passes through the intersection of L2 with another line
If L1 and L2 intersect at point Q, then Q lies on L2 and is its own reflection. So Q also lies on L1′. Only one more reflected point is needed to determine L1′.
Warning
The image line $L_1'$ is not found by reflecting the coefficients of $L_1$ directly — there is no shortcut on the equation itself. Always work through two points.
Note
Example. Find the image of $L_1: x + y = 3$ in $L_2: x - y = 1$.
>
> Take $P_1 = (3, 0)$ on $L_1$. For $L_2: a_2=1, b_2=-1, c_2=-1$:
>
> $$
> k = -\frac{2(3 - 0 - 1)}{1 + 1} = -\frac{4}{2} = -2
> $$
>
> $$
> P_1' = (3 + 1\cdot(-2),\ 0 + (-1)\cdot(-2)) = (1,\ 2)
> $$
>
> Take $P_2 = (0, 3)$ on $L_1$:
>
> $$
> k = -\frac{2(0 - 3 - 1)}{2} = -\frac{-8}{2} = 4
> $$
>
> $$
> P_2' = (0 + 4,\ 3 + (-1)\cdot 4) = (4,\ -1)
> $$
>
> Line through $(1, 2)$ and $(4, -1)$: slope $= \dfrac{-1-2}{4-1} = -1$.
>
> $$
> y - 2 = -1(x - 1) \implies x + y = 3
> $$
>
> Here $L_1' = L_1$ because $L_1$ is perpendicular to $L_2$ at their intersection — the line reflects onto itself.