WEEK 5-Student
WEEK 5-Student
WEEK 5-Student
Matrix Algebra 1
5.1 INTRODUCTION
5.2 DEFINITION
A matrix is an array of mn elements (where m and n are are integers) arranged
in m rows and n columns. Such a matrix A is usually denoted by:
Where a11,a12,….amn are called its elements and may be either real or complex.
The matrix A is said to be of size (m x n). If m = n, the matrix is said to be a
square matrix of order n
Matrix Algebra 2
If the matrix has one column or one row then it is called column vector or row vector
respectively.
The elements aii in a square matrix form the principal diagonal (or main diagonal).
Their sum a11+a22+a33+…+amn is called the trace of A. If all the elements of a square
matrix are zero, then the matrix is called a null matrix. On the other hand, if only the
elements on the main diagonal are non-zero, then the matrix is said to be a diagonal
matrix.
Matrix Algebra 3
In particular, if all the diagonal elements are equal to 1, it is called a unit matrix and
is usually denoted by i. Thus,
A square matrix is said to be an upper-triangular matrix if aij = 0 for i>j, and a lower-
triangular matrix if aij = 0 for i<j. The matrices U (upper-triangular matrix) and L
(lower-triangular matrix) are defined by:
Matrix Algebra 4
In which case only (2k +1) elements in every row are non-zero. In particular
matrices of the type
Every square matrix A is associated with a number called its determinant and it
written as
5
Matrix Algebra
A square matrix A in which aij = aji is said to be symmetric. If aij = -aji, it is said to
skew-symmetric. For a skew-symmetric matrix, therefore we have
aii = -aii
Is a skew-symmetric matrix.
Matrix Algebra 6
5.3 SOLUTION OF LINEAR EQUATIONS
A system of m linear equation in n unknown x1, x2, x3,……xn is defined as follows:
….
Where A=(aij) is called the coefficient matrix and X=(xij) and B=(bij) are called the
column vectors of the unknowns and of the constants respectively
7
Matrix Algebra
If b=0 (that is bi=0 for all i), the system is called homogenous.
If B≠) (that is, there exist a bi≠0 for all i), the system is called non-homogenous.
Matrix Algebra 8
If we interpret x1,x2 as coordinates in the x1 x2-plane, then each of the two equations
represent a straight line, and (x1 x2) is a solution if and only if the point P with
coordinates x1, x2 lies in both lines. Hence there are three possible cases:
For instance,
Matrix Algebra 9
5.3.1 THE GAUSSIAN ELIMINATION
Let A and B be the above matrices. We may write the above system of linear
equation in its augmented matrix form [A / B]. Then the Gauss elimination is a
reduction of the augmented matrix [A / B] by elementary row operations to “triangular
form”, from which we then readily obtain the values of the unknowns by “back
substitution”
Steps:
i.Suppose a11≠0, that is the first entry of the first row is nonzero. (If a11=0 and ai1≠0,
then interchange the 1st row and the i th row). This row is called the pivot row
remains untouched.
ii.Ii. Use some elementary row operations to form a new matrix with ai1=0 for all
i=2,3,….,m.
Matrix Algebra 10
iii. Next take the 2nd row as the new pivot row if a22≠0 (if a22=0 and ai2≠0, i≠1, then
interchange the 2nd row and the i th row). Repeat step 2 so that ai2=0 for all i=3,4,
….,m
iv Repeat the process until we form a “upper triangular matrix”
v. Working backward from the last to the first row of this system to obtain the
solution.
Example 1
Solution
Matrix Algebra 11
b) Solve the following system of linear equations:
Solution:
Matrix Algebra 12
Example: Gauss Elimination if infinitely many solutions Exist
Solve the following linear system of three equations in four unknowns whose
augmented matrix is
Solution
We circle pivots and box terms of equations and corresponding entries to be
eliminated. We indicate the operations in terms of equations and operate on both
equations and matrices.
Matrix Algebra 13
Step 2: Elimination of x2 from the third equation of (2) by adding
Back substitution. From the second equation, x2 = 1- x3 + 4x4. From this and the
first equation, x1 = 2 – x4. Since x3 and x4 remain arbitrary, we have infinitely many
solutions. If we choose a value of x3 and a value of x4, then the corresponding
values of x1 and x2 are uniquely determined.
Matrix Algebra 14
Example: Gauss Elimination if no Solution Exists
What will happen if we apply the Gauss elimination to a linear system that has no
solution? The answer is that in this case the method will show this fact by
producing a contradiction. For instance, consider
This gives
Matrix Algebra 15
Step 2: Elimination of x2 from the third equation gives
Matrix Algebra 16
5.3.2 The Cramer’s rule
Matrix Algebra 17
Examples:
Solution:
In the form AX = B
Matrix Algebra 18
(b) Solve the system of linear equations
Matrix Algebra 19
5.4 EIGENVALUE & EIGENVECTOR
Let A be an n x n matrix. A number λ is called eigenvalue of A if there exists a
nonzero column vector X ϵ Mn,1 such that AX = λX. X is called an eigenvector of A
corresponding to (or associated with) the eigenvalue λ.
(Note that the eigenvalue λ can be the number 0 but eigenvector X must be a
nonzero vector, i.e. X ≠ õ)
(i) If
a)
b)
c)
d)
Matrix Algebra 20
(ii) The matrices A and AT have the same eigenvalues
(iii) If two or more eigenvalues are equal, then the eigenvectors may be linearly
independent or linearly dependent.
(iv) If X1 and X2 are eigenvector of a matrix A corresponding to eigenvalues λ1 and
λ2 respectively, and if λ1 ≠ λ2, then X1 and X2 are linearly independent.
Matrix Algebra 21
Example
Find the eigenvalues and eigenvectors of the following matrix
Solution:
To do this, we find the values of λ which satisfy the characteristics equation of
the matrix A, namely those values of λ for which
det (A – λl)=0
Matrix Algebra 22
Matrix Algebra 23
Finding eigenvectors:
Case 1: λ = 4
(A – 4I)x = 0
Matrix Algebra 24
To check:
Matrix Algebra 25
Cases 2 & 3: λ = - 2
Matrix Algebra 26
5.5 CAYLEY-HAMILTON THEOREM
This theorem states that every square matrix satisfies its own characteristic equation.
Let the characteristic polynomial be
i.e.
Proof: The element of are of degree n or less in ƪ. Hence the element of adj
are at most of degree (n-1) in ƪ. We therefore write
Since
Matrix Algebra 27
We have
Equating the coefficients of like powers of λ on both sides of the above equation, we
get:
.
.
Matrix Algebra 28
Or
Since the termson the left side cancel each other. This prove Cayley Hamilton
theorem. We can write the above statement as:
Or
Matrix Algebra 29
Example
Solution:
Matrix Algebra 30
The characteristic equation of A is
Matrix Algebra 31
5.6 LINEAR DEPENDENCE; ROW ECHELON MATRIX; REDUCED
ROW ECHELON MATRIX
Definition 1:
(i)We said that the vectors v1, v2,…vn are linearly independent if
implies 𝜆1 = 𝜆2 = ⋯ = 𝜆𝑛 = 0
Matrix Algebra 32
Example:
a)Let V = {(1,0,0),(1,2,0),(1,0,1)}
λ1(1,0,0)+λ2 (1,2,0) + λ3 (1,0,1) = 0
λ1 = 0, λ2 = 0, λ3 = 0
Matrix Algebra 33
b) Let V = {(1.0.0), (1,2,2), (1,-4,-4)}
Since λ1(1,0,0)+λ2(1,2,2)+λ3 (1,-4,-4) = 0,
If λ3 = 1, λ2 = 2, λ1 = -3
Matrix Algebra 34
Definition 2:
Then, the maximum number of independent row vectors of A is called the rank of A
is denoted by ρ(A) or rank A.
Remark:
Let V = {v1, v2, …..vn}, if there exists a zero row vector in V (that is vi = 0), then v1,
v2, …..vn are linearly dependent
Matrix Algebra 35
Definition 3 (Row Echelon Matrices):
A row is called non-zero row if there is at least one element in the row which is not
zero.
Matrix Algebra 36
Furthermore, a row echelon matrix is called a row reduced echelon matrix, if the
distinguished elements are:
The matrices B and d are echelon matrices but not row reduced echelon matrices
1.Suppose the j1 column is the first column with a non-zero entry. Interchange the
rows so that this non-zero entry appears in the first row, that is, so that a1j1 ≠ 0
2.For each i >1, apply the operation Ri → a1j1 Ri – a1j1 R1.
3.Repeat steps 1 and 2 with the submatrix formed by all the rows excluding the
first. Continue the process until the matrix is in echelon form
Matrix Algebra 38
The following examples are of matrices in echelon form:
Matrix Algebra 39
Definition 4:
If A = (a i, j) ϵ M m,n is a row echelon matrix, then the rank of A = ρ(A) = the number
of non-zero row (s) in A.
Example:
Let A be a matrix formed by the vectors set V.
V1 = {(0,1,0), (1,0,2), (2,0, -1)}
Solution:
i)The number of non-zero rows in the row echelon matrix = 3..the rank of A = 3
ii)There is no zero row in the row echelon matrix, the row vectors set V1 is linearly
independent
iii)The maximum number of linearly independent
Matrix Algebra
row vectors in V1 = 3 40
5.7 DIAGONALIZATION
Recall that a matrix D = (d i,j) ϵ Mn is called a diagonal matrix if d i,j = 0 for all i≠j.
That is
Matrix Algebra 41
2. The determinant of
Of course, most square matrices are not diagonal, but some are related to
diagonal matrices in a way we will find useful in solving problems.
Definition 1:
Let A be an n-square matrix, Then A is a diagonalizable ↔ there exists an n-
square matrix P such that P-1 AP is a diagonal matrix. (That is, P-1 AP = D where D
is a diagonal matrix). When such a matrix P exists, we say that P diagonalizes A.
Matrix Algebra 42
Example:
Therefore, P diagonalizes A.
Definition 2:
Let A be an n-square matrix. Then, A is diagonalizable ↔ A has n linearly
independent eigenvectros.
Definition 3:
n column vector v1, v2,….vn are linearly independent
↔ The matrix A = (v1, v2, ……vn) is invertible (non-singular) ↔
Matrix Algebra 43
Procedure to determine a matrix P that diagonalizes A:
Matrix Algebra 44
Example:
1 4
Let A . Find a matrix P that diagonalizes A and find the diagonal matrix D such that
0 3
D=P-1AP.
Solution:
The characteristic equation is p A I2 0
1 4
A I2 0
0 3
2 2 3 0
3 1 0 -1,3
1 4 x1 0
That is, solve
0 3 x2 0
Matrix Algebra 45
Case (i) λ1 = -1:
Augmented matrix:
So 4x2 = 0 → x2 = 0
Case (ii): λ2 = 3
Augmented matrix is
Matrix Algebra 46
When k = 1, is an eigenvector corresponding to λ2 = 3
Since
Matrix Algebra 47