Repeated Eigenvalues
Repeated Eigenvalues
and
Introduction
In this Section we further develop the theory of eigenvalues and eigenvectors in two distinct directions.
Firstly we look at matrices where one or more of the eigenvalues is repeated. We shall see that this
sometimes (but not always) causes problems in the diagonalization process that was discussed in the
previous Section. We shall then consider the special properties possessed by symmetric matrices
which make them particularly easy to work with.
#
• have a knowledge of determinants and
matrices
Prerequisites
• have a knowledge of linear first order
Before starting this Section you should . . .
differential equations
"
' !
$
• state the conditions under which a matrix
with repeated eigenvalues may be
Learning Outcomes diagonalized
On completion you should be able to . . . • state the main properties of real symmetric
matrices
& %
30 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
HELM (2008): 31
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
Earlier, for example, we showed that the matrix
2 3
A=
3 2
has the non-repeated eigenvalues λ1 = −1, λ2 = 5 with associated eigenvectors
1 1
X1 = X2 =
−1 1
These two
eigenvectors
are
linearly independent.
1 1
since 6= k for any value of k 6= 0.
−1 1
Here the modal matrix
1 1
P =
−1 1
has linearly independent columns: so that det P 6= 0 and P −1 exists.
The general result, illustrated by this example, is given in the following Key Point.
Key Point 4
Eigenvectors corresponding to distinct eigenvalues are always linearly independent.
It follows from this that we can always diagonalize an n × n matrix with n distinct eigenvalues
since it will possess n linearly independent eigenvectors. We can then use these as the columns of
P , secure in the knowledge that these columns will be linearly independent and hence P −1 will exist.
It follows, in considering the case of repeated eigenvalues, that the key problem is whether or not
there are still n linearly independent eigenvectors for an n × n matrix.
We shall now consider two 3 × 3 cases as illustrations.
Task −2 0 1
Let A= 1 1 0
0 0 −2
(a) Obtain the eigenvalues and eigenvectors of A.
(b) Can three linearly independent eigenvectors for A be obtained?
(c) Can A be diagonalized?
32 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
Your solution
Answer
−2 − λ 0 1
(a) The characteristic equation of A is det(A − λI) =
1 1−λ 0 =0
0 0 −2 − λ
HELM (2008): 33
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
Task 5 −4 4
The matrix A = 12 −11 12 has eigenvalues −3, 1, 1. The eigenvector
4 −4 5
1
corresponding to the eigenvalue −3 is X = 3 or any multiple.
1
Investigate carefully the eigenvectors associated with the repeated eigenvalue λ = 1
and deduce whether A can be diagonalized.
Your solution
Answer
We must solve AY = (1)Y for the required eigenvector
5 −4 4 x x
i.e. 12 −11 12 y = y
4 −4 5 z z
Each equation here gives on simplification x − y + z = 0. So we have just one equation in three
unknowns so we can choose any two values arbitrarily. The choices x = 1, y = 0 (and hence
z = −1) and x =0, y = 1 (andhence z = 1) for example, give rise to linearly independent
1 0
eigenvectors Y1 = 0 Y2 = 1
−1 1
We can thus form a non-singular modal matrix P from Y1 and Y2 together with X (given)
1 1 0
P = 3 0 1
1 −1 1
We can then indeed diagonalize A through the transformation
−3 0 0
P −1 AP = D = 0 1 0
0 0 1
34 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
Key Point 5
An n × n matrix with repeated eigenvalues can be diagonalized provided we can obtain n linearly
independent eigenvectors for it. This will be the case if, for each repeated eigenvalue λi of multiplicity
mi > 1, we can obtain mi linearly independent eigenvectors.
2. Symmetric matrices
Symmetric matrices have a number of useful properties which we will investigate in this Section.
Task
Consider the following four matrices
3 1 3 1
A1 = A2 =
4 5 1 5
5 8 7 5 8 7
A3 = −1 6 8 A4 = 8 6 4
3 4 0 7 4 0
What property do the matrices A2 and A4 possess that A1 and A3 do not?
Your solution
Answer
Matrices A2 and A4 are symmetric across the principal diagonal. In other words transposing these
matrices, i.e. interchanging their rows and columns, does not change them.
AT2 = A2 AT4 = A4 .
This property does not hold for matrices A1 and A3 which are non-symmetric.
Calculating the eigenvalues of an n×n matrix with real elements involves, in principle at least, solving
an n th order polynomial equation, a quadratic equation if n = 2, a cubic equation if n = 3, and
so on. As is well known, such equations sometimes have only real solutions, but complex solutions
(occurring as complex conjugate pairs) can also arise. This situation can therefore arise with the
eigenvalues of matrices.
HELM (2008): 35
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
Task
Consider the non-symmetric matrix
2 −1
A=
5 −2
Obtain the eigenvalues of A and show that they form a complex conjugate pair.
Your solution
Answer
The characteristic equation of A is
2−λ −1
det(A − λI) = =0
5 −2 − λ
i.e.
−(2 − λ)(2 + λ) + 5 = 0 leading to λ2 + 1 = 0
giving eigenvalues ± i which are of course complex conjugates.
With symmetric matrices on the other hand, complex eigenvalues are not possible.
36 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
Key Point 6
The eigenvalues of a symmetric matrix with real elements are always real.
The general proof of this result in Key Point 6 is beyond our scope but a simple proof for symmetric
2 × 2 matrices is straightforward.
a b
Let A = be any 2 × 2 symmetric matrix, a, b, c being real numbers.
b c
The characteristic equation for A is
(a − λ)(c − λ) − b2 = 0 or, expanding: λ2 − (a + c)λ + ac − b2 = 0
from which
p
(a + c) ± (a + c)2 − 4ac + 4b2
λ=
2
The quantity under the square root sign can be treated as follows:
(a + c)2 − 4ac + 4b2 = a2 + c2 + 2ac − 4ac + b2 = (a − c)2 + 4b2
which is always positive and hence λ cannot be complex.
Task
Obtain the eigenvalues and the eigenvectors of the symmetric 2 × 2 matrix
4 −2
A=
−2 1
Your solution
HELM (2008): 37
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
Answer
The characteristic equation for A is
(4 − λ)(1 − λ) + 4 = 0 or λ2 − 5λ = 0
giving λ = 0 and λ = 5, both of which are of course
real and also unequal (i.e. distinct). For the
x
larger eigenvalue λ = 5 the eigenvector X = satisfy
y
4 −2 x 5x
= i.e. −x − 2y = 0, −2x − 4y = 0
−2 1 y 5y
2
Both equations tell us that x = −2y so an eigenvector for λ = 5 is X = or any multiple of
−1
this. For λ = 0 the associated eigenvectors satisfy
4x − 2y = 0 −2x + y = 0
1
i.e. y = 2x (from both equations) so an eigenvector is Y = or any multiple.
2
We now look more closely at the eigenvectors X and Y in the last task. In particular we consider
the product X T Y .
Task
Evaluate X T Y from the previous task i.e. where
2 1
X= Y =
−1 2
Your solution
Answer
T 1
X Y = [2 − 1] = [2 × 1 − 1 × 2] = [2 − 2] = [0] = 0
2
X T Y = 0 means are X and Y are orthogonal.
Key Point 7
Two n × 1 column vectors X and Y are orthogonal if X T Y = 0 or Y T X = 0.
38 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
Task
We obtained earlier in Section 22.1 Example 6 the eigenvalues of the matrix
2 −1 0
A = −1 2 −1
0 −1 2
which, as
√ we now √ emphasize, is symmetric. We found that the eigenvalues were
2, 2 + 2, 2 − 2 which are real and distinct. The corresponding eigenvectors
were, respectively
1 1
√ √1
X= 0 Y = − 2 Z= 2
−1 1 1
(or, as usual, any multiple of these).
Show that these three eigenvectors X, Y, Z are mutually orthogonal.
Your solution
Answer
1
√
X T Y = [1 0 − 1] − 2 = [1 − 1] = 0
1
√ √1
Y T Z = [1 − 2 1] 2 = [1 − 2 + 1] = 0
1
√ 1
Z T X = [1 2 1] 0 = [1 − 1] = 0
−1
verifying the mutual orthogonality of these three eigenvectors.
HELM (2008): 39
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
General theory
The following proof that eigenvectors corresponding to distinct eigenvalues of a symmetric matrix
are orthogonal is straightforward and you are encouraged to follow it through.
Let A be a symmetric n × n matrix and let λ1 , λ2 be two distinct eigenvalues of A i.e. λ1 6= λ2
with associated eigenvectors X, Y respectively. We have seen that λ1 and λ2 must be real since A
is symmetric. Then
AX = λ1 X AY = λ2 Y (1)
Transposing the first of there results gives
X T AT = λ 1 X T (2)
(Remember that for any two matrices the transpose of a product is the product of the transposes in
reverse order.)
We now multiply both sides of (2) on the right by Y (as well as putting AT = A, since A is
symmetric) to give:
X T AY = λ1 X T Y (3)
But, using the second eigenvalue equation of (1), equation (3) becomes
X T λ2 Y = λ1 X T Y
or, since λ2 is just a number,
λ2 X T Y = λ1 X T Y
Taking all terms to the same side and factorising gives
(λ2 − λ1 )X T Y = 0
from which, since by assumption λ1 6= λ2 , we obtain the result
XT Y = 0
and the orthogonality has been proved.
Key Point 8
The eigenvectors associated with distinct eigenvalues of a
symmetric matrix are mutually orthogonal.
The reader familiar with the algebra of vectors will recall that for two vectors whose Cartesian forms
are
a = ax i + ay j + az k b = bx i + by j + bz k
the scalar (or dot) product is
40 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
a · b = ax bx + ay by + az bz .
Furthermore, if a and b are mutually perpendicular then a·b = 0. (The word ‘orthogonal’ is sometimes
used instead of perpendicular in the case.) Our result, that two column vectors are orthogonal if
X T Y = 0, may thus be considered as a generalisation of the 3-dimensional result a · b = 0.
cos2 φ + sin2 φ
0 1 0
= = =I
0 sin2 φ + cos2 φ 0 1
It is clear that AT A = I also, so A is indeed orthogonal.
It can be shown, but we omit the details, that any 2 × 2 matrix which is orthogonal can be written
in one of the two forms.
cos φ sin φ cos φ − sin φ
or
− sin φ cos φ sin φ cos φ
If we look closely at either of these matrices we can see that
1. The two columns are mutually orthogonal e.g. for the first matrix we have
sin φ
(cos φ − sin φ) = cos φ sin φ − sin φ cos φ = 0
cos φ
p
2. Each column has magnitude 1 (because cos2 φ + sin2 φ = 1)
Although we shall not prove it, these results are necessary and sufficient for any order square matrix
to be orthogonal.
HELM (2008): 41
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
Key Point 9
A square matrix A is said to be orthogonal if its inverse (if it exists) is equal to its transpose:
A−1 = AT or, equivalently, AAT = AT A = I.
A square matrix is orthogonal if and only if its columns are mutually orthogonal and each column
has unit magnitude.
Task
For each of the following matrices verify that the two properties above are satisfied.
Then check in both cases that AAT = AT A = I i.e. that AT = A−1 .
√ 1 1
3 1 √ 0 −√
2 −2 2 2
(a) A = (b) A = 0 1 0
√
1 3
1 1
−√ 0 √
2 2 2 2
Your solution
Answer
1
"√ " √ √ #
1 −
#
3 3 3
(a) Since √23 = − + = 0 the columns are orthogonal.
2 2 4 4
2
√ √ #T r
" #T r "
3 1 3 1 −1
3 1 3
Since = + = 1 and = + =1
2 2 4 4 2 2 4 4
each column has unit magnitude.
T T 1 0
Straightforward multiplication shows AA = A A = = I.
0 1
(b) Proceed as in (a).
42 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
Key Point 10
Any symmetric matrix A can be diagonalized using an orthogonal modal matrix P via the transfor-
mation
λ1 0 . . . 0
0 λ2 . . . 0
P T AP = D =
.. ...
.
0 λn
It follows that any n × n symmetric matrix must possess n mutually orthogonal eigenvectors even
if some of the eigenvalues are repeated.
It should be clear to the reader that Key Point 10 is a very powerful result for any applications that
involve diagonalization of a symmetric matrix. Further, if we do need to find the inverse of P , then
this is a trivial process since P −1 = P T (Key Point 9).
Task
The symmetric matrix
√
1 0 2
A = √0 2 0
2 0 0
has eigenvalues 2, 2, −1 (i.e. eigenvalue 2 is repeated with multiplicity 2.)
Associated with the non-repeated eigenvalue −1 is an eigenvector:
1
X= √ 0 (or any multiple)
− 2
Your solution
HELM (2008): 43
Section 22.3: Repeated Eigenvalues and Symmetric Matrices
Answer q √ √
(a) Normalizing X which has magnitude 12 + (− 2)2 = 3 gives
√
1/ 3
√ 1
1/ 3 0
√
=
0
− 2
p
− 2/3
Your solution
Answer
(b) The eigenvectors associated with λ = 2 satisfy AY = 2Y
√
−1 0 2 x 0
which gives √0 0 0 y = 0
2 0 −2 z 0
The first and third equations give
√
−x + 2z = 0
√ √
2x − 2z = 0 i.e. x = 2z
The equations give us no information about y so its value is arbitrary.
√
2β
Thus Y has the form Y = α where both α and β are arbitrary.
β
A certain amount of care is now required in the choice of α and β if we are to find an orthogonal
modal matrix to diagonalize A.
For any choice
√
√ 2β √ √
X T Y = (1 0 − 2) α = 2β − 2β = 0.
β
So X and Y are orthogonal. (The normalization of X does not affect this.)
44 HELM (2008):
Workbook 22: Eigenvalues and Eigenvectors
®
√
2β
However, we also need two orthogonal eigenvectors of the form α . Two such are
β
√
0 2
Y (1) = 1 ( choosing β = 0, α = 1) and Y (2) = 0 ( choosing α = 0, β = 1)
0 1
p
0 2/3
After normalization, these become Y (1) Y (2) = 0√
= 1
0 1/ 3
√ p
1/ 3 0 2/3
h . . i
Hence the matrix P = X .. Y (1) .. Y (2) = p0 1 0√
− 2/3 0 1/ 3
is orthogonal and diagonalizes A:
−1 0 0
P T AP = 0 2 0
0 0 2
Hermitian matrices
In some applications, of which quantum mechanics is one, matrices with complex elements arise.
T
If A is such a matrix then the matrix A is the conjugate transpose of A, i.e. the complex
conjugate of each element of A is taken as well as A being transposed. Thus if
2+i 2 T 2 − i −3i
A= then A =
3i 5 − 2i 2 5 + 2i
An Hermitian matrix is one satisfying
T
A =A
The matrix A above is clearly non-Hermitian. Indeed the most obvious features of an Hermitian
matrix is that its diagonal elements must be real. (Can you see why?) Thus
6 4+i
A=
4 − i −2
is Hermitian.
A 3 × 3 example of an Hermitian matrix is
1 i 5 − 2i
A= −i 3 0
5 + 2i 0 2
An Hermitian matrix is in fact a generalization of a symmetric matrix. The key property of an
Hermitian matrix is the same as that of a real symmetric matrix – i.e. the eigenvalues are always
real.
HELM (2008): 45
Section 22.3: Repeated Eigenvalues and Symmetric Matrices