Every second-degree curve in the plane is some conic section: a circle, an ellipse, a parabola, a hyperbola, or one of the degenerate cases where the curve collapses into lines. You can work out which one you have without plotting anything. Two numbers decide it.
Two notations, one equation
The general second-degree equation is usually written one of two ways:
Both describe the same curve. The second form carries factors of so that the matrix below comes out symmetric, which is the only reason it exists.
NOTE
The two notations map onto each other as , , , , , . Textbooks switch between them without warning, so it is worth keeping this correspondence in mind — the rest of this post uses whichever form makes each formula cleaner.
Step one: is the conic degenerate?
The first number is the determinant of the matrix of coefficients:
If the conic is degenerate — the curve has collapsed into a point or a pair of lines. If it is a genuine conic.
Step two: which one is it?
Which test you apply next depends on the answer to step one.
When , the sign of tells you what the curve degenerated into:
| Degenerate case | |
|---|---|
| Two distinct real lines | |
| Parallel lines | |
| Non-real lines |
When , the discriminant names the conic:
| Conic | Extra condition | |
|---|---|---|
| Hyperbola | Rectangular when | |
| Parabola | — | |
| Ellipse | A circle when and ; real when |
The two tests read the same quantity. Substituting the correspondence above gives , so both are the sign of up to a positive factor. What changes is the meaning of that sign, and that depends entirely on whether vanishes.
The whole procedure
graph TD
A["Second-degree equation"] --> B{"Determinant zero?"}
B -->|"yes, degenerate"| C{"Sign of h squared minus ab"}
B -->|"no, genuine conic"| D{"Sign of B squared minus 4AC"}
C -->|"positive"| E["Two distinct real lines"]
C -->|"zero"| F["Parallel lines"]
C -->|"negative"| G["Non-real lines"]
D -->|"positive"| H["Hyperbola"]
D -->|"zero"| I["Parabola"]
D -->|"negative"| J["Ellipse or circle"]A worked example
Take . Reading off the second notation gives , , , , , .
The determinant is
So the conic is degenerate, and the second test applies: , which means parallel lines. The equation does factor as — two parallel lines, exactly as predicted, and we never had to draw anything.