Ellipsoid coefficient normalization to get semi-axes

eigenvalues-eigenvectorsmatricesquadrics

I have an ellipsoid. Its quadric equation is :

$Ax^2 + By^2 + Cz^2 + Dxy + Eyz + Fxz + Gx + Hy + Iz + J = 0$

The quadratic part of the quadric equation can be expressed with a matrix :

\begin{bmatrix}A&D/2&F/2\\D/2&B&E/2\\F/2&E/2&C\end{bmatrix}

I read here https://en.wikipedia.org/wiki/Ellipsoid that the eigenvalues of the above matrix are the reciprocals of the squares of the semi-axes of my ellipsoid.

But because the quadric equation is homogeneous, the coefs (A, B, C…) are not important, only their ratio is. But different values of the coefs lead to different values of the eigenvalues (but the eigenvectors remain always the same).

Have I to normalize the coefs to something to get the right eigenvalues ?

Thanks

Best Answer

You already noticed that there is a problem with the normalization. Let's look at the simple case, where only $A,B,C,J$ are non-zero. In that case, the equation for your ellipse is $$Ax^2+By^2+Cz^2+J=0$$ You want to get to $$\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1$$ That means you need to move $J$ top the right hand side, then divide everything by $-J$. In that case $$\frac1{a^2}=-\frac AJ$$ and similar for the other coefficients.

The problem is just a little more complicated when your ellipse is off center. If you write $$(\mathbf x-\mathbf v)^TM(\mathbf x-\mathbf v)=1$$ you notice that the center $\mathbf v$will shift the value of $J$