5 Multiplying non-square matrices together

So far, we have just looked at multiplying 2 × 2 matrices and 3 × 3 matrices. However, products between non-square matrices may be possible.

Key Point 5

General Matrix Products

The general rule is that an n × p matrix A can be multiplied

by a p × m matrix B to form an n × m matrix A B = C .

In words:

For the matrix product A B to be defined the number

of columns of A must equal the number of rows of B .

The elements of C are found in the usual way:

The element in the i th row and j th column of C is obtained

by multiplying the i th row of A with the j th column of B .

Example 4

Find the product A B if A = 1 2 2 2 3 4 and B = 2 5 6 1 4 3

Solution

Since A is a 2 × 3 and B is a 3 × 2 matrix the product A B can be found and results in a 2 × 2 matrix.

A B = 1 2 2 2 3 4 × 2 5 6 1 4 3 = 1 2 2 2 6 4 1 2 2 5 1 3 2 3 4 2 6 4 2 3 4 5 1 3 = 22 13 38 25

Task!

Obtain the product A B if A = 1 2 2 3 and B = 2 4 1 6 1 0

A B is a 2 × 3 matrix.

A B = 1 2 2 3 × 2 4 1 6 1 0 = 1 2 2 6 1 2 4 1 1 2 1 0 2 3 2 6 2 3 4 1 2 3 1 0

= 10 2 1 14 5 2