Addition of two Matrices
Only matrices of the same order (same number of rows and same number of columns) may be added by adding corresponding elements.
Example:
1.
[2 -3] [7 3] [2 + 7 -3 + 3] [9 0]
[4 5] + [-2 7] = [4 + (-2) 5 + 7] = [2 12]
[6 0] [1 -5] [6 + 1 0 + (-5)] [7 -5]
2.
[2 -3] [7 3 5]
[4 5] + [-2 7 -9]
[6 0] [1 -5 0]
The addition above is undefined since the two matrices do not have the same number of columns.
Scalar Multiplication of a Matrix
To multiply matrix A of order m x n by a scalar k, we multiply each element of matrix A by k to obtain another matrix of the same order.
Example:
1.
[2 -3 7]
A = [4 5 -3]
[6 0 -1]
Matrix - 2 A is given by
[-2*2 -2*-3 -2*7] [-4 6 -14]
- 2 A = [-2*4 -2*5 -2*-3] = [-8 -10 6]
[-2*6 -2*0 -2*-1] [-12 0 2]
If A = [a ij] is a matrix of order m x n and B = [b ij] a matrix of order n x p, then the product C = AB of the two matrices is a matrix of order m x p matrix defined.
C = [c ij] where c ij is given by
c ij = a i1b 1j + a i2b 2j + a i3b 3j + . . . + a inb nj
Note that a multiplication of two matrices AB is defined only if the number of columns of matrix A is equal to the number of rows of matrix B.
Example: Find the product AB where A and B are matrices given by
1.
[2 -3] [1 0]
A = [4 5] , B = [-2 1]
[6 0]
Solution
The product AB is defined since A is a 3 x 2 matrix and has 2 columns and B is a 2 x 2 matrix and has 2 rows. To find elements of the product C = AB, multiply each row of A by each column of B.
[2 -3][1 0]
C = AB = [4 5][-2 1]
[6 0]
[(2)(1) + (-3)(-2) (2)(0)+(-3)(1)] [8 -3]
= [(4)(1) + (5)(-2) (4)(0)+(5)(1)] = [-6 5]
[(6)(1) + (0)(-2) (6)(0)+(0)(1)] [6 0]
You may want to explore more the multiplication of matrices using an applet.
Exercises
1 . What are the number of rows, the number of columns and the order of each matrix below? Which of these matrices is a square matrix?
a) [2 3] b) [-2 0 5] c) [0 0 4]
[-2 5] [4 -2 6]
[0 9] [-1 2 9]
2 . Find matrices
a) A + B
b) C 2
c) A + BC
d) A + CB
if possible. Matrices A, B and C are given by
[2 3] [-2 4] [2 1]
A = [-2 5] B = [3 1] C = [0 -1]
[0 9] [0 -8]