I think this is what you mean. The method is similar for classifying PDE's as well.

The general form of an ellipse is

This is a quadratic form and can be written as a matrix as follows

The first matrix is always real symmetric and can be diagonalized and its discriminant is the sum of its eigenvalues.

I hope this is what you were looking for!