girgit.org

Matrices

Types of matrices: row, column, square, diagonal, scalar, identity, zero

The big ideaMatrices get special names from their shape (one row, one column, square) or from a pattern in their entries (zeros off the diagonal, equal diagonal entries, all zeros).

In simple words

Some grids are just one line long. Some are one line tall. Some have as many lines across as down, like a chessboard. In a chessboard-shaped grid there is a slanting line of boxes from the top left corner to the bottom right. Many special grids are about that slanting line: what sits on it, and whether every other box is empty.

Named by shape

  • A column matrix has only one column, so its order is m × 1. Example: \( \begin{bmatrix} 3 \\ -1 \\ 0 \end{bmatrix} \) is 3 × 1.
  • A row matrix has only one row, so its order is 1 × n. Example: \( \begin{bmatrix} 4 & 0 & -2 & 7 \end{bmatrix} \) is 1 × 4.
  • A square matrix has as many rows as columns (m = n). An n × n matrix is called a square matrix of order n.

The diagonal of a square matrix

In a square matrix \( A = [a_{ij}]_{n \times n} \), the entries \( a_{11}, a_{22}, \ldots, a_{nn} \), where the row number equals the column number, form the diagonal (also called the leading or principal diagonal). It runs from the top left corner to the bottom right. In

\[ \begin{bmatrix} 2 & 7 & 1 \\ 0 & -3 & 4 \\ 5 & 6 & 9 \end{bmatrix} \]

the diagonal entries are 2, −3 and 9. Only square matrices have this diagonal.

All seven types at a glance

TypeRuleExample
Column matrixOnly one column: \( [a_{ij}]_{m \times 1} \)\( \begin{bmatrix} 3 \\ -1 \\ 0 \end{bmatrix} \)
Row matrixOnly one row: \( [a_{ij}]_{1 \times n} \)\( \begin{bmatrix} 4 & 0 & -2 & 7 \end{bmatrix} \)
Square matrixRows = columns (m = n)\( \begin{bmatrix} 1 & 8 \\ -5 & 2 \end{bmatrix} \)
Diagonal matrixSquare, and \( a_{ij} = 0 \) whenever \( i \neq j \)\( \begin{bmatrix} 2 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 5 \end{bmatrix} \)
Scalar matrixDiagonal, with every diagonal entry the same number k\( \begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix} \)
Identity matrix \( I_n \)Diagonal entries all 1, everything else 0\( I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \)
Zero (null) matrix OEvery entry is 0 (any order)\( \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \)

Some notes on the table:

  • A diagonal matrix may have zeros on the diagonal too. Only the entries off the diagonal are forced to be 0.
  • A scalar matrix is a diagonal matrix with \( a_{ii} = k \) for some fixed number k. With k = 1 it is the identity.
  • The identity matrix of order n is written \( I_n \), or just I when the order is clear. Its entries are 1 when i = j and 0 when i ≠ j. It plays the part of the number 1 in multiplication, as you will see.
  • The zero matrix or null matrix is written O. It does not have to be square: [0 0] is a 1 × 2 zero matrix.

Try it: change the size and the entries, and watch which names switch on and off. Then take the challenges.

Guess first: is the zero matrix diagonal?

Take \( O = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} \). Guess: is it a diagonal matrix? Is it a scalar matrix?

See what happens
Yes to both. A diagonal matrix only needs every off-diagonal entry to be 0, and here they are. Its diagonal entries are all equal (all 0), so it is also scalar with k = 0. It is not the identity, since the diagonal is not 1. And the 1 × 1 matrix [5] is at once a row matrix, a column matrix, a square matrix, a diagonal matrix and a scalar matrix. Labels describe properties, and one matrix can have many of them.

Two more types and the trace

Not in the current textbook, but JEE asks it: a square matrix is upper triangular if every entry below the diagonal is 0 (\( a_{ij} = 0 \) for \( i > j \)), and lower triangular if every entry above it is 0 (\( a_{ij} = 0 \) for \( i < j \)). A diagonal matrix is both. The trace of a square matrix is the sum of its diagonal entries: for the 3 × 3 matrix above, trace = 2 + (−3) + 9 = 8.

Remember

  • Column: m × 1. Row: 1 × n. Square: n × n.
  • Diagonal ⊃ scalar ⊃ identity: each is a special case of the one before.
  • Diagonal, scalar and identity matrices are always square. A zero matrix can be any shape.

Words to know

Square matrix of order n
An n × n matrix.
Diagonal (of a square matrix)
The entries \( a_{11}, a_{22}, \ldots, a_{nn} \), top left to bottom right.
Diagonal matrix
Square, with every entry off the diagonal equal to 0.
Scalar matrix
A diagonal matrix with all diagonal entries equal.
Identity matrix \( I_n \)
1s on the diagonal, 0s everywhere else.
Zero (null) matrix O
A matrix of any order with every entry 0.

Which statement is true?

  1. Every diagonal matrix is a scalar matrix
  2. Every identity matrix is a scalar matrix
  3. Every zero matrix is square

What type is \( \begin{bmatrix} 4 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & -1 \end{bmatrix} \)?

  1. Diagonal, but not scalar
  2. Scalar
  3. Not diagonal, because a diagonal entry is 0

A matrix has order 1 × 1. Which of these is it not automatically?

  1. Square
  2. Scalar
  3. Identity