For a symmetric 2 × 2 matrix (a b; b c), four tests for positive definiteness agree: both eigenvalues positive; the upper-left determinants a and ac − b² positive; the pivots a and (ac − b²)/a positive; and the new one, which most books take as the definition: xᵀAx = ax² + 2bxy + cy² > 0 for every x ≠ 0. With b = 6 and a = 2, the matrix needs c > 18. At c = 18 it is positive semidefinite (eigenvalues 0 and 20, one pivot); at c = 7 the determinant is −22, the form 2x² + 12xy + 7y² is negative at (1, −1), and its graph is a saddle. At c = 20, completing the square gives 2(x + 3y)² + 2y²: the pivots 2, 2 stand outside the squares and the multiplier 3 inside, so completing the square is elimination, and the graph is a bowl with its minimum at the origin. Cutting the bowl at height 1 gives an ellipse (a saddle gives a hyperbola). As in calculus, a minimum needs zero first derivatives and a positive definite matrix of second derivatives (f_xx, f_xy; f_xy, f_yy), which is symmetric because f_xy = f_yx. For the 3 × 3 matrix with 2 on the diagonal and −1 beside it: determinants 2, 3, 4; pivots 2, 3/2, 4/3; eigenvalues 2 − √2, 2, 2 + √2; xᵀAx = 1 is an ellipsoid whose axes point along the eigenvectors (A = QΛQᵀ, the principal axis theorem).
For A=(abbc), each of these is a complete test (pp. 1–2):
Tests for positive definiteness
(1) λ1>0,λ2>0(2) a>0,ac−b2>0(3) pivots a>0,aac−b2>0(4) xTAx>0 for all x=0
In words
(1) lambda one greater than 0, lambda two greater than 0 (2) a greater than 0, a c minus b squared greater than 0 (3) pivots a greater than 0, the quantity a c minus b squared, all over a greater than 0 (4) x^ capital T capital A x greater than 0 for all x is not equal to 0
Test (2) uses the upper-left ("northwest") determinants; in (3) the second pivot is the determinant divided by a, since the product of the pivots is the determinant (p. 2). Test (4) gets the star: in most presentations it is the definition, and the other three are tests for it (p. 2).
In general, with x and y for the components, it is ax2+2bxy+cy2: the diagonal entries multiply the squares, and the off-diagonal b appears twice (p. 4). This is a quadratic form, purely second degree, with no linear or constant part (pp. 4–5). The definition: A is positive definite if xTAx>0 for every x except zero (p. 5).
A failure (pp. 5–8). Lower c to 7. The determinant is 14−36=−22, so the pivots are 2 and −11 and one eigenvalue is negative (p. 5). At x=(1,−1) the form is 2−12+7=−3<0 (p. 6). The graph of f(x,y)=2x2+12xy+7y2 goes up along the x axis, along the y axis and along x=y, but down along x=−y: it is a saddle, and the origin a saddle point, a maximum in some directions and a minimum in others; the eigenvector directions are the ones to look at (pp. 6–8).
A success (pp. 8–12). Raise c to 20. The determinant is 40−36=4=λ1λ2 and the trace is 22=λ1+λ2; two numbers with positive product and positive sum are both positive (pp. 8–9). The graph of 2x2+12xy+20y2 is a bowl with its minimum at the origin: the pure squares overwhelm the cross term (p. 9). To see it, complete the square (pp. 11–12):
Completing the square
2x2+12xy+20y2=2(x+3y)2+2y2
In words
2 x squared plus 12 x y plus 20 y squared equals 2 the quantity x plus 3 y, all squared plus 2 y squared
A sum of squares with positive coefficients cannot be negative. With c=18 the leftover would be 0y2; with c=7 it would be −11y2 (p. 12). Cutting the bowl at height 1, 2x2+12xy+20y2=1, gives an ellipse; cutting a saddle gives a hyperbola (p. 12).
The pivots stand outside the squares and the multipliers inside (pp. 13–14). So positive pivots give a sum of squares with positive weights, the graph goes up, and there is a minimum at the origin: "it's all connected together" (p. 14). Because elimination works for n×nmatrices, so does this argument (p. 14).
In calculus a minimum needs df/dx=0, and then the second derivative decides: positive means the slope increases through the point (p. 10). For a function of several variables, "positive" becomes "positive definite" for the matrix of second derivatives (pp. 10, 14):
Matrix of second derivatives
(fxxfyxfxyfyy),fxy=fyx
In words
f sub x x f sub x y; f sub y x f sub y y, f sub x y equals f sub y x
fxx and fyy must be positive, and also big enough to overcome the cross derivative (p. 14). The matrix is symmetric because mixed second derivatives can be taken in either order (p. 14). The 18.02 condition fxxfyy>fxy2 is just the 2×2determinant test; linear algebra now gives the answer for any number of variables (p. 15).
capital A equals 2 minus 1 0; minus 1 2 minus 1; 0 minus 1 2 : determinants 2, 3, 4; pivots 2, three halves, four thirds; lambda equals 2 minus the square root of 2, 2, 2 plus the square root of 2
No x1x3 term appears, because those entries are zero. The graph, in four dimensions, is a bowl (a paraboloid), and completing squares would write the form as three squares weighted by the three positive pivots (pp. 17–18). Cutting at height 1, xTAx=1, gives an ellipsoid: a lopsided football (pp. 18–19). With all eigenvalues equal it would be a sphere (the identity); with two equal, a rugby ball; here, with three different eigenvalues, it has a major, a middle and a minor axis (pp. 18–19). The principal axis theoremA=QΛQT says the axes point along the eigenvectors, and the eigenvalues set their lengths (p. 19). (Strang says "the lengths, or the half-lengths, or one over the eigenvalues"; for xTAx=1 the half-length along an eigenvector is 1/λ.)
a=3>0, and 3c−16>0 requires c>16/3. At c=16/3 the matrix is only semidefinite.
(a) Completing the square, c=6
The multiplier is 4/3: 3x2+8xy+6y2=3(x+34y)2+(6−316)y2=3(x+34y)2+32y2. Pivots3 and 32, product 2=18−16, the determinant. Eigenvalues: trace9, determinant2, so λ=(9±73)/2≈8.77 and 0.228, both positive.
(b) Determinants and pivots
Upper-left determinants: 4; 12−4=8; detB=4(6−1)−2(4−0)=12. All positive, so B is positive definite. The pivots are 4, 8/4=2 and 12/8=23, and xTBx=4x12+3x22+2x32+4x1x2+2x2x3>0 for every x=0.
The bottom right entry of the symmetric 2 × 2 matrix: the coefficient of y²; in the example, the number that decides positive definiteness. Say it: “c”.
A symmetric matrix tested for positive definiteness; in the examples, rows (2, 6), (6, c), the 3 × 3 second-difference matrix and the worked example's rows (3, 4), (4, c). Say it: “capital A”.
Of a symmetric matrix or quadratic form: always giving a positive value for any nonzero input; equivalently, all its eigenvalues are positive. Explained in Symmetric matrices and positive definiteness.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
An open curve with two separate branches: the set of points whose distances from two fixed points differ by the same amount. Explained in Quadratics and power laws.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
Of a square matrix: having no inverse, because its determinant is zero and some nonzero vector is sent to zero. Explained in The geometry of linear equations.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
The theorem that every real symmetric matrix has real eigenvalues and perpendicular eigenvectors, so a turn of the axes makes it diagonal. Explained in Symmetric matrices and positive definiteness.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).