Example 16: Solve two equations by the matrix method
Solve the system of equations
The system is , where
. So is non-singular and the system has a unique solution, .
.
Want the reason behind every step, the basics and the checks?
Two linear equations are one matrix equation : the coefficients form , the unknowns form , the right-hand sides form . If , then exists, and multiplying both sides by it on the left "undoes" : . One matrix multiplication then gives both unknowns at once, and the solution is the only one.
- Given
- and .
- To find
- All pairs satisfying both equations.
- Plan
- Write the system as ; compute ; since it is not 0, find and compute ; check the answer in both equations.
Basics you need
A matrix times a column is a column: each entry is a row of the matrix times the column. Basics: matrix facts the chapter uses
If , then , where swaps the diagonal entries and changes the sign of the other two. Basics: why the inverse divides by |A|
Each equation is a straight line. Two lines cross in exactly one point, are parallel (no common point), or are the same line (infinitely many). The determinant tells which case we are in. Basics: two lines: cross, parallel or the same
Solution
Write the system as
is and is , so is defined and is , the same order as . Its entries are
so says exactly and .
Row 1 of holds the coefficients of the first equation, and , in the same order as the unknowns in ; row 2 holds and . Multiplying out confirms that nothing was misplaced.Section 4.6.1: a system is written as . Lesson: solving systems AX = BCompute
Since , is non-singular, so exists and the system has a unique solution.
This is Case I of Section 4.6.1. The determinant decides whether the matrix method can be used at all: with there would be no inverse, and the system would have either no solution or infinitely many.Case I, Section 4.6.1; Theorem 4, Section 4.5. Basics: two lines: cross, parallel or the sameFind
The cofactors are , , , . Transposing their matrix (equivalently: swap the diagonal 2s, change the signs of 5 and 3):
and . Keeping the fraction outside the matrix avoids working with elevenths until the very end.Theorem 4, Section 4.5; Remark after Example 12. Lesson: inverse of a matrixWhy
Multiply both sides of on the left by :
Each line uses one rule: pre-multiplying both sides by the same matrix keeps them equal; the associative law regroups; ; and . It must be the left side, because sits to the right of ; would not even be defined ( times ). Since is unique, so is .Case I, Section 4.6.1. Lesson: solving systems AX = BCompute
Row times column:
Equal matrices have equal entries, so , .
and . Comparing the entries of two equal matrices gives one equation per entry.Equality of matrices, Chapter 3, Section 3.3.1. Basics: rows, columns and positionsCheck in both equations, and
With , :
Both equations hold. Also should be :
so .
Substituting into the original equations is the real test of a solution. Checking also confirms the inverse used in Step 5.The picture: two lines crossing once
Each equation is a line. Their slopes are and , which differ, so the lines are not parallel and cross at exactly one point, .
The blue line and the gold line (equal scales on both axes) meet only at , the solution found with . For two lines and , the determinant is 0 exactly when the two lines have the same direction (parallel or identical lines). Here it is , which is the algebraic way of saying "the lines cross once".means a unique solution. Basics: two lines: cross, parallel or the same
With having rows and , and
The unique solution is , . (This agrees with the textbook's own solution.)
Elimination gives the same answer independently. Multiply the first equation by 3 and the second by 2: and . Subtracting, , so ; then and .
- Writing . is and is , so is not even defined. Pre-multiply: .
- Losing the sign of . , so the factor is ; dropping it gives , , which fails both equations.
- Mixing up rows of . Row 1 must be the coefficients of the first equation, in the order .
- Not checking. Substituting , back takes seconds and catches every slip.
- System ; if , the unique solution is .
- For two unknowns, means the two lines are not parallel, so they cross once.
- Always substitute the answer into the original equations.
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) |
| determinant | Step 2 | Section 4.2.2 (Lesson: determinant of a square matrix) |
| : unique solution | Steps 2, 4 | Case I, Section 4.6.1 |
| ; adjoint | Step 3 | Theorem 4, Section 4.5; Remark after Example 12 |
| Associative law, , | Step 4 | Chapter 3, Section 3.4.6 (Basics: matrix facts the chapter uses) |
| Equal matrices have equal entries | Step 5 | Chapter 3, Section 3.3.1 |
| Step 6 | Theorem 1, Section 4.5 |
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 →