Professional Documents
Culture Documents
Chapter 3. Determinants and Diagonalization
Chapter 3. Determinants and Diagonalization
ThienNV
March 4, 2021
Determinant
Example
det(a) = a
a b
det = ad − bc
c d
a11 a12 a13
det a21 a22 a23
a31 a32 a33
1+1 a22 a23 1+2 a21 a23
=a11 (−1) a32 a33 + a12 (−1) a31 a33
a a
+ a13 (−1)1+3 21 22
a31 a32
Sarrus rule
Example
We have
1 −1 2 1 −1 2 1 −1
det 3 0 2 = 3 0 2 3 0
−2 1 1 −2 1 −1 −2 1
=1.0.(−1) + (−1).2.(−2) + 2.3.1 − 2.0.(−2) − 1.2.1 − (−1).3.(−1) = 5.
Example
4 −5 7
Let A = 3 6 −2. Find (2, 3)-cofactor of A.
1 8 −9
Answer: (2, 3)-cofactor of A is
2+3 4 −5
(−1) 1 8 = −[4 ∗ 8 − 1 ∗ (−5)] = −37.
Interchange two rows (or column), the determinant change the sign.
Multiply a constant c to a row (or column), the determinant is
multiple by the constant.
Add a multiple of a row (or column) to a different row (or column),
the determinant does not change.
Example
1 2 3 3 4 5 3 4 5 3 4 5
↔R3 1/2R2 −R2 +R3
2 4 6 R1 =
− 2 4 6 = −2 1 2 3 = −2 1 2 3 = 0
3 4 5 1 2 3 1 2 3 0 0 0
Example
a b c p+x q+y r + z
Let p q r = 5. Find 3a − 2x 3b − 2y 3c − 2z .
x y z 3x 3y 3z
Answer: We have
p+x q+y r + z p+x q+y r + z
1/3R3
3a − 2x 3b − 2y 3c − 2z = 3 3a − 2x 3b − 2y 3c − 2z
3x 3y 3z x y z
p q r
1/3R2 p q r
−R3 +R1 ,2R3 +R2
= 3 3a 3b 3c = 9 a b c
x y z x y z
a b c
R1 ↔R2
= −9 p q r = −9 ∗ 5 = −45.
x y z
Example
a b c
x 0 y z
p 0 q r
Let p q r = 10. Find
.
x y z a 0 b c
2 3 4 5
Answer: Expanse the determinant along the second column,
x 0 y z
x y z a b c
p 0 q r 4+2 R1 ↔R3
a 0 b c = 3 ∗ (−1) p q r = −3 p q r = −30
a b c x y z
2 3 4 5
Properties of Determinant
Example
2 4 −8 9
3a 3b a b 0 −1 5 6
= 9
3c 3d
,
c d 0 0 = 2 ∗ (−1) ∗ 4 ∗ (−5) = 40
4 1
0 0 0 −5
Example
Let A and B be 4 × 4 matrices with det(A) = 8 and det(B) = 6. Find
det(3B −2 A2 B T ).
Answer: We have
Quiz
Example
Let A be a 4 × 4 matrix, det(A) = 2.
B is the matrix obtained from A by interchanging R3 and R2 .
C is the matrix obtained from B by adding 12 times R3 to R2 .
D is the matrix obtained from C by multiplying R3 by 5.
Find det(BCD).
Answer: We have
det(B) = −det(A) = −2
det(C ) = det(B) = −2
det(D) = 5det(C ) = −10.
Hence
Theorem
Matrix A is invertible if and only if det(A) 6= 0, and
1
A−1 = adj(A)
det(A)
Example
a b
Let A = . Then A is invertible if det(A) = ad − bc 6= 0 and
c d
−1 1 d −b
A =
ad − bc −c a
For example,
−1
3 1 1 4 −1 0.4 −0.1
= =
2 4 10 −2 3 −0.2 0.3
Properties
det(A−1 ) = 1/det(A).
(AB)−1 = B −1 A−1 , for any invertible matrices A, B.
I −1 = I .
k −1 k
A = A−1 .
(aA)−1 = 1/aA−1 .
−1 T
AT = A−1 .
det(adj(A)) = [det(A)]n−1 , for any invertible n × n matrix A.
Example
Find the (1, 3)- entry of A−1 provided that
2 −3 1
A = 0 3 0
5 −2 4
Example
1 0 2
Let A = 0 3 0 . Find the values of x so that A is invertible.
−5 0 x
Answer: We have
2+2 1 2
det(A) = 3 ∗ (−1) −5 x = 3(x + 10)
Example
0 0 2
Let A = 1 3 4 . Find the (1, 2)-entry of A−1 .
−5 2 x
1+3
1 3
Answer: det(A) = 2 ∗ (−1) −5 2 = 2 ∗ 17 = 34. The (2, 1)-cofactor
of A is
2+1 0 2
c2,1 = (−1) 2 x = 4.
Crammer’s rule
Theorem
If A is an invertible n × n matrix, the solution to the system
Ax = b
Example
Find y satisfying the following system:
4x − y + 3z = 1
6x + 2y − z = 0
3x + 3y + 2z = −1
Answer: We have
4 −1 3 4 1 3
6 2 −1 = 79, 6 0 −1 = −37.
3 3 2 3 −1 2
Hence y = −37/79.
We can see
k k
λ1 0 · · · 0 λ1 0 · · · 0
0 λ2 · · · k
0 0 λ2 · · · 0
=
. . . . . . . . . . . . . . . . . .
. . . . . .
0 0 ··· λn 0 0 ··· λkn
Theorem
Suppose that A = PDP −1 with D is a diagonal matrix then
Ak = PD k P −1 .
Definition
If A is an n × n matrix, a number λ is called an eigenvalue of A if
det(λI − A) = 0
Theorem
The characteristic polynomial cA (x) of an n × n matrix A is defined by
Example
1 8
Find all eigenvalues of A = .
1 3
The characteristic
polynomial
of A is
x − 1 −8
cA (x) = = (x − 1)(x − 3) − 8 = x 2 − 4x − 5.
−1 x − 3
cA (x) = 0 ⇒ x = −1 or x = 5. Hence A has two eigenvalues −1 and 5.
Example
1 8
Find all eigenvectors of A = .
1 3
Answer: As above example, A has two eigenvalues λ1 = −1 and λ2 = 5.
x
−1-eigenvectors X = 1 is nonzero solution of the system
x2
−2 −8 x1 0 4t 4
= ⇔ x1 + 4x2 = 0 ⇒ x = =t , t 6= 0.
−1 −4 x2 0 −t −1
x1
5-eigenvectors X = is nonzero solution of the system
x2
4 −8 x1 0 2t 2
= ⇔ x1 − 2x2 = 0 ⇒ X = =t , t 6= 0.
−1 2 x2 0 t 1
Theorem
An n × n matrix A is diagonalizable if and only if it has eigenvectors
x1 , x2 , ..., xn such that the matrix P = x1 x2 · · · xn is invertible.
A = Pdiag(λ1 , λ2 , . . . , λn )P −1
Example
1 8
The matrix A = has two eigenvalues λ1 = −1 and λ2 = 5.
1 3
4
x1 = is an eigenvector corresponding to λ1 .
−1
2
x2 = is an eigenvector corresponding to λ2 .
1
Hence: −1
4 2 −1 0 4 2
A= .
−1 1 0 5 −1 1
ThienNV Chapter 3. Determinants and Diagonalization March 4, 2021 26 / 30
Diagonalization and Eigenvectors
Example
Let A be a 2 × 2 matrix with eigenvalues 2 and 3, and with corresponding
eigenvectors [2 1]T and [5 3]T . Find the (2, 1)-entry of A.
Answer: We have
−1
2 5 2 0 2 5 4 15 3 −5
A= =
1 3 0 3 1 3 2 9 −1 2
Example
1 1 −1
Let A = 0 0 −1 . Given that λ = −1 is an eigenvalue of A. Which
0 2 −3
of the following are basic eigenvectors corresponding to λ?
Answer:
−2 −1 1 x1 0
(λI3 − A)x = 0 ⇔ 0 −1 1 x2 = 0 (?)
0 −2 2 x3 0
−2x1 − x2 + x3 = 0
x1 = 0
The system (?) is equivalent to −x2 + x3 = 0 ⇔ x2 = t .
−2x2 + 2x3 = 0 x3 = t
0
Hence 1 is basic eigenvector corresponding to λ = −1.
1
ThienNV Chapter 3. Determinants and Diagonalization March 4, 2021 28 / 30
Diagonalization and Eigenvectors
Exercises