Chapter 3 - Matrix Algebra
Chapter 3 - Matrix Algebra
Introduction to Matrices
3.1 Introduction
is called a matrix with rows and columns. Each real number is said to be an entry (or
element) of the matrix.
Remark: It is sometimes useful to define matrices whose entries are not necessarily real
numbers. However, we restrict to real numbers only.
Example 3.1
The following are examples of matrices:
If all the entries of a matrix are zero, then the matrix is called the zero or the null matrix. The
subscript of the entry designates the row in which the entry appears and the subscript
designates the column in which the entry appears. The double subscript is called the
address of the entry. The size of a matrix in which there are rows and columns of entries
is said to be by or , and the number of rows is always stated first.
Definition: A matrix that consists of a single row is called a row vector and an
matrix is called a column vector.
Definition: A matrix is said to be a square matrix of size if it has precisely rows and
columns. The main diagonal of a square matrix consists of the entries where
.
Frequently an matrix A is expressed as or simply as if the
size of the matrix is known or is immaterial.
Example 3.2
the main diagonal. The entry is 1 ( row, column) and the entry is 8.
can be written as .
1
Definition: If some rows or columns (or both) of the matrix A are deleted, then the
remaining array is called a sub-matrix of A. It is customary to treat A as a sub-matrix of
itself.
The matrix yields the sub-matrix when the third column is deleted,
when the second column is deleted [6] when the first row, first column and third
Definition: Two matrices of the same size are equal if for all
and . Thus equality of two matrices can be stated only for matrices of same order.
Example 3.3
Consider the following matrices.
(i)
(ii) only if .
When two matrices are the same size, they can always be added together and we say that the
two matrices are conformable for addition.
Example 3.4
Consider the sum . Can we say that this sum is equal to ? The answer is
YES.
Definition: Given a matrix and a real number , then
.
The constant is called a scalar. Thus, a matrix is multiplied by a scalar when we multiply
every entry by that scalar. Multiplying a matrix by a scalar is called scalar multiplication.
and .
Solution 3.6
In I(i) we have to show that is a matrix.
which is a matrix.
.
I (iii)
We have . So
Hence .
I(iv) .
I(v)
II(ii) .
3
.
Hence .
II(iii) .
Hence .
II (iv)
. So .
So .
II(v) Trivial
Example 3.7
Given find if .
Solution 3.7
Therefore,
Suppose that a country’s sales manager for a certain make of cars (e.g. Peugeot) wishes to
keep a day-to-day inventory of the colours and models he has on hand. He requires that each
retailer (e.g. Tau Motors) should keep and report the inventory matrix of the following form:
4
Let be a row matrix and a column matrix. The product is a matrix
given by
Observe that the resulting matrix is of size and is simply the dot product of the vectors
represented by and .
Example 3.8
Find if and .
Solution 3.8
Note that this idea may be extended to more general matrices. However, we may restrict that
in order for the product to be defined the number of columns of must equal the
number of rows of . Thus, if is a matrix and is a matrix, then the product
is defined and it will be of order .
Example 3.9
Find if .
Solution 3.9
Here, , and .
Thus, in order to find the product of the two matrices and , the number of columns
of must equal the number of rows of . When this is so, we say that is conformable
for multiplication to B (or A and B are conformable for multiplication).
.
This example shows that even if both and are of the same order, it is not necessary that
.
5
In the product we say that has been pre-multiplied by and in the product we
say that has been post-multiplied by .
2. and .
Here, is not defined as the number of columns of (= 1) is not equal to number of rows
of (= 2).
Diagonal Matrix
A square matrix in which every entry off diagonal elements are zero is called a diagonal
matrix. The matrices
Result:
The square of a diagonal matrix is nothing but the the matrix with diagonal elements squared.
Example:
Let . Then .
Identity Matrix
An diagonal matrix whose entries on the main diagonal are 1’s is known as an identity
matrix. The following matrices are identity matrices.
and .
An identity matrix will be denoted by . The identity matrix, has the special
property that for any matrix, ,
Example 3.10
Then
6
and =
Therefore,
Example 3.11
Multiply the following matrices, if possible:
Solution 3.11
(a) (b)
(e)
Example 3.12
Let , and
(a) (b)
(c) (d)
Definition:
7
Let be a matrix. The transpose of is formed by interchanging the rows and
columns of . That is, the row of becomes the column of the transpose of .
Similarly, the column of will be the row of the transpose of . The transpose of
is denoted by or , and it will be of order .
Example 3.13
Given , find .
Solution 3.13
Example 3.14
If , then = .
Observe that the entry in the third row and second column of is in the second row and
third column of . In general, the entry of is the of .
Results:
(i) (ii) (iii) (iv)
Exercise:
computed as .
Thus it is equal to . Thus, we may expand using any row or any column to compute the
value of .
Now, we may verify that the value of the determinant is the same if we expand using any
other row or column. Let us expand using 2nd column.
Exercise: For this problem, verify that the value of the determinant remains the same if we
expand using any row or any column.
The determinant of a matrix = Sum of the products of the elements along the downward
arrow - Sum of the products of the elements along the upward
arrow
9
Example: Find the determinant of the matrix .
3.8.1 Introduction
In the algebra of real numbers when one is faced with the question of solving a single
equation where the standard approach is to pre-multiply both sides by or
to obtain . Since , we have and because 1 is the identity
element for multiplication, we have .
If for a given real number there is a real number or such that , then
we say that is the multiplicative inverse of . All real numbers except 0 have
multiplicative inverses. For example, the multiplicative inverse of 4 is because =
= 1.
We shall define a multiplicative inverse of a square matrix in the same way.
Definition:
If for a given matrix , if there exists another matrix designated by , such
that , then is said to be the inverse of .
.
Theorem 3.1 (Without Proof)
If an matrix has a multiplicative inverse, then this inverse is unique.
To distinguish between those matrices that do have inverses and those that do not, the
following terms are defined.
Definition: An matrix is said to be invertible if exists and non-invertible if it
does not have an inverse.
Note: It is impossible for a non-square matrix to have an inverse.
10
This is because, if is the inverse of , then . But, and should be
defined and should be of the same order as that of . This is possible only for square
matrices.
How do we determine when an matrix is invertible and how do we calculate
for invertible ?
There are two main methods for calculating .
1. If the matrix can be transformed by elementary row operations to the row
equivalent form , then is the inverse of .
2. Using cofactors of a matrix.
In this course, however, we shall only consider the first method to find the inverse of a square
matrix. The matrix is called the augmented matrix. The following example illustrates
this approach.
Example 3.14
Solution 3.14
First we write the augmented matrix and then carry out the row transformations to make the
original matrix as the identity matrix. In this process the identity matrix will become the
inverse of the given matrix.
Exercise:
Verify that the answers are correct in both cases by computing and
.
Exercises
3. If and obtain .
matrices.
5. If and compute
7. Given the matrix state whether the following statements are true or
10. For Problem 9, compute the value of the determinant by expanding using a different
column or row and claim that the value of the determinant remains the same.
11. If obtain using the augmented matrix.
12. Find the inverse of the following matrices using the augmented matrix or otherwise.
(i) , ,
(ii) , , ,
13. A number of people were questioned about their income and their political affiliation.
The following results were obtained:
922 were Republicans earning less than $30000 per year.
317 were Democrats earning less than $30000.
12
96 were Independents earning less than $30000.
192 were Republicans earning more than $30000.
128 were Democrats earning more than $30000.
63 were Independents earning more than $30000.
Display this information in matrix form.
*****
13