Docsity

MATRIX ALGEBRA (1st year), Lecture notes of Engineering Mathematics

Toggle sidebar
bg1
SSCE 1693 – Engineering Mathematics I
1
CHAPTER 7
MATRIX ALGEBRA
7.1 Elementary Row Operations (ERO)
7.2 Determinant of a Matrix
7.2.1 Determinant
7.2.2 Minor
7.2.3 Cofactor
7.2.4 Cofactor Expansion
7.3 Inverse Matrices
7.3.1 Finding Inverse Matrices using ERO
7.3.2 Adjoint Method
7.4 System of linear equations
7.4.1 Gauss Elimination Method
7.4.2 Gauss-Jordan Elimination Method
7.4.3 Inverse Matrix Method
7.4.4 Cramer’s Rule
7.5 Eigenvalues and Eigenvectors
7.5.1 Eigenvalues & Eigenvectors
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download MATRIX ALGEBRA (1st year) and more Lecture notes Engineering Mathematics in PDF only on Docsity!

CHAPTER 7

MATRIX ALGEBRA

7.1 Elementary Row Operations (ERO)

7.2 Determinant of a Matrix

7.2.1 Determinant

7.2.2 Minor

7.2.3 Cofactor

7.2.4 Cofactor Expansion

7.3 Inverse Matrices

7.3.1 Finding Inverse Matrices using ERO

7.3.2 Adjoint Method

7.4 System of linear equations

7.4.1 Gauss Elimination Method

7.4.2 Gauss-Jordan Elimination Method

7.4.3 Inverse Matrix Method

7.4.4 Cramer’s Rule

7.5 Eigenvalues and Eigenvectors

7.5.1 Eigenvalues & Eigenvectors

7.0 MATRIX ALGEBRA

7.1 ELEMENTARY ROW OPERATIONS (ERO)

  • An important method to find the inverse of a matrix and to solve the system of linear equations.
  • The following notations will be used while applying ERO

Definition 7.1: Matrix Matrix is a rectangular array of numbers called elements arranged in rows and columns. A matrix with ᡥ rows and ᡦ columns is called a matrix of order ᡥ × ᡦ.

㑂 = 㐧ᡓ〶〷㐱぀×ぁ

ᡓ〶〷 indicates the element in the ᡡ⤰⤘^ row and the ᡢ⤰⤘^ column.

  1. Interchange the ᡡ⤰⤘^ row with the ᡢ⤰⤘^ row of the matrix. This process is denoted as ⅴ↑ ↔ ⅴ→.
  2. Multiply the ᡡ⤰⤘^ row of the matrix with the scalar ᡣ where ᡣ ≠ 0. This process is denoted as ↓ⅴ↑.
  3. Add the ᡡ⤰⤘^ row, that is multiplied by the scalar ᡣ to the ᡢ⤰⤘^ row, where ᡣ ≠ 0. This process can be denoted as ↓ⅴ↑ + ⅴ→. The purpose of this process is to change the elements in the ᡢ⤰⤘^ row.

Row-Echelon Matrices (REM)

A row–echelon matrix is a matrix which has these properties:

  1. consist at least a nonzero row (not a zero matrix).
  2. the leftmost nonzero entries in every row is 1 (we call this the leading 1).
  3. the leading 1 in the lower row occurs farther to the right than the leading 1 in the upper row.
  4. if there are any rows that consist entirely all zeros, then they are grouped together at the bottom of the matrix.

Row-Reduced Echelon Matrices (RREM)

The row- reduced echelon matrices have this additional property:

  1. each column that contains a leading 1 has zeros everywhere else.

Note: RREM → REM Not REM → Not RREM

Examples: The following matrices are in row-echelon form.

(a)

1 2 4 0 0 1 0 0 0

        (b)

1 2 3 0 1 0 1 0 0 2 0 0 0 1 1 0 0 0 0 1

 −       (^) −     

What is echelon matrix and reduced echelon matrix?

(c)

(d)

1 2 0 0 0 1 0 0 0

        

Examples: Decide whether each of the following is a row-echelon matrix (REM), row-reduced echelon matrix (RREM), or neither.

0 0 1 0 0 1 0 0 0 0 0 1

A

  = ^      

0 0 0 0 0 1 0 0 0 0 0 1

B

  = ^      

0 1 0 0 0 0 0 1 0 0 0 1

C

  = ^      

1 10 0 0 0 0 1 0 0 0 0 1

D

  = ^      − 

1 2 0 0 0 0 1 4 0 0 0 0

E

 −  = ^      

0 0 1 0 0 0 0 0 0 1 0 0 0 0 0

F

  = ^      

1 3 2 0 0 0 0 1 1 0 0 0 0 0 1

G

 −  = ^      

1 0 0 1 0 1 0 2 0 0 1 3

H

  = ^      

0 1 0 1 0 0 1 0 0 0 0 1

J

 −  = ^      

1 2 3 4 0 0 1 2 0 0 0 1

K

  = ^      

Steps to reduce a matrix to its row-echelon form and row- reduced echelon form:-

  1. Firstly, make the leftmost nonzero entry at the first row and first column (if possible) to be 1. This can be done by interchanging the rows or multiplying the rows by a nonzero scalar. Remember that in any way, avoid to get any fraction except possibly in the last step.
  2. Next, use the leading 1 to change the entries below the leading 1 in column 1 to be 0.
  3. Apply the first step to the leftmost nonzero entry for the second row.
  4. Change entries below the leading 1 in column 2 to zero.
  5. Repeat the above steps until we obtain the matrix in row echelon form.
  6. To obtain reduced row-echelon matrix , apply the second step to the entries above and below the leading 1 in each column.

How can we get echelon matrix and reduced echelon matrix?

Using ERO of course! And the operation is not unique.

Example 7.2: Given

ᠧ = 㐷

obtain a) Echelon matrix b) Reduced echelon matrix c) Rank of matrix ᠧ

Solution:

a) 㐷

ㄗ⡸〙ㄘ ⡹⡱〙ㄗ⡸〙ㄙ

䙲⡹ㄗㄣ䙳〙ㄘ 䙲⡹ㄗㄡ䙳〙ㄙ

䚄

1 2 3 0 1 4 㐕 7 0 1 2

䚅 (^) ⡹〙 ㄘ⡸〙ㄙ

䙗᝕᝕᝕᝕䙔 㐸

1 2 3 0 1 4 㐕 7 0 0 10 㐕 7

㑂 (^) ⡵ 㐕⡩⡨ 〙ㄙ 䙗᝕᝕᝕䙔 䚄

1 2 3 0 1 4 㐕 7 0 0 1

䚅

b) 䚄

1 2 3 0 1 4 㐕 7 0 0 1

䚅 (^) ⡹⡰〙 䙗᝕᝕᝕ㄘㄦ᝕᝕〙䙔ㄗ 㐸

1 0 13 㐕 7 0 1 4 㐕 7 0 0 1

㑂 䙲−^47 䙳ᡄ 3 +ᡄ 2 䙲−^137 䙳ᡄ 3 +ᡄ 1

䙗᝕᝕᝕᝕᝕᝕᝕᝕䙔 㐷

1 0 0 0 1 0 0 0 1

㑁

c) ᡨ䙦ᠧ䙧 = 3

Example 7.3:

Find the minor ជ❸❹ for matrix ᝵

᝵ = 㐩

Solution:

᝵ = 㐩

ᡓ⡱⡩ ᡓ⡱⡱䚘 = ᡓ⡰⡩ᡓ⡱⡱^ − ᡓ⡰⡱ᡓ⡱⡩

Example 7.4: Given

ᠧ = 㐷

Calculate the minor of ᡓ⡩⡩ and ᡓ⡱⡰ Solution:

M ⡩⡩ = 䚘−1^3

M ⡱⡰ = 䚘^1

Definition 7.4: Minor If

᝵ =

᜷

᜶

᜶

᜵

ᡓ⡩⡩ ᡓ⡩⡰ ⋯ ᡓ⡩〷 ⋯ ᡓ⡩ぁ ᡓ⡰⡩ ᡓ⡰⡰ ⋯ ᡓ⡰〷 ⋯ ᡓ⡰ぁ ⋮ ⋮ ⋱ ⋮ ⋱ ⋮ ᡓ〶⡩ ᡓ〶⡰ ⋱ ᡓ〶〷 ⋱ ᡓ〶ぁ ⋮ ⋮ ⋱ ⋮ ⋱ ⋮ ᡓぁ⡩ ᡓぁ⡰ ⋯ ᡓぁ〷 ⋯ ᡓぁぁᝀ

᜹

᜹

᜸

then the minor of Ↄ↑→ , denoted by ជ᠉᠐ is the determinant of the submatrix that results from removing the i th^ row and j th^ column of ᝵.

Example 7.5:

Find the cofactor ᡕ⡰⡱ from the given matrix

ᠧ = 㐩

Solution:

= 䙦−1䙧⡰⡸⡱^ 䚘^1

Example 7.6:

From Example 7.4, find the cofactor of ᡓ⡩⡩ and ᡓ⡱⡰

Solution:

ᡕ⡩⡩ = 䙦−1䙧⡩⡸⡩ᠹ⡩⡩ = 䙦−1䙧⡰^ 䚘−1^3

ᡕ⡱⡰ = 䙦−1䙧⡱⡸⡰ᠹ⡱⡰ = 䙦−1䙧⡳^ 䚘^1

Definition 7.5: Cofactor If ᝵ is a square matrix ᡦ × ᡦ, then the cofactor of Ↄ↑→ is given by ᠃᠉᠐ = 䙦− 1 䙧〶⡸〷ជ᠉᠐

b) Expanding along the second row

|ᠨ| = 䙦1䙧䙦−1䙧⡰⡸⡩^ 㘩

㘩 + 䙦0䙧䙦−1䙧⡰⡸⡰^ 㘩

+䙦0䙧䙦−1䙧⡰⡸⡱^ 㘩

㘩 + 䙦3䙧䙦−1䙧⡰⡸⡲^ 㘩

Example 7.8:

Given

calculate the determinant of ᠨ.

Solution:

Since the second column has two zero elements, cofactor expansion

can be done along the second column.

|ᠨ| = 䙦5䙧䙦−1䙧⡩⡸⡰^ 䚘−3^4

䚘 + 䙦0䙧䙦−1䙧⡰⡸⡰^ 䚘^1

+ 䙦0䙧䙦−1䙧⡱⡸⡰^ 䚘^1

exist

not exist

7.3 INVERSE MATRICES

7.3.1 Finding Inverse Matrices using ERO

Inverse Matrices

Remarks

If A-

Non-singular matrix

Singular matrix (AB)-1=B-1A-

If the inverse exists, then the inverse is unique A square matrix A has an inverse if and only if |A|≠

Methods

ERO

Adjoint Method

Definition 7.6: Inverse Matrix If ᠧ and ᠨ are ᡦ × ᡦ matrices, then the matrix ᠨ is the inverse of matrix ᠧ (or vice versa) if and only if ᠧᠨ = ᠨᠧ = ᠵ.

STEP 1 :

Write ᠧᠵ in the form of augmented matrix 䙦ᠧ|ᠵ䙧.

STEP 2 : Perform ERO until we get the new augmented matrix 䙦ᠵ|ᠨ䙧.

STEP 3 : Therefore ᠧ⡹⡩^ = ᠨ.

7.3.2 Finding Inverse Matrices using Adjoint Method

Definition 7.7: Adjoint of a Matrix The adjoints of a square matrix ⅗ is the transpose of cofactor matrix which can be obtained by interchanging every element ᡓ〶〷 with the cofactor ᡕ〶〷 and denoted as ᡓᡖᡢ䙦⅗䙧 = 㐧ᡕ〶〷㐱

〡 = 㐧ᡕ〶〷㐱.

If |ᠧ| ≠ 0, then ᠧ⡹⡩^ exists. Therefore the inverse matrix is,

ᠧ⡹⡩^ =

adj䙦ᠧ䙧.

STEPS TO FIND THE INVERSE MATRIX USING

ADJOINT METHOD.

STEP 1 : Calculate the determinant of ᠧ. i) If |ᠧ| = 0, stop the calculation because the inverse does not exist. ii) If |ᠧ| ≠ 0, continue to STEP 2.

STEP 2 : Calculate the cofactor matrix 㐧ᡕ〶〷㐱.

STEP 3 : Find the adjoint matrix ᠧ by finding the transpose of the cofactor matrix 㐧ᡕ〶〷 㐱, that is adj䙦ᠧ䙧 = 㐧ᡕᡡᡢ㐱 ᡆ = 㐧ᡕᡡᡢ㐱.

STEP 4 : Substitute the results from STEP 1 to STEP 3 in the formula ᠧ⡹⡩^ =

1 |ᠧ| adj䙦ᠧ䙧.

Example 7.12: Calculate the inverse of the following matrix

ᠧ = 㐩

Solution: Step 1 : Calculate the determinant of ᠧ. |ᠧ| = −154 ≠ 0

Step 2: Find the cofactor matrix.

ᠩ⡩⡩ = 䙦− 1 䙧⡰^ 䚘−^6

ᠩ⡩⡰ = 䙦− 1 䙧⡱^ 䚘−^2

ᠩ⡩⡱ = 䙦− 1 䙧⡲^ 䚘−^2 −^6

ᠩ⡰⡩ = 䙦− 1 䙧⡱^ 䚘

ᠩ⡰⡰ = 䙦− 1 䙧⡲^ 䚘

ᠩ⡰⡱ = 䙦− 1 䙧⡳^ 䚘

ᠩ⡱⡩ = 䙦− 1 䙧⡲^ 䚘 2 1

ᠩ⡱⡰ = 䙦− 1 䙧⡳^ 䚘 4 1

ᠩ⡱⡱ = 䙦− 1 䙧⡴^ 䚘 4 2

∴ Cofactor matrix, ᠩ = 㐷

Step 3: Adjoint of A

〡 = 㐷

Step 4: Find ᠧ⡹⡩

ᠧ⡹⡩^ = −

1 154 㐷

㑁

7.4 SYSTEMS OF LINEAR EQUATIONS

 A system of linear equations with ᡥ linear equations and ᡦ number of variables can be written as, ᡓ⡩⡩ᡶ⡩ + ᡓ⡩⡰ᡶ⡰ + ⋯ + ᡓ⡩ぁᡶぁ = ᡔ⡩, ᡓ⡰⡩ᡶ⡩ + ᡓ⡰⡰ᡶ⡰ + ⋯ + ᡓ⡰ぁᡶぁ = ᡔ⡰, ⋮ ᡓ぀⡩ᡶ⡩ + ᡓ぀⡰ᡶ⡰ + ⋯ + ᡓ぀ぁᡶぁ = ᡔ぀.

 A solution to a linear system are real values of ᡶ⡩, ᡶ⡰, ᡶ⡱, … , ᡶぁ which satisfy every equations in the linear systems.

 If the solution does not exist, then the system is inconsistent.

Solving the linear systems

ERO

Gauss

Gauss-Jordan

Matrix's method

Inverse Matrix Cramer's Rule

Non-homogeneous system

p(A) = p(A|b) = number of variables ↦ the system has a unique solution.

p(A) = p(A|b) < number of variables ↦ the system has many solutions.

p(A) < p(A|b) = the number of variables ↦ the system has no solution.

Homogeneous system

p(A) = number of variables ↦ the system has trivial solution. p(A) < the number of variables ↦ the system has many solutions.

7.4.1 Gauss Elimination Method

Example 7.13: Solve the following system by using Gauss Elimination method. 1 2 3 1 2 3 1 2 3

2 9 2 4 3 1 3 6 5 0

x x x x x x x x x

    • =
  • − =
  • − =

Solution: STEP 1: Construct the augmented matrix 1 1 2 9 2 4 3 1 3 6 5 0

   (^) −     (^) −   

STEP 2: Use ERO to transform this matrix into the following echelon matrix 1 1 2 9 0 1 4 10 0 0 1 3

   (^) − −      

Gauss Elimination is a method of solving a linear system ᠧᠤ = ᠂ by bringing the augmented matrix

to an echelon matrix

Then the solution is found by using back substitution.