0% found this document useful (0 votes)
15 views17 pages

Maths Chapt 8

Chapter Eight covers matrix algebra, including definitions, types of matrices, and basic operations such as addition, subtraction, scalar multiplication, and matrix multiplication. It also explains the concepts of determinants, minors, cofactors, and the inverse of a matrix, emphasizing the conditions under which an inverse exists. The chapter concludes with practical examples to illustrate the application of these concepts in solving matrix-related problems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views17 pages

Maths Chapt 8

Chapter Eight covers matrix algebra, including definitions, types of matrices, and basic operations such as addition, subtraction, scalar multiplication, and matrix multiplication. It also explains the concepts of determinants, minors, cofactors, and the inverse of a matrix, emphasizing the conditions under which an inverse exists. The chapter concludes with practical examples to illustrate the application of these concepts in solving matrix-related problems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Chapter Eight

Matrix Algebra and its Applications


Learning Objectives: Dear students, after completing this unit you will be able to:
 Define matrix and understand various types of matrices.
 Perform basic matrix operations
 Compute transpositions and determinants of matrices.
 Using matrix inverse methods invert matrices.
 Understand important applications of matrices.
1. Matrices
A matrix is defined as an array of numbers (or algebraic symbols) set out in rows and columns.
Example:

The usual notation system is to denote matrices by a capital letter in bold type, as for matrix A
above, and to enclose the elements of a matrix in a set of squared brackets, i.e. [ ]. Matrices may
also be specified with algebraic terms instead of numbers. Each entry is usually known as an
‘element’. The elements in each matrix must form a complete rectangle, without any blank
spaces. For example, if there are 5 rows and 3 columns there must be 3 elements in each row and
5 elements in each column. An element may be zero though.

The size of a matrix is called its ‘order’. The order is specified as:

For example, the matrix A above has 5 rows and 3 columns and so its order is 5 × 3. Matrices
with only one column or row are known as vectors. These are usually represented by lower case
letters, in bold. For example, row vectors with 1 × 5 specified as:

And column vectors with 5 x 1 orders specified as:

1
Types of Matrices

The difference of equal matrices gives null matrix.

 A matrix consists of a set of zeros in its elements is called null matrix. i e.

[ ]
00 0
00 0
00 0

 A matrix consists of a set of ones in the main diagonal & zeros in the remaining portion
is called identity matrix. i e.

[ ]
10 0
01 0
00 1

Basic Matrix Operation


Matrix addition and subtraction
Matrices that have the same order can be added together, or subtracted. The addition, or
subtraction, is performed on each of the corresponding elements.

Rules for Matrix Addition: let A, B & C be m×n matrices & let 0 denotes the m×n null matrix.
a) (A+B)+C = A+(B+C)
b) A+B = B+A
c) A+0 = A
d) A+(-A) = 0
a b
Given matrix A= c d [ ] and B=
[ eg hf ]
A+ B=
[ ac ++eg b+d+ fh] A−B=
[ca−e
−g
b−f
d −h ]

2
12 30
Example: If A= 8 15 [ ] [
7 35
and B= 4 8 ] what is A + B and A – B?

[
12+7 30+35
Solution: A+ B= 8+ 4 15+ 8 ]
¿
[1912 6523]
A−B=
[12−7
8−4
30−35
15−8 ]
¿
[ 54 −57 ]
Example: Given,

Find A + B and

A–B

Solution

A−B=
[105 124 129 147 ]−[ 88 189 213 54]
A−B=
[10−8
5−8
12−18 9−21 14−5 ]
4−9 12−3 7−4

A−B=
[−32 −5
−6 −12 9 ]
9 3

Scalar multiplication

3
There are two forms of multiplication that can be performed on matrices. A matrix can be
multiplied by a specific value, such as a number (scalar multiplication) or by another matrix
(matrix multiplication). Scalar multiplication simply involves the multiplication of each element
in a matrix by the scalar value.

Given matrix A= [ ac bd ], if we multiply it with scalar k, new matrix specified as:


kA=
[ kakc kbkd ]
Example: The numbers of units of a product sold by a retailer for the last 2 weeks are shown in
matrix A below, where the columns represent weeks and the rows correspond to the two different
shop units that sold them.

If each item is sold for Birr 4, derive a matrix for total sales revenue for this retailer for these two
shop units over this two-week period.
Solution: Total revenue is calculated by multiplying each element in matrix of sales quantities A
by the scalar value 4, the price that each unit is sold at. Thus total revenue can be represented (in
£) by the matrix.

Scalar division works in the same way as scalar multiplication, but with each element divided by
the relevant scalar value.

Basic principles of matrix multiplication


If one matrix is multiplied by another matrix, the basic rule is to multiply elements along the
rows of the first matrix by the corresponding elements down the columns of the second matrix.
The easiest way to understand how this operation works is to first work through some examples
that only involve matrices with one row or column, i.e. vectors.

Rules for Matrix Multiplication

If A, B & C are matrices whose dimensions are such that the given operations are defined, then

1. (AB)C = A(BC)…………Associative law


2. A(B+C) = AB+AC………Left distributive law
3. (A+B)C = AC+BC………Right distributive law

4
But commutative law in matrix multiplication does not hold in general (matrix multiplication is
not commutative) i.e. AB≠BA.

[ ]
a b
If matrix A= c d and B= g h ,
e f
[ ]
AΧB=
[ ac ΧΧ e+e+bd ΧΧ gg ac ΧΧ ff +d+b ΧΧ hh]
Example: If A=[ ] and B=[
4 8]
2 3 7 5
, find A X B
8 1

Solution: A Χ B=[ ] [ 4 8]
2 3 7 5
Χ
8 1

AΧB=
[ 28 ΧΧ 7+3
7+1 Χ 4 8 Χ 5+ 1 Χ 8 ]
Χ 4 2 Χ 5+3 Χ 8

A Χ B=
[2660 3448]
You now may be wondering what happens if the number of elements along the rows of the first
matrix (or vector) does not equal the number of elements in the columns of the matrix that it is
multiplying. The answer to this question is that it is not possible to multiply two matrices if the
number of columns in the first matrix does not equal the number of rows in the second matrix.
Therefore, if a matrix A has order m × n and another matrix B has order r × s, then the
multiplication AB can only be performed if n = r, in which case the resulting matrix C = AB will
have order (m × s).

Matrix multiplication – the general case

Now that the basic principles have been explained with some straightforward examples, we can
set out a general formula for matrix multiplication that can be applied to more complex matrix
multiplication exercises. The general m × n matrix with any number of rows m and columns n
can be written as:

For each element aij the subscript i denote the row number and the subscript j denotes the
column number. For example,
a11 = element in row 1, column 1
a12 = element in row 1, column 2

5
a1n = element in row 1, column n
amn = element in row m, column n

If this general m×n matrix A multiplies the general n×r matrix B then the product will be
the m × r matrix C. Thus we can write:

Where,

Example: Find the product matrix C = AB when

Solution: Using the general matrix multiplication formula, the elements of the first two rows of
the product matrix C can be calculated as:

c11 = 4 × 10 + 2 × 6 + 12 × 4 = 40 + 12 + 48 = 100
c12 = 4 × 0.5 + 2 × 3 + 12 × 4 = 2 + 6 + 48 = 56
c13 = 4 × 1 + 2 × 8 + 12 × 2 = 4 + 16 + 24 = 44
c14 = 4 × 7 + 2 × 2.5 + 12 × 0 = 28 + 5 + 0 = 33
c21 = 6 × 10 + 0 × 6 + 20 × 4 = 60 + 0 + 80 = 140
c22 = 6 × 0.5 + 0 × 3 + 20 × 4 = 3 + 0 + 80 = 83
c23 = 6 × 1 + 0 × 8 + 20 × 2 = 6 + 0 + 40 = 46
c24 = 6 × 7 + 0 × 2.5 + 20 × 0 = 42 + 0 + 0 = 42

6
Now try and calculate the elements of the final row for yourself. You should get the values

c31 = 78, c32 = 44.5, c33 = 75, c34 = 27


The complete product matrix will therefore be

The matrix inverse


The concept of ‘matrix division’ is approached in matrix algebra by deriving the inverse of a
matrix. Before we can define what we mean by the inverse of a matrix we need to introduce the
concept of the identity matrix. This is any square matrix with each element along the diagonal
(from top left to bottom right) being equal to 1 and with all other elements being zero. For
example, the 3 × 3 identity matrix is:

This identity matrix is the matrix equivalent to the number ‘1’ in standard mathematics. Any
matrix multiplied by the identity matrix will give the original matrix. For example,

Therefore, a matrix A can be inverted if there exists an inverse A−1 such that A−1A = I, the
identity matrix. Using this definition we can now see that if

Multiplying both sides by A−1 gives

Since A−1A = I this means that

As any matrix or vector multiplied by the identity matrix gives the same matrix or vector then,

7
There are several instances when the inverse of a matrix may not exist: Firstly, the zero, or null
matrix, which has all its elements equal to zero. There are zero matrices corresponding to each
possible order. For example, the 2 × 2 zero matrices will be;

 Just as it is not possible to determine the inverse of zero in basic arithmetic, the inverse of
the zero matrices 0 cannot be calculated.
 Secondly, linear dependence of two or more rows (or columns) of a matrix will prevent
its inverse being calculated. Linear dependency means that all the terms in one row (or
column) are the same scalar multiple of the corresponding elements in another row (or
column).
 The reason for this will become obvious when we have worked through the method for
finding the inverse. Consider the two simultaneous equations;

These equations cannot be solved using simultaneous and matrix inverse. To actually find the
inverse of a matrix, we first need to consider some special concepts associated with square
matrices, namely:
 The Determinant
 Minors
 Cofactors
 The Adjoint Matrix

Determinants of Matrix
For a 2nd order matrix (i.e. order 2×2) the determinant is a number calculated by multiplying the
elements in opposite corners and subtracting. The usual notation for a determinant is a set of
vertical parallel lines either side of the array of elements, instead of the squared brackets used
for a matrix. The determinant of the general 2 × 2 matrix A, written as |A|, will therefore be:

Example: Find the determinant of the matrix A= [ 54 79]


Solution: Using the formula defined above, the determinant of matrix A will be;

8
If any sets of rows or columns of a matrix are linearly dependent then the determinant will be
zero and we have what is known as a singular matrix. For example, if the second row is twice
the value of the corresponding element in the first row and

Then, the determinant

 The formula for the matrix inverse (which we will derive later) involves division by the
determinant.
 Therefore, a condition for the inverse of a matrix to exist is that the matrix must be non-
singular, i.e. the determinant must not be zero. This condition applies to determinants of
any order.

The determinant of a 3rd order matrix


For the general 3rd order matrix:

The determinant |A| can be calculated as

 This entails multiplying each of the elements in the first row by the determinant of the
matrix remaining when the corresponding row and column are deleted. For example, the
element a11 is multiplied by the determinant of the matrix remaining when row 1 and
column 1 are deleted from the original 3 × 3 matrix.
 If we start from a11 then, as we use this method for each element across the row, the sign
of each term will be positive and negative alternately. Thus the second term has a
negative sign.

Example: Derive the determinant of matrix:

9
Solution: Expanding across the first row using the above formula, the determinant will be

Minors
 The minor |Mij | of matrix A is the determinant of the matrix left when row i and column
j have been deleted. For example, if the first row and first column are deleted from
matrix:

The determinant of the remaining matrix will be the minor

Example: Find the minor |M31| of the matrix

Solution: The minor |M31| is the determinant of the matrix remaining when the 3rd row and 1st
column have been eliminated from matrix A. Therefore;

Cofactors
 A cofactor is the same as a minor, except that its sign is determined by the row and
column that it corresponds to. The sign of cofactor |Cij | is equal to (−1)i+j . Thus if the
row number and column number sum to an odd number, the sign will be negative.
 For example, to derive the cofactor |C12| for the general 3rd order matrix A we eliminate
the 1st row and the 2nd column and then, since i + j = 3, we multiply the determinant of
the elements that remain by (−1)3. Therefore;

10
Example: Find the cofactor |C22| of the matrix

Solution: The cofactor |C22| is the determinant of the matrix remaining when the 2nd row and 2nd
column have been eliminated. It will have the sign (−1)4 since i + j = 4. The solution is therefore;

The Transpose of a Matrix


To get the transpose of a matrix, usually written as AT, the rows and columns are swapped
around, i.e. row 1 becomes column 1 and column 1 becomes row 1, etc. If a matrix is not square
then the numbers of rows and columns will alter when it is transposed.

The Cofactor Matrix


If we replace every element in a matrix by its corresponding cofactor then we get the cofactor
matrix, usually denoted by C.

The Adjoint Matrix


The adjoint matrix, usually denoted by AdjA, is the transpose of the cofactor matrix,

Using the cofactor example above, we have already shown that for

11
Therefore the adjoint matrix will be AdjA = CT

The Inverse Matrix


The formula for A−1, the inverse of matrix A, can now be stated as

As long as the determinant |A| is non-singular, i.e. it must not be zero.

Example: Find the inverse matrix A−1 for matrix

Solution: We have already determined the adjoint for this particular matrix in the example
above. Its determinant |A| can be evaluated by expanding down the 3rd column as:

Therefore, given that we already know that;

the inverse matrix will be

12
Self-test

Find the inverse matrix A−1 for matrix

Important Application of the Matrix Algebra

Although small sets of linear equations can be solved by other algebraic techniques, e.g. row
operations, we will work through a simple example here to illustrate how the matrix method
works before explaining how larger sets of linear equations can be solved.

Recall, for a matrix A can be inverted if there exists an inverse A−1 such that A−1A = I, the
identity matrix. Using this definition we can now see that if

Multiplying both sides by A−1 gives

Since A−1A = I this means that

As any matrix or vector multiplied by the identity matrix gives the same matrix or vector then,

Example: Use matrix algebra to solve for the unknown variables x1, x2 and x3 given that

Solution: This set of simultaneous equations can be set up in matrix format as Ax = b where

13
To derive the vector of unknowns x using the matrix formulation x = A−1b we first have to derive
the matrix inverse A−1. The first step is to derive the cofactor matrix, which will be

The adjoint matrix will be the transpose of the cofactor matrix and so

The determinant of A, expanding along the second row, will be

The matrix inverse will therefore be

To solve for the vector of unknowns x we calculate

You can check that these are the correct values by substituting them for the unknown variables
x1, x2 and x3 in the equations given in this problem. For example, substituting into the first
equation gives:

14
CRAMERS RULE

15
16
17

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy