Matrix Arithmetic: The Product of Two Matrices (VCE SSCE General Mathematics): Revision Notes
Matrix Arithmetic: The Product of Two Matrices
Introduction to matrix multiplication
Matrix multiplication is a fundamental operation that combines both multiplication and addition. Unlike simple arithmetic multiplication, matrix multiplication follows specific rules and patterns that you need to understand before performing calculations.
The process can be demonstrated using a practical example from Australian Rules football scoring.
An illustration of matrix multiplication
Let's consider a football match between two teams: the Ants and the Bulls.
Worked Example: Football Scoring with Matrices
Final scores:
- Ants scored goals and behinds
- Bulls scored goals and behinds
Scoring system:
- One goal = points
- One behind = point
To calculate each team's final score in points, we can use matrix multiplication.
The calculation for each team is:
- Ants: points
- Bulls: points
Matrix form:
Notice how each row of the first matrix is multiplied element-by-element with the column of the second matrix, and the results are added together.
The order of matrices and matrix multiplication
Understanding the order (or dimensions) of matrices is crucial for multiplication. The order is written as rows × columns.
Looking at our football example:
Order: multiplied by gives
This leads us to two important observations:
Observation 1: The number of columns in the first matrix must equal the number of rows in the second matrix for multiplication to be possible. When these numbers don't match, we say the multiplication is not defined.
Observation 2: The resulting matrix has the same number of rows as the first matrix rows and the same number of columns as the second matrix column.
Rule 1: Condition for matrix multiplication to be defined
For two matrices to be multiplied, the number of columns in the first matrix must equal the number of rows in the second matrix.
If matrix has order and matrix has order , then the product is only defined if .
Example:
Consider these matrices:
- (order )
- (order )
- (order )
For :
- has columns and has rows
- Since , the product is defined
For :
- has column and has rows
- Since , the product is not defined
Rule 2: Determining the order of the product matrix
If two matrices can be multiplied, the product matrix will have:
- The same number of rows as the first matrix
- The same number of columns as the second matrix
If has order and has order , then will have order .
Memory aid: Think "outside numbers give the answer"
The middle numbers must match, and the outside numbers give the order of the result.
Examples:
If is and is :
The middle numbers match , and the outside numbers give the order of the result.
Worked example: Checking if products are defined
Worked Example: Determining if Matrix Products are Defined
| Product to check | First matrix | Second matrix | Defined? |
|---|---|---|---|
| (order ) | (order ) | No, columns in rows in | |
| (order ) | (order ) | Yes, columns in rows in | |
| (order ) | (order ) | Yes, columns in rows in |
Worked example: Determining the order of products
Worked Example: Finding the Order of Matrix Products
For the same matrices as above, determine the order of defined products:
For :
Order of is 1 × 2
For :
Order of is 1 × 1
For :
Order of is 2 × 1
Order matters in matrix multiplication
It's important to note that matrix multiplication is not commutative. This means that even when both and are defined, they often give different results. The order in which you multiply matrices is crucial.
Determining matrix products by hand
While calculators handle complex matrix multiplication efficiently, understanding the manual process is essential. Let's examine the two most important cases.
Multiplying a row matrix by a column matrix
Worked Example: Row Matrix × Column Matrix
Evaluate where and
Step 1: Check if the product is defined and determine its order
The product is defined (columns in = rows in = )
Order of is
Step 2: Multiply corresponding elements and add
Therefore,
Multiplying a rectangular matrix by a column matrix
Worked Example: Rectangular Matrix × Column Matrix
Evaluate where and
Step 1: Check if the product is defined and determine its order
The product is defined (columns in = rows in = )
Order of is
Step 2: Multiply each row of by the column
For the first row:
For the second row:
Step 3: Combine the results
Using a CAS calculator to multiply matrices
For larger matrices or more complex calculations, a CAS calculator is invaluable. Here's how to multiply matrices using technology.
Worked Example: Calculator Matrix Multiplication
Calculate where and
Steps:
- Enter and store matrices and in your calculator
- Type the matrix product as (include the multiplication sign)
- Press execute/enter to evaluate
The calculator displays the result:
This matches our earlier football example!
Important: You must include a multiplication sign between matrix names. Simply typing "" won't work properly on most calculators.
Applications: The summing matrix
A summing matrix is a special type of matrix where all elements equal . These matrices have a useful property for calculating totals.
Examples of summing matrices:
Using summing matrices to calculate totals
Rule for summing rows:
To sum the rows of an matrix, post-multiply (multiply on the right) by an summing matrix.
Rule for summing columns:
To sum the columns of an matrix, pre-multiply (multiply on the left) by a summing matrix.
Memory aid:
- POST-multiply to sum ROWS
- PRE-multiply to sum COLUMNS
Worked example: Using summing matrices
Worked Example: Summing Rows and Columns
Part (a): Sum the rows of
This is a matrix, so we post-multiply by a summing matrix:
Part (b): Sum the columns of
This is a matrix, so we pre-multiply by a summing matrix:
Part (c): Sum the columns of
This is a matrix, so we pre-multiply by a summing matrix:
Practical application: Energy consumption
Matrix multiplication is particularly useful when dealing with multiple calculations involving the same rates or conversion factors.
Worked Example: Energy Consumption During Exercise
A person's training session consists of:
- minutes walking
- minutes running
Energy consumption rates are:
- Walking: kJ per minute
- Running: kJ per minute
Matrix formulation:
Calculate total energy:
Total energy consumed: 2100 kJ
Advantage of matrices: While this single calculation could be done without matrices, the matrix formulation allows you to easily calculate energy consumption for multiple people with different exercise times, all in one operation.
Matrix powers
Just as we can square or cube numbers, we can raise matrices to powers. However, there's an important restriction.
Definition of matrix powers
Matrix powers are defined similarly to numerical powers:
And so on.
Important restriction: Only square matrices can be raised to a power.
This is because to calculate , the matrix must be compatible with itself for multiplication. This only happens when the number of columns equals the number of rows—that is, when the matrix is square.
Worked example: Matrix expressions with powers
Worked Example: Evaluating Matrix Expressions with Powers
Given , , and , evaluate:
(a)
(b)
(c)
Solution approach:
- Enter matrices , , and into your calculator
- Type each expression exactly as written
- Evaluate using the calculator
Results:
(a)
(b)
(c)
When entering expressions like , you must include a multiplication sign: type . Otherwise, the calculator might interpret it as a variable named "" squared.
Remember!
Key Points to Remember:
-
Matrix multiplication combines multiplication and addition: Each element in the product comes from multiplying corresponding elements and summing the results
-
For to be defined: The number of columns in must equal the number of rows in
-
Order of the product: If is and is , then is (the "outside numbers" give the answer)
-
Order matters: Generally, . Matrix multiplication is not commutative
-
Summing matrices:
- Use summing matrices (post-multiply) to sum rows
- Use summing matrices (pre-multiply) to sum columns
-
Matrix powers: Only square matrices can be raised to powers. , , and so on
-
Use technology wisely: For complex calculations, use your CAS calculator, but always understand the underlying process