[Math] Calculating semi axes from given tilted ellipse equation

calculusconic sectionsrotations

Hopefully no duplicate of Ellipse $3x^2-x+6xy-3y+5y^2=0$: what are the semi-major and semi-minor axes, displacement of centre, and angle of incline? (see below)

Let the following equation $$x^2 – \frac{1}{2}xy + y^2 – 11x – y = 18$$ be the ellipse in question. Plotting it on Webgraphing.com yields some nice values, e.g. the center at $(6, 2)$, but also the major/minor axis, which is what I am interested in. Their length is $\approx9.24$ and $\approx 7.16$ respectively.

Ellipseplot

Calculating the center is no problem, but I never get the axis length right. If anyone could spot the mistake in the following calculation, that would be very helpful!

Let $A = 1 (x^2)$, $B = -\frac{1}{2} (xy)$, $C = 1(y^2)$ and $D = 18$.

The matrix
$$
\left(\begin{matrix} A – \lambda & \frac{B}{2} \\ \frac{B}{2} & C – \lambda \end{matrix}\right) =
\left(\begin{matrix} 1 – \lambda & -\frac{1}{4} \\ -\frac{1}{4} & 1 – \lambda
\end{matrix}\right)
$$
yields the eigenvalues $\lambda_{1,2} = 1 \pm \frac{1}{4}$ and the corresponding eigenvector matrix
$$
\frac{1}{\sqrt{2}}\left(\begin{matrix} 1 & -1 \\ 1 & 1 \end{matrix}\right)
$$

It is obvious from the above image that the vectors point in the right direction. But when attempting to calculate their lengths, I never get the right result. I somewhere read that the absolute value in the equation ($D$) had to be normalised somehow, and the eigenvalues don't have the right proportion, so I took their root. This results in the lengths
$$l_1 = 2 * \sqrt{\lambda_1} * \sqrt{D} = 2 * \sqrt{\frac{5}{4}} * \sqrt{18} \approx 9.48 \neq 9.24$$
$$l_2 = 2 * \sqrt{\lambda_2} * \sqrt{D} = 2 * \sqrt{\frac{3}{4}} * \sqrt{18} \approx 7.34 \neq 7.16$$
that do not yield the correct result when printed (the red dots were the basis for the equation):

Ellipse2

For other ellipses, the error is much bigger. Can anyone point out where I am wrong in the calculation?

Concerning the thread linked above (that answers the question for another example), the method described there does not work for me (I may be applying it wrong):

$$\sqrt{\frac{35}{\lambda_2}} = \sqrt{\frac{35}{1 – \frac{1}{4}}} \approx 6.83 \neq 9.24$$

Best Answer

You need to center the conic to get the correct RHS constant.

From $\frac349.24^2\approx\frac547.16\approx64$, I conclude that it must be $16$.