Chapter 2
Chapter 2
Contents
Introduction 3
2 Determinants 9
2.1 Permutations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Determinant of a Square Matrix . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Cofactor Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 Properties of Determinants . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 Computing Determinants Using Elementary Operations . . . . . . . . . . 13
3 Inverse Matrices 13
3.1 Definition and Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Conditions for Invertibility . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Methods for Finding Inverse Matrices . . . . . . . . . . . . . . . . . . . . 15
3.3.1 Method 1: Using Cofactors . . . . . . . . . . . . . . . . . . . . . . 15
3.3.2 Method 2: Solving Matrix Equations . . . . . . . . . . . . . . . . 15
3.3.3 Method 3: Elementary Row Operations . . . . . . . . . . . . . . . 16
4 Rank of a Matrix 17
4.1 Definition of Rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1.1 Properties of Rank . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2 Row Echelon Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3 Computing Rank Using Elementary Operations . . . . . . . . . . . . . . 18
2
MI1141 - Linear Algebra Chapter 2
Introduction
This chapter introduces matrices, determinants, and systems of linear equations. These
provide effective tools that help us understand the content of subsequent chapters.
Chapter Contents:
1. Matrices and Operations
2. Determinants
3. Inverse Matrices
4. Rank of a Matrix
5. Systems of Linear Equations
Convention: Throughout this chapter, K denotes either the set of real numbers R or
the set of complex numbers C.
Learning Objectives
• Knowledge: Understand the concept of matrices, special types of matrices, matrix
equality, matrix operations, and elementary row operations on matrices.
• Skills: Practice matrix operations and elementary transformations proficiently.
3
MI1141 - Linear Algebra Chapter 2
• A matrix A = [aij ]m×n with aij = 0 for all i, j is called the zero matrix, denoted
θ.
• If the number of rows equals the number of columns (m = n), then A is called a
square matrix of order n.
Example 1.2.
1
A = 4 is a column matrix, B = 1 2 3 4 is a row matrix
7
1 2 3
C = 4 5 6 is a square matrix of order 3
7 8 9
Note
Notation:
Definition 1.2 (Diagonal Elements). The elements a11 , a22 , . . . , ann are called diagonal
elements; they form the main diagonal of A.
Definition 1.3 (Special Square Matrices). 1. If aij = 0 for all i > j, then A is called
an upper triangular matrix.
4
MI1141 - Linear Algebra Chapter 2
1 2 3
Example 1.3. a) A = 4 5 6 is a square matrix of order 3 with diagonal elements
7 8 9
1, 5, 9.
10 0
b) B = 4 5 0 is a lower triangular matrix.
78 9
1 0 0
c) C = 0 −5 0 is a diagonal matrix.
0 0 3
1 0 0
1 0
d) I2 = and I3 = 0 1 0 are identity matrices of orders 2 and 3.
0 1
0 0 1
Thus, to add two matrices of the same size, we add their corresponding elements.
Example 1.6.
1 2 3 2 −1 0 3 1 3
+ =
4 5 6 −3 1 4 1 6 10
Definition 1.6 (Negative and Subtraction). 1. The negative of matrix A = [aij ]m×n ,
denoted −A, is defined by −A = [−aij ]m×n .
2. The difference of two matrices A and B of the same size, denoted A−B, is defined
by:
A − B = A + (−B)
5
MI1141 - Linear Algebra Chapter 2
Proposition 1.1 (Properties of Matrix Addition). For all matrices A, B, C of the same
size:
1. Associativity: (A + B) + C = A + (B + C)
2. Commutativity: A + B = B + A
3. Zero element: A + θ = θ + A = A, where θ is the zero matrix
4. Inverse element: A + (−A) = (−A) + A = θ
6
MI1141 - Linear Algebra Chapter 2
Note
The product AB is only defined when the number of columns of A equals the
number of rows of B. Moreover, matrix AB has the same number of rows as A and
the same number of columns as B.
0 2
1 2 3
Example 1.9. Given A = and B = −2 1. Compute C = AB.
4 5 6
4 3
Solution:
0 2
1 2 3 8 13
AB = −2 1 =
4 5 6 14 31
4 3
Note
Important Notes
Then:
1 2 3
i) AB = [3] and BA = −2 −4 −6, so AB ̸= BA
2 4 6
iii) DD = θ but D ̸= θ
7
MI1141 - Linear Algebra Chapter 2
Note
Matrix Powers and Polynomials
2. (A + B)t = At + B t
3. (kA)t = kAt
4. (AB)t = B t At
8
MI1141 - Linear Algebra Chapter 2
Example 1.14.
4 5 6 1 2 3 1 2 3
h1 ↔h2 2h →h3
1 2 3 −−−−→ 4 5 6 −−3−−→ 4 5 6
7 8 9 7 8 9 14 16 18
1 2 3
−−−−−−−−−→ 0 −3 −6
h2 +(−4)h1 →h2
h3 +(−14)h1 →h3 0 −12 −24
2 Determinants
Learning Objectives
• Knowledge: Understand the concept of permutations, determinants of square
matrices, and properties of determinants.
• Skills: Master computing determinants using definition, cofactor expansion, and
elementary operations.
9
MI1141 - Linear Algebra Chapter 2
2.1 Permutations
Definition 2.1 (Permutation). A permutation of degree n is a bijection f : {1, 2, . . . , n} →
{1, 2, . . . , n}.
Let Sn denote the set of all permutations of degree n.
1 2 ··· n
A permutation of degree n is often written as f = , where
f (1) f (2) · · · f (n)
(f (1), f (2), . . . , f (n)) is a permutation of (1, 2, . . . , n). The number of permutations of
degree n is |Sn | = n!.
1. A pair (f (i), f (j)) with 1 ≤ i < j ≤ n is called an inversion if f (i) > f (j).
2. If the number of inversions of f is even (or odd), then f is called an even permu-
tation (or odd permutation).
Note
The sum has n! terms; in each term, each row contributes one element, and each
column contributes one element.
10
MI1141 - Linear Algebra Chapter 2
a11 a12
= a11 a22 − a12 a21
a21 a22
1 3
For instance: = 1 · 5 − (−2) · 3 = 11
−2 5
Example 2.3 (Determinant of Order 3).
−1 0 2 0
A11 = (−1)1+1 = 3, A12 = (−1)1+2 =6
5 −3 4 −3
2 −1
A13 = (−1)1+3 = 14, ...
4 5
Theorem 2.1 (Cofactor Expansion). Given a square matrix A = [aij ] of order n with
cofactors Aij , 1 ≤ i, j ≤ n:
1. For each fixed i (1 ≤ i ≤ n), expansion along row i:
11
MI1141 - Linear Algebra Chapter 2
Remark 2.1. These formulas allow computing a determinant of order n through de-
terminants of order (n − 1). In practice, choose a row or column with many zeros for
expansion.
1 2 3
Example 2.6. Compute det(A) for A = 2 −1 0 by expanding along row 2 (which
4 5 −3
has a zero):
Corollary 2.2.1. Any property of determinants true for rows is also true for columns.
Property 2. If two rows (or columns) are interchanged, the determinant changes
sign.
Corollary 2.2.2. If a matrix has two identical rows (or columns), its determinant is
zero.
Property 3. If all elements of a row (or column) are multiplied by scalar k, the
determinant is multiplied by k.
Corollary 2.2.3. 1. Common factors from a row (or column) can be factored out.
12
MI1141 - Linear Algebra Chapter 2
Note
Combining Expansion and Elementary Operations When computing determinants,
combining elementary operations with cofactor expansion can reduce complexity.
For instance, use elementary operations to create zeros, then expand along that
row or column.
3 Inverse Matrices
Learning Objectives
• Knowledge: Understand invertible matrices, conditions for invertibility, properties
of inverse matrices, and methods for finding inverses.
13
MI1141 - Linear Algebra Chapter 2
AB = BA = I
Note
To prove matrix X is invertible with inverse Y , we need only show XY = I and
Y X = I.
C t A = AC t = det(A) · I
Corollary 3.1.1. Matrix A ∈ Mn (K) is invertible if and only if there exists matrix B
such that AB = I or BA = I.
14
MI1141 - Linear Algebra Chapter 2
λ 1 1
Example 3.3. Find all values of parameter λ for which A = 1 λ 1 is invertible.
1 1 λ
Solution: A is invertible ⇔ det(A) ̸= 0. Computing:
det(A) = (λ − 1)2 (λ + 2)
Note
a b
Special Case: 2 × 2 Matrices For A = with ad − bc ̸= 0:
c d
−1 1 d −b
A =
ad − bc −c a
15
MI1141 - Linear Algebra Chapter 2
1 2
Example 3.5. Find the inverse of A = .
3 4
−1 a b
Solution: det(A) = −2 ̸= 0, so A is invertible. Let A = .
c d
Then:
1 2 a b 1 0
=
3 4 c d 0 1
This gives systems:
( (
a + 2c = 1 b + 2d = 0
and
3a + 4c = 0 3b + 4d = 1
1. Write the identity matrix of order n after matrix A to get an n × 2n matrix: [A|I].
2. Use elementary row operations to transform [A|I] into [I|B] (matrix A becomes
identity I, and I becomes matrix B). Then B = A−1 :
row operations
[A|I] −−−−−−−−→ [I|B] ⇒ B = A−1
1 1 −1
Example 3.6. Find the inverse of A = 1 3 1 .
2 2 −1
Solution:
1 1 −1 1 0 0
1 3 1 0 1 0
2 2 −1 0 0 1
1 1 −1 1 0 0
−−−−−−−→ 0 2 2 −1 1 0
h2 −h1 →h2
h3 −2h1 →h3 0 0 1 −2 0 1
1 0 0 − 52 32 2
continue
−−−−→ 0 1 0 − 12 12 0
0 0 1 2 −1 1
−5 3 4
1
A−1 = −1 1 0
2
4 −2 2
16
MI1141 - Linear Algebra Chapter 2
4 Rank of a Matrix
Learning Objectives
• Knowledge: Understand the concept of matrix rank and its properties.
• Skills: Master computing matrix rank using elementary operations.
Definition 4.1 (Submatrix and Minor). Let k be a positive integer with k ≤ min{m, n}.
A square matrix of order k obtained from A by deleting (m − k) rows and (n − k) columns
is called a submatrix of order k of A. Its determinant is called a minor of order k
of A.
Remark 4.1. A submatrix of order k is formed by elements at the intersection of k rows
k
and k columns of A. Therefore, A has Cm · Cnk submatrices of order k (not necessarily
distinct).
1 2 3 4
Example 4.1. Matrix A = 5 6 7 8 has size 3 × 4.
6 8 10 12
A has C33 · C43 = 4 minors of order 3.
A has C32 · C42 = 18 minors of order 2.
Definition 4.2 (Rank). The rank of matrix A, denoted rank(A) or r(A), is the highest
order of nonzero minors of A.
Convention: The rank of the zero matrix is 0.
Thus, rank(A) = r if and only if A has a nonzero minor of order r, and all minors of
order greater than r equal zero.
Example 4.2. For the matrix in the previous example, all minors of order 3 equal 0,
so rank(A) < 3. However, one minor of order 2 equals 4 (nonzero), so rank(A) ≥ 2.
Therefore rank(A) = 2.
17
MI1141 - Linear Algebra Chapter 2
Definition 4.3 (Row Echelon Form). A matrix is in row echelon form if it satisfies:
1. All zero rows (if any) are below all nonzero rows.
2. For any two nonzero rows, the leading nonzero element (pivot) of the upper row is
to the left of the leading element of the lower row.
Example 4.3.
0 1 2 −3 4
0 0 0 3 5
A=0 0 0 0 4 is in row echelon form
0 0 0 0 0
0 0 0 0 0
0 1 2 −3 4
0 0 0 0 4
0 0
B= 0 3 5 is NOT in row echelon form
0 0 0 0 0
0 0 0 0 0
Proposition 4.1. The rank of a matrix in row echelon form equals the number of its
nonzero rows.
0 1 2 −3 4
0 0 0 3 5
Example 4.4. The rank of A = 0 0 0 0 4 is 3.
0 0 0 0 0
0 0 0 0 0
Proposition 4.2. The rank of a matrix is unchanged when elementary operations are
applied.
1 1 1 0 2
18
MI1141 - Linear Algebra Chapter 2
Solution:
1 2 3 1 0
h1 ↔h2 2 3 4 −1 2
A −−−−→ 3
5 7 0 2
1 1 1 0 2
1 2 3 1 0
0 −1 −2 −3 2
−−−−−−−→
h2 −2h1 →h2 0 −1 −2 −3 2
h3 −3h1 →h3
h4 −h1 →h4 0 −1 −2 −1 2
1 2 3 1 0
0 −1 −2 −3 2
−−−−−−→
h3 −h2 →h3 0 0 0 0 0
h4 −h2 →h4
0 0 0 2 0
1 2 3 1 0
h ↔h4 0 −1 −2 −3 2
−−3−−→ 0 0 0 2 0
0 0 0 0 0
Therefore, rank(A) = 3.
19
MI1141 - Linear Algebra Chapter 2
AX = B
Remark 5.1. The elements of row i of the augmented matrix Ā are the coefficients of
equation i of system AX = B, and vice versa. Thus, fixing variable names, there is a
one-to-one correspondence between augmented matrices and linear systems.
det(Aj )
xj = , j = 1, 2, . . . , n
det(A)
where Aj is the matrix obtained from A by replacing column j with the constant column
B.
20
MI1141 - Linear Algebra Chapter 2
rank(A) = rank(Ā)
21
MI1141 - Linear Algebra Chapter 2
Solution:
1 2 3 −1 3 1 2 3 −1 3
operations
2 3 −1 0 −1 −−−−−→ 0 −1 −7 2 −7
3 5 2 −1 4 0 0 0 0 2
Since rank(A) = 2 ̸= 3 = rank(Ā), the system has no solution.
22