6 The rules of matrix multiplication
It is worth noting that the process of multiplication can be continued to form products of more than two matrices.
Although two matrices may not commute (i.e. in general ) the associative law always holds i.e. for matrices which can be multiplied,
The general principle is keep the left to right order , but within that limitation any two adjacent matrices can be multiplied.
It is important to note that it is not always possible to multiply together any two given matrices.
For example if and then .
However is not defined since each row of has three elements whereas each column of has two elements and we cannot multiply these elements in the manner described.
Task!
Given
State which of the products , is defined and state the size ( ) of the product when defined.
not possible
possible; result
possible; result
possible; result
not possible
possible; result
not possible, not defined.
possible; result
We now list together some properties of matrix multiplication and compare them with corresponding properties for multiplication of numbers.
Key Point 6
Matrix algebra | Number algebra |
in general | |
may not be possible | is always possible |
does not imply or | or |
6.1 Application of matrices to networks
A network is a collection of points (nodes) some of which are connected together by lines (paths). The information contained in a network can be conveniently stored in the form of a matrix.
Example 5
Petrol is delivered to terminals and . They distribute the fuel to 3 storage depots ( ). The network diagram below shows what fraction of the fuel goes from each terminal to the three storage depots. In turn the 3 depots supply fuel to 4 petrol stations ( ) as shown in Figure 2:
Figure 2
Show how this situation may be described using matrices.
Solution
Denote the amount of fuel, in litres, flowing from by and from by and the quantity being received at by for . This situation is described in the following diagram:
From this diagram we see that
or, in matrix form:
In turn the 3 depots supply fuel to 4 petrol stations as shown in the next diagram:
If the petrol stations receive litres respectively then from the diagram we have:
or, in matrix form:
Combining the equations, substituting expressions for in the equations for
we get:
with similar results for and .
This is equivalent to combining the two networks. The results can be obtained more easily by multiplying the matrices: