Professional Documents
Culture Documents
Chapter 1
Matrix
Lecturer: Sirwan Gh. Salim
8 2.5 a 32
6 3 1 a 23
0 1.1 :
2 0 9 : rectangular rectangular
matrix 5 3 matrix
9.1
2.7 a 41 matrix;
8 0 1.4 1.3 a 14 matrix; an
example of a : an example of
: row vector. 0.7 a column
vector.
2.3
1
2022-2023
Mathematics Chapter1 First stage
Diagonal Matrices
This is special form of square matrices. The elements of a matrix for which i
= j are referred to as the diagonal elements of the matrix, while the other
elements (i j) are referred to as the off-diagonal elements. Thus, in the
matrix
9 3 6
A 1 7 9
0 7 2
Triangular matrices
This is special form of square matrices which come in two forms:
upper triangular, in which all of the elements below the diagonal
are zero,
9 3 6
A 0 7 9
0 0 2
1 0 0 0
0 1 0 0
I
0 0 1 0
0 0 0 1
3
2022-2023
Mathematics Chapter1 First stage
Solution:
Matrix addition & subtraction
15 12 4
A B 17 6 12
4 7 10
1 4 0
A B 1 2 6
2 5 2
Matrix Multiplication:
Scalar Multiplication
In linear algebra, individual numbers are referred to as scalars.
Multiplication of a matrix by a scalar proceeds element-by-
element, with the scalar being multiplied by each element in turn.
Mathematically, we express multiplication of a matrix A by a scalar
as: cA caij caij
Where c is the scalar, thus, multiplication by the scalar 3 is
accomplished as:
3 1 3 3 3 1 9 3
3
1.7 2 3 1.7 3 2 5.1 6
Multiplication of Matrices
If C is a matrix resulting from the multiplication of two matrices, A
and B, then the elements cij of C are given by:
n
cij aik bkj Equation 1
k 1
You work across the second row of the left-hand matrix and down
the third column of the right-hand matrix:
Solution:
We first note that multiplication of A by B is allowed by Equation 1
because the number of columns in A is the same as the number of
rows in B, which allows us to calculate C = AB as:
1 2 3 4 5 6
C AB 4 5 6 7 8 9
7 8 9 1 2 3
1* 4 2 * 7 3 *1 1* 5 2 * 8 3 * 2 1* 6 2 * 9 3 * 3
4 * 4 5 * 7 6 *1 4 * 5 5 * 8 6 * 2 4 * 6 5 * 9 6 * 3
7 * 4 8 * 7 9 *1 7 * 5 8 * 8 9 * 2 7 * 6 8 * 9 9 * 3
21 27 33
57 72 87
93 117 141
6
2022-2023
Mathematics Chapter1 First stage
Practice Problems:
For each of the following, determine whether the indicated
multiplication is allowed and, if it is, calculate the corresponding
product matrix:
2 1 3 1 6 1
a. 1 8 3 3 5 3
5 7 1 2 4 9
4 3 1 5
b. 2 2 2 4
1 4 3 3
5 4 3 1
c. 4 2 2 2
3 1 4 3
2 3 2 0.75
d.
4 8 1 0.5
1 2 6 5 3
e.
2 5 1.3 5 5 1
Matrix Multiplication
a. Multiplication is allowed:
5 29 22
answer = 17 58 2
14 69 17
b. Multiplication is allowed:
35
answer = 24
30
7
2022-2023
Mathematics Chapter1 First stage
Linear System:
A Linear System of m linear equations and (n) unknowns is:
a11 x1 a12 x2 a13 x3 .... a1n xn b1
a21 x1 a22 x2 a23 x3 .... a2 n xn b2
a31 x1 a32 x2 a33 x3 .... a3n xn b3
.......... .......... .......... .......... .......... .....
.......... .......... .......... .......... .......... .....
.......... .......... .......... .......... .......... ......
am1 x1 am 2 x2 am 3 x3 .... amn xn bm
am1 am 2 amn n
x bm
3x – y + 6z = 6
x + y +z = 2
2x + y+4z = 3
3 1
6 x 6
1 11 y 2
2 14 z 3
3 1 6 : 6
Augmented form is A : b 1 1 1 : 2 .
2 1 4 : 3
Determinant of Matrix
The determinant of the matrix A is denoted by |𝐴|,
If A is a (2*2) matrices, the determinant of the matrix can be
found as below:-
3 2
Example: 𝐴 = | | 𝑡ℎ𝑒𝑛 |𝐴| = (−9 − 10) = −19
5 −3
Minor:
Minor: the minor of an element in determinant is a determinant
removing the rows and columns which pass through that element.
9
2022-2023
Mathematics Chapter1 First stage
By using
10
2022-2023
Mathematics Chapter1 First stage
1 13 1 13 1 1
| A | 1 (2) 4
6 1 2 1 2 6
1(1 78) 2(1 (26)) 4(6 (2)) 3
Note:
1- If all elements of a matrix above the principal diagonal (or
below the principal diagonal) are zero, then the value of the
determinant is the product of the elements on the principal
diagonal.
𝟓 𝟔 −𝟏
𝑩 = [𝟎 𝟏 𝟑]
𝟎 𝟎 𝟐
𝑑𝑒𝑡𝑒𝑟𝑚𝑖𝑛𝑎𝑛𝑡 𝐴 = |𝐴| = 5 ∗ 1 ∗ 2 = 10
𝟏 𝟎 𝟎
𝑪 = [𝟐 𝟓 𝟎]
𝟎 −𝟏 𝟐
𝑑𝑒𝑡𝑒𝑟𝑚𝑖𝑛𝑎𝑛𝑡 𝐶 = |𝐶| = 1 ∗ 5 ∗ 2 = 10
𝟐 𝟏 𝟎
𝑨 = [𝟑 −𝟏 −𝟐] 𝒊𝒇 𝟐𝑹𝟐 + 𝑹𝟑 → 𝑹𝟑
𝟐 𝟑 𝟏
2 1 0
𝐴 = [3 −1 −𝟐]
8 1 −𝟑
𝒊𝒇 𝑹𝟐 + 𝟓𝑹𝟏 → 𝑹𝟐
11
2022-2023
Mathematics Chapter1 First stage
1 −2 3 1
2 1 0 2
𝐴=| |
−1 2 1 −2
0 1 2 1
Solution:
1 −2 3 1
2 1 0 2
𝐴=| | −2𝑅1 + 𝑅2 → 𝑅2
−1 2 1 −2
0 1 2 1
𝑅1 + 𝑅3 → 𝑅3
1 −2 3 1
0 5 −6 0 1
𝐴=| | − 𝑅2 + 𝑅4 → 𝑅4
0 0 4 −1 5
0 1 2 1
1 −2 3 1
0 5 −6 0 4
𝐴 = ||0 0 4 −1|| − 𝑅3 + 𝑅4 → 𝑅4
5
16
0 0 1
5
1 −2 3 1
0 5 −6 0
|
𝐴 = |0 0 4 −1||
9
0 0 0
5
𝟗
|𝑨| = 𝟏 ∗ 𝟓 ∗ 𝟒 ∗ = 𝟑𝟔
𝟓
12
2022-2023
Mathematics Chapter1 First stage
x1 + x2 + 2x3 = 8
- x1 - 2x2 + 3x3 = 1
3x1 - 7 x2 + 4x3 = 10
1 1 2: 8
1 2 3 : 1
R1+R2 R2
3 7 4 : 10
-3R1+R3 R3
13
2022-2023
Mathematics Chapter1 First stage
1 1 2:8
5 : 9
0 1 -10R2+R3 R3
0 10 2 : - 14
1 1 2 : 8
0 1 5 : 9
0 0 52 : - 104
-52 x3 = -104 x3 =2
x1 + x2 + 2x3 = 8 x1 = 3
Solution is x1 = 3, x2 = 1, x3 = 2.
1 2 4 6
1 1 13 6 - R1 + R2 R2
2 6 1 1
14
2022-2023
Mathematics Chapter1 First stage
1 2 4 6
0 3 9 0 2 R1 + R3 R3
2 6 1 1
1 2 4 6
0 3 9 0 𝑅3 −
2
𝑅2 → 𝑅3
3
0 2 7 11
1 2 4 6
0 1 3 0
0 0 1 11
2- Cramer’s Rule
15
2022-2023
Mathematics Chapter1 First stage
3x 2 y 1
5 x 3 y 11
3 2 1 2
D (9 10) 19 Dx (3 22) 19
5 3 11 3
3 1
Dy (33 5) 38
5 11
Dx 19 Dy 38
Now, x 1 and y 2
D 19 D 19
4x - y + z = -5
2x + 2y + 3z = 10
5x – 2y + 6z = 1
16
2022-2023
Mathematics Chapter1 First stage
= 72 – 3 – 14
= 55
= -5(18)+1(57) + 1(-22)
= -90 + 57 – 22
= -55
= 228 - 15 – 48
= 165
17
2022-2023
Mathematics Chapter1 First stage
= 88 – 48 + 70
= 110
Substitute these four values into the formula from Cramer’s Rule:
18
2022-2023
Mathematics Chapter1 First stage
19