Quantcast
Channel: Compute the major and minor axis of an ellipse after linearly transforming it. - Mathematics Stack Exchange
Viewing all articles
Browse latest Browse all 2

Compute the major and minor axis of an ellipse after linearly transforming it.

$
0
0

I have a small conic problem over which I need some help.

Let $E$ be an axis-aligned ellipse and let $T$ be a linear transformation. (In my case $T$ is actually an affine transformation, but I don't think the translation component of $T$ is too much of a problem, so I went with a linear transformation instead.

I'm given the center $c$ of $E$ and its two radii, $r_x$ and $r_y$. I have to find the orientation, the center and the radii of the transformed ellipse, $T(E)$.

$T$ can be formed from any matrix, not only the usual rotate/translate/scale.


I though of using the principal axis theorem. Here is what I tried.

First I didn't bother with $c \ne (0,0)$ because I can always translate back and forth the center to the origin.

Let $Q$ be the matrix of the quadratic form of $E$. \begin{equation}\begin{pmatrix}x&y\end{pmatrix} Q \begin{pmatrix}x\\y\end{pmatrix} = 1.\end{equation}To match $\frac{x^2}{r_x^2} + \frac{y^2}{r_y^2} = 1$, I set it up as

\begin{equation}Q = \begin{pmatrix}\frac{1}{r_x^2}&0\\0&\frac{1}{r_y^2}\end{pmatrix}\end{equation}

After transformation, $(x,y)$ are mapped to $T(x,y)$ so to evaluate $T(E)$, I have to transform back the points and evaluate for the original $E$.\begin{equation}\begin{pmatrix}x&y\end{pmatrix} T^{-1,t}QT^{-1} \begin{pmatrix}x\\y\end{pmatrix} = 1.\end{equation}

I can then take the eigenvalues and the eigenvalues $\lambda_1,\lambda_2$ of $T^{-1,t}QT^{-1}$ and their associated (normalized) eigen vectors $e_1,e_2$.The eigenvectors are the principal axes of $T(E)$ and I selected the radii as such :\begin{equation*} r^{T(E)}_x = \frac{1}{\sqrt{\lambda_1}} \\ r^{T(E)}_x = \frac{1}{\sqrt{\lambda_2}} \\\end{equation*}

The principal axes seems to be okay, but the radii seems completely off. Can you help me ? All my thanks !


Viewing all articles
Browse latest Browse all 2

Trending Articles