Matrix Operation
Matrix Operation
A=
1, 1
a 12 = 4
6 8 Columns
a 21 =6
a31 = 1
a32 = 2
1 2 a
22 =8
3 X 2
2 12 18 -2
4 13 20 -4 0.5 0.4 0.3 0.8
8 14 22 -8
3 x 1 (column matrix)
3 X 3(SQUARE MATRIX) 1 x 4 (row matrix)
4x7
ADDITION OF MATRICES
is defined only for matrices having the same number of
rows and the same number of columns.
Example 1. If -5 -6 3 2 3 0
A= and B=
0 3 2 3 5 0
2X3 2x3
IF A = 0.5 0.6
B= 4 4 and C=
1.2 2.2
0.4 0.8 2 9 1.3 2.3
IF A = 0.5 0.6
B= 4 4 and C=
1.2 2.2
0.4 0.8 2 9 1.3 2.3
15 27 Y = 16 28 -4 0.1 1/4
X= Z=
8 36 4 -7 -5 0.5 -5
-6 0.3 2/5
Solve 1. X -Y
2. Y - Z
X-Y= 15-16 27-28 -1 -1
36- (-7)
=
8 -4 4 43
Y - Z = Undefined
SUBTRACTION OF MATRICES
2 5 -2 -8
Example 2 If A = and B =
3 8 -4 -3 find A - B?
4 10 -6 -5
SUBTRACTION OF MATRICES
2 5 -2 -8
Example 2 If A = and B =
3 8 -4 -3 find A - B?
4 10 -6 -5
SOLUTION
2 5 -2 -8 2 - (-2) 5 - (-8) 4 13
A-B= 3 8 - -4 -3 = 3 - (-4) 8 - (-3) = 7 11
4 10 -6 -5 4 - (-6) 10 - (-5) 10 15
FINDING SCALAR MULTIPLES
Besides adding and subtracting whole matrices, there are other
situations in which we need to multiply a matrix by a constant
called a scalar.
Example 1: If A = 2 -4 what is A?
6 -8
SOLUTION
Example 1: If A = 2 -4 what is A?
6 -8
2 -4 1 -2
A= =
6 -8 3 -4
MULTIPLYING TWO MATRICES
Finding the product of two matrices is only possible if the number of columns of
the first matrix is the same with the number of rows of the second matrix.
3 1
Example 1. If A= 2 1 4 B= 2 2 find AB?
1 2 3 1 3
2X3 3X2
Since the number of columns of matrix A is the same as the number of row/s of matrix B, the two
matrices can be multiplied
to multiply a matrix by another matrix we need to do the "dot product" of
rows and columns
The "Dot Product" is where we multiply matching members, then sum up:
“DOT PRODUCT”
3 1
2 1 4 12 16
Example 1. If A= B= 2 2 =
1 2 3
1 3
To work out the answer for the 1st row and 1st column:
( 2, 1, 4 ) (3, 2, 1 ) =2x3+1x2+4x1
= 12
for the 1st row and 2nd column:
( 2, 1, 4 ) (1 2 3 ) = 2 x 1 + 1 x 2 + 4 x 3
= 16
for the 2nd row and 1st column:
3 1
2 1 4 2 2
A= B=
1 2 3
1 3
( 1, 2, 3) ( 3, 2, 1) = 1 x 3 + 2 x 2 + 3 x 1
= 10
( 1, 2, 3) ( 1, 2, 3) = 1 x 1 + 2 x 2 + 3 x 3
= 14
3 1
2 1 4 12 16
Example 1. If A= B= 2 2 =
1 2 3 10 14
1 3
2x2
3 1
2 1 4
or A= B= 2 2
1 2 3
1 3
L M M L
( 2 X 2) (2 X 3) ( 2 X 3) (2 X 2)
SOLUTION
l 1 m1 l 1 m2 l1m3
LXM=
7 -3 0
28 -12 0
TRANSPOSE of a matrix is obtained by interchanging the rows and columns
of the given matrix or vice versa.
7 3 3
7 2 5 4
A 2 6 5
A= 3 6 7 5 =
5 7 6
3 5 6 8
4 5 8
3x4 4x3
1.2 1.5 2.8
1.2 3.5 2.2 1.4 6.5
3.5 5.5 7.8
1.5 5.5 3.3 1.3 6.4
B= 2.2 3.3 4.4 B =
2.8 7.8 4.4 1.5 6.2
1.4 1.3 1.5
6.5 6.4 6.2
3x5
5x3
2 4 8
Let A = 1 2 3 and B= -4 -5 7 Find A + B
4 5 6
2 4 8
Let A = 1 2 3 and B= FindA +B
4 5 6 -4 -5 7
1 4 then, A + B =
A = 2 5 1 4 2 -4 1+2 4 + (-4)
2 5 + 4 -5 3 0
3 6 2+4 5 + (-5)
3 6 8 7 3+8 6+7 6 0
2 -4
B =
4 -5 11 13
8 7
If A = 2 5 -2 -8
and B =
3 8 -4 -3 find 4A - B?
4 10 -6 -5
2 5 -2 -8
If A = and B =
3 8
4 10
-4 -3 find 4A - B?
-6 -5
SOLUTIONS
8 - (-2) 20 - (-8)
2 5 -2 -8
1. 4 3 8 - -4 -3 3. 12 - (-4) 32 - (-3)
4 10 -6 -5
16 - (-6) 40 - (-5)
8 20 -2 -8
2. 12 32 - -4 -3
4.
10 28
16 40 -6 -5 16 35
20 45