PrepShorts · Study sheet · Class 12 Mathematics · Chapter 4, Determinants
Chapter 4 · Determinants
Packing three equations into AX = B and reading the solution off the inverse
This video could not be loaded. Reload the page to try again.
Sign in with Google19 min.
Keep your place in this chapter — sign in, it’s free.Sign in
Three equations in three unknowns become one equation in one unknown the moment the unknown is allowed to be a column. Everything after that is the ordinary business of undoing a multiplication - except that the thing being undone is an array, so the undoing is an inverse, and the side it goes on is decided by the packing rather than by a rule to be memorised.
The idea
Three equations in three unknowns become one equation in one unknown once the unknown is allowed to be a column. That repackaging is the whole idea, and everything that follows is the ordinary algebra of undoing a multiplication — except that the thing being undone is a matrix, so the undoing is an inverse and the side it is applied on matters. The chapter is careful about that side and a student is usually not. The payoff is worth the care: the same four lines solve a system in two unknowns, a system in three and a shopping problem, and — after one change of unknown — a system whose unknowns are reciprocals.
What you should be able to do
- Rewrite a system of two or three linear equations as one matrix equation, and name the three arrays involved
- Check that carrying out the multiplication reproduces the original equations line by line
- State the condition under which the method applies, and test it before doing anything else
- Carry out the four-line rearrangement that isolates the column of unknowns
- Say which side the inverse must be applied on, and what goes wrong on the other side
- Explain why the solution obtained this way is the only one
- Solve a system in two unknowns and a system in three unknowns by this method
- Turn a worded problem into three equations and then into one matrix equation
- Use a product that has been handed to you, rather than computing an inverse
- Recognise a system that becomes linear after a substitution, and solve it
Words to know
| Term | Definition in one line | First introduced |
|---|---|---|
| coefficient matrix | the square array of the numbers multiplying the unknowns | printed in this chapter (§4.6.1, Part I p. 94) |
| matrix method | the chapter's own name for solving a system this way | printed in this chapter (§4.6.1, Part I p. 94) |
| inverse | the array that undoes the coefficient array | printed in this chapter (§4.5, Part I p. 87) |
| non-singular | said of the coefficient array when its determinant is not zero | printed in this chapter (Definition 5, §4.5.1, Part I p. 89) |
| unique solution | the single answer this method returns when it applies | printed in this chapter (§4.1, Part I p. 76) |
| premultiplying | the chapter's own name for multiplying both sides on the left | printed in this chapter (§4.6.1, Case I, Part I p. 94) |
| associative | the property that lets the two arrays on the left be regrouped | printed in this chapter (§4.6.1, Case I, Part I p. 94) |
| identity matrix | what the inverse and the coefficient array collapse to, leaving the unknowns alone | printed in this chapter (Theorem 1, §4.5.1, Part I p. 88) |
| adjoint | the array the inverse is built from | printed in this chapter (Definition 3, §4.5.1, Part I p. 87) |
| column of unknowns | an added name for the single object the three unknowns become | an added phrase; the chapter writes the column and gives it only a letter |
| substitution | an added word for the move that turns a system in reciprocals into a linear one | an added vocabulary; one exercise item needs the move and the chapter never names it |
Where people slip up
- "Divide both sides by the coefficient array." There is no division for matrices. There is multiplication by an inverse, and it has a side. Say the word "inverse" every time; the moment an explanation says "divide", the side stops mattering to the student.
- "It does not matter which side you multiply on." It does. Matrix multiplication does not commute and the chapter names the side explicitly at the one step where it matters. Multiplying on the wrong side leaves an array stranded between the inverse and the column, and nothing cancels.
- "Check the determinant at the end." Check it first. If it is zero the whole method is unavailable and everything computed afterwards is wasted. The condition is the first line of Case I for exactly this reason.
- "The column on the right holds the answers." It holds the right-hand sides of the equations. The answers appear only after the multiplication by the inverse. Mixing these two columns up is the commonest setup error.
- "The unknowns have to be written in the order they appear in the first equation." They have to be written in the same order in every equation, and a missing unknown contributes a zero coefficient. Exercise 4.5 Q11 has an equation with only two unknowns in it and the zero must be written in.
- "A worded problem gives you the equations directly." One of the three conditions in Example 18 is a comparison and has to be rearranged before it is an equation at all. That rearrangement is where marks are lost.
- "You always have to compute the inverse." Not when you are handed a product that turns out to be the identity. The chapter's own Miscellaneous Example does exactly that and computes no cofactor at all.
- "Fractional answers mean I made a mistake." Two of the four two-unknown items and one of the four three-unknown items in Exercise 4.5 have fractional answers. They are correct.
Ask your teacher a person
Your teacher reads this and writes back, usually within a day. For an instant answer, use Ask the video in the sidebar.
Your class sees the question and the answer. Only your teacher sees that it was you.
No questions on this topic yet.
Worked answers: Exercise 4.1 · Exercise 4.2 · Exercise 4.3 · Exercise 4.4 · Exercise 4.5 · Miscellaneous Exercise · this video explains Exercise 4.5 Q7, Exercise 4.5 Q8, Exercise 4.5 Q9, Exercise 4.5 Q10, Exercise 4.5 Q11, Exercise 4.5 Q12, Exercise 4.5 Q13, Exercise 4.5 Q14, Exercise 4.5 Q15, Exercise 4.5 Q16, Miscellaneous Exercise Q7
Transcript2,628 words
Here is a page of algebra. Three equations, three unknowns, nine coefficients scattered across them, and three numbers on the right. Everything you have built so far has been leading here, and the first thing that happens is that the page gets shorter. Much shorter. Those three equations are about to become one equation. One array, times one column, equals one column. That is not an abbreviation. It is a true statement, and today we are going to check that it is true rather than agree that it looks tidy.
And once it is one equation in one unknown, we undo it the way you undo any multiplication -- except that the thing being undone is an array, so the undoing is an inverse, and the side it goes on will turn out to matter enormously. Start by lifting three things out of the page. The nine coefficients, pulled out and left in their places, make a square array. That is the coefficient array, and it is the only square thing here.
The three unknowns, written downwards instead of across, make a column. That column is the single object we are solving for. Not three unknowns any more -- one column. And the three numbers on the right make a second column. Three objects, and every one of them sits inside square brackets. Not a single upright bar anywhere. Hold onto that, because the bars are going to reappear in exactly one place, and when they do they will mean something completely different.
Now the part almost everybody skips. Multiply the packing out. Row into column: the first row of the coefficient array runs across the column of unknowns, and what comes back is the first coefficient times the first unknown, plus the second times the second, plus the third times the third. That is the first equation. Not something like it -- it. Do the second row and you get the second equation, and the third row gives the third.
I ran that expansion in letters, with nine named coefficients and three named unknowns, so that nothing could be quietly assumed. The product has one entry per equation. Each entry carries exactly three terms, one per unknown. Every term is exactly one coefficient multiplied by exactly one unknown -- nothing squared, nothing crossed. And the coefficients that show up in the first entry are the first row's three, and nobody else's.
The packing is a translation, and it is exact. Treat it as notation and you will one day pack a system wrong and have no idea why the answer is nonsense. Before anything else happens, one number gets computed. Here is where the bars come back. Square brackets around an array mean the array. Upright bars mean its determinant -- a single number squeezed out of it. Compute the determinant of the coefficient array, and ask one question: is it nought?
If it is not, everything below works. If it is, the method is unavailable and nothing you compute afterwards is worth anything. Check it first. Not at the end. I swept nineteen thousand six hundred and eighty-three coefficient arrays built from minus one, nought and one. Seven thousand eight hundred and seventy-five of them are singular. That is forty in every hundred. Forty in every hundred where a student who checks the determinant last has computed nine cofactors, assembled an adjoint, and thrown the whole lot away.
Suppose the determinant is not nought. Then the coefficient array has an inverse, and here are the four lines. Line one: multiply both sides by that inverse, on the left. Say the side out loud every single time. Line two: regroup the two arrays on the left, which you are allowed to do, because multiplying arrays can be regrouped even though it cannot be reordered. Line three: the inner pair meet, and an array times its own inverse is the identity.
Line four: the identity multiplied by anything leaves it alone, so the column of unknowns is standing there by itself. The column of unknowns equals the inverse, times the right-hand column. Four lines, one division, and the whole method. Now the sentence I want you to remember. The inverse goes on the LEFT, and it is not a convention. Look at the shapes. The unknowns are a column: three tall and one wide.
The inverse is three by three. Put the inverse on the right of that column and the shapes do not meet. It is not wrong arithmetic. It is not arithmetic at all -- there is no such product. So I built a version where both sides ARE legal, by making the right-hand side square instead of a column, and asked both. Three thousand eight hundred and eighty-eight systems at order two.
The inverse on the left solved all three thousand eight hundred and eighty-eight. The inverse on the right solved four hundred and ninety-six. At order three: eighty-nine thousand and eighty-eight systems, all of them solved on the left, one thousand six hundred and eighty on the right. Twelve in a hundred, then one in a hundred. So the wrong side is not always wrong. It is occasionally right, which is far more dangerous, because occasionally right is what gets past a spot check.
And here is the part that shows the side is not arbitrary. Turn the packing round. Write the unknowns along a ROW instead of down a column, so the equation reads: unknowns, times coefficients, equals right-hand side. Run the same sweep. The inverse on the left now scores four hundred and ninety-six, and one thousand six hundred and eighty. The inverse on the right now scores three thousand eight hundred and eighty-eight, and eighty-nine thousand and eighty-eight.
The two columns have swapped places exactly. The side is not something to memorise. It is decided by which side of the coefficient array the unknowns were written on, and if you can see the packing you can always work the side out again. That gives us an answer. It is also the ONLY answer, and that is a claim of a completely different kind. You cannot check it by producing an answer, because producing one tells you nothing about whether there is a second.
So here is how I checked it instead. I moved to arithmetic where there are only finitely many columns to try, and then I tried all of them. Four sweeps. Thirty-four thousand two hundred and seventy-four systems, and for every single one, every candidate column that exists was substituted in and either worked or did not. Here is what came back. Where the coefficient array is not singular -- eighteen thousand four hundred and seventy-four of those systems -- the number of columns that work is one.
Not usually one. One, every time, with no exceptions. Where it is singular, the number of columns that work is never one. It is nought, or it is many. Ten thousand nine hundred and sixty-seven of them have no answer at all, and four thousand eight hundred and thirty-three have more than one. So a singular system is not a harder system. It is a system that has stopped having a single answer, and no amount of care will produce one.
The formula is the inverse, on the left, times the right-hand column. How do I know it is not one of the other things you could build out of the same pieces? I ran six constructions side by side over three sweeps, and asked each one whether it landed on the answer that elimination found. Not the answer the inverse found -- elimination. A completely separate route, which never forms a determinant or a cofactor at all.
The inverse on the left: four hundred and thirty-two, one thousand three hundred and ninety-two, eleven thousand eight hundred and eight. Everything. The adjoint with no division: two hundred and eight, seven hundred and sixty-two, three thousand four hundred and eighty. The array itself over its determinant: eighty, two hundred and twenty-five, two hundred and eighty-eight. No inverse at all -- just the array times the column: one hundred and seventy-six, three hundred and six, four hundred and forty-four.
The transpose's inverse: one hundred and ninety-two, four hundred and ninety-two, eight hundred and seventy-six. The right-hand column divided by the determinant: eighty, two hundred and twenty-eight, sixty-six. Exactly one of the six is right on every system of every sweep. Look harder at the second row, because that is the mistake people actually make. Forgetting to divide by the determinant. On the small sweep it is right forty-eight times in a hundred.
Nearly half. Widen the sweep and it drops to twenty-nine. The construction did not change. The collection did. It is right exactly when the determinant happens to be one or minus one, and small collections of small numbers are full of those. Which is why a worked example whose determinant is one teaches you nothing about the division -- there is nothing to see. If you want to know whether you have understood the formula, test yourself on an array whose determinant is not one.
Let us do one properly. Two equations, two unknowns. The coefficients are two and five on the top row, three and two underneath. First, the test: the determinant is four minus fifteen, which is minus eleven. Not nought, so we may proceed. The right-hand column is one and seven. The inverse is the adjoint divided by minus eleven. Multiply it into the right-hand column, on the left, and the answer comes out three and minus one.
Now substitute back. Two threes plus five times minus one is six minus five, which is one. Three threes plus two times minus one is nine minus two, which is seven. Both equations hold. That substitution is not decoration -- it is the only step in the whole method that checks itself. Now three. Three, minus two, three across the top; two, one, minus one; four, minus three, two. The determinant is minus seventeen.
Not nought. The right-hand column is eight, one, four. Nine cofactors, transposed into the adjoint, divided by minus seventeen -- that is the inverse. On the left of the right-hand column, and the answer is one, two and three. Substituted back into all three equations, all three hold. And I want to be plain about how that array got onto this board. I did not copy it from anywhere. I was told its nine cofactors and its determinant, and I reconstructed the array from them -- and then recomputed its determinant and all nine of its cofactors from the reconstruction, and got the same numbers back.
Every entry came back a whole number, which it had no obligation to do. That is what it takes for a number on this board to be a measurement. Here is a worded one, because that is where the marks actually go. Three numbers. They add up to six. The second, plus three times the third, is eleven. And the first and the third together are twice the second. Two of those are already equations.
The third one is not. It is a comparison, and it has to be moved into standard form before anything can be packed: the first, minus twice the second, plus the third, is nought. That rearrangement is the whole difficulty of worded problems, and it happens before the matrices ever appear. Now pack it. One, one, one on the top; nought, one, three; one, minus two, one. The determinant is nine.
The answer is one, two and three. One plus two plus three is six. Two plus nine is eleven. One plus three is four, which is twice two. All three conditions, as stated in words. Now watch what one sign costs. In that array, the middle entry of the bottom row is minus two. Suppose it were written as plus two -- one missing minus sign, one character. The determinant is no longer nine.
It is minus three. The system still has an answer, because minus three is not nought. The answer is nineteen thirds, minus six, and seventeen thirds. And here is the cruel part. Those three still add to six. The second plus three times the third is still eleven. Two of the three conditions are satisfied perfectly. The third one misses by twenty-four. One sign did not make the answer slightly wrong.
It made it the answer to a different problem, and two thirds of your checks would not have noticed. One more, and it is the item that shows what the method is really about. Sometimes you are not asked to build an inverse. You are handed two arrays and told to multiply them. Here they are. Multiply, and the product is the identity. Multiply in the other order, and it is the identity again.
So the second array IS the inverse of the first -- and no cofactor was computed, no adjoint assembled, no determinant divided by. Now solve a system whose coefficients are the first array. The right-hand column is eleven, minus five, minus three. Multiply the handed inverse into it, on the left, and the answer is one, two, three. Elimination, which knows nothing about any of this, agrees. The method needs an inverse.
It does not need the recipe for one. Wherever an inverse comes from, the four lines are the same four lines. Last one, and at first it looks like it has nothing to do with any of this. Three equations, but every unknown is underneath a fraction bar. Two over the first, plus three over the second, plus ten over the third, equals four -- and two more like it.
That is not a linear system. Doubling all three unknowns does not double the left-hand side; it halves it. But give the reciprocals their own names. Call one over the first unknown by a new letter, and the same for the other two. In the new letters, the system is completely ordinary. Coefficients two, three, ten; four, minus six, five; six, nine, minus twenty. The determinant is twelve hundred. The three new unknowns come out as a half, a third and a fifth.
Which means the original three are two, three and five. And then you go back and put two, three and five into the original equations, with the fraction bars still in them, and check that all three hold. They do. The substitution is not a trick you either know or do not know. It is what you reach for whenever a system is linear in something other than its unknowns.
So here is the whole of it. Pack the system: coefficients as a square array, unknowns as a column, right-hand sides as a second column. Multiply it out once to convince yourself the packing is true. Compute one determinant, and stop right there if it is nought. Otherwise multiply the right-hand column by the inverse, on the left, because that is the side the unknowns were written on. Substitute the answer back.
You now know why the answer is the only answer -- because in thirty-four thousand systems where every candidate was tried, a non-singular one had exactly one, every time. You know that the wrong side is right about one time in a hundred, which is exactly often enough to fool you. You know that forgetting the division is right about half the time in easy examples and much less often in general.
And you know that a fractional answer is not a mistake. Eleven in every hundred of the widest sweep's systems come out with a fraction in them, and every one of those was substituted back and held. Every count on this board was measured, not remembered.
Where this fits
Either side of this one
- Singular against non-singular, and the one test an inverse has to passClass 12 · Ch 4, Determinants
- Consistent or inconsistent: what a vanishing determinant does and does not decideClass 12 · Ch 4, Determinants