Lesson 7 of 8 · 17 min
Solving matrix equations
Solve matrix equations of the form , and by multiplying by an inverse on the correct side, and justify each step.
What you will be able to do
- Solve by pre-multiplying by , and by post-multiplying by .
- Factorise equations such as into , and into .
- Justify each step with a law of matrix algebra.
To solve , you multiply both sides by . To solve for an unknown matrix , you multiply both sides by . The only new rule is the one from the last few lessons: order matters, so you must multiply on the same side of both sides of the equation.
Unknown on the right:
is on the left of , so pre-multiply both sides by :
Unknown on the left:
is on the right of , so post-multiply both sides by :
Worked example
Solve
Given and , solve for the matrix .
Step 1: Find
, so .
Step 2: Pre-multiply both sides by
, so .
is on the left of , so the inverse must go on the left as well. Then and .
Step 3: Multiply
Step 4: Check
, which is .
Try it yourself first, then check the working one step at a time.
Answer
Method
Find , checking that .
Multiply both sides by on the same side as .
Check by multiplying back.
Watch out for
Calculating instead of .
This multiplies by the solution from the example, and the product is . Change an entry of and the product no longer matches: when , has exactly one solution.
Using the same matrices, and , solve .
Key idea
Factorising matrix equations
When the unknown appears more than once, collect it with a distributive law, keeping on the same side in every term:
- , because
Each one needs the bracketed matrix to be non-singular. If is on the left in one term and on the right in another, as in , you can't factorise this way.
Worked example
Solve
Given , and , solve .
Step 1: Factorise
, so .
This is the right distributive law. is on the right in both terms, so it comes out on the right.
Step 2: Find and its determinant
and .
Step 3: Find the inverse
Step 4: Pre-multiply both sides by
Step 5: Check
, which is .
Try it yourself first, then check the working one step at a time.
Answer
Method
Factorise, keeping on its side: .
Check and find the inverse.
Pre-multiply by the inverse, then check.
Watch out for
Writing : the unknown is on the right of and .
Inverting and separately: .
Common mistake
Three ways to lose the marks
- Writing . There is no matrix division.
- Writing for . The inverse goes on the same side as .
- Writing . You can't add a number to a matrix: it is .
Solve for , given that is non-singular.
Worked example
Decode a secret message
A simple code turns letters into numbers (, , …, ), writes them in pairs as the columns of a matrix , and sends the coded matrix , where
You receive
Find the four-letter message.
Step 1: Set up the matrix equation
, with the unknown on the right of . This has the form .
Decoding means solving the coding equation for the original matrix.
Step 2: Find
, so .
The code can only be undone because . A singular coding matrix would destroy information.
Step 3: Pre-multiply both sides by
Step 4: Turn the numbers back into letters
Read down each column: and then , which are M, A, T, H.
Step 5: Check the answer is reasonable
Every entry is a whole number from 1 to 26, as letters must be. The wrong order, , gives negative numbers here, which cannot be letters.
Try it yourself first, then check the working one step at a time.
Answer
The message is MATH.
Method
Write the decoding problem as a matrix equation.
Multiply by the inverse of the coding matrix on the correct side.
Convert back to letters and check the entries make sense.
Watch out for
Calculating . Since , the inverse must go on the left.
Reading the letters across the rows instead of down the columns.
Without technology
Find the inverse with the formula, then do one matrix multiplication. Check by multiplying back.
With technology
Enter the matrices and type the whole expression, such as or . You still have to choose the order: the calculator will happily compute when you meant .
Solve for :
Summary
(pre-multiply). (post-multiply).
Collect the unknown with a distributive law, keeping it on its side: and .
The matrix you invert must be non-singular.
Check by multiplying back into the original equation.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.