A742 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A7 · Lesson 42 · Positive definite matrices

Bowls, energy and the cheapest factorization

Set any voltages you like on the nodes of a resistor network and it dissipates power, never less than zero, and exactly zero only if every node is at ground. That simple fact makes its conductance matrix positive definite, the most useful property a symmetric matrix can have. Positive definite systems always have a unique solution, can be solved with half the work of ordinary elimination, and are the matrices behind every minimization problem: the solution of S𝐱=𝐛 is the bottom of a bowl.

  • The shading is f(𝐱)=12𝐱TS𝐱−𝐛T𝐱 with S=[accd] and 𝐛=(1,0.5). The contours are its level curves.
  • While S is positive definite the surface is a bowl, and the dot at its lowest point is the solution of S𝐱=𝐛.
  • Raise |c| past ad. What happens to the bowl, and to its bottom?

Predict

S=[1221] has positive entries. Is it positive definite?

Name it

Five equivalent tests

A symmetric matrix S is positive definite when any one of these holds (and then they all do):

  1. All eigenvalues are positive.
  2. All pivots are positive (elimination without row swaps).
  3. All upper-left determinants are positive.
  4. 𝐱TS𝐱>0 for every nonzero 𝐱: the energy test.
  5. S=ATA for some A with independent columns.

For 2 × 2, [accd] is positive definite exactly when a>0 and ad−c2>0. With ≥ instead of > the matrix is positive semidefinite.

Minimization

If S is positive definite, f(𝐱)=12𝐱TS𝐱−𝐛T𝐱 is a bowl with a single lowest point, where its gradient S𝐱−𝐛 is zero:

minimize f⟺S𝐱=𝐛,fmin⁡=−12𝐛T𝐱*

Many physical systems settle into their lowest-energy state, and their equilibrium equations are positive definite. In a resistor network, the currents divide so as to minimize the total power dissipated for the given injected currents (Maxwell's minimum heat theorem).

Resistor networks

The power a grounded network dissipates at node voltages 𝐯 is 𝐯TG𝐯=∑branchesgk(Δvk)2, positive unless every node is at ground. So G=ATCA is positive definite: test 5 with A the grounded incidence matrix.

Cholesky factorization

A positive definite S factors as S=LLT, with L lower triangular and positive diagonal. It needs about n36 operations, half of LU, and no row swaps. Circuit simulators and finite-element codes use it whenever the matrix allows. For 2 × 2:

L=[a0c/ad−c2/a]

Worked example

Test S=[2−10−12−10−12].

Show the solution
  1. Pivots. 2,2−12=32,2−23=43 All positive, so it's positive definite.
  2. Upper-left determinants. They are 2, 3 and 4, the pivots' running products.
  3. Where it comes from. This matrix is the conductance matrix of a chain of equal resistors with both ends grounded.

Answer S is positive definite, since its pivots 2, 32 and 43 are all positive.

Worked example

Minimize f(x,y)=x2+xy+y2−x.

Show the solution
  1. Match the standard form. It's 12𝐱TS𝐱−𝐛T𝐱 with S=[2112],𝐛=(1,0)
  2. Solve S𝐱=𝐛. S is positive definite (pivots 2 and 1.5), so the minimum is at 𝐱*=(23,−13)
  3. Minimum value. fmin⁡=−12𝐛T𝐱*=−13
  4. Check directly. 49−29+19−23=−13

Answer the minimum is −13, at (23,−13).

Worked example

For which c is S=[2cc2] positive definite?

Show the solution
  1. First pivot. The first pivot, 2, is positive.
  2. Determinant. It must be positive too: 4−c2>0 so |c|<2. Equivalently, the eigenvalues 2±c must both be positive.
  3. The edge case. At c=2 the matrix is only semidefinite: 𝐱=(1,−1) gives 𝐱TS𝐱=0, a flat valley in the bowl.
  4. In a circuit. A conductance matrix behaves the same way: it's definite as long as some path leads to ground.

Answer S is positive definite for |c|<2.

Check

[2cc3] is positive definite for |c| below what value?

Check

What is the second pivot of [2226]?

Check

What is the minimum value of f=12(2x2+1y2)−6x−−2y?

Check

Which matrix is positive definite?

Check

In the Cholesky factor L of [42210], what is L22?

Check

What is the determinant of the n×n matrix with 2 on the diagonal and −1 just above and below it, for n = 5?

Check

Test S=[20.50.51].

(a)

What is its second pivot?

(b)

What is the largest off-diagonal entry c for which [2cc1] is positive definite?

Check

Find the Cholesky factor L of [abbc]=LLT.

Step 1

What is L11?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why is the conductance matrix of a grounded resistor network positive definite?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.