Loading…

Quadratic Form Classifier

Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)

View all topics

Classify the quadratic form \(q(x)=x^{\mathsf T}Ax\) using the eigenvalues (signature) of a symmetric matrix \(A\), and optionally check positive/negative definiteness using Sylvester’s criterion.

Matrix \(A\)
Best results for symmetric \(A\). If not symmetric, the calculator will also show the symmetrized \(\tfrac12(A+A^{\mathsf T})\).
Inputs accept -3.5, 2e-4, fractions 7/3, and constants pi, e.
Ready
Results
Classification
Signature \((n_+, n_-, n_0)\)
Eigenvalues
Trace / Determinant
Symmetry check
Diagonalization (symmetric case)
Graph
2×2 only. Plots a level set \(x^{\mathsf T}Ax = k\) (ellipse/hyperbola/lines) with axis tick values. Zoom with wheel/trackpad, drag to pan, double-click to reset. Play animates drawing the curve.
Step-by-step
Enter \(A\) and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why does the calculator prefer symmetric matrices?

For quadratic forms, only the symmetric part contributes: x^T A x = x^T ((A + A^T)/2) x. Symmetric matrices guarantee real eigenvalues and clean classification.

What is the signature (n+, n-, n0)?

It counts the number of positive, negative, and near-zero eigenvalues of A. The signature determines whether the form is definite, semidefinite, or indefinite.

What does Sylvester’s criterion test?

For symmetric matrices, it tests positive definiteness by requiring all leading principal minors Δk to be positive, and negative definiteness by alternating signs.

Why might a negative definite form plot x^T A x = -1 instead of 1?

If A is negative definite then x^T A x is always negative for x ≠ 0, so the level set x^T A x = 1 is empty. Using -1 yields an ellipse-like set.