PrepShorts · Study sheet · Class 12 Mathematics · Chapter 3, MatricesPrepShorts

Chapter 3 · Matrices

The named shapes — row, column, square, diagonal, scalar, identity, zero

What a matrix is19 min

This video could not be loaded. Reload the page to try again.

Sign in with Google

19 min.

Seven names for seven kinds of matrix arrive as a flat list, and they are not flat. Four of them are one thing unfolded in four steps: over 21459 small arrays, the number that are diagonal and not square is 0, scalar and not diagonal is 0, an identity and not scalar is 0 - while the counts the other way round are 19728, 30 and 6. The other three names never ask the array to be square at all.

The idea

Seven names arrive in three pages as a flat list, and they are not flat. Four of them nest: square is the gate, diagonal sits inside square, scalar inside diagonal, identity inside scalar, and each step adds exactly one condition to the one before. The chapter states that containment once — at the identity, in a single closing sentence — and leaves the other two steps for the reader to notice. The remaining three names are cut on a different axis entirely: row, column and zero are conditions on the order or on every entry, and none of them asks the matrix to be square. Teaching the seven as a list makes them seven things to memorise; teaching them as a chain plus three outliers makes them one thing to understand, and it is the chain that every later section of the chapter actually leans on.

What you should be able to do

  • Recognise each of the seven named kinds from a printed array
  • State each definition as a condition on the order, on the entries, or on both
  • Say which of the seven require the matrix to be square and which do not
  • Read the general forms the chapter gives for a column matrix, a row matrix and a square matrix
  • Identify the diagonal of a square matrix and list its entries
  • Express the diagonal, scalar and identity conditions in index form, using the split between i equal to j and i unequal to j
  • Order the four square kinds by containment, and give an instance separating each consecutive pair
  • Use the symbol for an identity matrix of stated order, and explain when the order may be dropped
  • Explain why the zero matrix needs no order restriction and why the symbol for it carries none
  • Decide small counting questions about matrices of a fixed order with entries drawn from a fixed set

Words to know

TermDefinition in one lineFirst introduced
column matrixa matrix with exactly one columnprinted in this chapter (§3.3 item (i), Part I p. 39)
row matrixa matrix with exactly one rowprinted in this chapter (§3.3 item (ii), Part I p. 39)
square matrixa matrix whose two counts agreeprinted in this chapter (§3.3 item (iii), Part I p. 39)
diagonalthe entries a square matrix collects along its top-left to bottom-right lineprinted in this chapter (the Note following item (iii), Part I p. 39)
diagonal matrixa square matrix with nothing off the diagonalprinted in this chapter (§3.3 item (iv), Part I p. 40)
scalar matrixa diagonal matrix whose diagonal entries all agreeprinted in this chapter (§3.3 item (v), Part I p. 40)
identity matrixthe scalar matrix whose repeated value is oneprinted in this chapter (§3.3 item (vi), Part I p. 40)
zero matrixa matrix all of whose entries are zero, of any orderprinted in this chapter (§3.3 item (vii), Part I p. 41)
null matrixthe chapter's second word for the same objectprinted in this chapter (§3.3 item (vii), Part I p. 41)
off-diagonalsaid of an entry whose two indices differan added compound; the chapter writes the condition out as a negation instead (Part I p. 40)
unit matrixa common alternative name for the identityan added note only — this word is not printed anywhere in the chapter.
nestingthe containment of one named kind inside anotheran added framing; the chapter states one containment in words and never generalises it

Where people slip up

  • "A row matrix is a column matrix written sideways." They are matrices of different orders, and this chapter has no operation that turns one into the other until the transpose arrives in the third module. Until then they are simply two different kinds.
  • "Diagonal means the entries on the diagonal are non-zero." It means the entries off the diagonal are zero. The chapter's own second instance has a diagonal entry equal to two and another equal to minus one; nothing forbids a zero on the diagonal, and a zero square matrix is diagonal.
  • "Scalar and identity are the same thing." The identity is the one scalar matrix whose repeated value is one. Every other scalar matrix — including the chapter's own instance with minus one repeated — is not an identity.
  • "Every diagonal matrix is scalar." Only when the diagonal entries all agree. The chapter's three by three diagonal instance has three different values on its diagonal and is the separator between the two names.
  • "The zero matrix has to be square." It does not. Two of the four instances printed on Part I p. 41 are not square, and this is the cleanest evidence in the section that the seven names are not one family.
  • "The symbol for the identity always needs its order written on it." The chapter attaches the order and then says the subscript may be dropped whenever the context fixes it — which, from §3.4 onwards, it usually does.
  • "A one by one matrix is a strange edge case." It is the instance the chapter uses first for three of the four square kinds, precisely because every condition holds on it trivially. Use it to show that the definitions are conditions, not pictures.
  • "There must be a name for a matrix with zeros above the diagonal." Not in this chapter. Neither triangular matrix nor any equivalent is named anywhere in Part I pp. 34–75 — checked against the extracted text of all forty-two pages and against the page image of every one of them. Do not introduce the term.
Transcript2,677 words

Seven names arrive together, and they arrive as a list. Column. Row. Square. Diagonal. Scalar. Identity. Zero. A list is the worst possible way to meet them, because they are not seven separate things. Four of them are one thing, unfolded in four steps, and the other three are cut on a completely different axis. Here is the axis. Every one of these names is the answer to a single question: what does this array have to satisfy before it may be called that? And the answer is always a condition - either on the order, or on the entries, or on both.

Three of the seven ask only about the order. Three ask about the entries as well. One asks only about the entries and says nothing whatever about the shape. By the end of this you will not be remembering seven definitions. You will be reading four conditions stacked on top of each other, and three more standing off to one side. Start with the simplest condition anyone could write down. Exactly one column.

Here is one. Four entries, running down: zero, root three, minus one, one half. Its order, counted rows first, is four by one. Four rows. One column. That is the entire definition, and notice what it does not say. It says nothing about how many rows there are. It says nothing about what the entries are - one of these is zero, one is irrational, one is negative, one is a fraction, and the name does not care about any of that.

In general the shape is m by one, for any m at all. The second count is pinned to one and the first is free. A condition that pins one count and leaves the other free is going to be a recurring shape in this video. Hold on to it. Now pin the other count instead. Exactly one row. Here is one. Four entries, running across: minus one half, root five, two, three. Its order is one by four.

And now the question worth stopping for. Is that the same object as the column we just built, turned on its side? No. And the reason is not subtle, it is the same reason as everything else in this subject. One is four rows by one column. The other is one row by four columns. Those are different orders, so they are different matrices, and nothing in this video will turn one into the other.

There is exactly one place where the two names meet. Search every array with up to three rows and three columns and ask which are both a row and a column: three of them, and every single one has order one by one. A one by one array is a row matrix and a column matrix at the same time. That is not a trick. It is the first sign of something that will happen four more times before this video is finished.

One more warning while both are on the board. Each of these holds four entries. Four is a square number. Neither array is square. Square. The two counts agree. Here is one: three rows, three columns, nine entries. And here is a small thing worth saying out loud. Up to now every shape has needed two numbers to describe it. This one needs one. Once the counts agree, saying three says everything.

Every remaining name in this video is built on top of this one. Diagonal needs square. Scalar needs diagonal, so it needs square. Identity needs scalar, so it needs square too. That is three of the four conditions to come, and all three inherit this one. Which means that from here on, if an array is not square, three of the seven names are already unavailable to it before anyone has looked at a single entry.

Row, column and zero are the three that never ask this question at all. We will come back to why. Before the next name, we need a piece of vocabulary, and it is a piece about positions rather than about arrays. In a square array, the diagonal is the collection of entries whose two indices agree. Position one one. Position two two. Position three three. Top left to bottom right.

On a three by three array holding one, minus three and one; two, four and minus one; three, five and six - the diagonal collects one, four and six. Three entries, at the three positions where the row index and the column index are the same number. Everything else is off the diagonal. And here is the count that will matter more than it looks. At order one there are zero positions off the diagonal. At order two there are two. At order three there are six.

Zero. That is not a rounding of a small number. A one by one array has one position, and its two indices agree, so there is nothing off the diagonal at all. Remember that number. Now the name. A diagonal matrix is a square matrix in which every entry off the diagonal is zero. Read that again, because the commonest mistake anyone makes with this name is to read it backwards. The condition is on the entries OFF the diagonal. Nothing at all is asked of the entries ON it.

So a zero sitting on the diagonal is perfectly legal. A square array of nothing but zeros is a diagonal matrix. Whereas this array, with a zero on the diagonal and a two off it, is not one - and it fails for the two, not for the zero. In index form: the entry at i j is zero whenever i is not equal to j. That is the whole definition and it names the two cases explicitly.

Here are three of them, at orders one, two and three. A single four. Then minus one and two on the diagonal with zeros off it. Then minus one point one, two and three. And the first one is the one to stare at. Why is a single entry, four, a diagonal matrix? Because the condition asks about the off-diagonal positions, and there are zero of them. Every statement about an empty collection is true. It is not diagonal because it looks diagonal. It is diagonal because there is nothing there to violate the rule.

Scalar. A diagonal matrix whose surviving entries all agree. One extra condition on top of the previous name, and only one. Everything off the diagonal is still zero - that is inherited. What is new is that the entries on the diagonal must now all be the same as each other. Notice what is still not being asked. Nothing says what they have to agree on. Three examples, at orders one, two and three: a single three; then minus one repeated; then root three repeated.

One of those repeats a negative number. One repeats an irrational one. Both are scalar matrices, and the definition is completely indifferent. And here is the separator, which is the thing to hold on to. The three by three diagonal example from a moment ago had minus one point one, two and three on its diagonal. Three different values. It is diagonal and it is not scalar, and that single array is the evidence that these two names are not the same name.

Identity. A scalar matrix whose repeated value is one. Again exactly one new condition. Off the diagonal, zero - inherited twice. On the diagonal, all the same - inherited once. And now: the same as what? One. In index form the two cases are written out directly. The entry at i j is one when i equals j, and zero when it does not. On the three by three instance that is three ones on the diagonal and six zeros off it, and both of those counts are exactly what the two cases predict.

The symbol is a capital I, usually with the order written underneath it. Once the surrounding work has fixed what the order must be, the subscript gets dropped, and from that point on the symbol carries the order silently. Now go back to the three scalar examples. Repeated three. Repeated minus one. Repeated root three. How many of those are identity matrices? None of them. Not one. Every scalar matrix except the ones repeating exactly one fails the last condition, and this is the second separator.

Zero. Every entry is zero. That is the entire definition, and read it beside the four we have just built, because something is conspicuously missing. It says nothing about the order. Here are four zero matrices. One by one. Two by two. Two by three. One by two. Two of those four are square and two of them are not, and all four are equally zero matrices. This is the cleanest evidence there is that the seven names are not one family. Search every array up to three by three and ask which of the seven names permit an array that is not square. Three of them do: column, row and zero. The other four do not.

Four names demand squareness. Three do not. And the three that do not are precisely the three that were never part of the chain. One consequence worth stating. Because the order is unconstrained, the symbol for a zero matrix carries no order either. It is written O, and whatever shape the surrounding work needs, that is the shape it has. Now the thing that has been building up since the third minute of this video.

Take the one by one identity - a single entry, one, in brackets. Ask it every one of the seven questions. Is it a column matrix? Exactly one column, yes. A row matrix? Exactly one row, yes. Square? The counts agree, yes. Diagonal? Zero positions off the diagonal, so vacuously yes. Scalar? One entry on the diagonal, and it agrees with itself, yes. Identity? The repeated value is one, yes.

Six of the seven names, carried by one array with one entry in it. The only one it misses is zero, and it misses that for the obvious reason. Swap the one for a zero and it picks that name up too - and drops nothing except identity. The one by one zero also carries six of the seven. This is not a curiosity. It is a demonstration that these are conditions and not pictures. Nobody looking at a single number in brackets would call it diagonal. The condition calls it diagonal, because the condition is about what is off the diagonal, and there is nothing off it.

It also means something for the chain. At order one, three of the four square names collapse into each other. Search every one by one array and ask which of the three links can be told apart: exactly one of them, and it is the last one, scalar against identity. Go up to order two and all three links separate. So the chain is real, but you cannot see it at the smallest size, and the size at which it first becomes visible is two.

So here is the whole thing in one picture, and it is a picture nobody usually draws. Square is the outermost region. Inside it sits diagonal. Inside that, scalar. Inside that, identity. Four nested regions, and each boundary is exactly one extra condition. Let me make that a measurement rather than a drawing. Take every small array whose entries come from zero, one and minus one - eleven different orders, twenty-one thousand four hundred and fifty-nine arrays in all.

Run all seven conditions over every one of them. A hundred and twenty are columns. A hundred and twenty are rows. Nineteen thousand seven hundred and sixty-seven are square. Thirty-nine are diagonal. Nine are scalar. Three are identities. Eleven are zero matrices. Now the containment. How many are diagonal and not square? Zero. How many are scalar and not diagonal? Zero. How many are identities and not scalar? Zero. Three zeros, and those three zeros are the chain.

But a chain of equalities would give three zeros too, so run it the other way. How many are square and not diagonal? Nineteen thousand seven hundred and twenty-eight. Diagonal and not scalar? Thirty. Scalar and not an identity? Six. Zero one way and a large number the other way, at every link. That is what it means for the containment to be proper rather than a rewording. And the same three counts come out zero over a completely different collection - six hundred and eighty arrays, over a different alphabet of entries, up to order two. The chain is not an artefact of the numbers we happened to choose.

One last thing about the picture. Row, column and zero are not rings in it at all. They cut across it. The one by one zero matrix sits at the dead centre of every ring and also carries the name that has nothing to do with any of them. Two questions, and they test the definitions rather than compute with them. First. What condition makes a matrix square? Sweep every order from one by one up to four by four - sixteen of them - and try the candidates.

The two counts agree: that picks out four orders, and they are exactly the four square ones. Now a tempting wrong answer: the number of entries is a square number. That picks out six orders, and two of them are not square at all - one by four and four by one. Four entries, not a square array. Which is precisely the trap we walked past at the start, when the row matrix and the column matrix each held four entries.

Second question. How many three by three matrices are there with every entry either zero or one? Nine positions - counted, not multiplied. Two choices at each. The choices are independent, so generate them all and count them: five hundred and twelve. The tempting wrong answers are twenty-seven and eighty-one, and it is worth seeing exactly what each one confuses. Twenty-seven is three cubed and eighty-one is three to the fourth. Both use three - the order - as the base, when the base should be the number of choices per position, which is two. And both use a small exponent when the exponent should be the number of positions, which is nine. Two to the ninth is five hundred and twelve.

And while those five hundred and twelve are in front of us, run the seven conditions over them. All five hundred and twelve are square. Eight are diagonal. Two are scalar. One is an identity. One is the zero matrix. The chain again, in miniature, on a collection built for a completely different reason. What to carry away. Seven names, and one question behind all of them: what condition does an array have to satisfy?

Four of them nest, each adding exactly one condition to the one before. Square, then everything off the diagonal is zero, then the survivors agree, then what they agree on is one. Every one of those containments is proper, and each has a two by two or a one by one array standing between it and the next. Three of them stand outside: row and column pin one count and free the other, and zero asks nothing about the shape at all.

The smallest array in the subject carries six of the seven names, and it does so because these are conditions and not pictures. And the reason any of this is worth the trouble is what comes next. Whether two matrices may be added is decided on the order. Whether they may be multiplied is decided on the order. Which matrix leaves another unchanged under multiplication is the identity, and the reason it does that is the two-case condition we wrote down for it.

Not seven things to memorise. Four conditions stacked, and three standing aside.

The book

Open in a new tab