Chapter-2
Chapter-2
In all this chapter, K denotes a commutative field and E is a K-vector space of finite
dimension n ∈ N∗ .
PA (X) = |XIn − A|
Example 2.1.1
1) We have:
PIn (X) = |XIn − In | = |(X − 1)In | = (X − 1)n .
a b
2) If A = ∈ M2 (R), then
c d
X −a −b
PA (X) = |XI2 − A| =
−c X −d
= (X − a)(X − d) − bc
= X 2 − (a + d)X + (ad − bc)
= X 2 − tr(A)X + |A|.
22
Chapter 2 Reduction of endomorphisms and matrices
4 −1 −1 0
0 3 −1 0
0 −1 3 0 . Then
Example 2.1.2 Let A =
2 −1 −1 2
X −4 1 1 0
0 X −3 1 0
PA (X) = |XI4 − A| =
0 1 X −3 0
−2 1 1 X −2
X −4 1 1
= (X − 2) 0 X −3 1
0 1 X −3
X −3 1
= (X − 2)(X − 4)
1 X −3
Proposition 2.1.2 Two similar matrices have the same characteristic polynomial.
Proof Let A, B ∈ Mn (K) be two similar matrices, then there exists P ∈ Mn (K) invertible
such that B = P −1 AP . So
XIn − B = P −1 (XIn )P − P −1 AP = P −1 (XIn − A)P.
Therefore the two matrices XIn − B and XIn − A are similar, so they have the same
determinant by the proposition 1.4.2. Hence
PB (X) = |XIn − B| = |XIn − A| = PA (X). 2
X −1 X −2 0
PM (X) = = (X 2 − 3)(X − 2)(X − 4).
−3 X 5 X −4
2) Let b be a basis of E over K and A = M (f, b). Let λ ∈ sp(f ). By the proposi-
tion 1.3.5,
M f − λ idE , b = M (f, b) − λM (idE , b) = A − λIn .
Corollary 2.2.1 Let f be an endomorphism of E. The eigenvalues of f are the roots of its
characteristic polynomial Pf (X) in K. Consequently, sp(f ) is a finite set of cardinal ≤ n.
So
Hence the eigenvalues of f are the roots of Pf (X) in K. In the other side, as Pf (X) ∈ K[X]
is a
polynomial
of degree n, then Pf (X) has at most n roots in K, and therefore
card sp(f ) ≤ n. 2
Example 2.2.2 Let f be the endomorphism of R4 defined in the example 2.1.3. Since
Pf (X) = (X − 2)2 (X − 4)2 , then
x ∈ E2 (f ) ⇔ (A − 2I4 )X = 0
2 −1 −1 0 x1
2x1 − x2 − x3 = 0
0 1 −1 0 x2
x2 − x3 = 0
⇔
0 −1 1 x3 = 0 ⇔ −x2 + x3 = 0
0
2 −1 −1 0 x4 2x1 − x2 − x3 = 0
⇔ x1 = x2 = x3
⇔ x = (x3 , x3 , x3 , x4 ) = x3 (1, 1, 1, 0) + x4 (0, 0, 0, 1)
⇔ x = x3 u1 + x4 u2 ,
E2 (f ) = vect(u1 , u2 )
x ∈ E4 (f ) ⇔ (A − 4I4 )X = 0
0 −1 −1 0 x1
−x2 − x3 = 0
0 −1 −1 0 x2
−x2 − x3 = 0
⇔
0 −1 −1 0
=0 ⇔
x3 −x2 − x3 = 0
2 −1 −1 −2 x4 2x1 − x2 − x3 − 2x4 = 0
⇔ x1 = x4 and x2 = −x3
⇔ x = (x4 , −x3 , x3 , x4 ) = x3 (0, −1, 1, 0) + x4 (1, 0, 0, 1)
⇔ x = x3 u3 + x4 u4 ,
E4 (f ) = vect(u3 , u4 )
Example 2.2.3 Let f be the endomorphism of R4 defined in the example 2.1.3. Since
Pf (X) = (X − 2)2 (X − 4)2 , then am(2) = 2 and am(4) = 2. By the example 2.2.2,
1 ≤ gm(λ) ≤ am(λ).
Eλ (A) = ker(A − λ In ).
4) The eigenvalues of A are the roots of its characteristic polynomial PA (X) in K. Con-
sequently, sp(A) is a finite set of cardinal ≤ n.
5) Two similar matrices have the same eigenvalues by using the part (4) and the fact that
they have the same characteristic polynomial (proposition 2.1.2).
2) The spectrum of A depends on the field K. Hence, if A ∈ Mn (R), then A can be also
considered as a matrix over C. For this, we distinguish two spectrums of A:
2.3 Diagonalization
Definition 2.3.1 We say that an endomorphism f of E is diagonalizable if there exists a
basis b of E over K such that M (f, b) is a diagonal matrix.
Example 2.3.1
D = diag(λ1 , . . . , λn ).
So
Pf (X) = PD (X) = (X − λ1 ) · · · (X − λn ).
Hence the terms on the main diagonal of M (f, b) are the eigenvalues of f counted with their
algebraic multiplicities. In particular,
X
n = deg Pf = am(λ).
λ∈sp(f )
then n √ √ o
sp(f ) = − 3, 3, 2, 4 ,
and therefore f has 4 pairwisely distinct eigenvalues. Hence f is diagonalizable by the
corollary 2.3.1.
0 0 0 4
Remark 2.3.2 The converse of the corollary 2.3.1 is not necessarily true. Indeed, the endo-
morphism f of the example 2.3.3 is diagonalizable, but f has only two distinct eigenvalues
(n = 4).
PA (X) = PD (X) = (X − λ1 ) · · · (X − λn ).
Hence the terms on the main diagonal of D are the eigenvalues of A counted with their
algebraic multiplicities.
Example 2.3.4
Since A and D are similar, then there exists P ∈ M3 (R) invertible such that
A = P −1 DP = P −1 (2I3 )P = 2P −1 P = 2I3 ,
Proof
N.C. Since f is diagonalizable, then there exists a basis B of E over K such that the matrix
D = M (f, B) is diagonal. As A = M (f, b), then A is similar to the diagonal matrix D
by the theorem 1.4.1. Hence A is diagonalizable by the proposition 2.3.3.
S.C. Since A is diagonalizable, then, by the proposition 2.3.3, A is similar to a diagonal matrix
D ∈ Mn (K), so there exists an invertible matrix P ∈ Mn (K) such that D = P −1 AP .
By the remark 1.2.1, there exists a basis b0 of E over K such that P is the transition matrix
from b to b0 . So
M (f, b0 ) = P −1 M (f, b)P = P −1 AP = D.
Therefore M (f, b0 ) is diagonal, and then f is diagonalizable. 2
Remark 2.3.4
1) The diagonalization of A depends on the field K. For example, if
0 1
A= ∈ M2 (K),
−1 0
then PA (X) = X 2 + 1.
• If K = R, then PA (X) does not split in R[X], and therefore A is not diagonaliz-
able (over R).
• If K = C, then PA (X) splits in C[X] and it has two distinct roots which are i and
−i. So A has two distinct eigenvalues, and as n = 2, then A is diagonalizable
(over C).
2) Diagonalize a matrix A ∈ Mn (K) returns to determine an invertible matrix
P ∈ Mn (K) and a diagonal matrix D ∈ Mn (K) such that P −1 AP = D.
Example 2.3.5 Let A be the matrix defined in the example 2.1.2. The endomorphism asso-
ciated to A is the endomorphism f of the example 2.3.3. Since f is diagonalizable, then A
is diagonalizable. Moreover, b = {u1 , u2 , u3 , u4 } is a basis of R4 over R where
u1 = (1, 1, 1, 0), u2 = (0, 0, 0, 1), u3 = (0, −1, 1, 0) and u4 = (1, 0, 0, 1).
Let
1 0 0 1
1 0 −1 0
P =
1
0 1 0
0 1 0 1
be the transition matrix from the basis C to the basis b. As A = M (f, C), then
2 0 0 0
0 2 0 0
P −1 AP = M (f, b) = 0 0 4 0 .
0 0 0 4
2.4 Trigonalization
Definition 2.4.1 We say that an endomorphism f of E is trigonalizable if there exists a
basis b of E over K such that M (f, b) is an upper triangular matrix.
Example 2.4.1
1) Every diagonalizable endomorphism is trigonalizable by the fact that every diagonal
matrix is an upper triangular matrix. The converse is not necessarily true. Indeed, let
fA be the endomorphism of R3 canonically associated to the matrix
2 −1 3
A = 0 2 5 ∈ M3 (R).
0 0 2
As
1 −3 7
M (f, C) = 0 1 −2
0 0 3
is an upper triangular matrix, then f is trigonalizable.
Consider the basis b0 = {un , . . . , u1 } of E over K obtained from the basis b by reversing
the order of its elements. For every 1 ≤ j ≤ n,
So
ann 0 0
0 .. ..
M (f, b ) = .
. 0
a1n . . . a11
is a lower triangular matrix. The converse is done in a similar way.
Pf (X) = PT (X) = (X − λ1 ) · · · (X − λn ).
Hence Pf (X) splits in K[X] and the terms of the main diagonal of T are the eigenvalues of
A counted with their algebraic multiplicities. We deduce that:
n
X n
Y
tr(f ) = tr(T ) = λi and det(f ) = |T | = λi
i=1 i=1
Remark 2.4.4
1) By taking into account the remark 2.4.1, the proposition 2.4.1 remains true if we replace
the word ”upper” by ”lower”, i.e., a matrix A ∈ Mn (K) is trigonalizable if and only
if A is similar to a lower triangular matrix. More precisely, if T ∈ Mn (K) is a lower
triangular matrix, then the matrix T 0 = P −1 T P is an upper triangular matrix, where
0 0 1
P = 0 . . . 0 ∈ Mn (K), with P −1 = P.
1 0 0
PA (X) = PT (X) = (X − λ1 ) · · · (X − λn ).
Hence the terms of the main diagonal of T are the eigenvalues of A counted with their
algebraic multiplicities. We deduce that:
n
X n
Y
tr(A) = tr(T ) = λi and |A| = |T | = λi
i=1 i=1
Proof
N.C. Since f is trigonalizable, then there exists a basis B of E over K such that the matrix
T = M (f, B) is an upper triangular matrix. As A = M (f, b), then A is similar to the upper
triangular matrix T by the theorem 1.4.1. Hence A is trigonalizable by the proposition 2.4.1.
S.C. Since A is trigonalizable, then, by the proposition 2.4.1, A is similar to an upper
triangular matrix T ∈ Mn (K), so there exists an invertible matrix P ∈ Mn (K) such that
T = P −1 AP . By the remark 1.2.1, there exists a basis b0 of E over K such that P is the
transition matrix from b to b0 . So
Remark 2.4.5
then PA (X) = X 2 + 1.
• If K = R, then PA (X) does not split in R[X], and therefore A is not trigonalizable
(over R) by the part (3).
• If K = C, then A is trigonalizable (over C) by the part (4).
where
P 0
S= ∈ Mn (K), B 0 = P −1 BQ and C 0 = Q−1 CP
0 Q
We have:
X −2 1 1
PA (X) = |XI3 − A| = −2 X −1 2 C1 ← C1 + C3
−3 1 X +2
X −1 1 1
= 0 X −1 2 R3 ← R3 − R1
X −1 1 X +2
X −1 1 1
= 0 X −1 2 = (X + 1)(X − 1)2 .
0 0 X +1
x ∈ E−1 (A) ⇔ (A + I3 )X = 0
3 −1 −1 x1 3x1 − x2 − x3 = 0
⇔ 2 2 −2 x2 = 0 ⇔ 2x1 + 2x2 − 2x3 = 0
3 −1 −1 x3 3x1 − x2 − x3 = 0
⇔ x2 = x1 and x3 = 2x1
⇔ x = (x1 , x1 , 2x1 ) = x1 (1, 1, 2)
⇔ x = x1 u1 , where u1 = (1, 1, 2).
So
E−1 (A) = vect(u1 )
and {u1 } is a basis of E−1 (A) over R. In the other side,
x ∈ E1 (A) ⇔ (A − I3 )X = 0
1 −1 −1 x1 x1 − x2 − x3 = 0
⇔ 2 0 −2 x2 = 0 ⇔ 2x1 − 2x3 = 0
3 −1 −3 x3 3x1 − x2 − 3x3 = 0
⇔ x1 = x3 and x2 = 0
⇔ x = (x3 , 0, x3 ) = x3 (1, 0, 1)
⇔ x = x3 u2 , where u2 = (1, 0, 1).
So
E1 (A) = vect(u2 )
and {u2 } is a basis of E1 (A) over R. Remark that
Hence
−1 0 2
T = M (fA , b) = 0 1 −1 .
0 0 1
0 1 1
Example 2.4.3 We will trigonalize the matrix A = −1 1 1 ∈ M3 (R). We have:
−1 1 2
X −1 −1
PA (X) = |XI3 − A| = 1 X −1 −1 C1 ← C1 + C3
1 −1 X −2
X −1 −1 −1
= 0 X −1 −1 R3 ← R3 − R1
X −1 −1 X −2
X −1 −1 −1
= 0 X −1 −1 = (X − 1)3 .
0 0 X −1
x ∈ E1 (A) ⇔ (A − I3 )X = 0
−1 1 1 x1 −x1 + x2 + x3 = 0
⇔ −1 0 1 x2 =0 ⇔ −x1 + x3 = 0
−1 1 1 x3 −x1 + x2 + x3 = 0
⇔ x1 = x3 and x2 = 0
⇔ x = (x3 , 0, x3 ) = x3 (1, 0, 1)
⇔ x = x3 u1 , where u1 = (1, 0, 1).
So
E1 (A) = vect(u1 )
and {u1 } is a basis of E1 (A) over R. Remark that
So A is not diagonalizable. Since u1 is a nonzero vector, then the family {u1 } is free over
R, we can then complete it to a basis of R3 over R. Put u2 = (0, 1, 0) and u3 = (0, 0, 1)
and
1 0 0
P = 0 1 0 .
1 0 1
As |P | = 1 6= 0, then P is invertible and therefore the family b = {u1 , u2 , u3 } is a basis
of R3 over R, and P is the transition matrix from the canonical basis C = {e1 , e2 , e3 } to
the basis b. As P −1 is the transition matrix from b to C, then
1 0 0 e1 = u1 − u3
P −1 = 0 1 0 since e2 = u2
−1 0 1 e3 = u3
Remark 2.4.6
1) In the example 2.4.3, the choice of u2 and u3 can sometimes make the calculation longer
and more difficult. For example, we can take u2 = (1, 1, 0) and u3 = (1, 1, 1) and
1 1 1
P = 0 1 1 .
1 0 1
So, by matrix calculations, we obtain the following matrix (which is not upper triangu-
lar!):
1 1 1
M = P −1 AP = 0 1 0 .
0 −1 1
We write M in the form
I1 B 1 0
M = , where B = 1 1 , C = 0 and D= .
C D −1 1
then, put:
0 −1 1 −1
D =Q DQ = .
0 1
Let
1 0 0
I1 0
S= = 0 0 1
0 Q
0 1 0
By lemma 2.4.1, put:
I1 B 0
−1
T =S MS = ,
C 0 D0
where
0 1
0
I1−1 BQ and C 0 = Q−1 CI1 = 0.
B = = 1 1 = 1 1
1 0
So
1 1 1
T = 0 1 −1
0 0 1
Then
then, we have to choose u2 and u3 more carefully. Indeed, let fA be the endomorphism
of R3 canonically associated to A. As A = M (fA , C), then we choose u2 and u3 in a
way that the family b = {u1 , u2 , u3 } is a basis of R3 over R and that J = M (fA , b).
So u2 and u3 must satisfy:
i.e.,
(A − I3 )u2 = u1 and (A − I3 )u3 = u2 .
⇔ x1 = x3 and x2 = 1
⇔ u2 = (x3 , 1, x3 ).
We take a value of x3 for which u1 and u2 are linearly independent over R. For
example, we take x3 = 1 and then u2 = (1, 1, 1).
• Put u3 = (x1 , x2 , x3 ). Then
−1 1 1 x1 1
(A − I3 )u3 = u2 ⇔ −1 0 1 x2 = 1
−1 1 1 x3 1
−x1 + x2 + x3 = 1
⇔ −x1 + x3 =1
−x1 + x2 + x3 = 1
⇔ x1 = x3 − 1 and x2 = 0
⇔ u3 = (x3 − 1, 0, x3 ).
2.5 Applications
2.5.1 Power of a matrix
Remark 2.5.1
λ1 0 0 0
0 λ2 0 0
1) If D = ∈ Mn (K) is a diagonal matrix, then, for any m ∈ N∗ ,
0 0 · 0
0 0 0 λn
m
λ1 0 0 0
0 λm 0 0
Dm = 2 .
0 0 · 0
0 0 0 λm n
Example 2.5.1 Let A be the matrix defined in the example 2.1.2. By the example 2.3.5,
P −1 AP = D, where
1 0 0 1 2 0 0 0
1 0 −1 0 0 2 0 0
P = 1
and D= .
0 1 0 0 0 4 0
0 1 0 1 0 0 0 4
As P −1 is the transition matrix from the basis b = {u1 , u2 , u3 , u4 } to the basis C, then
e1 = −u 2 + u4
0 1 1 0
1
e2 = 2 (u1 + u2 − u3 − u4 )
1 −2 1 1 2
P −1 = since
2 0 −1 1 0
e = 12 (u1 + u2 + u3 − u4 )
3
2 −1 −1 0
e4 = u2
For any m ∈ N∗ ,
Am = (P DP −1 )m = P D m P −1
m
1 0 0 1 2 0 0 0
1 0 −1 0 0 2m 0 0
= P −1
1 0 1 0 0 0 4 m 0
0 1 0 1 0 0 0 4m
m
4m
2 0 0 0 1 1 0
1 m 0 −4m 0
2 −2 1 1 2
= m m
2 2 0 4 0 0 −1 1 0
0 2m 0 4m 2 −1 −1 0
22m+1 2m − 4m 2m − 4m
0
1 0 2m + 4m 2m − 4m 0
=
m m m m
.
2 0 2 −4 2 +4 0
22m+1 − 2m+1 2m − 4m 2m − 4m 2m+1
Proposition 2.5.1 Every strictly upper triangular matrix, i.e., of the form:
0 a12 · · a1n
0 0 a23 · a2n
N = · · · · · ∈ Mn (K)
· · · · an−1,n
0 · · · 0
is nilpotent.
Remark 2.5.2
T = D + N,
where D ∈ Mn (K) is the diagonal matrix whose diagonal terms are those of T and N
is the remaining strictly upper triangular matrix (i.e., N = T − D). If DN = N D,
then, for any m ∈ N∗ ,
T m = (D + N )m
= D m + Cm
1
D m−1 N + · · · + Cm
m−1
DN m−1 + N m .
The fact that N is nilpotent (by the proposition 2.5.1) ensures the existence of an integer
k ∈ N∗ such that N k = 0, and therefore N i = 0 for all i ≥ k.
Am = (P T P −1 )m = P T m P −1 .
Example 2.5.3 Let A be the matrix given in the example 2.4.3. We have:
1 1 1 1 0 0 1 0 0
T = P −1 AP = 0 1 1 , P = 0 1 0 and P −1 = 0 1 0 .
0 0 1 1 0 1 −1 0 1
Since DN = N D and N 3 = 0 (by the example 2.5.2), then, for any integer m ≥ 2,
T m = D m + Cm
1
D m−1 N + Cm
2
D m−2 N 2
m(m − 1) 2
= I3 + mN + N
2
1 m m(m+1)
2
= 0 1 m .
0 0 1
So
2−m2 −m m(m+1)
2
m 2
Am = (P T P −1 )m = P T m P −1 = −m 1 m .
m2 +m+2
− m(m+1)
2
m 2
2.6 Exercises
Exercise 2.1
Let A, B ∈ Mn (K).
1) Verify that
XIn − AB A In 0 In 0 XIn A
= .
0 XIn B In B In 0 XIn − BA
Exercise 2.2
Let A ∈ Mn (K) be an invertible matrix.
3) a) Prove that
(−1)n
n 1
PA−1 (X) = X PA .
|A| X
b) Find again the spectrum of A−1 in terms of that of A (part (2)(b)).
Exercise 2.3
Let f be an endomorphism of E.
Exercise 2.6
Let A ∈ Mn (K). The following questions are independent.
1) Give an example which proves that the sum of two eigenvectors of A is not necessary
an eigenvector of A.
6) Show that two diagonalizable matrices are similar if and only if they have the same
characteristic polynomial
a b
7) Prove that, for all a, b, d ∈ R, the matrix A = is diagonalizable over R.
b d
Exercise 2.7
In each of the following cases, say if the matrix A is diagonalizable or not over K = R or C
and, in the case where it is diagonalizable, find an invertible matrix P and a diagonal matrix
D such that P −1 AP = D.
2 1 0 2 0 0 0 1 0
1) A = 0 2 0 2) A = 4 3 0 3) A = 0 0 1
0 0 2 1 −2 −1 −1 −1 −1
0 1 0 0 0
3 −1 1 −1 0 0 1 0 0
0 1 0 0
4) A = −4 2 −1 2 5) A = 0 0 0 1 0 .
0 0 0 0 1
−2 1 −1 2
1 0 0 0 0
Exercise 2.8
1 1
Let E = M2 (R) and A = . Let f be the endomorphism of E defined by:
0 −1
f (X) = AX + XA, ∀ X ∈ E.
1) Calculate Pf (X).
2) Diagonalize f .
Exercise 2.9
In each of the following cases, say if the matrix A is trigonalizable over R or not and, in the
case where it is trigonalizable, find an invertible matrix P and an upper triangular matrix T
such that P −1 AP = T .
7 3 −4 2 0 1 −2 0 0
1) A = −6 −2 5 2) A = 1 1 0 3) A = 3 1 0
4 2 −1 −1 1 3 −1 1 3
3 1 0 0 1 0 0 0
−4 −1 0 0 4 −2 −3 −3
4) A = 7
5) A = .
1 2 1 0 4 4 3
17 −6 −1 0 −2 −1 0 1
Exercise 2.10
Let
4 0 −2
A = 2 5 4 ∈ M3 (R),
4 2 m
where m is a real parameter.
1) Calculate PA (X).
Exercise 2.11
Let
−2 −1 2
A = −15 −6 11 ∈ M3 (R).
−14 −6 11
1) Calculate PA (X).
2) Determine real numbers a and b and an invertible matrix P ∈ M3 (R) such that
1 a 0
P −1 AP = 0 1 b .
0 0 1