CP 3.7 - Solving three equations with matrices
Three simultaneous linear equations can be written as one matrix equation. You will use an inverse matrix to recover the three unknowns, check the result in the original equations, and solve systems whose coefficients contain a parameter.
Writing a system as a matrix equation
Three numbers have pairwise sums , and . What are the numbers? If the numbers are , and , the information is
You could eliminate variables. There is also one reusable operation that solves all three equations together: multiply their matrix equation by an inverse.
You already know
From A-level Mathematics, a simultaneous solution must satisfy every original equation. From the previous lesson, when . Row-by-column multiplication turns a coefficient matrix times a column of unknowns into a column of linear expressions.
Put the coefficients in rows, always using the same variable order. Put the constants in a separate column in the same equation order:
For example, the second row produces . A missing variable needs a zero entry; otherwise the remaining coefficients would slide into the wrong columns.
Coefficient matrix
For a system of three linear equations in , and , the coefficient matrix has one row per equation and one column per variable. The system is , with . The constants belong in , not in .
If an equation is written as , its row in this variable order is . The order on the page is allowed to change; the order of the matrix columns is fixed. If you reorder equations, reorder the constants as well. The resulting system has the same solutions.
Key idea
Fix the variable order once, then read one complete equation into each row. Zeros keep missing variables in their places.
The following check focuses on that translation, before any inverse calculation gets involved.
Solving by an inverse matrix
The unknown column is on the right of the coefficient matrix, so multiply both sides on the left by the inverse. This puts the cancelling matrices beside one another.
Inverse method for simultaneous equations
For a non-singular coefficient matrix ,
The condition is . There is then exactly one solution.
Not in the formula booklet: learn it.
You already know how to calculate a three by three inverse. Here the new task is using it correctly: multiply each row by the entire constants column, keep any outside factor, then state the values of the unknowns.
Worked example 1: the pairwise sums
Question. Solve , , using an inverse matrix.
Plan. Form the coefficient matrix, calculate its inverse, and multiply by the constants column.
Its cofactor matrix is , so
Why this step? The multiplies every component. The integer column is not yet the solution.
Answer. , , .
Check. , , and , so all three original equations hold.
Worked example 2 changes only the constants column. The coefficient matrix is unchanged, so you can reuse its inverse. This is one of the main attractions of the method.
Worked example 2: a new constants column
Question. Use the same inverse matrix to solve , , .
Plan. Keep , replace the constants column, and perform the multiplication.
Why reuse the inverse? It depends only on the coefficients, not on the right-hand sides.
Answer. , , .
Check. , , and .
A calculator's matrix operations can perform this multiplication, but still write and identify the final variables. If coordinates of an intersection point are requested, give a coordinate triple, with the outside factor already applied.
Watch out
Wrong: . A three by one column cannot multiply a three by three matrix in that order. Right: , a three by three matrix times a three by one column.
The next constants column produces fractions. Keep them exact rather than rounding midway.
Systems with a parameter
A parameter makes the arithmetic longer, but the structure stays the same. State the values for which the inverse exists before dividing by an expression containing that parameter.
Consider
Its determinant is . Cofactors give
This particular inverse is derived by the previous lesson's method; it is not in the formula booklet. Keep its denominator outside the multiplication until you have simplified the numerator entries.
Worked example 3: parameter in a coefficient
Question. Given , solve , , , using .
Plan. Multiply by the constants column, simplify the three numerators, then give the three values.
Why state ? At , the inverse does not exist. A fraction with denominator zero is not a solution.
Answer. , , , for .
Check. , , and .
Worked example 4 changes only the right-hand side of the last equation. It now depends on the same parameter, which allows cancellation.
Worked example 4: a solution that stays fixed
Question. For , solve , , using the inverse matrix.
Plan. Replace the last entry of the constants column by , then simplify before dividing.
Why this step? Each numerator has a factor , so the apparent parameter dependence cancels for the permitted values.
Answer. , , for every real .
Check. , , and , for any such .
Cancellation must preserve the domain on which the inverse was calculated.
Watch out
Wrong: cancelling means the inverse method is valid at too. Cancellation requires . The correct inverse-based conclusion remains for ; any singular case must be checked in the original equations separately.
This is a useful surprise: infinitely many different coefficient matrices can give exactly the same solution. Changing an equation need not change the answer if the replacement equation is still satisfied by the same triple and the coefficient matrix stays non-singular.
If the determinant is zero, do not conclude “no solution” from the failed inverse operation. There may be no solution or infinitely many; the next lesson distinguishes those possibilities geometrically.
Exam tip
When asked for an answer in simplest form, distribute any outside factor and simplify each component. For a point, finish with , rather than leaving a scalar times an unevaluated column.
The pairwise-sum puzzle has answer . The parameter examples show both what the inverse changes and what it can leave unexpectedly fixed.
Quick Recap
- Write the equations as , keeping variable and equation orders consistent.
- If , the unique solution is .
- Apply every outside factor, simplify the three components, and substitute into all the original equations.
- For a parameter, exclude values that make the determinant zero before using the inverse.
The opening three numbers are , and : the inverse recovers them in one matrix multiplication.