(Week 2-Day 1) Matrices
(Week 2-Day 1) Matrices
MATHEMATICS
MATRICES
(BSIT – 2A,2b,2c & 2D)
By: Mr. Salman V. Delfin – College Instructor
MUTE FOR A MOMENT
• Elimination Method
• Basic Concept of Matrices
• Operations of Matrices
Let’s Define
MATRIX
What does a matrix look like?
Matrices are everywhere. If you have used a spreadsheet such as Excel or Lotus or
written a table, you have used a matrix. Matrices make presentation of numbers clearer
and make calculations easier to program.
Look at the matrix below about the sale of tires in a Blowoutr’us store – given by
quarter and make of tires.
Q1 Q2 Q3 Q4
Tirestone 25 20 3 2
Michigan 5 10 15 25
Copper 6 16 7 27
If one wants to know how many Copper tires were sold in Quarter 4, we go along the row
Copper and column Q4 and find that it is 27.
What is a
matrix?
A matrix is a rectangular array of elements. The elements can
be symbolic expressions or numbers. Matrix [A] is denoted by
a11 a12 ....... a1n
a a 22 ....... a 2 n
[ A] 21
a m1 am2 ....... a mn
What is a matrix?
Row i of [A] has n elements and is ai1 ai 2 ....ain
a1 j
a
2j
and column j of [A] has m elements and is
a mj
What is a matrix?
Each matrix has rows and columns and this defines the size of the
matrix. If a matrix [A] has m rows and n columns, the size of the
25 20 3 2
[ A] 5 10 15 25
6 16 7 27
There are 3 rows and 4 columns, so the size of the matrix is 3×4. In
Column vector:
If a matrix [C] has one column, it is called a column vector
c1
[C ]
c m
[ B] [25 20 3 2 0]
[B] is an example of a row vector of dimension 5.
Column Vector
Example 2
25
[C ] 5
6
Example 3
4 6 2
[ A]
3 1 2
Square Matrix
If the number of rows m a matrix is equal to the number of columns n of a matrix
[A], (m=n), then [A] is called a square matrix. The entries a11,a22,…, ann are
called the diagonal elements of a square matrix. Sometimes the diagonal of the
matrix is also called the principal or main of the matrix.
Example 4: Square Matrix
Give an example of a square matrix.
25 20 3
[ A] 5 10 15
6 15 7
is a square matrix as it has the same number of rows and columns, that is, 3.
The diagonal elements of [A] are a11 25, a 22 10
. , a33 7
Upper Triangular
Matrix
A m×n matrix for which aij is 0called
, i j an upper triangular matrix. That is, all the
elements below the diagonal entries are zero.
Example 5
Give an example of an upper triangular matrix.
10 7 0
[ A] 0 0.001 6
0 0 15005
Example 6
Give an example of a lower triangular matrix.
1 0 0
[ A] 0.3 1 0
0.6 2.5 1
3 0 0
[ A] 0 2.1 0
0 0 0
3 0 0
[ A] 0 2.1 0
0 0 0
1 0 0 0
0 1 0 0
[A]
0 0 1 0
0 0 0 1
Zero Matrix
A matrix whose all entries are zero is called a zero matrix, ( aij 0for all i and j).
0 0 0
[ A] 0 0 0 0 0 0
[B]
0 0 0
0 0 0
Tridiagonal
Matrix
A tridiagonal matrix is a square matrix in which all elements not on the
following are zero - the major diagonal, the diagonal above the major diagonal,
and the diagonal below the major diagonal.
2 4 0 0
2 3 9 0
[ A]
0 0 5 2
0 0 3 6
Non-square Matrix
Do non-square matrices have diagonal entries?
Yes, for a m×n matrix [A], the diagonal entries are a11 , a 22 ..., a k 1, k 1 , a kk where
k=min{m,n}.
Example 11: Non-Square
Matrix
What are the diagonal entries of
3.2 5
6 7
[ A]
2.9 3.2
5 .6 7.8
MATRICES
Matrix Addition
Two matrices and can be added only if they are the same size. The
addition is then shown as
[C ] [ A] [ B]
where
5 2 3 6 7 2 6 7
[ A] [B ] [C ]
1 2 7 3 5 19 3 5
.
Addition of Matrices
A+B= []
Given:
A= []
B= []
A+B=?
Matrix Subtraction
Two matrices [ Acan be [B
] and ]
subtracted only if they are the same size. The subtraction
is then given by
[ D] [ A] [ B]
Where
d ij aij bij
1 5 5
Example 3 A B
2 3 12
Subtract matrix [B] from matrix [ A].
5 2 3
[ A]
1 2 7
6 7 2
[B ]
3 5 19
Subtraction of Matrices
A-B= []
Given:
A= []
B= []
A-B=?
Scalar Multiplication
The term scalar multiplication refers to the product of a real number and a
matrix. In scalar multiplication, each entry in the matrix is multiplied by
the given scalar.
-3A = ?
-B = ?
Multiplication of Matrices
You can multiply two matrices if, and only if, the number of columns in the
first matrix equals the number of rows in the second matrix.To multiply
matrices it is important to consider its ORDER.
5 2 3 20 5 4 0
[ A]
1 2 7
[C ] 3 6 15 21
4 1 7 20
3 2
[B ] 5 8 AB = ?
9 10 BA = ?
BC = ?
CB = ?
Multiplication of
Matrices 52 56
[ AB]
76 88
Given:
5 2 3
[ A]
1 2 7
3 2
[B ] 5 8
9 10
LET’S PRACTICE
Division of Matrix
Inverse of Matrix
(2x2)
Inverse of Matrices
is denoted by
It
Where:
= []
A = []
=?