Click here to go back to content Page

MATRICES

A matrix, is a set of real or complex numbers (or elements) arranged in rows and columns to form a rectangular array OR

Let P be an arbitrary field.  A rectangular array of the form

where aij  are scalar in P  is called a MATRIX

The above matrix can be written aij,

    i  = 1,2,3,,,,m     j = 1,2, 3 , , ,n

The horizontal elements are called are called rows, while the vertical elements are called columns . An m  n  matrix  has m rows  (horizontal lines) and columns (vertical lines). The entry in the  row and jth column is denoted by the double subscript notation aij .i is called the row subscript  because it gives the position in the horizontal lines and j the column subscript because it gives the position in the vertical lines

            A matrix having m rows and n column is of order m  n. If m = n, the entries a11, a22, a33       ann  are the main (principal) diagonal entries

Example

           

           

 

 

 

 

 

 

 


OPERATION WITH MATRIX

1.         EQUALITY OF MATRIX :  Two matrices are said to be equal if corresponding element are equal Therefore, the two matrices must also be of the same order or

Two matrices A = [aij] and B = [bij] are equal if they have the same order (m × n) and

 aij = bij

Example

            Solve for a11, a12, a13, a21, a22, a23, a31, a32, a33, in the following matrix equation 

                     

    Solution

  Because two matrices are equal if corresponding elements are equal, we can conclude that

            a11   =  1,         a12   =  2,         a13    =   4

            a23   =   3         a22   =  7,         a23    =  9

            a31   =   5         a32   =  6,         a33    =  0

Example

Find the values of f, g, x, y in the problems

 

f +3 =  2;   f = –1

2g+1 = 1;  g = 0

x–3 = –3;   x = 0

2y–2 = 2;    y = 2

 

             2f + 3 = f – 5;     f = – 8

             2g – 2 = g + 1;  g = 3

                x+1 = 2x+3;   x = – 2

                                        y = 5

Example

Find x and y

                     

Solution

            2x + 1   = 5 ;       x = 2

            3y – 5   = 4 ;        y = 3

ILLUSTRATIVE EXAMPLE

4.      The matrices         

5.      The  matrices    

2.         ADDITION AND SUBTRACTION OF MATRICES

If A = [aij] and B =[bij] are matrices of m×n then their sum is m×n  given by

A+B = [aij + bij]

Note:   Before addition or subtraction can be performed with matrices, the order must be the same. The sum and difference of two matrices of different order is undefined.

            Example

           

           

3.                      SCALAR MULTIPLICATION

If A = [aij] is an m×n matrix and k is a scalar, then the scalar multiplication of A by k is the m×n matrix given by kA = [kaij]

Example

           

Example

            Find (i) 3A – 2B   (ii)   A + 2 (B A)

Given that                   

If A, B and C are m×n matrices, d and k are scalar, then the following properties are true

1.         A+B = B+A                    Commutative Property of Addition

2.         A+(B+C) = (A+B)+C     Associative Property of Addition

3.         (dk)A = d(KA)                Associative Property of Scalar Multiplication

4.         IA = A                             Scalar Identity

5.         d(A+B) = dA+dB            Distributive Property

6.         (d+k) A = dA+kA            Distributive Property

 

4.                                     MATRIX MULTIPLICATION

            If A and B are matrices of m×p and p×n respectively, then their product is a matrix c of order m×n in c, whose entry in the ith row and jth column  is the sum of the product formed by multiplying each entry in the ith row of A by the corresponding entry in jth column of B

             C = AB = [cij]

Where cij = ai1bij  +  ai2 b2j  +  ai3 b3j + + aibnj

      This  definition indicates a row – bycolumn multiplication.

 

Note:   Two matrices can be multiplied together only when the number of columns in the first is equal to the number of the row in the second

 

               A                               B          =          AB

            m×p                            p×n                  m×n

                            equal

                            order of AB

 

 

 

Example

           

 

It should be noted that A.B  B.A

So multiplication of matrices is not commutative

Properties of Matrix Multiplication

If A, B and C are matrices and k is a scalar then the following properties are true

1.         A(BC) = AB(C)                        Associative property

2.         A(B+C) = AB+AC                   Distributive property

3.         (A+B) C = AC+BC                  Distributive property

4.         K(AB) = (KA)B = A(KB)         

Example                 Application of Matrix Multiplication

            The Nigeria football team submit kit list to their sponsors

                                                Female’s team Male’s team

                        Jerseys             24                                30

                        Boots               90                                76

                        Balls                 30                                34

       Each Jersey cost N42, and each boots cost N8 and each ball cost N60.  Use matrices to find the total cost of football for each of them

 

Solution

            The kit list can be written in matrix form as

                       

and the cost per item can be written in matrix form as

                       

The total cost of equipment for each item is given by the  product

           

Thus, the total cost of kits for the female’s team is N3528., and the cost of kits for the men team is N3908

 

Example A firm sell five different models of ford cars through three retails outlets.  The inventory of each model in the three outlets is given by the matrix B

                       

and the wholesale and retail price for each model is given by the matrix H

 

(a)                What is the wholesale price of the inventory at outlet 1

(b)               What is the retail price of the inventory at outlet 3?

(c)                Compute BH and interpret the result

Solution

           

whole price at outlet 1

            = N[4×480+2×1200+1×1450+3×2650+2×3050]      

= N3360+N2400+N1450+N7950+N6100

            = N21260.00

The whole price at outlet 1 is N21260.00

Interpretation:  The entries are the wholesale and retail price of inventory at each outlet.

 

TRANSPOSE OF A MATRIX

If the rows and column of a matrix are interchanged i.e. the first row be comes the first column, the second row becomes the second column, the third row becomes the third column, e.t.c.  The new matrix so formed is called the TRANSPOSE OF THE ORIGINAL MATRIX.  If A is the original matrix, its transpose is denoted by A1 (In some texts  or AT are used instead of A1)

 

Example

SPECIAL MATRICES

1.         Square Matrix: Is a matrix of order m×m i.e. the number of rows is the same as the  number of columns

                         

2.         symmetric matrix

(a)        A square matrix A, such that A = A1 is said to be symmetric

            e.g        A =

            The matrix A is symmetric matrix

(b)        A square matrix A such that A = A1 is said to be skewsymmetric

                        e.g     

In skew – symmetric matrix, the elements along the principal diagonal are zeros

Note: If A1, B1 are the transposes of A and B and if k is any scalar, then the following hold true

(a)                (A1)1  = A

(b)               (A+B)1 = A1+B1

(c)                (KA)1 = KA1

3.  DIAGONAL   MATRIX :   A square matrix if all the element other than those in the principal or main  diagonal are zero ,  then the matrix is called DIAGONAL MATRIX .  The matrices below  are examples of diagonal  matrices

      

4.   UNIT OR IDENTITY MATRIX:   Is a diagonal matrix in which the element on main diagonal are unity or one. A unit matrix is denoted by I

              

5.         NULL MATRIX:  If a matrix has all its element equal to zero.  It is denoted by 0

  

6.         ORTHOGONAL MATRIX:  A matrix A is said to orthogonal matrix when AA1 = I and its transpose is the same as its inverse i.e.  A1  = A1

           

7.         IDEMPOTENT MATRIX:  A symmetric matrix for A×A = A  is an idempotent matrix      

            Identity matrix is both symmetric and idempotent

8          TRIANGULAR MATRICES

            (a)  UPPER TRIANGULAR MATRIX:  A square matrix  is upper triangular if it

                  has all zero entries  below its main diagonal

                         

(b)   LOWER TRIANGULAR MATRIX: A square matrix is lower triangular if it has

                   all zero entries above its main diagonal

                       

9.         COLUMN VECTOR OR COLUMN MATRIX:  A matrix  with a single column

             and m – rows

                       

10.       ROW VECTOR OR ROW VECTOR:  A matrix with a  single row and n – columns

                         are example of a row vector.

 

DETERMINANT

Determinant of a 2×2 matrix

Consider the expression  is know as a determinant of the second – order and quantities a1, a2, b1, b2 are called elements

 

Example :   Evaluate the determinant

Solution

(3×8) – 4x = 0

    24 – 4x = 0

        4x = 24

                        x = 6

Example

Solve for x

Solution

(x–1)(x–2) – 6 = 0

x2 + 3x + 2 – 6 = 0

x2 + 3x – 4 = 0

(x – 4) (x + 1) = 0

x = 4 or x = 1

Note:

(a)                The determinant of a given matrix A is written as det (A) or /A/ or  

(b)               When it is necessary to write out the determinant in full, the array of number is    enclosed in a pair of vertical lines (instead of the bracket used in matrices)

PROPERTIES OF DETERMINANT

1.         The value of a determinant remains unchanged if rows are changed to column or columns to rows (transpose)

                       

           

2.         If two rows ( or columns ) are identical, the value of the determinant is zero

           

  1. If the element of any one row (or column ) are all multiplied by a common factor, the determinant is multiplied by that factor

4 .        Interchanging  any two rows or columns of a matrix will change the sign , but not the  absolute value of the determinant

          

5.         If the element of any row (or column ) are increased or decreased by equal multiples of the corresponding element of any other row (or column), the value of the determinant is unchanged.

                         

6.         If all the element of any row or column are, the determinant  is zero

                       

7.         The determinant of a triangular matrix i.e. a matrix with zero elements  everywhere above or below the principal diagonal, is equal to the product of the elements on the principal diagonal.

             

Note:  The above properties of determinant are true for matrices of any other

Example

DETERMINANT OF 3×3 MATRIX

Given the matrix

           

is known as the third order determinant (3×3 determinant) denoted by   or

             = a, (b2c3b3c2) – b1(a2 c3a3 c2) + c1 (a2 b3b2 a3)

The quantities a1,a2, a3, b1, b2b3, c1, c2, c3 are known as the elements  of the determinant and determinant obtained by omitting the row and column containing particular element is known as the MINOR of that element

            Thus,  

Example

           

            = 5(18 – 25) + 2 (12 + 20) +3 (10 – 12)

            = 35 +64 – 66

            = 37

 

Example

      Solve the equation   

Solution

By testing (x–1) is a factor

Using long division

             

Solving this gives

            x = 1 or x = 5 +

SARRUS RULE:   This method only works for 3×3 matrices. Given a matrix A of order 3×3.

To apply sarrus rule, copy the first and second column of A to form fourth and fifth columns.  The determinant of A is then obtained by adding the products of the three “DOWNWARD DIAGONALS” and subtracting the products of the three “upwards diagonals” as shown

                   

            a1         b1         c1         a1         b1

            a2         b2         c2         a2         b2

            a3         b3         c3         a3         b3

 

Thus, the determinant of the 3×3 matrix A is given by the following

a1b2c3 + b1c2a3 + c1a2b3 a3b2c1 b3c2 a1 c3 a2 b1

Example

            Using the Sarrus evaluate

           

Solution

            Since A is a 3×3 matrix, we can Sarrus rule.

            Start by recopying the first and second columns and then computing the six diagonal product

                       

1          3          5          1          3

7          9          11        7          9

13        15        18        13        15

 

 

/A/  = (1×9×18) + (3×11×13) + (5×7×15) – (13×9×5) – 15×11×1) – (18×7×3)

       = 162 + 429 + 525 – 588 – 165 – 378

       = 12

DETERMINANT OF 4×4 MATRIX

Given a matrix A of order 4×4

           

is the expansion of the fourth order determinant by the first row

Example

     Evaluate the determinant of the matrix A

Expanding each of the third order determinants, we get

 

Using these values, we have

             = 4(194) 2 (182)+4(118)8(171)= 776 – 364+4721368 =  484

 

 

 

 

SOLUTION OF A SYSTEM OF LINEAR EQUATION BY DETERMINANT

CRAMER’S RULE

This rules uses determinant to write the solution of a system of linear equation. The rule is named after a man called Gabriel Cramer (1704 – 1752)

            Consider the system of linear equation

a1x + b1y = c1

a2x + b2y = c2

has a solution given by

provided a1b2a2b2  0

Each numerator and denominator in the solution can be expressed as a determinant

Example

Using cramer’s rule to solve the system of linear equatin

            x – 3y = 1

            2x + y = 23

Solution

CRAMER’S RULE FOR 3X3 SYSTEM

Consider the equation

 

Example

Use Cramer’s rule to solve the following system of linear equation

            4x – 2y + 3z = 2

            2x + 2y + 5z = 16

            8x – 5y – 2z = 4

Solution

 

Note:

            The following points is to be taken into consideration when solving system of linear equation

1.         If  /A/ = 0, the matrix is singular and there linear dependence among the equation

            No unique solution or infinitely many solutions

2.         If /A/  0 the matrix is non – singular and there is no linear dependence among the equation. A unique solution can be found.

MINORS AND COFACTORS OF A SQUARE MATRIX

           Given that a square matrix A, then MINOR Nij of the entry aij is the determinant of the matrix obtained by deleting ith row and jth column of A.  The cofactor cij of the entry aij is given by  Cij = (1)i+j Mij

 

 

 

 

Illustration of Minors

           

 

 


 

 = a11 /M11/ + a12(1) /M12/ + a13 /M13/ defines the determinant o the matrix.

COFACTORS

    The cofactor of an element of n ordered determinant is the (n1) ordered determinant obtained by deleting the row and element containing the element and multiplying by (1)i+j or by + 1 or – 1 according to the pattern

n×n matrix

 

4×4 matrix

 

3×3 matrix

 

2×2 matrix

 

 

A cofactor is always designated by capital letter corresponding to the element to which it belong

 

 

 

 

 

 

 

Example

            Given the matrix A =

       Determine the cofactor

            (a)    C23      (b)    C31     (c)    C33

Solution

 

COFACTOR AND ADJOINT MATRIX

       A cofactor matrix is a matrix in which element  aij is replaced with its cofactor /Cij/

           

An Adjoint Matrix  is the transpose  of a cofactor matrix cofactor matrix

           

Note:  The product A. Adj (A) is always a diagonal matrix; that is a matrix in which all the element are zero except those on the “principal diagonal” (the diagonal which goes from the top left corner to the bottom right –hand corner).

 

 

 

 

Example

Find the cofactor matrix and adjoint

Matrix Adj(A), given the matrix

           

 

 

Solution

Solution

 

 

INVERSE MATRICES

Given thaA and B are two non – singular square of the same order such that AB = BA = I B is called the INVERSE OF A (B = A1)

            Therefore

                        AA1 = I (Unit Matrix)

Since A (Adj(A) = /A/I

Multiply both sides by A

     A1 A (Adj(A) = A1 /A/

            I(Adj(A)) = A1/A/

     If /A/  0

Then A1 =

 

INVERSE OF 2×2 MATRIX

Consider a matrix A =

it can be proved that its inverse A1is given by


INVERSE OF 3×3 MATRIX

Step to obtain the inverse of   3×3 matrix

1.                  Determine the determinant of the matrix

2.                  Obtain the cofactor of each element

3.                  Form the cofactor matrix

4.                  Transpose the cofactor matrix to obtain the Adjoint of the given natrix

5.                  Divide the Adjoint by the determinant to obtain the inverse of the given matrix.

Example

Find the inverse of the matrix

/A/ = 3 (2+66) – 5 (854) + 7 (44 +9)

      = 204 – 310 – 245

      = 269

 

 

INVERTIBLE AND NOW – INVERTIBLE MATRIX

            If the determinate of a square matrix (2×2, 3×3, . . . ) is not equal to zero, that is, the matrix is non – singular, then we can obtain the inverse of A (i.e it is an invertible matrix) if the determine is zero, then the inverse cannot be obtain (it is non – invertible)

 

SOLVING  A SYSTEM OF EQUATION USING AN INVERSE

SYSTEM OF LINEAR EQUATION FOR 2 VARIABLES 

ax + by = e

cx +dy = f

in matrix form

SYSTEM OF LINEAR EQUATION FOR 3 VARIABLE

ax + by + cz = b1

dx + ey + fz = b2

gz + hy + iz = b3

    In matrix form

Therefore Ax = B

            A1 Ax = A1 = B          {multiply both side by A1}

                   X = A1 B {Solution}

Where A1 is the inverse matrix

Example

            Solve for x and y in the following system

                        3x – 4y = 4

                        9x + 2y = 9

Solution

             

           

Example

    Using inverse method, solve the following system of linear equation

             –x – 2y + z = 2

            3x + 6yz = 12

            2x – 6y + 2z = 8

Solution 

           

 

Cofactor Matrix

           

Example

     Given the following system of linear equation

            4x1 + x2 – 5x3 = 8

            2x1 + 3x2 + x3 = 12

            3x1x2 + 4x3 = 5

i.                     Express the equations in matrix form

ii.                   Use the method of matrix inversion to solve for

x1, x2, x3 solution

Solution

            In matrix form

 

            /A/ = 4(12+1) 1(83) 5 (29)

            /A/ = 4(13) –1(11) 5(7)

/A/  = 98

form the cofactor matrix

               

                       

 

Click here to go back to the content page