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 is the bottom of a bowl.
- The shading is with and . The contours are its level curves.
- While is positive definite the surface is a bowl, and the dot at its lowest point is the solution of .
- Raise past . What happens to the bowl, and to its bottom?
Predict
has positive entries. Is it positive definite?
No. Its eigenvalues are , and is negative: along , . Positive entries aren't the test. The surface is a saddle, not a bowl, so it has no lowest point.
Name it
Five equivalent tests
A symmetric matrix is positive definite when any one of these holds (and then they all do):
- All eigenvalues are positive.
- All pivots are positive (elimination without row swaps).
- All upper-left determinants are positive.
- for every nonzero : the energy test.
- for some with independent columns.
For 2 × 2, is positive definite exactly when and . With instead of the matrix is positive semidefinite.
Minimization
If is positive definite, is a bowl with a single lowest point, where its gradient is zero:
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 , positive unless every node is at ground. So is positive definite: test 5 with the grounded incidence matrix.
Cholesky factorization
A positive definite factors as , with lower triangular and positive diagonal. It needs about operations, half of LU, and no row swaps. Circuit simulators and finite-element codes use it whenever the matrix allows. For 2 × 2:
Worked example
Test .
Show the solution
- Pivots. All positive, so it's positive definite.
- Upper-left determinants. They are , and , the pivots' running products.
- Where it comes from. This matrix is the conductance matrix of a chain of equal resistors with both ends grounded.
Answer is positive definite, since its pivots 2, and are all positive.
Worked example
Minimize .
Show the solution
- Match the standard form. It's with
- Solve . is positive definite (pivots 2 and 1.5), so the minimum is at
- Minimum value.
- Check directly.
Answer the minimum is , at .
Worked example
For which is positive definite?
Show the solution
- First pivot. The first pivot, 2, is positive.
- Determinant. It must be positive too: so . Equivalently, the eigenvalues must both be positive.
- The edge case. At the matrix is only semidefinite: gives , a flat valley in the bowl.
- In a circuit. A conductance matrix behaves the same way: it's definite as long as some path leads to ground.
Answer is positive definite for .
Check
is positive definite for below what value?
Check
What is the second pivot of ?
Check
What is the minimum value of ?
Check
Which matrix is positive definite?
Check
In the Cholesky factor of , what is ?
Check
What is the determinant of the matrix with 2 on the diagonal and just above and below it, for = 5?
Check
Test .
(a)
What is its second pivot?
(b)
What is the largest off-diagonal entry for which is positive definite?
Check
Find the Cholesky factor of .
Step 1
What is ?
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°.
Step 2
What is ?
Step 3
What is ?
Explain why
Why is the conductance matrix of a grounded resistor network positive definite?
The power dissipated at node voltages is , which adds up over every resistor. Each term is at least zero, so the total is never negative. It can only be zero if every resistor has zero voltage across it, which means every node is at the same voltage as its neighbors, and since some node is grounded, all of them are at zero. So for every nonzero , which is the energy test for positive definiteness.
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.