IB

View all Questions

Question

Mathematics

How do you solve simultaneous equations using an inverse matrix?

Answer

Mathematics

Expert Answer

Write the equations as Ax=bA\mathbf{x}=\mathbf{b}, with the coefficients, the numbers multiplying the unknowns, in AA, the unknowns in x\mathbf{x} and the totals in b\mathbf{b}. If AA is a square matrix, with the same number of rows and columns, and det⁡A≠0\det A\ne0, multiply on the left by A−1A^{-1}.

x=A−1b\boxed{\mathbf{x}=A^{-1}\mathbf{b}}

The order matters. Matrix multiplication cannot generally be reversed.

Translate a word problem

Three stationery bundles contain notebooks, pens and folders. Every item has the same unit price in every bundle.

BundleNotebooksPensFoldersTotal cost
121113
213216
331220

Costs are in the same currency units. Let xx, yy and zz be the price of one notebook, pen and folder respectively. The rows of the table give

2x+y+z=13x+3y+2z=163x+y+2z=20\begin{aligned} 2x+y+z&=13\\ x+3y+2z&=16\\ 3x+y+2z&=20 \end{aligned}

Keep the same variable order in every row.

(211132312)⏟A(xyz)⏟x=(131620)⏟b\underbrace{\begin{pmatrix}2&1&1\\1&3&2\\3&1&2\end{pmatrix}}_A \underbrace{\begin{pmatrix}x\\y\\z\end{pmatrix}}_{\mathbf{x}} =\underbrace{\begin{pmatrix}13\\16\\20\end{pmatrix}}_{\mathbf{b}}

Rows represent bundles; columns represent item types. Swapping the pen and folder columns without swapping their unknowns would change the problem.

Check that an inverse exists

Expanding the determinant across the first row,

det⁡A=2(6−2)−(2−6)+(1−9)=4\det A=2(6-2)-(2-6)+(1-9)=4

It is non-zero, so this system has a unique solution. The inverse is

A−1=(1−14−14114−34−21454)A^{-1}=\begin{pmatrix} 1&-\frac14&-\frac14\\ 1&\frac14&-\frac34\\ -2&\frac14&\frac54 \end{pmatrix}

You can check this by multiplying A−1AA^{-1}A and obtaining the identity matrix. On a calculator, enter the coefficient matrix and the three-by-one totals matrix separately before evaluating A−1bA^{-1}\mathbf b.

Multiply and interpret

x=13−164−204=4y=13+164−3(20)4=2z=−2(13)+164+5(20)4=3\begin{aligned} x&=13-\frac{16}{4}-\frac{20}{4}=4\\[9pt] y&=13+\frac{16}{4}-\frac{3(20)}4=2\\[9pt] z&=-2(13)+\frac{16}{4}+\frac{5(20)}4=3 \end{aligned}

The prices are therefore 4 per notebook, 2 per pen and 3 per folder.

Verify them in all three original equations.

2(4)+2+3=134+3(2)+2(3)=163(4)+2+2(3)=20\begin{aligned} 2(4)+2+3&=13\\[6pt] 4+3(2)+2(3)&=16\\[6pt] 3(4)+2+2(3)&=20 \end{aligned}

This checks both the calculation and how the table was translated.

What does a zero determinant mean?

It means the inverse method cannot be used, not automatically that there is no solution. For example, x+y=2x+y=2 and 2x+2y=42x+2y=4 have infinitely many solutions, whereas changing the second total to 5 means the equations have no common solution.

Use elimination or row reduction to distinguish those cases. Also check dimensions: a non-square coefficient matrix has no inverse that works on both sides.

Try finding the cheese prices in the cheese-board question in the AI HL Number and Algebra Questionbank. Keep the cheese types in the same column order as you build the equations, then check whether the prices you find reproduce the original combination costs.

Answered by Revision Village IB Expert

Interested in diving deeper into this concept?

Explore More IB Mathematics Resources

Over 80% of IB students globally are experiencing the power of Revision Village