In mathematics, the matrix representation of conic sections permits the tools of linear algebra to be used in the study of conic sections. It provides easy ways to calculate a conic section's axis, vertices, tangents and the pole and polar relationship between points and lines of the plane determined by the conic. The technique does not require putting the equation of a conic section into a standard form, thus making it easier to investigate those conic sections whose axes are not parallel to the coordinate system.
Conic sections (including degenerate ones) are the sets of points whose coordinates satisfy a second-degree polynomial equation in two variables, Q ( x , y ) = A x 2 + B x y + C y 2 + D x + E y + F = 0. {\displaystyle Q(x,y)=Ax^{2}+Bxy+Cy^{2}+Dx+Ey+F=0.} By an abuse of notation, this conic section will also be called Q {\displaystyle Q} when no confusion can arise.
This equation can be written in matrix notation, in terms of a symmetric matrix to simplify some subsequent formulae, as
( x y ) ( A B / 2 B / 2 C ) ( x y ) + ( D E ) ( x y ) + F = 0. {\displaystyle {\begin{pmatrix}x&y\end{pmatrix}}{\begin{pmatrix}A&B/2\\B/2&C\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}}+{\begin{pmatrix}D&E\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}}+F=0.}
The sum of the first three terms of this equation, namely A x 2 + B x y + C y 2 = ( x y ) ( A B / 2 B / 2 C ) ( x y ) , {\displaystyle Ax^{2}+Bxy+Cy^{2}={\begin{pmatrix}x&y\end{pmatrix}}{\begin{pmatrix}A&B/2\\B/2&C\end{pmatrix}}{\begin{pmatrix}x\\y\end{pmatrix}},} is the quadratic form associated with the equation, and the matrix A 33 = ( A B / 2 B / 2 C ) {\displaystyle A_{33}={\begin{pmatrix}A&B/2\\B/2&C\end{pmatrix}}} is called the matrix of the quadratic form. The trace and determinant of A 33 {\displaystyle A_{33}} are both invariant with respect to rotation of axes and translation of the plane (movement of the origin).
The quadratic equation can also be written as
x T A Q x = 0 , {\displaystyle \mathbf {x} ^{\mathsf {T}}A_{Q}\mathbf {x} =0,}
where x {\displaystyle \mathbf {x} } is the homogeneous coordinate vector in three variables restricted so that the last variable is 1, i.e.,
( x y 1 ) {\displaystyle {\begin{pmatrix}x\\y\\1\end{pmatrix}}}
and where A Q {\displaystyle A_{Q}} is the matrix
A Q = ( A B / 2 D / 2 B / 2 C E / 2 D / 2 E / 2 F ) . {\displaystyle A_{Q}={\begin{pmatrix}A&B/2&D/2\\B/2&C&E/2\\D/2&E/2&F\end{pmatrix}}.} The matrix A Q {\displaystyle A_{Q}} is called the matrix of the quadratic equation. Like that of A 33 {\displaystyle A_{33}} , its determinant is invariant with respect to both rotation and translation.
The 2 × 2 upper left submatrix (a matrix of order 2) of A Q {\displaystyle A_{Q}} , obtained by removing the third (last) row and third (last) column from A Q {\displaystyle A_{Q}} is the matrix of the quadratic form. The above notation A 33 {\displaystyle A_{33}} is used in this article to emphasize this relationship.