Basic Concepts of Matrices
Basic Concepts of Matrices
Advantages:
Matrix algebra has at least two advantages:
• Reduces complicated systems of equations to simple expressions
4 2 a b
1 1
3 0 c d
The dimensions, or size, of a matrix are:
# of rows X # of columns.
Example:
1 2 4
1 1 3 3
4 1 5
0 0 3 2 1 1
3 3 3
1 1 6 0 3 5 2
Column Matrix: A matrix which has only one column is called a column matrix.
Example:
1 a11
4 1 a21
3
2
am1 5
FIND THE DIMENSION OF EACH MATRIX
1
2 1 2
2. B =
1. A = 0 5 3
8
4 4
Dimension: 3 × 2 Dimension: 4 × 1
0 5 3 1
3. C =
2 0 9 6
Dimension: 2 × 4
6
TYPES OF MATRICES (2)
Rectangular Matrix: A matrix where number of rows is not equal to the number of
columns is called rectangular matrix.
Example:
1 1 1 0 0
2 0 3 3 0
Square Matrix: A matrix which has the same number of rows and columns is called
square matrix.
Example:
1 1 1 1 1
9 9 0
3 0
6 6 1
7
TYPES OF MATRICES (3)
Diagonal Matrix: A square matrix where all the elements are zero except those on
the main diagonal.
Example: 3 0 0 0
1 0 0 0 3 0 0
0 2 0
0 0 5 0
0 0 1
0 0 0 9
Identity/Unit Matrix: An identity matrix is a square matrix that has 1’s along the main
diagonal and 0’s everywhere else. Notation : 𝐼𝑛 for 𝑛 × 𝑛 unit matrix.
Example:
1 0 0
1 0
I 3 0 1 0 I2
0 1
0 0 1
8
TYPES OF MATRICES (4) Unit matrix
Scalar Matrix: A diagonal matrix whose main diagonal elements are equal
Scalar matrix
Example: 6 0 0 0
0 6 0 0 Diagonal matrix
0 0 6 0
0 0 0 6
4 0 0 0 4 0 0 0 1 0 0 0
0 5 0 0 0 4 0 0 0 1 0 0
M M M
0 0 0 0 0 0 4 0 0 0 1 0
0 0 0 3 0 0 0 4 0 0 0 1
9
DIAGONAL AND TRACE
3 1 2 0 1
0 2 1 1 2
diag(M) = { 3, -2, 2.7, 0, -8.5 }
tr (M) = 3 + (-2) + 2.7 +0 + (-8.5) M 2 1 2.7 2 0
= -4.8 1 1 1 0 2
6 4 3 2 8.5
10
TYPES OF Example:
MATRICES (5)
Zero/Null/Void matrix :
0 0 0 0 0 0
0 0 0 2 1 0
each entry is zero(0).
Nonzero matrix : 0 0 0 0 0 3
at least 1 nonzero ( ≠ 0 ) entry
Zero matrix Nonzero matrix
Sparse matrix :
Upper Triangular Matrix: A square matrix whose elements below the main diagonal are all zero.
Example: 1 8 7
0 1 8
0 0 3
Lower Triangular Matrix: A square matrix whose elements above the main diagonal are all zero.
Example:
1 0 0
2 1 0
5 2 3 12
PERMUTATION MATRIX
A permutation matrix (P) looks very similar to an identity Matrix. A permutation Matrix (P):
Is a square matrix
Consists of only 1’s and 0’s
Each row must consist of a single 1
Each column must consist of a single 1
1 0 0 1 0 0 0 1 0
0 0 1 0 0 1 1 0 0
0 1 0 0 1 0 0 0 1
Matrix 𝑃1 Matrix 𝑃2 Matrix 𝑃3
13
TRANSPOSE OF A MATRIX
Matrix Transpose: Transpose of a matrix A is a matrix obtained by interchanging the
rows and columns of A.
Denoted by: AT or , A '
12
9
X X ' 12 9 4 0
4 x1 4 1x 4
0
21 44 77
21 62 33 93 62 95 38
A 44 95 66 13 A'
3x4 4 x3 33 66 79
77 38 79 33
93 13 33 14
DETERMINANT (1)
A Determinant is a number associated with a matrix. Only SQUARE matrices have a
determinant.
The symbol for a determinant can be the phrase “det” in front of a matrix variable,
det(A); or vertical bars around a matrix, |A|
C 4 C 4
1 x1
a1 b1
C C a1 * b2 b1 * a2
2x2
a2 b2
3 2
C C 3*1 2*5 3 10 7
2x2
5 1
15
DIFFERENCE BETWEEN MATRIX AND DETERMINANT
Matrix Determinant
A matrix cannot be reduced to a A determinant can be reduced to a
single number. single number
In a matrix, the number of rows In a determinant, the number of rows
may not be equal to the number of must be equal to the number of
columns. columns.
An interchange of rows or columns
An interchange of rows or columns
gives the same determinant with +ve
gives a different matrix.
or –ve sign.
Examples: Examples:
1 2 3
1 2 1 2 3 1 2
2 1 0
3 4 4 5 6 3 4
2 3 4
16
DETERMINANT (2)
Rectangular | M | undefined
Singular |M| = 0
Nonsingular |M| ≠ 0
17
PRACTICE ⤑ PERFECTION
18
ANY QUESTION???
19