Example 17: Solve three equations by the matrix method
Solve the following system of equations by matrix method.
The system is , where
Expanding along :
. So is non-singular and the system has a unique solution, .
Cofactors:
.
Want the reason behind every step, the basics and the checks?
Three equations in three unknowns are one matrix equation . If , then exists and is the one and only solution. The work is mostly bookkeeping: nine cofactors, a transpose, and two matrix products, each of which can be checked.
- Given
- The three linear equations above.
- To find
- All triples satisfying all three equations, using matrices.
- Plan
- Write ; compute ; find all nine cofactors, the matrix of cofactors and ; form and check ; compute ; substitute back.
Basics you need
Along row 1: , with signs and each minor a determinant. Basics: the + − + sign pattern
; is the transpose of the matrix of cofactors. Basics: transpose and identity
A matrix times a column is a column: each entry is a row times the column. Basics: matrix facts the chapter uses
If : , and this solution is unique (Case I, Section 4.6.1). Basics: why the inverse divides by |A|
Solution
Write the system as
is and is , so is , like . Row by row, has entries , and , so is exactly the given system.
Each row of lists one equation's coefficients in the order . In the second equation "" means coefficient and "" means coefficient ; these are the easiest entries to get wrong.Section 4.6.1. Lesson: solving systems AX = BCompute , expanding along row 1
No row or column of contains a zero, so every expansion has three terms; we use row 1, as the textbook does. Signs :
The minors:
Since , is non-singular: exists and the system has a unique solution.
The middle term is : the sign pattern's minus meets the entry's own minus. The textbook writes this line as .Section 4.2.3; Case I, Section 4.6.1. Lesson: expanding a 3 × 3 determinantCofactors of row 1
The minors of row 1 were found in Step 2; attach the signs :
Reusing the minors from the expansion saves work. As a check, is .Definition 2, Section 4.4. Lesson: minors and cofactorsCofactors of row 2
Delete row 2 and each column in turn; signs :
In , the product down the main diagonal is and down the other diagonal , so . Writing each product with its sign before subtracting avoids most errors.with negative entries: keep every bracket. Basics: algebra the chapter leans onCofactors of row 3
Delete row 3 and each column in turn; signs :
All nine now agree with the textbook: , , , , , , , , .Matrix of cofactors, and
Transpose (rows become columns):
Since ,
The cofactors of row 1 () become column 1 of the adjoint, and so on. Keeping outside avoids fractions until the very end.Definition 3, Section 4.5.1; Theorem 4, Section 4.5. Lesson: the adjointCheck:
It is enough to check . Row of times column of :
So and .
If any cofactor were wrong, some entry here would fail to be or . Checking the inverse before using it means an error cannot travel into the solution.Theorem 1, Section 4.5. Basics: matrix facts the chapter usesCompute
Row times column:
Comparing entries: , , .
comes from pre-multiplying by (Case I, Section 4.6.1). Each entry of the column is then divided by : , , .Case I, Section 4.6.1; equality of matrices. Lesson: solving systems AX = BCheck in every original equation
All three right-hand sides are reproduced.
The solution must satisfy the equations as given, not just our matrix version of them; substituting back tests everything at once, including the setting up in Step 1.
, so the system has the unique solution
that is , , . (This agrees with the textbook's own solution.)
Elimination gives the same answer independently. From the second equation, . Substituting into the first: , so . Into the third: , so . Adding these two, , so ; then and . Same answer.
- Wrong sign on the middle term of the expansion. It is .
- Forgetting the transpose. Using instead of gives a wrong ; the check in Step 7 would fail.
- Dropping . Without it the "solution" would be .
- Misreading coefficients. "" has coefficients .
- Matrix method: , check , then .
- Check the inverse () before using it, and check the solution in the original equations after.
- Keeping outside the matrix keeps the arithmetic in whole numbers until the end.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Writing a system as | Step 1 | Section 4.6.1 (Lesson: solving systems AX = B) |
| Expansion along a row | Step 2 | Section 4.2.3 (Lesson: expanding a 3 × 3 determinant) |
| Minors and cofactors | Steps 3 to 5 | Definitions 1 and 2, Section 4.4 (Lesson: minors and cofactors) |
| = transpose of | Step 6 | Definition 3, Section 4.5.1 |
| when | Step 6 | Theorem 4, Section 4.5 (Lesson: inverse of a matrix) |
| Step 7 | Theorem 1, Section 4.5 | |
| : unique solution | Steps 2, 8 | Case I, Section 4.6.1 |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →