Quadratic forms x^T A x: writing the symmetric matrix, classifying definiteness by eigenvalues or principal minors, principal axes and the Rayleigh quotient; GATE asks to classify forms and find extreme values.
Diagonalising a symmetric matrix uses an orthogonal change of variables.
Concept notes
1. Quadratic form and its symmetric matrix
A quadratic form in is a homogeneous polynomial of degree 2:
Always take symmetric. Any matrix gives the same form as its symmetric part , so the symmetric choice is unique.
Reading from :
the coefficient of goes to ;
the coefficient of the cross term is split in half: .
Example: has A=(2−3−35), because .
Quadratic forms appear in data science as variances of a projected variable, squared errors , and the second-order term of a Taylor expansion, where is the Hessian. The rank of the form is the rank of . A form in variables has square terms and cross terms, which matches the free entries of a symmetric matrix.
2. Definiteness and the eigenvalue test
Classify by its sign for , or equivalently by the eigenvalues of the symmetric matrix :
Class
for
Eigenvalues of
Positive definite (PD)
all
Positive semidefinite (PSD)
all , some may be 0
Negative definite (ND)
all
Negative semidefinite (NSD)
all
Indefinite
takes both signs
some and some
Quick consequences:
PD means and every diagonal entry (put ). A single non-positive diagonal entry rules out PD.
PSD but not PD means : some non-zero gives .
A diagonal entry of each sign means indefinite.
is always PSD, since ; it is PD exactly when has independent columns. Covariance matrices are PSD for the same reason.
If is PD then is PD (its eigenvalues are ) and is PD for any PSD .
Contours of a quadratic form in two variables
3. Sylvester's criterion (principal minors)
Eigenvalues of a matrix are slow to find, so GATE usually expects the minor test. The leading principal minors are the determinants of the top-left , , ..., sub-matrices.
PD if and only if .
ND if and only if the signs alternate starting negative: (that is, ).
If some has the wrong sign (and none is zero) the form is indefinite; for example always means indefinite.
Semidefinite needs all principal minors, not just the leading ones. A=(000−1) has but is not PSD.
For a form , with A=(abbc):
Condition
Class
,
PD
,
ND
indefinite
semidefinite (check sign of or )
The same table is the second-derivative test for two-variable maxima and minima, with , , .
4. Principal axes and the Rayleigh quotient
A real symmetric has an orthonormal eigenvector basis: . Substituting (a rotation of axes) removes all cross terms:
This is the principal axes (canonical) form. The eigenvectors are the axes of the ellipse , and the semi-axis lengths are .
In the canonical form, the number of positive coefficients is the index , the number of non-zero coefficients is the rank . By Sylvester's law of inertia these counts do not depend on which change of variables you use.
Rayleigh quotient: for ,
So the maximum of on the unit sphere is , reached at its unit eigenvector; the minimum is . This is exactly why the first principal component in PCA is the top eigenvector of the covariance matrix: it maximises the variance over unit vectors .
Formulas to remember
Matrix form
Two variables
ax2+2bxy+cy2=(xy)(abbc)(xy)
Positive definite (Sylvester)Leading principal minors
Negative definite
Principal axes form
Rayleigh quotient bounds
Common mistakes
Putting the full cross-term coefficient in ; it must be halved so that equals the coefficient.
Using only leading principal minors to test semidefiniteness; zeros among them prove nothing, so check all principal minors or the eigenvalues.
For negative definite, requiring all minors to be negative; the signs must alternate, starting with .
Classifying a non-symmetric matrix by its eigenvalues; first replace it by its symmetric part .
Forgetting that a form can be zero at a non-zero point and still be PSD; that is exactly the PSD-but-not-PD case with .
Worked examples
Try each step yourself, then reveal the working.
Example 1: Matrix of a three-variable form and its class
numerical
Write the symmetric matrix of and decide its definiteness.
Step 1: Place the square terms on the diagonal and halve the cross terms.
Try it on paper first.
Example 2: Principal axes of a two-variable form
numerical
Reduce to principal axes form and find the maximum of on the unit circle .
Step 1: Write the matrix.
Try it on paper first.
Example 3: Find the range of a parameter for positive definiteness
numerical
For which is positive definite?
Step 1: Write the matrix.
Try it on paper first.
Example 4: Why leading minors are not enough for semidefinite
conceptual
A=(000−1) has and . Is positive semidefinite?
Step 1: Evaluate the form directly.
Try it on paper first.
Previous year questions
2 official GATE DA questions on this topic, newest first.
10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.