Lecture 22 Math 221 

Special Property of Some Symmetric Matrices 

 

In solving Ax = b it is necessary to employ special splitting properties followied by interation techniques to find the solution.  When the coefficient matrix is very large or nearly singular then there can be problems with Gauss elimination.  This particular property is best left to a numerical analysis class.  The property that will guarentee that the method works though is a property that we will study at this time.   

 

Definition An nxn matrix A is said to be postive definite if given any non-zero nx1 vector x then the product Typesetting:-mrow(Typesetting:-mo( 

 

Let us look at the relationship of this property to eigenvalues.  Let Typesetting:-mrow(Typesetting:-msub(Typesetting:-mi( be an eigenvalue of A with associated eigenvector Typesetting:-mrow(Typesetting:-msub(Typesetting:-mi(.  Then we now that Typesetting:-mrow(Typesetting:-mi( and we can look at the product Typesetting:-mrow(Typesetting:-mi(.  Multiplying both sides of Typesetting:-mrow(Typesetting:-mi( by Typesetting:-mrow(Typesetting:-msubsup(Typesetting:-mi( we obtain 

Typesetting:-mrow(Typesetting:-mi( .  If A is positive definite then we see that Typesetting:-mrow(Typesetting:-mi( >0 .  Since  

Typesetting:-mrow(Typesetting:-mi( is the length of Typesetting:-mrow(Typesetting:-msub(Typesetting:-mi( squared then Typesetting:-mrow(Typesetting:-msub(Typesetting:-mi( must be postive.  It is easy to show that if the matrix is symmetric then the eigenvalues being positive will make the matrix positive definite.  This follows from the fact that every symmetric matrix is similar to a diagonal matrix.  i.e. 

Typesetting:-mrow(Typesetting:-mi( where Q is an orthogonal matrix and Typesetting:-mrow(Typesetting:-mi( is a diagonal matrix with the diagonal elements on the diagonal.   Thus, Typesetting:-mrow(Typesetting:-mi( and setting Typesetting:-mrow(Typesetting:-mi( the right hand side becomes Typesetting:-mrow(Typesetting:-mi( which is nothing more than Typesetting:-mrow(Typesetting:-mi( + ... Typesetting:-mrow(Typesetting:-mi( > 0 .   

 

There is a third way to check to see if a matrix is positive difinite.  That is that the determinate of all the principle submatrices are positive including the determinate of the matrix itself.   It will be best to illustrate what is ment by the principle submatrices.   

 

Let us now look at a few examples.  We will first show they are positive definite by using the definition and next using  

 

Example 1 

 

> with(LinearAlgebra):
 

>
 

> A:=<<4,1>|<1,3>>;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> X:=<x,y>;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> AX:=simplify(X^%T.A.X);
 

`+`(`*`(4, `*`(`^`(x, 2))), `*`(2, `*`(x, `*`(y))), `*`(3, `*`(`^`(y, 2))))
 

We now can write the prolynomial as Typesetting:-mrow(Typesetting:-mi( = Typesetting:-mrow(Typesetting:-mi( 

At this point it is obvious that every term is non-negative since that are all squared.  The remaining question are they positive.  The answer is yes since the only way they could be zero is if each term is zero but  Typesetting:-mrow(Typesetting:-mi( tellus that x=0 and Typesetting:-mrow(Typesetting:-mi( tell us that y=0.  The conclusion is that for any non zero vector the quadratic form Typesetting:-mrow(Typesetting:-mi( is positive.  You need to get the quadratic expression as the sum of perfect squares to see that the quadratic form is positive.   

 

Let us look at the eigenvalues 

 

 

 

> EA:=Eigenvectors(A,output='list');
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> evalf(EA[1][1]);
 

4.618033988
 

> evalf(EA[2][1]);
 

2.381966012
 

What is are the pricipal submatrices of the matrix.  In this case there is only one and that one  

is the number in the first row and first column Typesetting:-mrow(Typesetting:-mi( which is positive 

now for the det(A)= 12 -1 =11>0 so we have shown that the matrix is positive definite in three ways.    We can also look at the piviots after Gauss Elimination. 

 

> GaussianElimination(A);
 

Matrix(%id = 1345968) (2.1)
 

Since the piviots are positive then it is positive definite. 

 

The element in the first row and first column is positive .  Next look at the Determinant of the matrix.  This will be the principle show that all the principle subdeterminants are positive.  This is still another way of testing for positive definite. 

> Determinant(A);
 

11 (2.2)
 

Exmaple 2 

Consider the following matrix.  

 

 

> B:=<<1,1>|<1,1>>;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> BX:=simplify(X^%T.B.X);
 

`+`(`*`(`^`(x, 2)), `*`(2, `*`(x, `*`(y))), `*`(`^`(y, 2)))
 

which tells us that Typesetting:-mrow(Typesetting:-mi( and this is not always positive since for any x = -y we get zero.  i.e. for the vector [1,-1]. 

 

 

> Eigenvectors(B,output='list');
 

Typesetting:-mfenced(Typesetting:-mverbatim(
 

> Determinant(B);
 

0
 

> GaussianElimination(B);
 

Matrix(%id = 1362604)
 

All the tests show that the matrix has non-negative eigenvalues put not position eigenvalues so it is not positive definite.  It is called positive semi-definite but we will not worry about pisitive semi-definite matrices in this class 

Example 3 

Another example 

 

> C:=<<4,2>|<2,3>>;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

 

> CX:=simplify(X^%T.C.X);
 

`+`(`*`(4, `*`(`^`(x, 2))), `*`(4, `*`(x, `*`(y))), `*`(3, `*`(`^`(y, 2))))
 

Now we need to look at how to group our terms  Typesetting:-mrow(Typesetting:-mi( so we arrive at the following factorization of Typesetting:-mrow(Typesetting:-mi( = Typesetting:-mrow(Typesetting:-mi(.  Again, the only way that this quanitity can be zero is if  you have the zero vector [0,0].  Why?  Let us check the other ways of looking at C being positive definite 

 

> evalf(Eigenvectors(C,output='list'));
 

Typesetting:-mfenced(Typesetting:-mverbatim( (4.1)
 

The 1,1 position is 4 so it is positive. 

> Determinant(C);
 

8 (4.2)
 

Combining the 1,1 position being 4 with a positive determinant being positive tells us that the matrix is positive definite.  

> GaussianElimination(C);
 

Matrix(%id = 1381300) (4.3)
 

The piviots after Gauss Elimination being positive tells us in another way that the matrix is positive definite 

Example 4  

We will now look at a 3x3 matrix 

> F:=<<4,1,0>|<1,4,1>|<0,1,4>>;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> X1:=<x,y,z>;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> X1T:=X1^%T;
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> X1F:=simplify(X1T.F.X1);
 

`+`(`*`(4, `*`(`^`(x, 2))), `*`(2, `*`(x, `*`(y))), `*`(4, `*`(`^`(y, 2))), `*`(2, `*`(y, `*`(z))), `*`(4, `*`(`^`(z, 2))))
 

We need now to start collecting terms and finding perfect squares for our factors. 

Typesetting:-mrow(Typesetting:-mi( =  

Typesetting:-mrow(Typesetting:-mi(.  There are three terms which guarentee us that the only way for this quantity to be zero is for x=0,y=0 and z=0. i.e. we get the zero vector [0,0,0], so the matrix is positive definite by definition. 

 

 

> evalf(Eigenvectors(F,output='list'));
 

Typesetting:-mfenced(Typesetting:-mverbatim(
Typesetting:-mfenced(Typesetting:-mverbatim(
 

This means that the eigenvalues are all postive. 

 

How about the principle submatries. 

Typesetting:-mrow(Typesetting:-mi( > 0  

  

> SF:=SubMatrix(F,1..2,1..2);
 

Typesetting:-mrow(Typesetting:-mverbatim(
 

> Determinant(SF);
 

15
 

> Determinant(F);
 

56
 

>
 

We have thus shown that the matrix is positive definite in three different ways.   

Exercises 3.5  

Exercise 3.5.1 (a),(c),(d),(f).  (Exercise 3.5.6  (b) (d) You can use any of the Maple commands to work this last problem. ) You must follow the instructions  for exercise 3.5.1 Problems Due on  November 19, 2008 

e-mail me your worksheet.