Professional Documents
Culture Documents
Engineering Mathematics II
Olagoke Oladokun
©2021
GEC220
Engineering Mathematics II
3 Units
LH 45
Lecturers
• Prof. Vincent
• Dr. Adeeyo
• Dr. Olagoke
2 Determinants ............................................................................................................... 13
5 Rank of a matrix........................................................................................................... 27
9.3 Adjoint................................................................................................................... 41
10.1 Eigenvalues........................................................................................................ 43
Chapter 1
1 Matrices
A matrix is a set of real or complex numbers (or elements) arranged in rows and columns
to form a rectangular array.
3 −3 −4
[1 −1 −1] (1.1)
2 −1 4
1 2
4 3
[ ]= 𝑚×𝑛 = 4×2 (1.2)
−1 −5
3 3
1 2
4 3
𝐶=[ ] =𝑚×𝑛 = 4×2 (1.3)
−1 −5
3 3
1.1 Matrix notation
Matrix A is of order 3 x 3 with elements 𝑎ij where i and j represents the index of the row
and column it belongs in the matrix.
Addition and subtraction of two matrices can only be achieved if they are the same order.
𝐴±𝐵
Example
1 −3
𝐴=[ ] (1.6)
4 −2
2 −3
𝐵=[ ] (1.7)
4.1 −4.5
Then
Since they are both equal the addition and subtraction is possible.
1 −3 2 −3 3 −6
[ ]+[ ]=[ ] (1.8)
4 −2 4.1 −4.5 8.1 −6.5
1 −3 2 −3 −1 0
[ ]−[ ]=[ ] (1.9)
4 −2 4.1 −4.5 −0.1 2.5
1 −3 4 −12
4×𝐴 = 4×[ ]=[ ] (1.10)
4 −2 16 −8
To multiply any two matrices the number of columns the first matrix must be equal to the
number of rows of the second matrix. The product matrix will have number of rows of the
first matrix and number of columns of the second matrix
𝐴×𝐵 = 𝑃
Example
1 2
4 3
𝐶=[ ] =𝑚×𝑛 = 4×2 (1.12)
−1 −5
3 3
1 −3
𝐴=[ ]=𝑚×𝑛 =2×2 (1.13)
4 −2
𝐴×𝐶
(2 × 2) × (4 × 2)
(1.14)
2 × (2 ≠ 4) × 2
(2 ≠ 4) ∶ 𝐴 × 𝐶 is not possible.
Interchanging
𝐶×𝐴
(4 × 2) × (2 × 2)
4 × (2 = 2) × 2 (1.15)
(2 = 4) ∶ 𝐶 × 𝐴 is possible.
𝐶×𝐴 ≡ 4×2
𝑐11 𝑐12
𝑐21 𝑐22 𝑎11 𝑎12
𝐶 × 𝐴 = [𝑐 𝑐32 ] × [𝑎21 𝑎22 ] (1.16)
31
𝑐41 𝑐42
1×1+2×4 1 × −3 + 2 × −2 9 −7
4×1+3×4 4 × −3 + 3 × −2 16 −18
𝐶×𝐴=[ ]=[ ] (1.19)
−1 × 1 + −5 × 4 −1 × −3 + −5 × −2 −21 13
3×1+3×4 3 × −3 + 3 × −2 15 −15
1 −3
𝐴=[ ] (1.20)
4 −2
1 4
𝐴𝑇 = [ ] (1.21)
−3 −2
Square matrix is a matrix of order m x m. It contains same number of rows and columns.
3 −3 −4
𝐴 = [1 −1 −1] = 3 × 3 (1.22)
2 −1 4
A triangular matrix is a square matrix with all elements below the leading diagonal equal to
zero.
1 2 3
𝐴 = [0 4 5] (1.24)
0 0 6
A diagonal matrix is a square matrix with all elements zero except the leading diagonal.
1 0 0
𝐴 = [0 4 0] (1.25)
0 0 6
A Unit matrix is a special diagonal matrix with the leading diagonal element values all unity
or ones. The unit matrix is denoted by I.
1 0 0
𝑰 = [0 1 0] (1.26)
0 0 1
A useful property
𝑨. 𝑰 = 𝑰. 𝐴 = 𝐴 (1.27)
0 0 0
𝑁 = [0 0 0] (1.28)
0 0 0
A useful property
Chapter 2
2 Determinants
The arrangement of numbers in an equal rows and columns bounded by a straight bar is
called determinant.
a11 a12
|a a22 | (2.1)
21
The symbol above is determinant of a 2x2 (two by two matrix) with element 𝑎11 on row 1
and column 1 and 𝑎12 𝑖𝑠 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑜𝑛 𝑟𝑜𝑤1 𝑎𝑛𝑑 𝑐𝑜𝑙𝑢𝑚𝑛 2. mean each element is
identified by row and column number subscript i and j: 𝑎𝑖𝑗 .
By definition,
a11 a12
|a a22 | = a11 a22 − a12 a21 (2.2)
21
a11
a12
To find determinant of |a | , we must multiply the elements diagonally to form the
21 a 22
a
product terms in the expansion: we multiply | 11 | then subtract the
a22
a12
product| |
a21
Note:
Or
|1 |−| −3| = 1 × −2 − −3 × 4 = 10
(2.4)
−2 4
In order to find the determinant of a higher order the matrix minor must be developed until
second order is reached.
For 𝑎11
𝑎11
| 𝑎22 𝑎23 | (2.8)
𝑎32 𝑎33
For 𝑎12
𝑎12
|𝑎21 𝑎23 | (2.10)
𝑎31 𝑎33
For 𝑎13
𝑎13
|𝑎21 𝑎22 | (2.12)
𝑎31 𝑎32
3 −3 −4
|1 −1 −1| (2.15)
2 −1 4
3 −1 −1 − −3 1 −1 +−4 1 −1
= | | | | | |
−1 4 2 4 2 −1
= −15 + 18 − 4 = −1
Try
2 3 4
|6 1 0| = 0
2 3 4
3
Chapter 3
A system of linear equations of the second degree of two unknowns can be written below:
𝑎11 𝑥 + 𝑎12 𝑦 = 𝑏1
(3.1)
𝑎21 𝑥 + 𝑎22 𝑦 = 𝑏2
𝑎11 𝑎11 𝑥 𝑏1
[𝑎 ]
𝑎11 𝑦[ ] = [ ] (3.2)
11 𝑏2
𝐴𝑥 = 𝑏 (3.3)
2𝑥 + 3𝑦 = 10
(3.4)
4𝑥 + 𝑦 = 1
7 38
𝑥=− , 𝑦= (3.5)
10 10
3.1 Determinant Equation Method
2𝑥 + 3𝑦 − 10 = 0 (𝑎)
(3.6)
4𝑥 + 𝑦 − 1 = 0 (𝑏)
and
The solution
𝑥 −𝑦 1
= = (3.8)
∆1 ∆2 ∆0
∆1 ∆2
𝑥= , 𝑦=− (3.9)
∆0 ∆0
where
2 3
∆0 = | | = 2 × 1 − 3 × 4 = −10 (3.11)
4 1
−10 3
∆1 = | | = −10 × 1 − 3 × −1 = −7 (3.12)
−1 1
2 −10
∆2 = | | = 2 × −1 − 4 × −10 = 38 (3.13)
4 −1
∆1 −7 7 ∆2 38 38
𝑥= = = , 𝑦=− =− = (3.14)
∆0 −10 10 ∆0 −10 10
𝑥 −𝑦 𝑧 −1
= = = (3.15)
∆1 ∆2 ∆2 ∆0
∆1 ∆2 ∆3
𝑥=− , 𝑦= , z=− (3.16)
∆0 ∆0 ∆0
Note: The positive and negative signs alternate has the degree
increases.
Solve
3𝑥 − 3𝑦 − 4𝑧 = 1
𝑥−𝑦− 𝑧 =2 (3.17)
2x − y + 4y = 3
Rearrange
3𝑥 − 3𝑦 − 4𝑧 − 1 = 0
𝑥−𝑦− 𝑧 −2 =0 (3.18)
2x − y + 4z − 3 = 0
3 −3 −4 −1
[1 −1 −1 −2] (3.20)
2 −1 4 −3
3 −3 −4
∆0 = |1 −1 −1| = −1 (3.21)
2 −1 4
−3 −4 −1
∆1 = |−1 −1 −2| = (3.22)
−1 4 −3
−3 −1 −2 − −4 −1 −2 +−1 −1 −1
= | | | | | |
4 −3 −1 −3 −1 4
3 −1 −2 − −4 1 −2 +−1 1 −1
= | | | | | |
4 −3 2 −3 2 4
3 −3 −1
∆3 = |1 −1 −2| (3.24)
2 −1 −3
3 −1 −2 − −3 1 −2 +−1 1 −1
= | | | | | |
−1 −3 2 −3 2 −1
∆1 ∆2 ∆3 (3.25)
𝑥=− , 𝑦= , z=−
∆0 ∆0 ∆0
−24 31 5
𝑥=− , 𝑦= , z=− (3.26)
−1 −1 −1
𝑥 = −24, 𝑦 = −31, z = 5
For a system of two linear equations in two unknowns (x, y) given below:
𝑎11 𝑥 + 𝑎12 𝑦 = 𝑏1
(3.27)
𝑎21 𝑥 + 𝑎22 𝑦 = 𝑏2
𝑏 𝑎12 𝑎 𝑏1
| 1 | | 11 |
𝑏2 𝑎22 𝑎21 𝑏2
𝑥= 𝑎 , 𝑦= 𝑎 (3.28)
11 𝑎12 11 𝑎12
|𝑎 | | 𝑎21 𝑎22 |
21 𝑎22
The denominator is the determinant of the coefficients of x and y. The numerator for x is
the determinant of coefficient matrix when coefficient of x is replaced by b. Similarly, the
numerator for y is the determinant of coefficient matrix when coefficient of y is replaced
by b.
(3.29)
𝑎11 𝑥 + 𝑎12 𝑦 + 𝑎13 𝑧 = 𝑏1
𝑎21 𝑥 + 𝑎22 𝑦 + 𝑎23 𝑧 = 𝑏2
𝑎31 𝑥 + 𝑎32 𝑦 + 𝑎33 𝑧 = 𝑏3
𝑏1 𝑎12 𝑎13
|𝑏2 𝑎22 𝑎23 |
𝑏 𝑎 𝑎
𝑥 = 𝑎 3 𝑎32 𝑎33 , 𝑦 =?, 𝑧 =? (3.30)
11 12 13
|𝑎21 𝑎22 𝑎23 |
𝑎31 𝑎32 𝑎33
𝑎11 𝑏1 𝑎13
|𝑎21 𝑏2 𝑎23 |
𝑎 𝑏 𝑎
𝑦 = 𝑎 31 𝑎 3 𝑎33 , (3.31)
11 12 13
𝑎
| 21 𝑎 22 𝑎 23 |
𝑎31 𝑎32 𝑎33
𝑎11 𝑎12 𝑏1
|𝑎21 𝑎22 𝑏2 |
𝑎 𝑎 𝑏
𝑧 = 𝑎 31 𝑎 32 𝑎 3 , (3.32)
11 12 13
𝑎
| 21 𝑎 22 𝑎 23 |
𝑎31 𝑎32 𝑎33
𝐷𝑥 𝐷𝑦 𝐷𝑧
𝑥= , 𝑦= , 𝑧= (3.33)
𝐷 𝐷 𝐷
Solve
(3.34)
3𝑥 − 3𝑦 − 4𝑧 = 1
𝑥−𝑦− 𝑧 =2
2x − y + 4y = 3
1 −3 −4
|2 −1 −1|
𝑥= 3 −1 4 = 24 = −24
3 −3 −4 −1
|1 −1 −1|
2 −1 4
3 1 −4
|1 2 −1|
𝑦= 2 3 4 = 31 = −31
3 −3 −4 −1
|1 −1 −1|
2 −1 4
3 −3 1
|1 −1 2|
−5
𝑧 = 2 −1 3 = =5
3 −3 −4 −1
|1 −1 −1|
2 −1 4
Note: For both the determinant Equation Method and Cramer’s rule determinant, ∆0 or 𝐷
, the coefficient of the unknown must not equal zero.
∆0 ≠ 0; 𝐷 ≠ 0
4
Chapter 4
A matrix is said to be linearly dependent if the determinant is zero and linearly independent
if the determinant is not zero.
Linear dependence
𝐷 = |𝐴| = 0 (4.1)
𝐷 = |𝐴| ≠ 0 (4.2)
2 3 4
𝐴 = |6 1 0| (4.3)
2 3 4
3 −3 −4
𝐵 = |1 −1 −1| (4.4)
2 −1 4
2 3 4
𝐴 = |6 1 0| = 0 (4.5)
2 3 4
3 −3 −4
𝐵 = |1 −1 −1| = −1 (4.6)
2 −1 4
5
Chapter 5
5 Rank of a matrix
The rank of an m x n matrix A is the order of the largest square, linear independence sub-
matrix. In order to get a matrix rank you must get a non-zero determinant matrix of the
original m x n matrix or a sub-matrix.
3 −3 −4
𝐵 = |1 −1 −1| = −1 (5.1)
2 −1 4
2 3 4
𝐴 = |6 1 0| = 0 (5.2)
2 3 4
The determinant is zero, we need to check for the determinant of its sub-matrix:
2 3
𝐴1 = | | = −16 (5.3)
6 1
Since the determinant of the sub-matrix A1 is non-zero, we can conclude that matrix A is of
rank =2.
6
Chapter 6
Similarly,
𝑥
𝑎11 𝑎12 𝑎13 1 𝑏1
[𝑎 𝑥
21 𝑎22 𝑎23 ] [ 2 ] = [𝑏2 ] (6.4)
𝑥3
Generally,
𝑎11 𝑥1 𝑎12 𝑥2 𝑎13 𝑥3 … 𝑎1𝑛 𝑥𝑛 = 𝑏1
𝑎21 𝑥1 𝑎22 𝑥2 𝑎23 𝑥3 … 𝑎2𝑛 𝑥𝑛 = 𝑏1
𝑎31 𝑥1 𝑎32 𝑥2 𝑎33 𝑥3 … 𝑎3𝑛 𝑥𝑛 = 𝑏1 (6.5)
⋮ ⋮ ⋮ ⋮ ⋮
𝑎𝑚1 𝑥1 𝑎𝑚2 𝑥2 𝑎𝑚3 𝑥3 … 𝑎𝑚𝑛 𝑥𝑛 = 𝑏𝑚
𝐴∙𝑥 =𝑏 (6.7)
where
𝐴-1 . 𝐴 = 𝑰 (6.10)
𝑰. 𝑥 = 𝐴-1 . 𝑏 (6.11)
𝑥 = 𝐴-1 . 𝑏 (6.12)
and
-1
CT
𝐴 = (6.13)
|𝐴|
7
Chapter 7
𝐴. 𝑥 = 𝑏 (7.1)
𝑥 = 𝐴-1 . 𝑏 (7.2)
-1
CT
𝐴 = (7.3)
|𝐴|
𝐴𝑏 . = [𝐴|𝑏] (7.4)
For a solution to exist for a set of linear equations the following must be true:
𝑥 = 0, 𝐴-1 = 0 or 𝑏 = 0 (7.5)
8
Chapter 8
8 Gaussian elimination.
Gaussian elimination method converts the combine matrix of A and b, [𝐴|𝑏] to triangular
matrix. Then proceed with backward substitution to obtain x.
𝐴∙𝑥 =𝑏 (8.3)
𝐴𝑏 = [𝐴|𝑏] (8.4)
̃𝑏
𝐴𝑏 → 𝐴 (8.6)
𝑏̃3⁄ (8.10)
𝑥3 = 𝑎̃33
𝑏̃2 − 𝑎̃23 𝑥3
𝑥2 = (8.11)
𝑎̃22
3𝑥 − 3𝑦 − 4𝑧 = 1
𝑥−𝑦− 𝑧 =2 (8.13)
2x − y + 4y = 3
Step 1: Write in matrix form.
𝐴∙𝑥 =𝑏 (8.14)
3 −3 −4 𝑥 1
𝑦
[1 −1 −1] [ ] = [2] (8.15)
2 −1 4 𝑧 3
𝐴𝑏 = [𝐴|𝑏] (8.16)
3 −3 −4 | 1
𝐴𝑏 = [1 −1 −1 | 2] (8.17)
2 −1 4 | 3
̃.
Step 3: Using matrix row equivalent operation reduce 𝑀 to triangular matrix 𝑀
̃𝑏
𝐴𝑏 → 𝐴 (8.18)
𝑝𝑖𝑣𝑜𝑡, 𝑝 = 1, … , 𝑚 − 1
𝑖 = 𝑝 + 1, . . . , 𝑚
Note: (8.19)
𝑎𝑝𝑝 ≠ 0
𝑎𝑖𝑝
𝑅𝑖 = 𝑅𝑖 − (𝑅𝑝 × ) (8.20)
𝑎𝑝𝑝
𝑝 = 1, . . . ,2; 𝑖 = 2, . . . ,3 (8.21)
̃𝑏
Reduce 𝐴 𝑝=1
𝑝 = 1; 𝑖 = 2 (8.22)
1
𝑅2 = [1 −1 −1 | 2] − ([3 −3 −4 | 1] × )
3 (8.24)
= [0 0 0.33 | 1.67]
𝑝 = 1; 𝑖 = 3 (8.25)
2
𝑅3 = [2 −1 4 | 3] − ([3 −3 −4 | 1] × )
3 (8.26)
= [0 1 6.67 | 2.33]
3 −3 −4 | 1
̃𝑏
𝐴 = [0 0 0.33 | 1.67] (8.27)
𝑝=1
0 1 6.67 | 2.33
̃𝑏
Reduce 𝐴 𝑝=2
𝑝 = 2; 𝑖 = 3 (8.28)
𝑝 = 2; 𝑖 = 3 (8.31)
0
𝑅3 = [0 0 0.33 | 1.67] − ([0 1 6.67 | 2.33] × )
1 (8.33)
= [0 0 0.33 | 1.67]
3 −3 −4 | 1
̃
𝐴𝑏 𝑝=2 = [0 1 6.67 | 2.33] (8.34)
0 0 0.33 | 1.67
𝑥3 = 1.67⁄
0.33 = 5.06 (8.36)
2.33 − 6.67(5.06)
𝑥2 = = −31.42 (8.37)
1
1 − −3(−31.42) − −4(5.06)
𝑥1 = = −24.34 (8.38)
3
8.2 Determinant from Gaussian Elimination
𝑚=3
Chapter 9
𝐴. 𝑥 = 𝑏 (9.1)
𝑥 = 𝐴-1 . 𝑏 (9.2)
-1
CT
𝐴 = (9.3)
|𝐴|
where CT is the adjoint of matrix A, and Adjoint is the transpose of the co-factor of matrix
A.
9.2 Cofactors
where each element of the cofactor is formed from the determinant of its sub-matrix
multiplied by element position sign. The element positional sign alternate between plus +
and minus −.
3 −3 −4
𝐴 = [1 −1 −1] (9.6)
2 −1 4
−5 −6 1
Cofactor 𝐴 = [ 16 20 −3] (9.16)
−1 −1 0
9.3 Adjoint
From Eq (9.16)
−5 16 −1
𝐴𝑑𝑗 𝐴 = 𝐶 𝑇 = [−6 20 −1] (9.17)
1 −3 0
CT
𝐴-1 = (9.18)
|𝐴|
3 −3 −4
|𝐴| = |1 −1 −1| = −1 (9.19)
2 −1 4
Therefore
1 −5 16 −1 5 −16 1
𝐴-1 = [−6 20 −1] = [ 6 −20 1] (9.20)
−1
1 −3 0 −1 3 0
𝑥 = 𝐴-1 . 𝑏 (9.21)
𝑥 5 −16 1 1
𝑦
[ ] = [ 6 −20 1] [2]
𝑧 −1 3 0 3
(9.22)
𝑥 (5 × 1) + (−16 × 2) + (1 × 3) −24
[𝑦] = [(6 × 1) + (−20 × 2) + (1 × 3)] = [−31]
𝑧 (−1 × 1) + (3 × 2) + (0 × 3) 5
10
10
Chapter 10
10.1 Eigenvalues
Eigenvalues are characteristic scalar value (𝜆) of a square matrix (𝐴) that satisfy the
equation 10.1.
𝐴𝑥 = 𝜆𝑥 (10.1)
In other to find the eigenvalues, we develop the characteristic equation and solve the
characteristic polynomial of matrix A.
(𝐴 − 𝜆𝑰)𝑥 = 0 (10.2)
|𝐴 − 𝜆𝑰| = 0 (10.3)
10.1.1 Example
2 3
𝐴=[ ] (10.4)
4 1
2 3 1 0 (2 − 𝜆) 3
𝐴 − 𝜆𝑰 = [ ]−𝜆[ ]=[ ] (10.5)
4 1 0 1 4 (1 − 𝜆)
(2 − 𝜆) 3
|𝐴 − 𝜆𝑰| = | | = (2 − 𝜆)(1 − 𝜆) − 12
4 (1 − 𝜆)
= 2 − 2𝜆 − 𝜆 + 𝜆2 − 12 (10.6)
|𝐴 − 𝜆𝑰| = 𝜆2 − 3𝜆 − 10 = 0
𝜆 = −2 𝑜𝑟 5 (10.7)
𝜆1 = −2, 𝜆2 = 5 (10.8)
10.2 Eigenvectors
Each eigenvalues obtained has a corresponding eigenvector or eigenline associated with it.
𝐴𝑥 = 𝜆𝑥 (10.9)
10.2.1 Example
2 3
𝐴=[ ]
4 1
(10.10)
𝜆1 = −2, 𝜆2 = 5
For 𝜆1 = −2
2 3 𝑥1 𝑥1
[ ] [𝑥 ] = −2 [𝑥 ] (10.11)
4 1 2 2
2𝑥1 + 3𝑥2 = −2𝑥1
4𝑥1 + 𝑥2 = −2𝑥2 (10.12)
4
𝑥2 = − 𝑥1 (10.13)
3
𝑘 1
𝑥1 = [−4𝑘] and the smallest: 𝑥1 = [−4] (10.14)
3 3
For 𝜆2 = 5
2 3 𝑥1 𝑥1
[ ] [𝑥 ] = 5 [𝑥 ] (10.15)
4 1 2 2
𝑥2 = 𝑥1 (10.17)
𝑘 1
𝑥2 = [ ] and the smallest: 𝑥2 = [ ] (10.18)
𝑘 1