5 Matrix Algebra
5.4 The inverse matrix
Recall: Minors and Cofactors
• Minor Mij is the determinant of A with row i and column j removed
2 1 0
2 1
= 2 · 0 − 1 · 2 = −2.
e.g. A = 0 1 3 ⇒ M23 =
2 0
2 0 1
• Cofactor Aij is defined by (−1)i+j Mij ,
e.g. A23 = (−1)(2+3) M23 = (−1)5 (−2) = 2
• Determinant det A ≡ |A| is defined by
e.g. det A = (−1)2 (2)
Pn
i+j a M
ij ij
j=1 (−1)
1 3
0 3
0 1
+ (−1)3 (1)
+ (−1)4 (0)
0 1
2 1
2 0
=2+6+0
=8
1 / 10
5 Matrix Algebra
5.4 The inverse matrix
Define the Adjoint Matrix
• Define a cofactor by Aij ≡ (−1)i+j Mij ,
• Construct a cofactor matrix C by cij = Aij , i.e.
A11 A12 · · · A1n
A21 A22 · · · A2n
C= .
.
.
.
..
..
..
..
An1 An2 · · · Ann
• And transpose to get the adjoint matrix:
A11 A21 · · · An1
A12 A22 · · · An2
T
adj A = C = .
.
.
.
..
..
..
..
A1n A2n · · · Ann
• . . . why do we care?
2 / 10
5 Matrix Algebra
5.4 The inverse matrix
Using the Adjoint Matrix
• We can show that
det A
0
0
det A
A · adj(A) = adj(A) · A = .
..
..
.
0
0
···
···
..
.
0
0
..
.
· · · det A
= det A · In .
• Take determinant of each side to see
⇒ det A · adj(A) = det det A · In
⇒ det A · det adj(A) = (det A)n · det In
⇒ det adj(A) = (det A)n−1
• This is called Cauchy’s Theorem.
3 / 10
5 Matrix Algebra
5.4 The inverse matrix
The Inverse Matrix
We always assume A is a square n × n matrix.
• The inverse matrix of A is a matrix B such that
AB = In = BA.
B may not exist, but when it does it’s unique.
• We often write A−1 for the inverse (this is not the same as A1 ).
• Since A · adj A = det A · In , then
A−1 =
adj A
, if det A ̸= 0
det A
• If det A = |A| = 0, then the inverse A−1 cannot exist.
4 / 10
5 Matrix Algebra
5.4 The inverse matrix
Inversion Example
Inverse of 2 × 2 matrix
Let
A=
a b
c d
with
|A| = ad − bc ̸= 0
A−1 requires to compute adj A given by
T
A11 A12
adj A =
A21 A22
with Aij = (−1)i+j Mij
Hence,
A12 = −c ,
A11 = M11 = d ,
A21 = −b ,
A22 = a
5 / 10
5 Matrix Algebra
5.4 The inverse matrix
Inversion Example
Inverse of 2 × 2 matrix
Thus,
adj A =
d −b
−c a
⇒
1
A−1 =
ad − bc
d −b
−c a
Check
1
ad − bc
1
d −b
a b
da − bc
db − bd
·
=
−c a
c d
ad − bc −ca + ac −cb + ad
1 |A| 0
=
= I2
|A| 0 |A|
6 / 10
5 Matrix Algebra
5.5 Linear Equations
Linear equations
The set of n simultaneous (linear) equations
a11 x1 + a12 x2 + · · · + a1n xn = b1
a21 x1 + a22 x2 + · · · + a2n xn = b2
..
.
an1 x1 + an2 x2 + · · · + ann xn = bn ,
becomes:
a11 a12 . . . a1n
x1
b1
a21 a22 . . . a2n x2 b2
..
.. . .
.. .. = ..
.
. . . .
.
an1 an2 . . . ann
xn
bn
{z
} | {z } | {z }
|
A
x
or
Ax = b
b
7 / 10
5 Matrix Algebra
5.5 Linear Equations
Summary of Cases
When solving Ax = b, we have four cases:
b ̸= 0
b=0
det A ̸= 0
(a) unique, x = A−1 b
(b) trivial, x = 0
det A = 0
(c) none or infinite
(d) infinite
• for (a), recall A−1 unique so x unique.
• for (b), ∃ A−1 ⇒ x = A−1 0 = 0.1
1
Corollary: Ax = 0 has a non-trivial solution if and only if |A| = 0.
8 / 10
5 Matrix Algebra
5.5 Linear Equations
Case (c): b ̸= 0, |A| = 0
Consider the linear system
(
x + 2y = 1
1 2
x
1
⇔
=
5 10
y
2
5(x + 2y ) = 2
⇒ x + 2y =
2
5
!!
so there’s no solution since they are not compatible.
Alternatively, consider the system
(
x + 2y = 1
1 2
x
1
=
⇔
5 10
y
5
5(x + 2y ) = 5
⇒ x + 2y = 1
The second equation is not independent from the first. We have one
equation with two unknowns ⇒ infinite number of solutions.2
2
We will soon describe a math concept (rank) allowing us to distinguish between these cases.
9 / 10
5 Matrix Algebra
5.5 Linear Equations
Case (d): b = 0, |A| = 0
Given ad − bc = 0, solve
ax + by = 0
(1)
cx + dy = 0.
(2)
If d ̸= 0, we can solve (2) as y = − dc x. Substitute in (1),
ax −
ad − bc
0
bc
x=
x = x =0
d
d
d
which holds ∀ x so has an infinite number of solutions.
If d = 0, either
• c ̸= 0 and b = 0, forcing x = 0 but leaving y undetermined
• c = 0 and b ̸= 0, forcing y = − ba x, with x undetermined
Both cases lead to an infinite number of solutions.
10 / 10