Professional Documents
Culture Documents
BAB. SATU
MATRIK DAN DETERMINAN
Jurusan Teknik Sipil
Politeknik Negeri Semarang
28/03/24 1
1. Definitions & Types of Matrices
28/03/24 2
CONTENT
2. Operation on Matrices
3. Determinant of Matrices
4. Inverse Matrices
28/03/24 3
A Matrix
C1 C2 Cj Cn
A Matrix A is a rectangular Row 1 a11 a12 a1 j a1n
a2 n
array of numbers arranged Row 2 a21 a22 a2 j
in rows and column and A
Row i ai1 ai 2 aij ain
enclosed in brackets
Row m am1 am 2 amj amn
28/03/24 4
Equality of Matrices
Two matrices are equal (A = B) if
They have the same order
Their corresponding elements are equal
Examples
a b 1 5
a 1, b 5, c 4
c 21 4 21
3
3 2 (Different order)
2
1 5 1 51
(not all corresponding elements are equal)
4 21 4 21
28/03/24 5
Types of Matrices
Row Matrix
A matrix with 1 n order 1 2 1 2
Column Matrix 1
A matrix with m 1 order 2 2 1
Square Matrix 1 3
A matrix with the same number of rows & column 2 4 2 2
Null (Zero) Matrix , O 0 0
Ο
A matrix where all the elements are zero
0 0
Identity Matrix, I 1 0
A square matrix where the elements in the main I
diagonal are all 1’s & the others are all zeros 0 1
28/03/24 6
Types of Matrices
Diagonal Matrix a 0
A square matrix where all its elements 0 b
zeros, except for those in the main diagonal
Symmetric Matrix
1 2
A square matrix where the elements are 2 4
symmetrical about the main diagonal
Upper Triangular Matrix 1 3
A square matrix where all the elements 0 2
below the main diagonal are zeros
28/03/24 7
2. Operation on Matrices
28/03/24 8
2.1. Addition
Two matrices A and B of the same order can be
added by adding the corresponding elements of
A and B . a b p q
If A = and B =
c d r s
a b p q a p b q
Hence, A B = + r s c r d s
c d
Addition of matrices
A+B = B+A
Commutative, that is
A + B C = A + B + C
Associative, that is
28/03/24 9
Example 1 (Addition)
4 2 6 3 9 0
Given the matrices A , B ,
1 3 7 4 1 8
2 5 1 6
C , and D find
, the following
3 4 7 12
matrices if exist.
1) A + B 2) A + C 3)C + D 4)D + C
If show that C + O = C
0 0
Ο
0 0
28/03/24 10
2.2. Subtraction
28/03/24 11
Example 2 (Subtraction)
4 2 6 3 9 0
Given the matrices A , B ,
1 3 7 4 1 8
2 5
and C . Find the following
3 4
matrices if exist. 1) A B 2)B C
28/03/24 12
2.3. Scalar Multiplication
For a matrix A and real number k, the matrix
kA is obtained by multiplying each element in
A by k.
a b
If A = then,
c d
a b ka kb
kA = k where k is real number
c d kc kd
If A and B have the same order, then for any scalars h and k , we have
k A B = kA kB
h k A = hA kA
h kA = hk A
28/03/24 13
Example 3 (Scalar multiplication)
3 21 9 12
4 9 5 1
A 16 4 , B 9 14 , C , and D ,
3 8 7 9 3 10 13 5
28/03/24 14
2.4. Multiplication
The product AB is defined only if the number of columns of
A is equal to the number of rows of B.
In general, A.B = P
me en mn
Multiplication is done by
Taking a row from the 1st matrix & a column from the 2nd
matrix
Multiplying the corresponding elements from the row &
column
Adding the products
28/03/24 15
Example 4 (Multiplication)
Given the matrices
4 2 1 3 2 1
A , B , and C ,
3 3 7 2 4 6
28/03/24 16
2.4. Multiplication ...
Multiplication of matrices is
Associative, that is A BC = AB C
Distributive, that is
A B + C = AB + AC and A + B C = AC + BC
In general AB BA
28/03/24 17
Example 5 (Multiplication)
Given the matrices
4 3 1 2 2 1
A , B , and C ,
7 1 5 3 2 4
Is AB = BA ?
28/03/24 18
2.5. Transpose of a matrix
The transpose of a m n matrix is the n m
matrix obtained by interchanging the rows &
column
T
The transpose of A is denoted by A
a b a c
Example, If A , then A
T
c d b d
Properties : A
T T
A and A B
T
AT BT
28/03/24 19
Example 6 (Transpose)
Given the matrices
4 2 1 3 2 1
A , B , and C ,
3 3 7 2 4 6
1) A T 2) B T 3) CT 4) A T B 5) BCT
28/03/24 20
3. Determinant of Matrices
28/03/24 21
Determinant of 2 2 Matrices
a b
1. If A = the determinant of A,
c d
a b
det A A = ad bc
c d
2. For a square matrix A,
A = AT
3. For any two square matrices A and B of the same order,
AB = A B
28/03/24 22
Example 7 (Determinant)
Given the matrices
4 3 1 2 2 1
A , B , and C ,
7 1 5 3 2 4
28/03/24 23
Determinant of 3 3 Matrices
Use Special Formula
a11 a12 a13
If A a21 a22 a23 , then the determinant of A,
a31 a32 a33
28/03/24 24
Example 8 (Determinant)
Given the matrices
1 2 3 3 1 5 1 2 3
A 4 5 6 , B 0 2 8 , and C 2 2 3 ,
7 8 9 0 0 3 3 3 3
28/03/24 25
Minor of an element
Let A be an m n matrix and k an integer with 0 < k , k m, and k n.
A k k minor of A is the determinant of a k k matrix obtained from
A by deleting m - k rows and n - k columns.
28/03/24 28
Example 9 (Minor and cofactor)
1 2 3 4 5 2
A 4 5 6 , and B 2 8 1 ,
7 8 9 6 0 3
28/03/24 29
Determinant of n n Matrices
The determinant of a n n matrix is the sum of the
products of the i row (or j column) elements with
their corresponding cofactors
n
A aik cik ai1ci1 ai 2ci 2 ain cin
k 1
28/03/24 31
4. Inverse Matrices
By the end of this topic, you should be
able to
Define the inverse of a matrix & its
properties
Apply the elementary row operation to
obtain the inverse of matrices
Find the inverse matrix using the adjoint
matrix
28/03/24 32
Matrix inverse
A square matrix A is invertible or nonsingular if there exist
a square matrix B, called an inverse of A, such that
AB = I and BA = I
B is called an inverse of A B A
1
and
A is called an inverse B A B 1
28/03/24 34
Inverse of a 2 2 Matrices
a b
1. If A = the inverse of A is,
c d
1 1 d b 1 d b
A
A c a ad bc c a
2. A is invertible if only if A ad bc 0
28/03/24 35
Example 11 (Inverse)
Given the matrices
1 4 1 3 1 1
A , B , and C ,
1 5 2 6 2 3
28/03/24 36
Example 12 (Inverse)
Given the matrices
2 2 4 5 2 1
A , B , and C ,
3 4 2 h k 1
If AC = I, find the value of k
If |B| = 2 |A|, find the value of h
Find the inverse of A 2
28/03/24 37
1. Find Inverse Matrix by
Elementary Row Operation
To find A 1 , if it exist, do the following
1
The reduced matrix is now in the form [I: A ]. Read
the inverse A 1
28/03/24 38
Row Echelon Form
Consider the following conditions on a matrix:
1. All zero rows are at the bottom of the matrix (at least one row is
nonzero)
2. The leading entry of each nonzero row after the first occurs to the
right of the leading entry of the previous row.
3. The leading entry is any nonzero row is 1.
4. All entries in the column above and below a leading 1 are zero
28/03/24 39
Elementary Row Operation
The elementary row operation of a
matrix consist of the following:
28/03/24 40
Example 13 (Inverse)
Given the matrices
1 2 2 2 3 4
A 3 1 1 , and B 2 1 1 ,
2 1 0 1 1 2
28/03/24 41
2. Find Inverse Matrix by Adjoint
Matrix
1 1 1 T
A adjA C
A A
28/03/24 42
Example 14 (Inverse)
Given the matrices
1 2 2 2 3 4
A 3 1 1 , and B 2 1 1 ,
2 1 0 1 1 2
28/03/24 43
Thank You
28/03/24 44