Shapes & spaces

Quadric surface classification calculator from a symmetric equation

Classify a real spatial quadric using its symmetric quadratic matrix, linear coefficients, numerical rank and inertia.

Your numbers

One comma-separated row per line.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Classify a real spatial quadric using its symmetric quadratic matrix, linear coefficients, numerical rank and inertia.

THE FORMULAxᵀAx + lᵀx + c = 0; A=UΛUᵀ; nonzero-axis translation yᵢ↦yᵢ−l′ᵢ/(2λᵢ).

A worked example

The default equation x²+4y²+9z²−1=0 is an ellipsoid with semiaxes 1, 1/2 and 1/3.

Good to know

Symmetric real 3×3 matrix, three linear coefficients and finite constant. Numerical eigenvalue/rank tolerance 10⁻⁹ max(1,max|λ|); near-degenerate classification is tolerance dependent. Includes parabolic and degenerate loci; no exact symbolic classification or surface rendering guarantee.

Classify the full quadratic equation

A spatial quadric is the real solution set of a degree-at-most-two equation in three coordinates. The symmetric matrix contains quadratic terms, the separate vector contains linear terms and the constant completes the equation. Classification must consider all three parts, because the same quadratic matrix can describe different translated or degenerate loci.

The output includes familiar ellipsoids, hyperboloids, paraboloids and cylinders, as well as planes, lines, points and empty real solution sets. Degenerate cases are mathematical outcomes rather than automatically invalid input. The calculator uses numerical rank and sign decisions, so equations very close to a boundary require attention to the reported tolerance.

Quadric surface classification worked example from a symmetric equationx²+4y²+9z²=1Semiaxes 1,1/2,1/3Positive definite form
Scroll across to see the full diagram.
The default equation x²+4y²+9z²−1=0 is an ellipsoid with semiaxes 1, 1/2 and 1/3.

Compare this with the Conic section identifier and implicit grapher. Classify a general real quadratic surface in three dimensions with center,principal directions and degeneracy information;planar conic classification is insufficient.

Place cross coefficients correctly

Enter a symmetric three-by-three matrix A, a three-component linear vector and a constant for the equation x transpose A x plus l transpose x plus c equal to zero. Matrix symmetry is required; the calculator does not silently replace inconsistent upper and lower triangles with an averaged matrix.

An off-diagonal matrix entry contributes twice to a cross term. For example, an equation containing six x y requires A01 and A10 both equal to three. The linear vector is entered without an extra factor of two. Keeping those conventions explicit prevents a valid-looking matrix from classifying a different equation than intended.

Check the axis aligned ellipsoid

The default diagonal matrix has entries one, four and nine, with zero linear vector and constant minus one. The equation becomes x squared plus four y squared plus nine z squared equal to one. Its eigenvalues are positive, its center is the origin and its real locus is an ellipsoid.

Dividing each coordinate term into the usual unit-level equation gives semiaxis lengths one, one half and one third. The reported rank is three and the positive inertia count is three. This example separates the geometric axis lengths from the matrix eigenvalues, which are inverse squared axis lengths after normalization by the level constant.

Rotate and translate principal coordinates

A symmetric eigendecomposition rotates the quadratic part into principal axes without changing Euclidean geometry. In those coordinates, every nonzero eigenvalue permits completing a square, which removes the corresponding linear term and shifts the translated constant. The translation is then expressed back in the original coordinate system.

A zero eigenvalue needs different treatment because dividing by it is invalid. A remaining linear term along a null direction produces parabolic behavior or a plane, while no such term allows cylindrical or more degenerate cases. This distinction explains why rank and inertia alone are not enough to classify every quadric.

Read inertia and center information

The rank counts eigenvalues judged nonzero, and the positive and negative inertia counts record their signs. Mixed signs indicate an indefinite quadratic part, but the final geometry also depends on the translated constant and any unresolved null-direction linear term. The classification combines those ingredients rather than reading one sign in isolation.

The has-center flag indicates whether the linear terms can be removed by a translation in the supported numerical convention. For a parabolic surface, the displayed translation removes only the available nonzero-axis terms; it should not be interpreted as a geometric center that the surface does not possess. Principal directions describe the eigensystem orientation.

Explore real and degenerate outcomes

A positive-definite quadratic form at a positive level gives an ellipsoid, at zero level gives a single point and at a negative level has no real solution. An indefinite full-rank form at zero level gives a cone. These examples show why the constant changes the real locus even when the matrix is fixed.

Lower ranks permit elliptic or hyperbolic cylinders, intersecting planes, parallel planes and lines. A zero quadratic matrix reduces the problem to a linear equation or a constant statement. The calculator therefore distinguishes a plane, all space and an empty real locus instead of insisting that every accepted equation represent a curved surface.

Interpret tolerance near degeneracy

The numerical rank threshold is one billionth times the larger of one and the largest absolute eigenvalue. Eigenvalues below that scale are treated as zero. Consequently, rescaling or rounding an almost singular equation can affect its reported classification, especially when tiny linear or constant terms compete with similarly small quadratic coefficients.

For a clearly nondegenerate equation, small perturbations normally preserve the broad surface type. Near a transition, inspect eigenvalues and transformed terms instead of treating the classification word as exact algebra. This page does not use symbolic rational arithmetic for quadric classification, and the linked exact-arithmetic reference describes a stronger arithmetic setting than this numerical implementation.

A few questions, answered

How are cross terms entered?

The equation is x transpose A x+l transpose x+c=0,so an off-diagonal matrix entry contributes twice its value to the cross coefficient.

Does scaling all coefficients change the locus?

No. A common nonzero equation scale is normalized before classification.

Are principal directions unique?

Repeated eigenvalues allow nonunique axes in their eigenspaces.

Does the page plot every classified surface?

It returns the classification and principal-coordinate information;the worked diagram is illustrative,not an arbitrary-surface renderer.

Find your calculator

Start typing to explore the library.