2-Matrices and Determinants
2-Matrices and Determinants
2-Matrices and Determinants
4]
In studying linear systems we introduced the idea of a matrix. Next we
see that matrices are not only useful tools for solving systems of
equations but that they have their own algebraic structure and have
many other interesting properties.
Much of the material will have been seen already in your previous
studies.
2.1 Some notation
2.2 Matrix operations
2.3 Matrix inverses
2.4 Rank of a matrix
2.5 Solutions of non-homogeneous linear equations
2.6 Determinants
33
A11
A21
A=
...
Am1
A12
A22
..
.
...
...
..
.
A1n
A2n
..
.
Am2
. . . Amn
or
A = [Aij ]
1 2
3
e 27.1
has size 2 3
34
35
36
Example
Let
2
0 3
A=
,
1 1
3
B=
1 1 1
0
1 2
and
C=
1 1
2 0
37
(commutativity)
(associativity)
3. A A = 0
4. A + 0 = A
38
n
X
Aik Bkj
k=1
39
Example
1 1
4 0
Let A = 3
0 and B =
7 1
0
1
Calculate AB and BA (if they exist).
40
Example
Let A =
1 0
2 3
and B =
4 3
2 1
41
(left distributivity)
2. (A + B)C = AC + BC
3. A(BC ) = (AB)C
(right distributivity)
(associativity)
4. A(B) = (AB)
5. AIn = Im A = A (where A has size m n)
6. A0 = 0 and 0A = 0
Matrix transpose
1 2 3
4 5 6
. Then AT =
43
T
=A
2. (A + B)T = AT + B T
3.
(A)T
4.
(AB)T
(whenever A + B is defined)
AT
(where is a scalar)
B T AT
(whenever AB is defined)
44
1
1
1 1
Let A =
and B =
1 1
1
1
Then AB = 0, but A =
6 0 and B 6= 0.
What is going on here? The point is that the matrices A and B in the
above example do not have inverses.
45
I 1 = I ,
0 has no inverse
46
Inverse of a 2 2 matrix
In general, for a 2 2 matrix A=
a b
c d
A1
2 1
1
1
1
adbc
d b
c a
47
Example
1
2 1
Find the inverse of A = 1 1 1
0
1 3
49
A1
2. (AB)1 = B 1 A1
n
3. (An )1 = A1
1
T
= A1 .
4. AT
(for all n N)
Exercise
Prove these!
50
1 0 0
0 0 1
0 1 0
2 0 0
0 1 0
0 0 1
1 0 0
0 1 0
3 0 1
51
1 2 p1 1 2 p2 1 2
=B
0 1
0 2
3 4
1 0
1 0
E2 =
E1 =
3 1
0 1
2
1 0
1 2
1 0 1 2
=B
=
E2 E1 A =
0 1
3 1 3 4
0 1
2
A=
52
Theorem
If A is an invertible matrix, then a linear system of the form Ax = b has
a unique solution. It is given by x = A1 b
Proof: Ax = b = A1 Ax = A1 b = x = A1 b
54
Example
Use a matrix inverse to solve the linear system
x + 2y + z = 3
x y + z = 11
y + 3z = 21
1
2 1
(Noting that weve calculated previously 1 1 1 )
the inverse of the matrix
0
1 3
55
56
Example
Find the rank of
1
2
1 1
0
1
1
1 1 2
1
0
1
1 1 2
3
1 3 0
5
57
Theorem
The linear system Ax = b, where A is an m n matrix, has:
1. No solution if rank(A) < rank([A | b])
58
Theorem
If A is an n n matrix, the following conditions are equivalent:
1. A is invertible
2.5 Determinants
[AR 2.12.3]
a b
When we calculate the inverse of the 2 2 matrix A =
we see
c d
that the number ad bc is important:
If ad bc 6= 0 then we can find the inverse of A; if not, then A is not
invertible.
So this number plays an important role when we study A. We call it the
determinant of A and write it as det(A).
The determinant also has an important geometrical meaning: the area
of the parallelogram spanned by the vectors (a, b) and (c, d) is the
absolute value of det(A).
We now examine how the determinant extends to a function that
associates a real number to any square matrix (not just 2 2 matrices).
60
Definition (Determinant)
Let A be an n n matrix. The determinant of A, denoted det(A) or |A|,
can be defined as the signed sum of all the ways to multiply together n
entries of the matrix, with all chosen from different rows and columns.
To determine the sign of the products, imagine all but the elements in
the product in question are set to zero in the matrix. Now swap
columns until a diagonal matrix results. If the number of swaps required
is even, then the product has a + sign, while if it is odd, it is to be
given a sign.
61
Determinant of a 3 3 matrix
Suppose
Hence
product sign
a11 a22 a33 +
a11 a23 a32
a12 a21 a33
a12 a23 a31 +
a13 a21 a32 +
a13 a22 a31
det(A) = a11 a22 a33 a11 a23 a32 a12 a21 a33
+a12 a23 a31 + a13 a21 a32 a13 a22 a31
62
Definition
Let A be a square matrix. The (i , j)-cofactor of A, denoted by Cij , is
the number given by
Cij = (1)i +j det (A(i , j))
where A(i , j) is the matrix obtained from A by deleting the i th row and
jth column.
Example
1
2 1
1 2
If A = 1 1 1 , then A(2, 3) =
and C23 =
0 1
0
1 3
63
Cofactor Expansion
We can write the determinant of a 3 3 matrix, A, in terms of
cofactors.
det(A) = a11 C11 + a12 C12 + a13 C13
This is called the cofactor expansion along the first row of A.
Example
1
2 1
Calculate det 1 1 1
0
1 3
64
+
+
..
..
.
.
+ ...
+ ...
+ ...
+ ...
..
.. . .
.
.
.
Example
Calculate
1 2 0 1
3
1 2 0
1
0 1 0
2 2 1 2
67
1
det(A)
2 1 9
0
3 2
0
0 2
2
0 0
1
3 0
2 3 2
2 0 0
0 3 0
0 0 2
69
Theorem
If A is an n n triangular matrix, then
det(A) is the product of the entries on the main diagonal of A.
Idea of proof: (Repeated) cofactor expansion along the first column.
Example
2 10 92 117
0
3 28 31
Let A =
0
0 1
27
0
0
0
2
What is det(A)?
70
Theorem
Let A be a square matrix.
1. If B is obtained from A by swapping two rows (or two columns) of
A, then det(B) = det(A)
2. If B is obtained from A by multiplying a row (or column) of A by
the scalar , then det(B) = det(A)
3. If B is obtained from A by replacing a row (or column) of A by
itself plus a multiple of another row (column), then
det(B) = det(A)
Proof: The corresponding elementary matrices have determinants 1,
and 1 (respectively). Then use det(B) = det(E ) det(A).
71
Example
1
2 1
Calculate 1 1 1
0
1 3
2 4 1
and 3 6 3
2
1 4
72
Example
Calculate
1 2 0 1
3
1 2 0
1
0 1 0
2 2 1 2
73
Theorem
Let A be an n n matrix. Then,
1. det AT = det(A)
2. det(AB) = det(A) det(B)
3. det(A) = n det(A)
4. If A is a triangular matrix, then its determinant is the product of
the elements on the main diagonal
5. If A has a row (or column) of zeros, then det(A) = 0
6. If A has a row (or column) which is a scalar multiple of another
row (or column) then det(A) = 0
7. A is singular iff det(A) = 0 (and A is invertible iff det(A) 6= 0)
74