Give the equation of the ellipse $x^2+2y^2-6x+16y+9=0$ after reflection in the line $y=-x$.
I completed the square and obtained $$\frac{(x-3)^2}{32}+\frac{(y+4)^2}{16}=1$$
Now I changed $y$ and $x$ and then replaced $x$ with $-x$ to obtain $$\frac{(y-3)^2}{32}+\frac{(-x+4)^2}{16}=1$$
My teacher says I am not correct and that I should replace $x$ with $-y$ and $y$ with $-x$ (why is this) whereas my answer book says the answer should be $\frac{(x-4)^2}{16}+\frac{(y+5)^2}{32}$.
It's driving me crazy, all those $x$ and $y$, could someone clarify for me?