Show that the reflection of the line $ax+by+c=0$ on the line $x+y+1=0$ is the line $bx+ay+(a+b-c)=0$
Attempt:
Consider a point $(h,k)$ on the line $ax+by+c=0$
Thus, $ah+bk+c=0 $ \\ $\mathbb{1}$
Now note that the image $(x_2,y_2)$ of a point$(x_1,y_1)$ with respect to a line $ax +by + c= 0$ is given by:
$$\dfrac{x_2-x_1}{a}= \dfrac{y_2-y_1}{b}= \dfrac{-2(ax_1+by_1+c)}{a^2+b^2}$$
Here, we can use this formula to get:
$$x_2 - h = y_2 - k = - h-k-c$$
Now, for $x_2$:
$bx_2 = -bk - c \\ay_2 = - ah-c$
Add the above two equations:
$ay_2 +bx_2 = -bk - ah - bc - ac$
From equation 1, $-bk-ah= c$
Thus, $ay_2 + bx_2 + ac + bc - c = 0 \implies bx+ay + c(a+b-1)= 0$ (Substitute $x$ for $x_2$ and $y$ for $y_2$ to get the locus).
This equation is close to the answer but incorrect. Where have I gone wrong?
You’ve substituted for $a$ and $b$ in your formula for the image of a point, but not for $c$. Then, for some reason you didn’t multiply this extraneous $c$ (which should be $1$) by $b$ or $a$ in the expressions that you derived for $bx_2$ and $ay_2$.
You should have $x_2+k+1=y_2+h+1=0$, from which $bx_2+ay_2+ah+bk+a+b=0$ and the desired result follows.
To avoid errors like the first one in the future, I recommend not using the same parameter names in general formulas as you have in the problem that you’re trying to solve.