All articles
10 min read

Positive Definite Matrix: Which Test to Use, and When It Fails

A positive definite matrix is a symmetric matrix whose quadratic form xᵀAx is positive for every nonzero x. Test it with leading minors in order; determinant or diagonal checks alone fail.

By Sunil Bansal, Founder · Updated 10 Nov 2026

A student works through a grid of numbers with a pencil at a desk, with a smooth bowl-shaped model on the shelf behind.

Key takeaways

  • A positive definite matrix is a symmetric matrix A with xᵀAx > 0 for every nonzero x. For a symmetric matrix that is the same as every eigenvalue being positive, and the same as every leading principal minor (the determinant of a top-left k×k block) being positive.
  • Cheap checks such as symmetry, diagonal entries and 2×2 blocks can only reject a matrix. The leading principal minors are what confirm one.
  • In our count of 15,625 symmetric 3×3 integer matrices, 7,056 had a positive determinant but only 96 were positive definite. A positive determinant or positive diagonal never proves it.
  • Which exam needs this differs. The CSIR NET and GATE MA syllabuses name quadratic forms, and IIT (Indian Institute of Technology) JAM (Joint Admission Test for MSc) Mathematical Statistics names definite matrices outright.
In this article
  1. 1What is a positive definite matrix, and must it be symmetric?
  2. 2How do you test a matrix for positive definiteness, step by step?
  3. 3Is the matrix symmetric?
  4. 4Does a quick check rule it out?
  5. 5Are all leading principal minors positive?
  6. 6Can the characteristic polynomial settle it faster?
  7. 7What if the question gives a polynomial instead of a matrix?
  8. 8What changes for positive semidefinite?
  9. 9How often does each shortcut test pass a matrix that is not positive definite?
  10. 10Can you classify these six matrices and quadratic forms?
  11. 11Which exams ask about positive definite matrices and quadratic forms?
  12. 12Where can you practise this with SBTech Math's Linear Algebra course?
  13. 13Frequently asked questions

Positive eigenvalues, a positive determinant and a positive diagonal all sound like proof that a matrix is positive definite. Positive eigenvalues settle it only for a symmetric matrix, and neither of the other two settles it alone.

In an exam that gap is where a wrong option gets picked. The CSIR NET (Council of Scientific and Industrial Research National Eligibility Test) and GATE MA (Graduate Aptitude Test in Engineering, Mathematics) syllabuses name quadratic forms, polynomials such as x² − xy + 2y². Positive definiteness is the standard way to classify them, so the same tests answer questions that arrive as polynomials rather than matrices, and the exams section below shows which syllabus names what.

This page gives the order of tests we recommend, a count of how often each shortcut passes a matrix that fails, across 15,625 matrices we checked, six matrices to practise on with answers, and the official syllabus wording for four exams.

What is a positive definite matrix, and must it be symmetric?

A positive definite matrix is a real symmetric matrix A for which xᵀAx is greater than zero for every nonzero vector x. The expression xᵀAx is the quadratic form of A: for A = [[a, b], [b, c]] it equals ax² + 2bxy + cy². Symmetric means A equals its transpose Aᵀ. Positive semidefinite means xᵀAx ≥ 0 for every x; indefinite means xᵀAx takes both signs.

Symmetry is part of the definition in most exam settings because the quadratic form cannot see the asymmetric part of a matrix: xᵀAx = xᵀ((A + Aᵀ)/2)x. Some textbooks therefore define definiteness by xᵀAx > 0 alone. Then a non-symmetric matrix is positive definite exactly when its symmetric part (A + Aᵀ)/2 is (Wikipedia, Definite matrix). Read the question's definition before you apply a test.

For a symmetric matrix, three statements are equivalent: xᵀAx > 0 for all nonzero x; every eigenvalue is positive; every leading principal minor is positive. The eigenvalue link has a one-line reason. If Av = λv with v ≠ 0, then vᵀAv = λ(vᵀv), and vᵀv > 0, so λ must be positive.

Positive eigenvalues do not rescue a non-symmetric matrix. Take A = [[1, 3], [0, 1]]. Both eigenvalues equal 1, yet for x = (1, −1) we get xᵀAx = −1. Its symmetric part [[1, 1.5], [1.5, 1]] has eigenvalues 2.5 and −0.5.

A bowl-shaped surface with a marble resting at its lowest point sits beside a saddle-shaped surface.
A positive definite form curves upward in every direction like the bowl, while an indefinite one dips like the saddle.

How do you test a matrix for positive definiteness, step by step?

A matrix is positive definite exactly when it is symmetric and every leading principal minor D₁, D₂, … Dₙ is positive, so the tests run from the cheapest rejection to that decisive one. The characteristic-polynomial and quadratic-form routes below are alternatives for when they are quicker.

A leading principal minor Dₖ is the determinant of the top-left k×k block of the matrix.

Is the matrix symmetric?

Pass: every entry aᵢⱼ equals aⱼᵢ. Fail: any pair differs. If the question's definition includes symmetry, a non-symmetric matrix is not positive definite. If it defines the term by xᵀAx > 0 only, run the remaining steps on (A + Aᵀ)/2.

Does a quick check rule it out?

Fail the matrix at once if any diagonal entry is zero or negative, or if any pair gives aᵢᵢaⱼⱼ − aᵢⱼ² ≤ 0. The first fails because x = eᵢ (a vector with a single 1) gives xᵀAx = aᵢᵢ; the second is the same test on a 2×2 block. Passing proves nothing: these are fail checks only.

Are all leading principal minors positive?

Pass: D₁ > 0, D₂ > 0, … Dₙ > 0. This is Sylvester's criterion. Fail: the first Dₖ ≤ 0 ends the test. For a 2×2 matrix [[a, b], [b, c]] it reduces to a > 0 and ac − b² > 0.

Can the characteristic polynomial settle it faster?

For a symmetric matrix every root of det(λI − A) is real, and all roots are positive exactly when the coefficients alternate strictly in sign (+, −, +, −, …). Pass: strict alternation. Fail: a missing term or a repeated sign. This is Descartes' rule of signs applied to a polynomial known to have only real roots.

It pays off when you have the polynomial already, for example from a Cayley Hamilton theorem problem. If you have already diagonalised the matrix, the eigenvalues are the diagonal entries; our diagonalization of a matrix page covers that route.

What if the question gives a polynomial instead of a matrix?

Write the symmetric matrix by halving each cross-term coefficient, then run the steps above. For ax² + bxy + cy², the matrix is [[a, b/2], [b/2, c]]. The form is positive definite exactly when a > 0 and b² < 4ac.

What changes for positive semidefinite?

Leading minors that are merely non-negative do not prove positive semidefinite. A symmetric matrix is positive semidefinite exactly when all principal minors are non-negative, not only the leading ones: 2ⁿ − 1 minors for an n×n matrix (both rules: Definite matrix, Wikipedia). Eigenvalues ≥ 0 are usually quicker.

On a computer, attempting a Cholesky factorisation (writing A = RᵀR with R upper triangular) is the fastest numerical test. The matrix is positive definite if the factorisation completes; if not, it typically breaks down in the early stages (Nick Higham, 2020).

Three nested square cards grow outward from the top-left corner of a blank grid while a student's pencil rests nearby.
Each test checks a larger top-left block, so the matrix is cleared step by step from the smallest block to the whole.

How often does each shortcut test pass a matrix that is not positive definite?

Every shortcut except the full leading-minor test passed matrices that are not positive definite. We checked all 15,625 symmetric 3×3 matrices with integer entries from −2 to 2 (5⁶ combinations of the six independent entries), comparing each shortcut with the eigenvalues. Of these, 96 (0.61%) are positive definite and 241 are positive semidefinite.

ShortcutMatrices that passOf those, correctly classifiedPassed but wrong
Determinant > 0 only7,05696 positive definite (1.4%)6,960
All three diagonal entries > 0 only1,00096 positive definite (9.6%)904
D₁ > 0 and D₂ > 0 (D₃ skipped)1,25096 positive definite1,154
D₁, D₂, D₃ all ≥ 0, read as "positive semidefinite"749241 positive semidefinite508
D₁, D₂, D₃ all > 0 (Sylvester)9696 positive definite0

Every one of the 6,960 matrices with a positive determinant that fail has exactly two negative eigenvalues, so the determinant's sign hides them: two negatives multiply to a positive. Strict Sylvester agreed with the eigenvalue test on all 15,625.

This grid is our model of the shortcuts, not a measure of how often exams use them. The percentages belong to this grid of entries and would change on another. The pattern is general: a positive determinant can hide two negative eigenvalues, and non-negative leading minors do not prove semidefiniteness.

How to redo it (run in November 2026; a matrix counts as positive definite when its smallest eigenvalue exceeds 10⁻⁹, and as positive semidefinite when it exceeds −10⁻⁹):

import itertools
import numpy as np

rows = []
for a, b, c, d, e, f in itertools.product(range(-2, 3), repeat=6):
    A = np.array([[a, b, c], [b, d, e], [c, e, f]], float)
    D = (a, a*d - b*b, round(np.linalg.det(A)))      # D1, D2, D3
    w = np.linalg.eigvalsh(A)
    rows.append(dict(D=D, diag=(a > 0 and d > 0 and f > 0),
                     pd=w.min() > 1e-9, psd=w.min() > -1e-9,
                     two_neg=int((w < -1e-9).sum()) == 2))

def show(label, test):
    hit = [r for r in rows if test(r)]
    print(label, len(hit), "positive definite:", sum(r["pd"] for r in hit),
          "positive semidefinite:", sum(r["psd"] for r in hit))

print("all", len(rows), "PD", sum(r["pd"] for r in rows), "PSD", sum(r["psd"] for r in rows))
show("det > 0", lambda r: r["D"][2] > 0)                    # 7056, 96 PD
print("det > 0, not PD, two negative eigenvalues:",
      sum(r["D"][2] > 0 and not r["pd"] and r["two_neg"] for r in rows))  # 6960
show("diagonal > 0", lambda r: r["diag"])                   # 1000, 96 PD
show("D1, D2 > 0", lambda r: r["D"][0] > 0 and r["D"][1] > 0)  # 1250, 96 PD
show("D1, D2, D3 >= 0", lambda r: all(x >= 0 for x in r["D"]))  # 749, 241 PSD
show("D1, D2, D3 > 0", lambda r: all(x > 0 for x in r["D"]))     # 96, 96 PD

The "passed but wrong" column is the matrices that pass minus those correctly classified: 7,056 − 96, 1,000 − 96, 1,250 − 96 and 749 − 241.

Can you classify these six matrices and quadratic forms?

Two of the six are positive definite: the 3×3 matrix in row 1 and the form in row 4. The other four fail for four different reasons: a zero minor, an indefinite form, minors that look fine but are not, and a non-symmetric matrix with positive eigenvalues. Work each one first, then read the answer.

#ObjectAnswerWorking
1

[[3, −1, 0], [−1, 2, −1], [0, −1, 3]]

Positive definiteD₁ = 3, D₂ = 5, D₃ = 12. Eigenvalues 1, 3, 4. Characteristic polynomial λ³ − 8λ² + 19λ − 12 has alternating signs.
26x² − 12xy + 6y²Positive semidefinite, not positive definite

Matrix [[6, −6], [−6, 6]]: D₁ = 6, D₂ = 0. The form equals 6(x − y)², which is 0 at (1, 1).

3x² − xy − 2y²Indefinite

Matrix [[1, −½], [−½, −2]]: D₂ = −9/4 < 0. The form is 1 at (1, 0) and −2 at (0, 1).

4x² − xy + 2y²Positive definite

Matrix [[1, −½], [−½, 2]]: D₁ = 1, D₂ = 7/4. Also b² = 1 < 4ac = 8.

5

[[0, 0, −2], [0, −2, −2], [−2, −2, −2]]

Not positive semidefiniteD₁, D₂, D₃ = 0, 0, 8, all ≥ 0, yet eigenvalues are about −4.49, −1.11 and 1.60.
6

[[1, 3], [0, 1]]

Not positive definiteNot symmetric. Eigenvalues 1, 1, but xᵀAx = −1 at x = (1, −1).

Which exams ask about positive definite matrices and quadratic forms?

CSIR NET and GATE MA name quadratic forms in their linear algebra syllabus. IIT JAM Mathematics (the MA paper) does not. Only the JAM Mathematical Statistics paper spells out positive definite matrices. Here is what each official document says:

ExamOfficial syllabus wordingPublisher
CSIR NET Mathematical Sciences, Parts B and C"Quadratic forms, reduction and classification of quadratic forms"
GATE 2027 MALinear Algebra section includes "quadratic forms"
IIT JAM 2027 MathematicsMatrices run from systems of linear equations to eigenvalues and eigenvectors; the other Section 3 topics are vector spaces and groups
IIT JAM 2027 Mathematical Statistics"Quadratic forms, positive definite, positive semi-definite, negative definite, and negative semi-definite matrices, and their simple properties"

CSIR HRDG syllabus file dated November 2018, checked November 2026. Syllabuses change between cycles, so confirm against the current CSIR NET notice and the current GATE and JAM notices.

Our reading is that "classification of quadratic forms" means deciding whether a form is positive definite, positive semidefinite, negative definite (xᵀAx < 0 for every nonzero x) or indefinite, so the tests above apply to CSIR NET and GATE MA questions even when the words "positive definite" are absent. For the full GATE list, see our GATE MA syllabus page.

Where can you practise this with SBTech Math's Linear Algebra course?

Our Linear Algebra - Master Course, taught by Sunil Bansal (SB Sir), covers quadratic forms, eigenvalues and eigenvectors, and diagonalization, in Hindi and English, with quizzes and live tests. As of November 2026 it costs ₹2,499, and the course page lists a start date of 1 September 2026. Details are on the Linear Algebra - Master Course page.

SB Sir is CSIR-NET qualified with an All India Rank of 11 (December 2017) and is GATE MA qualified. If you are still choosing between linear algebra courses for your exam, our linear algebra course online guide sets out what to check.

Ask which SBTech Math course fits your exam

Questions about which course fits your exam go through our contact form.
Contact SBTech Math

Frequently asked questions

Positive semidefinite allows xᵀAx = 0 at some nonzero x; positive definite does not. A positive semidefinite matrix that is not positive definite therefore has a zero eigenvalue, so its determinant is 0 and it is not invertible.
All its eigenvalues are positive, and the determinant is the product of the eigenvalues, so the determinant is positive and therefore nonzero. A matrix with a nonzero determinant is invertible.
No, only the diagonal entries must be. The positive definite matrix in row 1 of the practice table has off-diagonal entries of −1. Off-diagonal entries can be negative or zero as long as the leading principal minors stay positive.
Turn it into its symmetric matrix and check that the leading principal minors are all positive. For two variables, ax² + bxy + cy² is positive definite when a > 0 and 4ac − b² > 0.
The JAM 2027 Mathematics syllabus lists matrices only up to eigenvalues and eigenvectors, with no quadratic-form item. The separate JAM Mathematical Statistics paper names positive definite matrices in its syllabus.

Sources

  1. 1.CSIR-UGC NET for JRF and Lectureship: Common syllabus for Parts B and C, Mathematical Sciences, CSIR HRDG
  2. 2.GATE 2027 Mathematics (MA) syllabus, IIT Madras
  3. 3.JAM 2027 Mathematics (MA) syllabus, IIT Kharagpur
  4. 4.JAM 2027 Mathematical Statistics (MS) syllabus, IIT Kharagpur
  5. 5.Definite matrix, Wikipedia
  6. 6.What Is a Symmetric Positive Definite Matrix?, Nick Higham, 21 July 2020
  7. 7.Linear Algebra - Master Course, SBTech Math

Keep reading

SBTechMath.

India's trusted Mathematics learning platform for CSIR-NET, GATE, IIT-JAM, CUET PG, and competitive exam aspirants. Learn concepts that help you succeed.

© 2026 SBTech Math

Powered by PageLens.ai

Crack CSIR-NET, GATE & IIT-JAM with concept-first learning.

Start Now