Chaper 3 Matrix PDF
Chaper 3 Matrix PDF
Matrices
INTRODUCTION: Information in science and mathematics is often organized into rows and
columns to form rectangular arrays, called ―matrices‖ (plural of ―matrix‖). Matrices are often
tables of numerical data that arise from physical observations, but they also occur in various
mathematical contexts. For example, we shall see in this chapter that to solve a system of
equations such as
all of the information required for the solution is embodied in the matrix
* +
and that the solution can be obtained by performing appropriate operations on this matrix. This is
particularly important in developing computer programs to solve systems of linear equations
because computers are well suited for manipulating arrays of numerical information. However,
matrices are not simply a notational tool for solving systems of equations; they can be viewed as
mathematical objects in their own right, and there is a rich and important theory associated with
them that has a wide variety of applications. In this chapter we will begin the study of matrices.
3.1. Definition of Matrix
1
shall denote matrices by capital boldface letters A, B, C, …, or by writing the general entry in
brackets; like [ ], and so on.. The element , is called the entry, appears in row and
column . Thus is the entry in Row 2 and Column 1.
Example 3.1.1:
[ ] [ ]
The dimension/size of matrix A is 3×4 and the dimension/size of matrix B is 3×3. The entry
in matrix A is 7 and the entry in matrix A is 9.
NB: Matrices are important because they let us to express large amounts of data and functions in
an organized and concise form.
Exercise 3.1.1:
Example: [ ]
ii. Square Matrix: any matrix is called square matrix if . The order of
square matrix is or simply .
2
Example: [ ]
iii. Rectangular Matrix: A matrix of any size is called a rectangular matrix; this includes
square matrices as a special case.
iv. Row Matrix (row vector): A matrix is called a row matrix (row vector).
[ ]
v. Column Matrix (column vector): A matrix is called a column matrix (column
vector)
( )
vi. Diagonal Matrix: A square matrix is said to be a diagonal matrix if all its
entries except the main diagonal entries are zeros.
[ ]
Remark: A diagonal matrix each of whose diagonal elements are equal is called a scalar
matrix.
vii. Identity Matrix (Unit Matrix): is a diagonal matrix in which all diagonal elements are 1.
[ ] is an identity matrix.
viii. Triangular Matrix: A square matrix in which all the entries above the main diagonal
are zero is called lower triangular, and a square matrix in which all the entries below the
main diagonal are zero is called upper triangular. A matrix that is either upper triangular
or lower triangular is called triangular.
[ ] [ ]
3
Remark: Observe that diagonal matrices are both upper triangular and lower triangular since
they have zeros below and above the main diagonal.
Example: [ ] [ ]
* + and [ ]
[ ] [ ]
Then find
Solution: [ ] [ ]
[ ] [ ]
4
Remark: Matrices of different sizes cannot be added or subtracted.
III. Scalar Multiplication of Matrix
Definition 3.1.1.3 If A is any matrix and c is any scalar; then the product cA is the matrix
obtained by multiplying each entry of the matrix A by c. The matrix cA is said to be a scalar
multiple of A. i.e.
[ ]
[ ] [ ]
a. b.
Solution: a. [ ] [ ] [ ]
b. [ ]
[ ] [ ]
Exercise:
1. Find the values of and for the following matrix equation.
* + * +
2. Find matrix if * +
Remark: If , , …, are matrices of the same size and , , …, are scalars, then an
expression of the form is called a linear combination of , , …,
with coefficients , , …, .
5
Properties of Matrix Addition and Scalar Multiplication
Suppose A, B, and C are matrices (having the same size) and and are scalars. Then
[ ] , where ∑ , for
- Consider the following matrices
[ ] and [ ]
Rows of are:
[ ]
[ ]
[ ]
Columns of are:
[ ]
[ ]
[ ]
Then
6
[ ] [ ]
Solution:
* +
Exercise: Determine the size of the product matrix if the sizes of and are and
respectively.
Note: The product of lower triangular matrices is lower triangular, and the product of upper
triangular matrices is upper triangular.
Properties of Matrix Multiplication
1) , (matrix product is not commutative.)
2) , (matrix multiplication is associative)
3) , (multiplication of matrices is
distributive with respect to addition)
4) If , it does not mean that either A = 0 or B = 0.
Example: if [ ], [ ] and [ ]
We have, [ ] , but
a) b)
7
V. Transpose of a Matrix
Definition: If A is an matrix, then the transpose of A, denoted by , is defined to be the
matrix that results from interchanging the rows and columns of A.
Remark: The transpose of a row matrix is column matrix and the transpose of a column matrix
is a row matrix.
Example: The following are some examples of matrices and their transposes.
||√ √ |
|
√ √
8
VII. Polynomial of Matrix
For any square matrix and for any polynomial,
where are scalars, we define . If , then A
is a zero (root) of the polynomial.
Solution:
Exercise:
a) b)
VIII. Symmetric and Skew-Symmetric Matrices:
Definition: Let be a square matrix. Then is said to be
Symmetric if ,i.e. .
Skew-symmetric (anti-symmetric) if , i.e. .
Example: A = [ ] B=[ ] C= [ ]
a) * +
d) [ ]
b) * +
e) * +
c) [ ]
9
A matrix is said to be row equivalent to matrix , written if matrix is obtained from by a
finite sequence of elementary row operations. These elementary row operations are:
i. Interchanging the row by the row (i.e )
ii. Multiplying the row by a none-zero scalar (i.e ).
iii. Replacing the row by times the row plus row (i.e )
Example: Apply all elementary row operations on the given matrix:
[ ] [ ] [ ] [ ]
Exercise: Let [ ] . Then find matrix which is row equivalent to with and
.
Remark: The first non-zero entry in a row is called the leading entry (pivotal entry) of that row.
[ ]
Entries are leading entries of respectively, and no leading entry for row .
Example: [ ] [ ] [ ] [ ]
10
Example: [ ] [ ] [ ] [ ]
Example: [ ] [ ] [ ] [ ]
Remark: Any matrix can be reduced to its echelon form by applying some elementary row operations
on the given matrix.
Example: Reduce matrix to its row echelon form by applying elementary row operations where
A=[ ]
Applying we get: [ ⁄ ]
Applying we get: [ ⁄ ]
⁄
Appling ⁄ we get: [ ⁄ ]
11
Rank of a Matrix
Suppose an matrix is reduced by row operations to an echelon form . Then the rank of ,
denoted by , is defined to be,
Rank ( ) = number of pivots (leading entries) or
= number of nonzero rows in or
= number of basic columns in ,
where the basic columns of are defined to be those columns in which contain the pivotal positions.
Example 1: Let matrix [ ]. Then the rank (A) = 3 since matrix is in echelon form and
[ ]
Solution: [ ] [ ] [ ]
and
Basic Columns {( ) ( )}
Exercise: Reduce each of the following matrices to its echelon form and determine its rank & identify
the basic columns.
a. [ ]
b.
[ ]
12
Example: The matrix
Since
And
Remark:
1.
[ ]
Exercise: Verify that .
13
Finding Inverse of a Matrix by Using Elementary Row Operations (Gauss-Jordan
Elimination Method)
Let be an matrix and let be an identity matrix. Then to find the inverse of .
1. Adjoin the identity matrix to to form the augmented matrix .
2. Compute the reduced echelon form of If the reduced echelon form is of the type
then is the inverse of . If the reduced echelon form is not of the type , in that the first
sub matrix is not , then has no inverse.
Example-1: Find the inverse of A if
[ ]
Solution: [ ] [ ]
Applying we get:
[ ]
Applying we get:
[ ]
Applying we get:
[ ]
[ ]
Therefore, B = [ ]
Method).
14
Solution: [ ] [ ]
Applying , we get:
[ ]
Applying we get:
[ ]
Applying we get:
[ ]
Applying we get:
[ ]
[ ]
Applying we get:
[ ]
[ ] [ ]
[ ]
[ ]
15
Solution: [ ]
Appling we get
[ ]
Appling we get
[ ]
Appling we get
[ ]
Appling we get
[ ] Thus [ ]
[ ] [ ] [ ] [ ]
16
Chapter Four
Determinant of Matrices
4.1. Definition of Determinant
Introduction: In this section, we shall study the ―determinant function,‖ which is a real-valued function of a
matrix variable in the sense that it associates a real number with a square matrix A. Our work on
determinant functions will have important applications to the theory of systems of linear equations and will also
lead us to an explicit formula for the inverse of an invertible matrix.
Definition: A “determinant” is a certain kind of function that associates a real number with a square
matrix , and it is usually denoted by or | |. i.e. if is an square matrix, then
| |
a. Determinant of
Let [ ] be matrix. Then .
Example: Let [ ]. Then
b. Determinant of
Let * + be a matrix. Then | |
Example: Find if * +
Solution:
c. Determinant of matrix
Definition-1: Let be an square matrix and be the matrix obtained from
matrix by deleting row and column containing the entry . Then is called the minor
of .
Remark: the matrix is called sub matrix of .
Definition-2: The cofactor of , denoted by , is defined as .
17
Solution: Minor of | |
Cofactor of
Minor of | |
Cofactor of
Definition-3: The determinant of an matrix is given by either of the following two formulas.
i. ∑ , for fixed
ii. ∑ , for fixed
Example 1: Evaluate the determinant for the matrices
[ ] and [ ]
∑ ∑
∑ ∑
that | |
Solution: | | [ ] [ ] [ ]
=
=
=
18
| | | | | | | |
√
, [ √ ], ,
[ ] [ ]
[ ], [ ]
19
Example: If * +, then .
Note: We can evaluate the determinant of any square matrix by reducing it to its echelon form by
keeping the following conditions.
a. If is a matrix which results by applying the elementary row operation of multiplying any
particular row of by a non-zero constant , then .
b. If is a matrix that results when two rows or two columns of are interchanged, then
.
c. If is a matrix that results when a multiple of one row of is added to another row or when a
multiple of one column is added to another column, then .
[ ], [ ] and [ ]
20
[ ]
Solution:
The cofactors of each elements of A are
| | | |
| | | |
| | | |
| | | |
| |
Matrix of Cofactors [ ] [ ]
[ ]
[ ]
Definition-2: Let be an square matrix with . Then the inverse of a matrix , denoted
by , is defined as .
Solution:
[ ]
21
[ ]
[ ]
Exercise: Verify whether each of the following matrices has an inverse, and find the inverse if it has.
* +, [ ] and [ ]
[ ][ ] [ ]
A x b
Where, is the coefficient matrix, is the unknown matrix (vector) and is the known matrix (vector).
The augmented matrix, [ ], for the above system of linear equation is
[ ]
Remark: If a system of linear equations is the form , i.e. all entries of are equal to 0, then the
system is called homogeneous system of linear equation, otherwise it is called non-homogeneous.
Example: write the coefficient matrix and the augmented matrix for the following system of linear
equations.
22
Solution: Coefficient Matrix [ ]
Augmented Matrix [ ] [ ]
, , …,
Where (for ) is the matrix obtained by replacing the entries in the column of by the
Example: Using Cramer’s Rule, solve the following system of linear equations.
Solution:
[ ] [ ]
[ ] [ ]
, , , and
Thus and
Exercise: Solve the following system of linear equations using Cramer’s Rule:
23
a) {
b)
Definition: The process of using elementary row operations to transfer an augmented matrix of linear
system in to one whose augmented matrix is in row echelon form is called Gaussian elimination.
Let be a system of linear equations. Then, to solve the system by using Gaussian elimination
method, use the following procedures.
Exercise: By using the Gaussian-Elimination method, solve the following system of linear equations.
i. ii.
Theorem: If is an invertible matrix, then for each matrix , the system has
Example1: Solve the following system of linear equations by using inverse method.
24
A=[ ] [ ] and [ ]
[ ][ ] [ ] [ ]
Thus
Exercise: Solve the following system of linear equations by using inverse method.
a)
b)
Remark:-
1. A system of equations that has no solution is called inconsistent; if there is at least one solution
of the system, it is called consistent.
2. A system of linear equations may not have solutions, or has exactly one solution (unique
solution), or infinitely many solutions.
3. Every homogeneous system of linear equations ( ) is consistent, since all (for
) is a solution. This solution is called the trivial solution; if there are other solutions,
they are called nontrivial solutions. If this system has nontrivial solutions, then these solutions are
infinite.
4. If the number of variables is greater than the number of equations in a given system of linear
equations, then the system has infinite solutions. The arbitrary values that are assigned to the free
variables are often called parameters.
5. Let be a system of non-homogenous linear equations and the number of variables are
equal to the number of equation (i.e. be a square matrix). And let (for ) be a
matrix obtained by replacing the entries in the column of by the entries in the matrix
25
( ). Then
Definition: Let be an square matrix and be a non-zero column vector. Then is called the
eigenvector (or right eigenvector or right characteristic vector) of if there exists a scalar such that
Then, is called an eigenvalue or characteristics value of . Eigenvalue may be zero, but eigenvector
cannot be zero vectors.
Example: show that * + is an eigenvector corresponding to the eigenvalue for the matrix
* +.
* +* + * + * +
26
Solution: For this matrix * + * + * + and hence
i. The eigenvectors to will be obtained by solving equation (1) above for * +. With
(* + * +) * + * + * +* + * +
are,
* + [ ] [ ] with arbitrary.
(* + * +) * + * + * +* + * +
* + * + * + with arbitrary
Exercise: Determine the eigenvalues and eigenvectors of the following matrices if there exist:
27
[ ] [ ]
28