Docsity

Diagonalizing Symmetric Matrices: Orthogonal Eigenvectors and Diagonal Form, Study notes of Linear Algebra

Toggle sidebar
bg1
22. Diagonalizing Symmetric Matrices
Symmetric matrices have many applications. For example, if we consider
the shortest distance between pairs of important cities, we might get a table
like this: Davis Seattle San Francisco
Davis 0 2000 80
Seattle 2000 0 2010
San Francisco 80 2010 0
Encoded as a matrix, we obtain:
M=
0 2000 80
2000 0 2010
80 2010 0
=MT.
Definition A matrix is symmetric if it obeys
M=MT.
One very nice property of symmetric matrices is that they always have
real eigenvalues. The general proof is an exercise, but here’s an example for
2×2 matrices.
Example For a general symmetric 2 ×2 matrix, we have:
Pλ a b
b d!= det λ−a−b
−b λ −d!
= (λ−a)(λ−d)−b2
=λ2−(a+d)λ−b2+ad
⇒λ=a+d
2±sb2+(a−d)
22
.
Notice that the discriminant 4b2+ (a−d)2is always positive, so that the
eigenvalues must be real.
Now, suppose a symmetric matrix Mhas two distinct eigenvalues λ6=µ
and eigenvectors xand y:
Mx =λx, M y =λy.
1
pf3
pf4
pf5

Partial preview of the text

Download Diagonalizing Symmetric Matrices: Orthogonal Eigenvectors and Diagonal Form and more Study notes Linear Algebra in PDF only on Docsity!

22. Diagonalizing Symmetric Matrices

Symmetric matrices have many applications. For example, if we consider the shortest distance between pairs of important cities, we might get a table like this: Davis Seattle San Francisco Davis 0 2000 80 Seattle 2000 0 2010 San Francisco 80 2010 0

Encoded as a matrix, we obtain:

M =

 

  = M T (^).

Definition A matrix is symmetric if it obeys

M = M T^.

One very nice property of symmetric matrices is that they always have real eigenvalues. The general proof is an exercise, but here’s an example for 2 × 2 matrices.

Example For a general symmetric 2 × 2 matrix, we have:

Pλ

( a b b d

) = det

( λ − a −b −b λ − d

)

= (λ − a)(λ − d) − b^2 = λ^2 − (a + d)λ − b^2 + ad

⇒ λ = a + d 2

√ b^2 +

( (a − d) 2

) 2 .

Notice that the discriminant 4b^2 + (a − d)^2 is always positive, so that the eigenvalues must be real.

Now, suppose a symmetric matrix M has two distinct eigenvalues λ 6 = μ and eigenvectors x and y:

M x = λx, M y = λy.

Consider the dot product x y = xT^ y = yT^ x. And now calculate:

xT^ M y = xT^ μy = μx y, and

xT^ M y = (yT^ M x)T^ (by transposing a 1 × 1 matrix) = xT^ M T^ y = xT^ M y = xT^ λy = λx y.

Subtracting these two results tells us that:

0 = xT^ M y − xT^ M y = (μ − λ) x y.

Since μ and λ were assumed to be distinct eigenvalues, λ − μ is non-zero, and so x y = 0. Then we have proved the following theorem.

Theorem. Eigenvectors of a symmetric matrix with distinct eigenvalues are orthogonal.

Example The matrix M =

( 2 1 1 2

) has eigenvalues determined by

det(M − λ) = (2 − λ)^2 − 1 = 0.

Then the eigenvalues of M are 3 and 1, and the associated eigenvectors

turn out to be

( 1 1

) and

( 1 − 1

)

. It is easily seen that these eigenvectors are

orthogonal: (^) ( 1 1

) ( 1 − 1

) = 0

Last lecture we saw that the matrix P built from orthonormal basis vectors {v 1 ,... , vn} P =

( v 1... vn

)

was an orthogonal matrix:

P −^1 = P T^ , or P P T^ = I = P T^ P.

Moreover, given any (unit) vector x 1 , one can always find vectors x 2 ,

.. ., xn such that {x 1 ,... , xn} is an orthonormal basis. (Such a basis can

Theorem. Every symmetric matrix is similar to a diagonal matrix of its eigenvalues. In other words,

M = M T^ ⇒ M = P DP T

where P is an orthogonal matrix and D is a diagonal matrix whose entries are the eigenvalues of M.

To diagonalize a real symmetric matrix, begin by building an orthogonal matrix from an orthonormal basis of eigenvectors.

Example The symmetric matrix M =

( 2 1 1 2

) has eigenvalues 3 and 1

with eigenvectors

( 1 1

) and

( 1 − 1

) respectively. From these eigenvectors, we

normalize and build the orthogonal matrix:

P =

( (^) √ 1 2 √^1 2 √^1 2

−√ 1 2

)

Notice that P T^ P = I 2. Then:

M P =

( (^3) √ 2 √^12 √^3 2

−√ 1 2

)

( (^1) √ 2 √^12 √^1 2

−√ 1 2

) ( 3 0 0 1

) .

In short, M P = DP , so D = P T^ M P. Then D is the diagonalized form of M and P the associated change-of-basis matrix from the standard basis to the basis of eigenvectors.

References

  • Hefferon, Chapter Three, Section V: Change of Basis

Wikipedia:

  • Symmetric Matrix
  • Diagonalizable Matrix
  • Similar Matrix

Review Questions

  1. (On Reality of Eigenvectors)

i. Suppose z = x + iy where x, y ∈ R, i =

−1, and z = x − iy. Compute z. What can you say about zz and zz? This operation is called complex conjugation. ii. What can you say about complex numbers λ that obey λ = λ?

iii. Let x =

  

z^1 .. . zn

   ∈^ Cn.^ Let^ x†^ =

( z^1... zn

) ∈ Cn. Compute

x†x. What can you say about the result? iv. Suppose M = M T^ is an n×n symmetric matrix with real entries. Let λ be an eigenvalue of M with eigenvector x, so M x = λx. Compute: x†M x x†x v. Suppose Λ is a 1 × 1 matrix. What is ΛT^? vi. What is the size of the matrix x†M x? vii. For any matrix (or vector) N , we can compute N by applying complex conjugation to each entry of N. Compute (x†)T^. Then compute (x†M x)T^. viii. Show that λ = λ. What does this say about λ?

  1. Let x 1 =

 

a b c

 , where a (^2) + b (^2) + c (^2) = 1. Find vectors x 2 and^ x 3 such

that {x 1 , x 2 , x 3 } is an orthonormal basis for R^3.

  1. What can you say about the sum of the dimensions of the eigenspaces of a real symmetric matrix?