Matrices

Matrices are mathematical concept that expresses numbers, letters and symbols in rows and columns



Addition of Matrices

Add the matrices A + B

A = [ a b c d ] + B = [ e f g h ]

A + B = [ a + e b + f c + g d + h ]

Example 1

Find the value of the following matrices

(a) A + B

(b) B + C

Solutions:

(a) A + B

A = [ 5 3 1 6 ] B = [ 2 9 10 7 ]

A + B = [ 5 + 2 3 + 9 1 + 10 6 + 7 ]

Answer: A + B = [ 7 12 11 13 ]

(b) B + C

B = [ 2 9 10 7 ] C = [ 4 0 1 8 ]

B + C = [ 2 + 4 9 + 0 10 + 1 7 + 8 ]

Answer: B + C = [ 6 9 11 15 ]

Subtraction of matrices

Subtraction A - B

A = [ a b c d ] - B = [ e f g h ]

A - B = [ a - e b - f c - g d - h ]

Example 2

Find the value of the following matrices

A - B

A = [ 5 3 1 6 ] B = [ 2 9 10 7 ]

A - B = [ 5 - 2 3 - 9 1 - 10 6 - 7 ]

Answer: A - B = [ 3 -6 -9 -1 ]

Multiplication of matrices

Find the multiplication of A X B

A = [ a b c d ] B = [ e f g h ]

A X B = [ a × e + b × g a × f + b × h c × e + d × g c × f + d × h ]

Example 3

Find the matrices A X B

A = [ 5 3 1 6 ] B = [ 2 9 10 7 ]

A X B = [ 5 × 2 + 3 × 10 5 × 9 + 3 × 7 1 × 2 + 6 × 10 1 × 9 + 6 × 7 ]

A X B = [ 10 + 30 45 + 21 2 + 60 9 + 42 ]

Answer: A X B = [ 40 66 62 51 ]

Transpose and multiplication of matrices

Given that

A = [ 2 3 1 0 ] , B = [ -1 0 x 2 ] and C = [ 7 6 -1 0 ]

Find

(a) CT

(b) x for which AB = C


Solution:

(a) Power T on C is the Transpose of the matrix, Transpose means interchanging rows and columns

Answer:   CT = [ 7 -1 6 0 ]

(b) AB = C

AB = [ 2 3 1 0 ] [ -1 0 x 2 ]

AB = [ 2(-1)+3x 2(0)+3(2) 1(-1)+ 0(x) 1(0)+0(2) ]

AB = [ -2+3x 0+6 -1+ 0 0+0 ]

AB = [ -2+3x 6 -1 0 ]

AB = C [ -2+3x 6 -1 0 ] = [ 7 6 -1 0 ]

- 2 + 3x = 7

3x = 7 + 2

3x = 9

x 3 = 9 3

Answer: x = 3

How to Find inverse of a matrix and its determinant

Given that matrix A = [ 7 4p 9 5p ]

(a) Find the value of p for which the determinant of A is -2

(b) hence find the inverse of A


Solution:

(a) The Formula for a determinant is D = ad -bc


D = [ a b c d ]

a = 7

b = 4p

c = 9

d = 5p

D = -2


D = a d - b c

-2 = 7 5p - 4p 9

-2 = 35p - 36p

-2 = -p

Answer: p = 2


(b) Inverse of A

Steps on how to find the inverse of a matrix

1. The determinant will be the denominators of 1 and it will be multipled into all the matrices values, in this case 1 -2 or -2 -1 is the determinant, hence D = 1 -2

2. The diagonal variables a and d will be interchanged

3. The diagonal variables b and c are multiplied by -1

A= [ 7 4p 9 5p ]

p = 2

A = [ 7 4(2) 9 5(2) ]

A = [ 7 8 9 10 ]

determinant is: -2

1 -2 = [ 7/-2 8/-2 9/-2 10/-2 ]

1 -2 = [ -7/2 -4 -9/2 -5 ]

1 -2 = [ -5 -4 -9/2 -7/2 ]

1 -2 = [ -5 4 9/2 -7/2 ]

Answer: A -1 : 1 -2 = [ -5 4 9/2 -7/2 ]