Conic sections have the form of a second-degree polynomial:
That can be easily transformed into a matrix:
|
Regular and degenerated conic sections can be distinguished based on the determinant of AQ.
Iff <math>|A_Q| = 0</math>, the conic is degenerated.
If Q isn't degenerated, we can see what type of conic section it is by computing the subdeterminant resulting from removing the first row and the first column of AQ.
In the case of an elipse, we can make a futher distinction between an ellipse and a circle by comparing the last two diagonal elements corresponding to x2 and y2.
We can calculate the center by taking the last two rows of the associated matrix, set them equal to 0 and solve the system.
\left\{ \begin{matrix} a_{21} + a_{22}x + a_{23}y & = & 0 \\ a_{31} + a_{32}x + a_{33}y & = & 0\end{matrix} \right. \equiv
\left\{\begin{matrix} C/2 + Ax + (E/2)y & = & 0 \\ D/2 + (E/2)x + By & = & 0 \end{matrix} \right.</math>
The major and minor axes are two lines determined by the center of the conic as a point and eigenvectors of the associated matrix as vectors of direction.
\left\{\begin{matrix} S(x_0,y_0) &\qquad \mbox{(center of the conic)}\\ \vec u(u_x,u_y) &\qquad \mbox{(eigenvector of A)} \end{matrix} \right.</math>
So we can write a canonical equation:
Because a 3x3 matrix has 2 eigenvectors, we obtain 2 axes.
For a general conic we can determine its vertices by calculating the intersection of the conic and its axes#&8212;in other words, by solving the system:
\left\{\begin{matrix} & e &\qquad \mbox{(axis)} \\ & Q &\qquad \mbox{(the general equation of the conic)} \end{matrix} \right.</math>
The reduced equation of a conic section is the equation of a conic section translated and rotated so that its center lies in the center of the coordinate system and its axes are parallel to the coordinate axes. This is equivalent to saying that the coordinates are moved to satisfy these properties. See the figure.
If <math>\lambda_1</math> and <math>\lambda_2</math> are the eigenvalues of the matrix A, the reduced equation can be written as:
Dividing between <math>-\frac{|A|}{|A_{00}|}</math> we obtain a reduced canonical equation. For example, for an ellipse:
From here we get 'a' and 'b'.
The transformation of coordinates is given by:
\left\{\begin{matrix} \vec t &=& \vec OO' = S\\ \alpha &=& \operatorname{acos} \frac{\vec a_1 \cdot {1 \choose 0}}{|\vec a_1|} \end{matrix} \right.</math>
wikipedia.org dumped 2003-03-17 with terodump