13.1  Positive Semidefinite and Positive Definite Matrices

Chapter 12 sorted the operators that have an orthonormal eigenbasis. Among them the self-adjoint ones are the matrix analogue of the real numbers, since they are exactly the operators fixed by starring. Inside the real numbers sits a smaller and even more useful set, the non-negative ones, and this section finds its matrix analogue. The answer turns out to have three faces — a sign condition on the spectrum, a sign condition on a scalar function, and a factorization — and the whole of the rest of the chapter is built on the fact that the three agree.

Throughout, F=R or F=C, and Fn carries the standard inner product ⟨x,y⟩=y∗x.

13.1.1. Which self-adjoint matrices deserve to be called non-negative?

A real number t is non-negative in three equivalent ways: t≥0; tx2≥0 for every real x; and t=s2 for some real s. Each of the three has a matrix reading. “Every eigenvalue is ≥0” copies the first. “⟨Ax,x⟩≥0 for every x” copies the second, because ⟨Ax,x⟩ is the one scalar a matrix attaches to a single vector. “A=B∗B” copies the third, with the star doing what nothing does for numbers but everything does for matrices.

It is not obvious that the three agree, and for a general matrix they do not: they all fail for (0100) in different ways. What makes them agree is self-adjointness, and the middle condition is the one to take as the definition, because it is the one that says something about every vector at once.

A matrix is positive semidefinite when its quadratic form never goes negative.

Definition 13.1.1 (Positive Semidefinite and Positive Definite)

Let A∈Mn(F). Then A is positive semidefinite, written A⪰0, if

  • (P1) A is Hermitian, that is A∗=A (over R: symmetric, A⊤=A); and
  • (P2) ⟨Ax,x⟩≥0 for every x∈Fn.

It is positive definite, written A≻0, if (P1) holds and ⟨Ax,x⟩>0 for every non-zero x∈Fn.

The same words apply to an operator T∈L(V) on a finite-dimensional inner product space: T is positive semidefinite if T∗=T and ⟨Tv,v⟩≥0 for every v∈V, and positive definite if the inequality is strict for v≠0.

In words: (P1) puts A in the class where the analogy with real numbers is available at all, and (P2) says that the number ⟨Ax,x⟩=x∗Ax is never negative. The word every in (P2) is the whole content; a single vector proves nothing. In the definite case the vector x=0 has to be excluded, since ⟨A0,0⟩=0 for every A whatsoever.

Clause (P1) is also what makes clause (P2) meaningful. For a Hermitian A, the number ⟨Ax,x⟩ is real for every x, over C as well as over R (Proposition 11.6.7), so comparing it with 0 is legitimate. Without (P1) the number can be a genuine complex number, and “≥0” would be meaningless.

Positive definite implies positive semidefinite, since a condition that holds strictly for x≠0 holds weakly for x=0 too. The reverse fails, and the smallest witness is diag(1,0).

Before any examples, the trap.

Warning. Over R, clause (P1) has to be assumed; over C it comes free. Let A=(0−110), the quarter turn of R2. Then ⟨Ax,x⟩=−x2x1+x1x2=0 for every x∈R2, so (P2) holds in the strongest possible way, and yet A⊤=−A≠A. A real matrix can pass the quadratic-form test and be nowhere near symmetric, because over R the quadratic form cannot see the skew part of a matrix at all (Exercise (C3: What the real quadratic form does determine)). So a real definition that dropped (P1) would call the quarter turn positive semidefinite, and none of the theorems below would survive.

Over C the situation is the opposite, and it is worth recording once.

Proposition 13.1.1 (Over C, positivity implies Hermitian)

Let A∈Mn(C) satisfy ⟨Ax,x⟩∈R for every x∈Cn — in particular, let ⟨Ax,x⟩≥0 for every x. Then A∗=A.

Proof. Put S=A−A∗. For every x, moving the star across (Lemma 11.4.1) and using conjugate symmetry, ⟨A∗x,x⟩=⟨x,Ax⟩=⟨Ax,x⟩―=⟨Ax,x⟩, the last equality because the number is real. Hence ⟨Sx,x⟩=0 for every x∈Cn, and Theorem 12.2.6 gives S=0.

So over C one may state the definition with (P2) alone; over R one may not. We keep (P1) in the definition for both fields, so that a single sentence covers them and so that no reader has to remember which field licenses which shortcut.

Now the examples, all checked against (P1) and (P2) in turn.

Example (Five Positive Matrices)

Decide which of the following are positive semidefinite, and which are positive definite.

  • (a) In, and more generally D=diag(d1,…,dn) with every di real.
  • (b) xx∗ for a fixed x∈Fn.
  • (c) The Gram matrix G of a list (v1,…,vk) in an inner product space.
  • (d) The zero matrix 0∈Mn(F).
  • (e) (100−1).

Solution.

  • (a) D∗=D because the di are real, so (P1) holds. For (P2), ⟨Dx,x⟩=x∗Dx=∑i=1ndi|xi|2. So D⪰0 exactly when every di≥0, and D≻0 exactly when every di>0: if some di<0, the vector ei refutes (P2), and if some di=0, the vector ei refutes definiteness. In particular In≻0, with ⟨x,x⟩=‖x‖2.

  • (b) (xx∗)∗=x∗∗x∗=xx∗, so (P1) holds. For (P2), using ⟨u,w⟩=w∗u twice, y∗(xx∗)y=(y∗x)(x∗y)=⟨x,y⟩⟨x,y⟩―=|⟨x,y⟩|2≥0. So xx∗⪰0. It is never positive definite for n≥2, since any y≠0 orthogonal to x makes the value 0; and for x=0 it is the zero matrix.

  • (c) G∗=G by Theorem 11.2.5 (a), and x∗Gx=‖∑jxjvj‖2≥0 by part (b) of the same theorem. So G⪰0 always, and by (c) of that theorem G≻0 exactly when the list is linearly independent.

  • (d) 0∗=0 and ⟨0x,x⟩=0≥0, so 0⪰0. This is the degenerate case, and it matters: it is the bottom of the order introduced in Section 5, and it shows that (P2) can hold with equality everywhere.

  • (e) Symmetric, so (P1) holds; but ⟨Ae2,e2⟩=−1<0. Not positive semidefinite. This is (a) with d2=−1.

Example (e) is the non-example by minimal change: keep (P1), change one diagonal entry, and (P2) fails at one standard basis vector. The quarter turn of the warning is the other kind of non-example, keeping (P2) and losing (P1).

Two remarks on the name and the convention. “Definite” is the older word, from the theory of quadratic forms: the form q(x)=x∗Ax has a definite sign. “Semi” weakens the sign to allow zeros. Some authors write “positive” for what we call positive semidefinite and “strictly positive” for positive definite; the words differ but the two classes are the same two classes everywhere.

Warning. A positive matrix is not a matrix with positive entries. The all-ones matrix J∈M2(R) has every entry positive and is positive semidefinite, but (1221) has every entry positive and is not: at x=(1,−1) its form is 1−2−2+1=−2. Conversely diag(1,1) has a zero entry and is positive definite. Entrywise positivity is a different subject, the one Chapter 9 met through stochastic matrices, and it shares only a word with this one.

13.1.2. Positivity survives a change of variable

Before the equivalences, one small result that will be used in almost every proof of this chapter. The quadratic form x↦x∗Ax is attached to A; substituting x=Sy turns it into the quadratic form of S∗AS. The operation A↦S∗AS is called congruence, and Chapter 14 studies it for its own sake. Here we need only that it preserves the sign.

Proposition 13.1.2 (Congruence preserves positivity)

Let A∈Mn(F) be Hermitian and S∈Mn×m(F). Then S∗AS∈Mm(F) is Hermitian, and:

  • (a) if A⪰0, then S∗AS⪰0;
  • (b) if A≻0 and nul(S)={0}, then S∗AS≻0. In particular, for m=n and S invertible, A≻0 if and only if S∗AS≻0.

Proof. (S∗AS)∗=S∗A∗S∗∗=S∗AS, so the matrix is Hermitian. For every y∈Fm, (∗)y∗(S∗AS)y=(Sy)∗A(Sy)=⟨A(Sy),Sy⟩.

  • (a) If A⪰0, the right-hand side of (∗) is ≥0 for every y.

  • (b) If A≻0 and nul(S)={0}, then y≠0 forces Sy≠0, so the right-hand side of (∗) is >0. For the last claim, take S invertible: one direction is what we just proved, and the other is the same statement applied to S−1 and the matrix S∗AS, since (S−1)∗(S∗AS)S−1=A.

13.1.3. The equivalent descriptions

The characterization needs one determinant identity, which is worth stating on its own because it also describes every coefficient of a characteristic polynomial. Recall from Definition 7.7.1 that AI,I denotes the submatrix of A on the rows and columns indexed by I; its determinant is a principal minor of A, and AI,I is a principal submatrix.

Lemma 13.1.3 (Shifting by tI, minor by minor)

Let A∈Mn(F) and t∈F. Then det(A+tIn)=∑k=0nEk(A)tn−k, where E0(A)=1 and, for 1≤k≤n, Ek(A)=∑|I|=kdetAI,I is the sum of all k×k principal minors of A.

Idea. Column j of A+tI is aj+tej, a sum of two columns, and the determinant is linear in each column separately. Expanding all n columns turns one determinant into 2n of them, one for each choice of which columns contribute their tej. A determinant with ej in column j collapses under cofactor expansion to the determinant with row j and column j deleted, and doing that for every chosen column leaves exactly a principal submatrix.

Proof. Write a1,…,an for the columns of A, so that column j of A+tI is aj+tej. The determinant is linear in each column with the others fixed (Theorem 7.4.3). Applying that in column 1, then in column 2, and so on through column n, det(A+tI)=∑S⊆{1,…,n}t|S|detMS, where MS is the matrix whose j-th column is ej for j∈S and aj for j∉S.

Fix S and let j∈S. Expanding detMS along column j (Theorem 7.6.1 (a)) leaves one term, since that column is ej: the entry is 1 in row j and 0 elsewhere, and its cofactor is (−1)j+jMjj=Mjj. So detMS equals the determinant of MS with row j and column j deleted, which is a matrix of the same shape on the index set {1,…,n}∖{j}. Repeating this for each j∈S deletes every row and column indexed by S and leaves detMS=detASc,Sc,Sc={1,…,n}∖S. Collecting the subsets by k=|Sc|, so that |S|=n−k, gives the stated formula.

Remark. Running the same expansion over F[x] with the indeterminate −x in place of t, and multiplying by (−1)n, turns this into pA(x)=∑k(−1)kEk(A)xn−k: the coefficients of the characteristic polynomial are, up to sign, the sums of principal minors. The cases k=1 and k=n recover trA and detA from Theorem 7.10.2.

Here is the main theorem of the section.

Theorem 13.1.4 (Characterizations of Positive Semidefiniteness)

Let A∈Mn(F) be Hermitian. The following are equivalent.

  • (a) A⪰0.
  • (b) Every eigenvalue of A is a non-negative real number.
  • (c) A=B∗B for some B∈Mn(F).
  • (d) A=C2 for exactly one C∈Mn(F) with C⪰0.
  • (e) Every principal minor of A is ≥0.

Idea. The spectral theorem makes (a) and (b) two readings of one diagonal matrix, since an orthonormal change of basis does not change the sign of a quadratic form. From (b) the square root of Chapter 12 produces C, and C is its own B. The step (c)⇒(a) is the identity ⟨B∗Bx,x⟩=‖Bx‖2, one line of moving B∗ across. For (e), a principal submatrix is what the form does to vectors supported on a few coordinates, which gives (a)⇒(e) at once; the return trip uses Lemma 13.1.3 to show that det(A+tI)>0 for every t>0, so that no −t can be an eigenvalue.

Proof. (a) ⇔ (b). (⇒) Let Av=λv with v≠0. By Theorem 12.2.1, λ∈R, and 0≤⟨Av,v⟩=⟨λv,v⟩=λ‖v‖2, so λ≥0, as ‖v‖2>0. (⇐) By Corollary 12.4.3 (over C) or Corollary 12.5.2 (over R), A=UDU∗ with U unitary and D=diag(λ1,…,λn) the eigenvalues. Put y=U∗x. Then ⟨Ax,x⟩=x∗UDU∗x=y∗Dy=∑iλi|yi|2≥0, every term being a product of two non-negative reals.

(b) ⇒ (d). A Hermitian matrix has an orthonormal basis of eigenvectors, so the operator TA on Fn satisfies the hypothesis of Theorem 12.8.4, whose spectral condition spec(TA)⊆[0,∞) is exactly (b). That theorem gives a unique C with an orthonormal eigenbasis, non-negative spectrum and C2=A, and it is self-adjoint; by the equivalence just proved, applied to C, this says C⪰0. Conversely any C⪰0 with C2=A is Hermitian with non-negative spectrum, hence is that one. So there is exactly one such C.

(d) ⇒ (c). Take B=C; then B∗B=C∗C=C2=A.

(c) ⇒ (a). Conjugate-transposing twice, (B∗B)∗=B∗(B∗)∗=B∗B, which is (P1). And for every x, ⟨B∗Bx,x⟩=x∗B∗Bx=(Bx)∗(Bx)=‖Bx‖2 ≥ 0, which is (P2). Both facts are recorded in operator form in Exercise (C1: The operator S∗S) (a), applied to the map x↦Bx.

(a) ⇒ (e). Let I={i1<⋯<ik}. Given y∈Fk, let x∈Fn have xip=yp and all other entries 0. Then x∗Ax=y∗AI,Iy, because the terms xi―aijxj with i∉I or j∉I vanish. So AI,I is Hermitian and satisfies (P2), that is AI,I⪰0. By the equivalence (a) ⇔ (b) applied to AI,I, all its eigenvalues are ≥0. Diagonalizing it as AI,I=UDU∗ as above, with U∗=U−1, and taking determinants (Theorem 7.5.4, Corollary 7.5.6), detAI,I=detD=λ1⋯λk≥0.

(e) ⇒ (b). Let t>0 be real. Every Ek(A)≥0 by hypothesis and E0(A)=1, so Lemma 13.1.3 gives det(A+tI)=∑k=0nEk(A)tn−k≥tn>0. In particular A+tI is invertible (Theorem 7.5.3), so −t is not an eigenvalue of A (Theorem 9.2.6 applied to A+tI). As t>0 was arbitrary and every eigenvalue of A is real (Theorem 12.2.1), no eigenvalue is negative. This closes the cycle and proves the theorem.

Item (c) is the one to keep in mind: every positive semidefinite matrix is a Gram matrix, since B∗B is the Gram matrix of the columns of B (Definition 11.2.3). Section 3 turns that remark into a theorem. Item (d) names the square root, which Section 2 develops. Item (b) is how one thinks; item (e) is, for small matrices, how one computes.

13.1.4. The definite case, and Sylvester’s criterion

The definite versions of (a), (b) and (c) are proved by putting “strict” in front of the same arguments. The new item is a test that can be run by hand on a numerical matrix without finding a single eigenvalue.

Theorem 13.1.5 (Characterizations of Positive Definiteness, with Sylvester’s Criterion)

Let A∈Mn(F) be Hermitian, and for 1≤k≤n let Ak be its leading principal submatrix, the top-left k×k corner. The following are equivalent.

  • (a) A≻0.
  • (b) Every eigenvalue of A is a positive real number.
  • (c) A=B∗B for some invertible B∈Mn(F).
  • (d) (Sylvester’s criterion) detAk>0 for every k=1,…,n.

Idea. Steps (a) ⇔ (b) ⇔ (c) repeat the previous proof with strict inequalities. For (a) ⇒ (d), a leading principal submatrix inherits definiteness, and a determinant is a product of eigenvalues. The content is (d) ⇒ (a), and it is an induction on n that peels off the last row and column. The inductive hypothesis makes the corner An−1 definite, hence invertible, and one shear — the congruence by S=(I−An−1−1b0⊤1), which is exactly the block elimination of Chapter 8 — clears the border and turns A into An−1⊕(s) with one scalar s left over. Determinants identify the sign of s, and Proposition 13.1.2 carries the verdict back.

Proof. (a) ⇔ (b). As in Theorem 13.1.4, with ≥ replaced by > throughout: for (⇒), 0<λ‖v‖2 forces λ>0; for (⇐), ∑iλi|yi|2>0 whenever y=U∗x≠0, which happens exactly when x≠0 because U∗ is invertible.

(b) ⇒ (c). Let C⪰0 with C2=A (Theorem 13.1.4 (d)). Since every eigenvalue of A is positive, 0∉spec(A) and A is invertible (Theorem 9.2.6). If Cx=0 then Ax=C2x=0, so x=0; hence C is invertible too (Theorem 3.4.4). Take B=C.

(c) ⇒ (a). For x≠0, Bx≠0, so ⟨B∗Bx,x⟩=‖Bx‖2>0.

(a) ⇒ (d). As in the proof of (a) ⇒ (e) of Theorem 13.1.4 with I={1,…,k}, the corner Ak satisfies y∗Aky=x∗Ax>0 for y≠0, so Ak≻0. Its eigenvalues are positive, and detAk is their product, computed as in the proof of Theorem 13.1.4, so detAk>0.

(d) ⇒ (a). Induct on n. For n=1, A=(a11) with a11=detA1>0, and ⟨Ax,x⟩=a11|x|2>0 for x≠0.

Let n≥2, and write A=(A′bb∗d),A′=An−1, b∈Fn−1, d∈R. The leading principal submatrices of A′ are A1,…,An−1, so the inductive hypothesis gives A′≻0; in particular A′ is invertible, since detA′=detAn−1>0. Put S=(In−1−A′−1b0⊤1),s=d−b∗A′−1b. Block multiplication (Theorem 8.1.1), together with (A′−1)∗=A′−1 because A′ is Hermitian, gives (∗)S∗AS=(A′00⊤s). Both S and S∗ are triangular with 1s on the diagonal, so detS=detS∗=1 by Theorem 7.4.6. Taking determinants in (∗) with Theorem 7.5.4 and Theorem 7.8.4, 0<detA=det(S∗AS)=sdetA′, and detA′>0, so s>0. The right-hand side of (∗) is therefore positive definite: for y=(y′,yn)≠0, y∗(A′00⊤s)y=y′∗A′y′+s|yn|2>0, since the two terms are ≥0 and not both zero. Finally S is invertible, so Proposition 13.1.2 (b) turns S∗AS≻0 back into A≻0. This completes the induction and proves the theorem.

The number s=d−b∗A′−1b in that proof is the Schur complement A/A′ of Definition 8.3.1, and (∗) is the block LDU factorization of Theorem 8.3.1 written as a congruence. Section 6 replaces the scalar s by a block and gets the general test.

Warning. For semidefiniteness, the leading principal minors are not enough. Sylvester’s criterion has no “≥” version. Take A=(000−1). Its leading principal minors are detA1=0 and detA2=0, both ≥0, and yet ⟨Ae2,e2⟩=−1, so A is not positive semidefinite. What Theorem 13.1.4 (e) demands is all principal minors, and the one this matrix fails is detA{2},{2}=−1<0. The leading corners simply never look at the second coordinate on its own. This is the single most common error about the subject: for the strict test n minors suffice, for the weak test one needs all 2n−1 of them.

Quick check. Is A=(1224) positive semidefinite? Is it positive definite? Which minors did you use?

Solution. It is positive semidefinite but not positive definite. The principal minors are 1, 4 and detA=4−4=0, all ≥0, so Theorem 13.1.4 (e) applies. It is not definite, since detA2=0 violates Sylvester’s criterion; concretely A(2,−1)=0, so ⟨Ax,x⟩=0 at the non-zero x=(2,−1). One can also see everything at once from A=bb⊤ with b=(1,2), which is Example (Five Positive Matrices) (b).

13.1.5. Two by two, and where these matrices come from

The 2×2 case is worth memorizing, because it is the one that appears inside larger arguments.

Example (The 2×2 Test)

Let A=(abb―d) be Hermitian, so a,d∈R and b∈F. State and justify the tests for A≻0 and for A⪰0.

Solution. A≻0 if and only if a>0 and ad−|b|2>0. This is Sylvester’s criterion, Theorem 13.1.5 (d): the two leading principal minors are a and detA=ad−|b|2.

A⪰0 if and only if a≥0, d≥0 and ad−|b|2≥0. This is Theorem 13.1.4 (e): the principal minors are a, d and detA, and all three are needed. Dropping d≥0 readmits diag(0,−1).

Note what the second condition says: |b|2≤ad, so an off-diagonal entry can never be larger in modulus than the geometric mean of the two diagonal entries it sits between. For A=(21+i1−i3) over C: a=2>0 and ad−|b|2=6−2=4>0, so A≻0.

Where do positive semidefinite matrices come from? Almost always from item (c) of Theorem 13.1.4, and the standard source is data.

Example (A Covariance-style Matrix)

Three quantities are measured on four occasions, and each column of X=(210−111−1−100−1−1)∈M4×3(R) has been adjusted to sum to 0. Show that A=X⊤X is positive definite, and check the verdict against Sylvester’s criterion.

Solution. Multiplying out, aij is the dot product of columns i and j of X: A=(62−1242−122). The columns of X are linearly independent: if Xx=0, rows 1 and 3 read 2x1+x2=0 and −x1−x2=0, which force x1=x2=0, and then row 2 reads x3=0. So nul(X)={0}, and taking S=X in Proposition 13.1.2 (b) with the positive definite matrix I4 gives A=X⊤I4X≻0. Equivalently, ⟨Ax,x⟩=‖Xx‖2>0 for x≠0.

Sylvester’s criterion agrees: detA1=6, detA2=24−4=20, and expanding along the first row, detA=6(8−4)−2(4+2)+(−1)(4+4)=24−12−8=4, all positive. The reason the two routes must agree is that A is the Gram matrix of the columns of X, and Theorem 11.2.5 (d) already said that its determinant is positive exactly when those columns are independent.

13.1.6. The invertible matrix theorem grows

Chapter 2 collected the conditions equivalent to invertibility for an operator (Theorem 2.5.7); Chapter 3 gave the eight matrix conditions of the Invertible Matrix Theorem (Theorem 3.4.4); Chapter 7 added the determinant (Theorem 7.5.3) and Chapter 9 the eigenvalue 0 (Theorem 9.2.6). Positivity adds a pair, and they are the ones used whenever a square system is attacked through least squares.

Theorem 13.1.6 (Invertible Matrix Theorem, with Positive Definiteness)

Let A∈Mn(F) with F=R or F=C. The following are equivalent, and each is equivalent to each of the conditions of Theorem 3.4.4, Theorem 7.5.3 and Theorem 9.2.6.

  • (a) A is invertible.
  • (b) A∗A≻0.
  • (c) AA∗≻0.

For a general A∈Mm×n(F), one always has A∗A⪰0, with A∗A≻0 if and only if the columns of A are linearly independent.

Proof. Let A∈Mm×n(F). Then A∗A is positive semidefinite by Theorem 13.1.4 ((c) ⇒ (a)). Whether it is definite is decided by the identity ⟨A∗Ax,x⟩=x∗A∗Ax=‖Ax‖2, computed in the proof of Theorem 13.1.4 ((c) ⇒ (a)) and recorded in operator form in Exercise (C1: The operator S∗S) (a): the left side is >0 for every x≠0 exactly when Ax≠0 for every x≠0, that is, exactly when nul(A)={0}, that is, exactly when the columns of A are linearly independent. The same conclusion comes from Lemma 11.4.3, which says nul(A∗A)=nul(A) and so lets one read the condition off A directly.

Now let A be square. Then “nul(A)={0}” is item (b) of Theorem 3.4.4, which gives (a) ⇔ (b). Also A is invertible if and only if A∗ is, since (A−1)∗ is a two-sided inverse of A∗ and conversely; applying (a) ⇔ (b) to A∗ therefore gives (a) ⇔ (c).

The two new items look like a detour — why test A∗A when A itself is available? Because A∗A is Hermitian and positive, and everything in this chapter applies to it. Chapter 11 already used it once, in the normal equations of least squares; Section 8 will use it again, to build the singular value decomposition of a matrix that is not even square, and that decomposition supplies the last item of the list: a square matrix is invertible exactly when none of its singular values is zero.

13.1.7. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the definition of A⪰0 and of A≻0, including every quantifier and the field.
  • (b) Explain why clause (P1) cannot be dropped from the real definition, with a concrete matrix.
  • (c) True or false: if A is Hermitian and every leading principal minor of A is ≥0, then A⪰0. Justify your answer.
  • (d) Write down the three conditions of the 2×2 test for A⪰0.
  • (e) Name the item of Theorem 13.1.4 that says every positive semidefinite matrix is a Gram matrix.

Solution.

  • (a) A∈Mn(F) with F=R or C is positive semidefinite if A∗=A and ⟨Ax,x⟩≥0 for every x∈Fn; positive definite if A∗=A and ⟨Ax,x⟩>0 for every non-zero x∈Fn (Definition 13.1.1).

  • (b) Because over R the quadratic form does not see the skew part. The quarter turn (0−110) has ⟨Ax,x⟩=0 for every x∈R2 and is not symmetric.

  • (c) False. diag(0,−1) has leading principal minors 0 and 0, and ⟨Ae2,e2⟩=−1. All principal minors are needed (Theorem 13.1.4 (e)).

  • (d) With A=(abb―d) Hermitian: a≥0, d≥0 and ad−|b|2≥0.

  • (e) Item (c): A=B∗B, and B∗B is the Gram matrix of the columns of B.

B. Practice

Exercise (B1: Determine the definiteness)

For each matrix below, determine whether it is positive definite, positive semidefinite but not positive definite, or neither. Justify your answer.

  • (a) (2112) over R.
  • (b) (000−1) over R.
  • (c) (2−10−12−10−12) over R.
  • (d) The all-ones matrix J∈M3(R).
  • (e) (01−10) over R.
  • (f) (21+i1−i1) over C.

Solution.

  • (a) Positive definite. Symmetric, with leading principal minors 2 and 4−1=3, both positive (Theorem 13.1.5 (d)).

  • (b) Neither. The leading principal minors are 0 and 0, which tempts one into “semidefinite”, but the principal minor detA{2},{2}=−1 is negative, and ⟨Ae2,e2⟩=−1<0.

  • (c) Positive definite. Symmetric, with leading principal minors 2, 4−1=3 and 2⋅3−(−1)(−2)=4, all positive.

  • (d) Positive semidefinite, not positive definite. J=11⊤, which is Example (Five Positive Matrices) (b) with x=1; so ⟨Jx,x⟩=|⟨x,1⟩|2≥0. It vanishes at the non-zero x=(1,−1,0), so it is not definite. (Equivalently, detJ=0.)

  • (e) Neither: it is not symmetric, so (P1) fails and it is not in the class at all. Its quadratic form is identically 0, which shows how little the form sees over R.

  • (f) Positive semidefinite, not positive definite. Hermitian, with a=2≥0, d=1≥0 and ad−|b|2=2−2=0. The determinant is 0, so definiteness fails; indeed A(1+i,−2)=0.

Exercise (B2: A parameter)

For which t∈R is A(t)=(1t0t2t0t3) positive definite? Justify your answer.

Solution. A(t) is symmetric for every real t, so Sylvester’s criterion applies (Theorem 13.1.5 (d)). The leading principal minors are detA1=1,detA2=2−t2,detA3=6−4t2, the last by expansion along the first row: 1⋅(6−t2)−t⋅(3t−0)=6−4t2. All three are positive exactly when t2<2 and t2<3/2, that is when t2<3/2. Hence A(t)≻0 if and only if |t|<6/2.

At t=6/2 the matrix is positive semidefinite but singular, and for |t|>6/2 the determinant is negative, so A(t) has an odd number of negative eigenvalues and is not even semidefinite.

Exercise (B3: The inverse of a positive definite matrix)

Let A∈Mn(F) with A≻0. Prove that A is invertible and that A−1≻0.

Solution. By Theorem 13.1.5 (b), every eigenvalue of A is positive, so 0∉spec(A) and A is invertible (Theorem 9.2.6). Then (A−1)∗=(A∗)−1=A−1, so A−1 is Hermitian. Apply Proposition 13.1.2 (b) with S=A−1, which is invertible: S∗AS=A−1AA−1=A−1≻0. (Alternatively: the eigenvalues of A−1 are the reciprocals 1/λi of those of A, hence positive, and Theorem 13.1.5 (b) applies again.)

C. Going deeper

Exercise (C1: Zero trace forces zero)

Let A∈Mn(F) with A⪰0.

  • (a) Prove that aii≥0 for every i, and that trA≥0.
  • (b) Prove that if trA=0 then A=0.
  • (c) Deduce that if A⪰0 and −A⪰0, then A=0.

Solution.

  • (a) aii=ei∗Aei=⟨Aei,ei⟩≥0 by (P2). Summing, trA=∑iaii≥0.

  • (b) Write A=UDU∗ with U unitary and D=diag(λ1,…,λn) the eigenvalues (Corollary 12.4.3, Corollary 12.5.2). Then trA=tr(DU∗U)=trD=∑iλi by Theorem 0.9.6, and each λi≥0 by Theorem 13.1.4 (b). A sum of non-negative reals is 0 only if every term is 0, so D=0 and hence A=0.

    Alternatively, without eigenvalues: by (a) each aii≥0, so trA=0 forces every aii=0. Writing A=B∗B (Theorem 13.1.4 (c)), the i-th diagonal entry is ‖bi‖2 for the i-th column bi of B; so every column of B is 0, that is B=0 and A=0.

  • (c) If both A⪰0 and −A⪰0, then by (a) trA≥0 and tr(−A)=−trA≥0, so trA=0 and (b) gives A=0.
Exercise (C2: The cone of positive matrices)

Let Pn⊆Mn(F) be the set of positive semidefinite matrices.

  • (a) Prove that if A,B∈Pn and c≥0 is real, then A+B∈Pn and cA∈Pn. (A set with these two properties is a convex cone: it contains (1−t)A+tB for 0≤t≤1 as well.)
  • (b) Prove that Pn contains no line through 0: if A∈Pn and −A∈Pn then A=0.
  • (c) Prove that Pn is closed under congruence: if A∈Pn and S∈Mn(F), then S∗AS∈Pn. Give an example showing that Pn is not closed under multiplication.

Hint for (c): for the example, two positive semidefinite matrices whose product is not even Hermitian will do.

Solution.

  • (a) Sums and real multiples of Hermitian matrices are Hermitian. For every x, ⟨(A+B)x,x⟩=⟨Ax,x⟩+⟨Bx,x⟩≥0, and ⟨cAx,x⟩=c⟨Ax,x⟩≥0 since c≥0. Convexity follows by taking c=1−t and c=t and adding.

  • (b) This is Exercise (C1: Zero trace forces zero) (c).

  • (c) Immediate from Proposition 13.1.2 (a). For the failure of multiplicativity, take A=(1000),B=(1111), both positive semidefinite (A=e1e1⊤ and B=11⊤). Then AB=(1100), which is not symmetric, so it is not positive semidefinite — it fails (P1), never mind (P2). Section 2 shows what does survive: tr(AB)≥0, and AB⪰0 whenever A and B commute.

Exercise (C3: The largest entry sits on the diagonal)

Let A∈Mn(F) with A⪰0.

  • (a) Prove that |aij|2≤aiiajj for all i,j.
  • (b) Deduce that if aii=0 for some i, then the whole i-th row and i-th column of A are zero.
  • (c) Deduce that maxi,j|aij|=maxiaii.

Hint for (a): look at a 2×2 principal submatrix.

Solution.

  • (a) For i=j the claim is aii2≤aii2. For i≠j, take I={i,j}. By the proof of Theorem 13.1.4 ((a) ⇒ (e)), AI,I⪰0, and Example (The 2×2 Test) gives aiiajj−|aij|2=detAI,I≥0.

  • (b) If aii=0, then (a) gives |aij|2≤0⋅ajj=0 for every j, so aij=0; and aji=aij―=0 since A is Hermitian.

  • (c) Let M=maxiaii, a maximum of non-negative reals by Exercise (C1: Zero trace forces zero) (a). By (a), |aij|≤aiiajj≤M for all i,j, so maxi,j|aij|≤M. The reverse inequality holds because the diagonal entries are among the entries. Hence the two maxima are equal.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.