How will look the general conic sections equation $Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0$ in case of rotated and shifted from coordinates origin ellipse, parabola and hyperbola?
I need a formulas for coefficients $A$, $B$, $C$, $D$, $E$ and $F$ for ellipse, hyperbola and parabola. I did it for not-rotated conic sections at the origin of coordinates but have a difficults with rotated and shifted.
For i.e. standart ellipse equation $\frac{x^2}{a^2}+\frac{y^2}{b^2}=1$ gives me general equation $\frac{1}{a^2}x^2 + 0xy + \frac{1}{b^2}y^2 + 0x + 0y - 1 = 0$
I need the same in case if ellipse located in position $(h;k)$ and rotated on some angle $\alpha$ from positive $X$ axis. And the same for parabola and hyperbola.
There is a simple way to derive these formulas. Let's take the case of the ellipse. Originally you have $$\frac{x^2}{a^2}+\frac{y^2}{b^2}=1$$ If you rotate the coordinate system by an angle $\theta$, you get $$x\to x\cos\theta-y\sin\theta\\y\to x\sin\theta+y\cos\theta$$ So the equation becomes $$\frac{(x\cos\theta-y\sin\theta)^2}{a^2}+\frac{(x\sin\theta+y\cos\theta)^2}{b^2}=1$$ If you translate the origin by $(x_0,y_0)$, the equation above transforms to $$\frac{(x\cos\theta-y\sin\theta+x_0)^2}{a^2}+\frac{(x\sin\theta+y\cos\theta+y_0)^2}{b^2}=1$$ Now all you need to do is to expand the parentheses, and group the terms.