Exercises — Solving systems using matrix inversion
This page is a self-test ladder. Each problem uses only the tools built in Solving Systems Using Matrix Inversion: writing , the determinant gate , the inverse , and the consistency branch when . Try each one with the solution collapsed, then open it.
Recall the two workhorses we will lean on again and again:
Two pieces of notation we will use throughout, defined once here so no symbol appears unearned:
Level 1 — Recognition
Exercise 1.1
For the system , write down the coefficient matrix , the variable matrix , and the constant matrix .
Recall Solution
WHAT we do: read the numbers straight off the equations. The coefficient matrix collects the numbers multiplying the unknowns, row by row; the constant matrix collects the right-hand sides. Check it reproduces the system: row 1 of times gives , set equal to the first entry of , which is — exactly equation one. ✓
Exercise 1.2
For , compute and state whether exists.
Recall Solution
. Since , the machine is reversible, so exists.
Exercise 1.3
The system has coefficient matrix . Without solving, is the inversion method going to work? Compute the gate.
Recall Solution
. The gate is closed (), so does not exist and cannot be used. We must fall back to the consistency branch instead.
Level 2 — Application
Exercise 2.1
Solve by matrix inversion.
Recall Solution
Gate: — safe to invert. Inverse. WHY these moves? The formula says: swap the two diagonal entries (), negate the two off-diagonal entries (), then divide by . Each move is the special case of "transpose the cofactor matrix and divide by the determinant." Multiply (, keep on the right because has on the right): So . Check: ✓, ✓.
Exercise 2.2
Solve by matrix inversion.
Recall Solution
Gate: . Inverse. WHY these moves? The inverse formula is just "transpose the cofactor matrix, divide by " in miniature: for a , the cofactor of is , of is , of is , of is ; transposing that grid puts and on the diagonal (swapped) and off it (negated). So swap the diagonal , negate the off-diagonal , and divide by : So . Check: ✓, ✓.
Exercise 2.3
Solve the system by inversion.
Recall Solution
Gate — expand along row 1. WHY row 1? Any row (or column) gives the same determinant, so we pick the one with the most convenient numbers; here row 1 is and that kills one whole term, saving work. Attaching the sign pattern to row 1: Cofactor matrix, then adjugate. Each cofactor is times the minor (delete its row and column, take the determinant). Doing all nine and transposing: Then and So . Check: ✓, ✓, ✓.
Level 3 — Analysis
For these, first compute ; only if it is zero do you test (recall = the zero column vector defined at the top). The figure below is the whole geometric story of this level: it shows two lines in the three possible arrangements, and each exercise below is exactly one panel of it.

Read the figure left to right. In the left panel the two coloured lines cross at the single orange point — that is , the unique case. In the middle panel the two lines lie exactly on top of each other (the violet dashed line sits on the thick magenta one) — that is with , infinitely many meeting points. In the right panel the two lines run parallel and never touch — that is with , no solution. Exercises 3.1, 3.2, 3.3 walk these panels in turn: 3.1 = left (unique), 3.2 = middle (infinitely many), 3.3 = right (no solution).
Exercise 3.1
Classify : unique, none, or infinitely many? (This is the left panel of the figure.)
Recall Solution
. — gate open. A non-zero determinant means the machine is reversible, so there is exactly one solution — the unique case. The two lines are not parallel, so they cross at a single point (the orange dot in the left panel). For completeness, solve it: , so Unique solution . Check: ✓.
Exercise 3.2
Classify : unique, none, or infinitely many? (This is the middle panel of the figure.)
Recall Solution
. — gate closed. Now test . For a , (swap the diagonal, negate the off-diagonal — the adjugate). Here is the zero vector. and ⇒ infinitely many solutions. Sanity check: the second equation is exactly twice the first, so they are the same line — the middle panel.
Exercise 3.3
Classify : unique, none, or infinitely many? (This is the right panel of the figure.)
Recall Solution
Same as Ex 3.2, so . Now : and ⇒ no solution (inconsistent). Geometry: two parallel but distinct lines — the "3" vs "7" pushes one line off the other, the right panel.
Exercise 3.4
For which value of does fail to have a unique solution? For that , is it "no solution" or "infinitely many"?
Recall Solution
. Unique solution fails exactly when : At : , , . So at the system has no solution. (Equation one becomes , which contradicts .)
Level 4 — Synthesis
Exercise 4.1
You are told the solution of with is . Reconstruct without re-solving — and explain which direction of the machine you used.
Recall Solution
WHAT/WHY: we know the code and the rule ; the forward machine gives the output . No inverse needed here — inversion is only for going backwards. So . This confirms the round trip : feeding into the reverse machine gives back , and the forward machine returns — exactly the system .
Exercise 4.2
Solve the pair of systems and at once, where , , . Use the fact that is computed only once.
Recall Solution
WHY do it together: the expensive step is finding ; once you have it, each right-hand side is just one multiplication. This is exactly the efficiency reason inversion beats re-doing elimination. From Ex 2.1, and . Check : ✓, ✓.
Exercise 4.3
Solve by inversion, being careful to write the coefficient matrix with a zero wherever a variable is missing.
Recall Solution
Rewrite with all three variables shown: . Gate — expand along row 1 (chosen because its in column 3 drops a term). With signs : Adjugate — WHY transpose? WHAT we do: compute all nine cofactors to form the cofactor grid , then transpose it (rows become columns) to get . WHY the transpose: only the transposed grid satisfies , the identity that makes actually undo ; skipping it is the single most common slip. Carrying it out here: Then , and So . Check: ✓, ✓, ✓.
Level 5 — Mastery
Exercise 5.1
A shop sells three combos. Let be the prices of items A, B, C. The receipts read: Solve for the prices by matrix inversion, justifying the determinant gate, and confirm all prices are non-negative (so the answer is physically sensible).
Recall Solution
Gate — expand along row 1 (all entries small, no obvious zero, so any row works; row 1 keeps arithmetic light). With signs : Non-zero ⇒ unique price list exists, safe to invert. Cofactor matrix, then transpose for the adjugate. Recall each cofactor carries the sign : (Verify a corner: ; it sits at position of the adjugate.) Then and Compute the product before dividing: Prices — all non-negative, physically sensible. Check: ✓, ✓, ✓.
Exercise 5.2
For what value(s) of and does the system have (a) a unique solution, (b) no solution, (c) infinitely many? Determine the exact that goes with each degenerate case.
Recall Solution
, . Gate — expanded along row 1 (signs ): (a) Unique. . For any , a unique solution exists.
The degenerate branch: . Set ; then row 3 of becomes , which is identical to row 2. So the last two equations share the same left side : These can both hold only if . That splits the branch cleanly:
(b) No solution. If and , the two equations demand equal two different numbers at once — a flat contradiction. No exists. (Confirm with the consistency test: at , , and one checks precisely when .)
(c) Infinitely many. If and , the third equation is an exact copy of the second — it adds no new information. Two genuinely independent equations remain in three unknowns, leaving one free parameter, so there are infinitely many solutions. (Consistency test: and .)
Summary: unique for (any ); no solution for ; infinitely many for .
Connections
- Determinants — every gate above was a determinant computation.
- Adjoint and Inverse of a Matrix — the machinery behind each .
- Cofactors and Minors — how the adjugates and their signs were built.
- Consistency of Linear Systems — the L3 and L5 branch logic.
- Cramer's Rule — a parallel-track solver using the same gate.
- Gaussian Elimination — the go-to method once matrices get large.