Source scope: §3.11. Worked numerical examples, experiments, and practice are teaching supplements unless identified as source results.
Check all directions
For A=diag(2,0), the form is 2x12. It is never negative, but the entire vertical direction has value zero. Replacing zero by one makes the value positive at every nonzero input.
A symmetric matrix is positive semidefinite, written A⪰0, if xTAx≥0 for every x. It is positive definite, written A≻0, if xTAx>0 for every nonzero x. Positive definite implies positive semidefinite; the converse fails. These definitions use symmetry throughout.
Proposition 5: eigenvalue test
Source statement. A real symmetric matrix is positive semidefinite iff all eigenvalues are nonnegative, and positive definite iff all eigenvalues are positive.
Source proof. For an eigenvector x with eigenvalue λ,
xTAx=λxTx=λ∥x∥22.
Since x=0, divide by its positive squared length. Nonnegativity of the form forces λ≥0; strict positivity forces λ>0. Conversely if all eigenvalues are nonnegative, the Rayleigh bound gives RA(x)≥λmin≥0 for x=0. The numerator has the same sign as the quotient, so the form is nonnegative, including zero input. If all eigenvalues are positive, the bound is strictly positive at nonzero inputs, proving positive definiteness.
Proposition 6: a common source of semidefinite matrices
For any A∈Rm×n, ATA is positive semidefinite. It is positive definite if null(A)={0}.
Source proof. Symmetry follows by transposing. For every x,
xT(ATA)x=(Ax)T(Ax)=∥Ax∥22≥0.
If the nullspace is trivial, nonzero x implies Ax=0, giving strict positivity. Conversely, as a teaching observation, any nonzero null vector prevents strict positivity. A positive definite matrix is invertible because it has no zero eigenvalue; a positive semidefinite matrix may be singular.
Proposition 7: lift a flat direction
If A⪰0 and ϵ>0, then A+ϵI≻0.
Source proof. For x=0,
xT(A+ϵI)x=≥0xTAx+>0ϵ∥x∥22>0.
Combining Propositions 6 and 7 shows that ATA+ϵI is positive definite, hence invertible, for every real rectangular A and ϵ>0. The positivity of ϵ is essential.
Explore it yourself
Turn a unit vector
Predict the quadratic value before aligning x with an eigenvector.
Preparing interactive controls…
Explore in three dimensions
Explore it yourself
A bowl, a flat direction, or a saddle?
Change the eigenvalues of a two-variable quadratic form. Then add εI and watch both curvatures shift.
Preparing interactive controls…
Transfer
Does adding 0.1I make diag(−2,1) positive definite?
Check the hypothesis
No. The shifted eigenvalues are −1.9 and 1.1. Proposition 7 starts with a positive semidefinite matrix. For an arbitrary symmetric matrix, the shift must exceed the negative of its smallest eigenvalue.