Order, elements and types of matrices
Start with the language of matrices in Year 12 VCE General Mathematics. A matrix is a neat grid of numbers, like a table of Ballarat and Bendigo rainfall by month with the labels taken off. Before you can add, multiply or invert matrices, you need to describe one exactly: how many rows and columns it has, and where each number sits.
You will practise stating the order \(m \times n\), reading elements such as \(a_{23}\), and naming row, column, square, zero, diagonal, identity, symmetric, triangular and binary matrices. You will also transpose matrices, find unknowns in symmetric matrices and build matrices from rules, ready for using matrices to represent real information next.
Theory
A matrix is a rectangular array of numbers. This Year 12 General Mathematics guide for students in Victoria shows how to state the order of a matrix, read the element in any row and column, recognise the main types of matrix, find the transpose and build a matrix from a rule for its elements.
A matrix is a rectangular array of numbers, called elements, written inside square brackets and named with a capital letter. Its order is written \(m \times n\): \(m\) rows (across) by \(n\) columns (down). Rows always come first, so a \(2 \times 4\) matrix has \(2\) rows, \(4\) columns and \(2 \times 4 = 8\) elements.
The element in row \(i\) and column \(j\) of matrix \(A\) is written \(a_{ij}\). Questions also write it as \(e_{ij}\) or with a capital, \(A_{ij}\). All three are read the same way: \(a_{23}\), \(e_{23}\) and \(A_{23}\) all mean row 2, column 3. A rule such as \(e_{ij} = i + 2j\) builds a matrix by substituting each row number and column number.
Matrices are named by their shape and pattern. A row matrix has one row and a column matrix one column. A square matrix has as many rows as columns; its leading diagonal runs from top left to bottom right. A square matrix is diagonal if every element off the leading diagonal is \(0\), and the identity matrix \(I\) is the diagonal matrix with every diagonal element \(1\). Upper triangular means zeros everywhere below the leading diagonal; lower triangular means zeros everywhere above it. A zero matrix \(O\) has every element \(0\), and a binary matrix has every element \(0\) or \(1\).
The transpose \(A^T\) turns the rows of \(A\) into columns, so an \(m \times n\) matrix becomes \(n \times m\). A square matrix is symmetric when \(A = A^T\): it is a mirror image across the leading diagonal. Two matrices are equal when they have the same order and every matching element is equal.
Order and number of elements of a matrix with \(m\) rows and \(n\) columns:
The element in row \(i\), column \(j\):
The transpose swaps rows and columns:
Symmetric matrix and the \(3 \times 3\) identity matrix:
Reading a matrix
- Count the rows, then the columns: that is the order \(m \times n\).
- For an element \(a_{ij}\) (or \(A_{ij}\)), go down to row \(i\), then across to column \(j\).
Naming the type
- Shape: one row, one column, or square?
- Values: all \(0\) (zero matrix) or all \(0\) and \(1\) (binary)?
- Square only: zeros off the diagonal (diagonal; identity if the diagonal is all \(1\)), zeros below the diagonal (upper triangular) or above it (lower triangular).
- Mirror test: if every \(a_{ij} = a_{ji}\), the matrix is symmetric.
Building from a rule, and transposing
- Work row by row. In row \(i\), substitute \(i\) and each column number \(j\) into the rule.
- For a two-case rule, check the condition (for example \(i \le j\)) before choosing the formula.
- To transpose, write row 1 as column 1, row 2 as column 2, and so on. The order flips.
Order is rows \(\times\) columns. In \(r_{23}\) the first number is the row, the second is the column.
| \(\text{order}\) | \(=\) | \(2 \times 4\) |
| \(\text{elements}\) | \(=\) | \(2 \times 4\) |
| \(\) | \(=\) | \(8\) |
| \(r_{23}\) | \(=\) | \(\text{row 2, column 3}\) |
| \(\) | \(=\) | \(14\) |
| \(17\) | \(=\) | \(r_{14}\) |
(i) \(R\) is a \(2 \times 4\) matrix with \(8\) elements. (ii) \(r_{23} = 14\): Bendigo had \(14\) rainy days in August. (iii) \(17\) is in row 1, column 4, so it is \(r_{14}\) (also written \(R_{14}\)).
Check the shape first, then the leading diagonal, then the zeros, then the mirror pairs.
| \(P\) | \(:\) | \(\text{zeros off the diagonal}\) |
| \(Q\) | \(:\) | \(q_{12} = q_{21} = 4\) |
| \(\) | \(\) | \(q_{13} = q_{31} = 2\) |
| \(\) | \(\) | \(q_{23} = q_{32} = -5\) |
| \(R\) | \(:\) | \(\text{zeros above the diagonal}\) |
| \(S\) | \(:\) | \(2 \times 3,\; \text{only 0s and 1s}\) |
\(P\) is a diagonal matrix (it is not the identity, because \(3\) and \(-5\) are not \(1\)). \(Q\) is symmetric: every element equals its mirror across the leading diagonal, so \(Q = Q^T\). \(R\) is lower triangular. \(S\) is a binary matrix; it is not square, so it cannot be diagonal, triangular or symmetric.
Substitute the row number for \(i\) and the column number for \(j\), one position at a time.
| \(e_{11}\) | \(=\) | \(3 \times 1 - 2 \times 1 = 1\) |
| \(e_{12}\) | \(=\) | \(3 \times 1 - 2 \times 2 = -1\) |
| \(e_{13}\) | \(=\) | \(3 \times 1 - 2 \times 3 = -3\) |
| \(e_{21}\) | \(=\) | \(3 \times 2 - 2 \times 1 = 4\) |
| \(e_{22}\) | \(=\) | \(3 \times 2 - 2 \times 2 = 2\) |
| \(e_{23}\) | \(=\) | \(3 \times 2 - 2 \times 3 = 0\) |
(i) \(E = \begin{bmatrix}1 & -1 & -3\\ 4 & 2 & 0\end{bmatrix}\).
(ii) No. \(e_{32}\) would be in row 3, but \(E\) has only \(2\) rows. (Row 2, column 3 is \(e_{23} = 0\), a different element.)
The transpose turns each row into a column. A symmetric matrix equals its own transpose, so \(s_{ij} = s_{ji}\).
| \(A^T\) | \(=\) | \(\begin{bmatrix}2 & 0\\ -3 & 4\\ 7 & 1\end{bmatrix}\) |
| \(\text{order of } A^T\) | \(=\) | \(3 \times 2\) |
| \(x = s_{12}\) | \(=\) | \(s_{21} = 6\) |
| \(y = s_{23}\) | \(=\) | \(s_{32} = 5\) |
| \(z = s_{31}\) | \(=\) | \(s_{13} = -1\) |
(i) \(A\) is \(2 \times 3\), so \(A^T\) is \(3 \times 2\). (ii) \(x = 6\), \(y = 5\) and \(z = -1\). Check: with these values \(S = S^T\).
Common pitfalls
Frequently asked questions
How do you write the order of a matrix?
Write the number of rows, then the number of columns, as rows x columns. A matrix with 3 rows and 4 columns has order 3 x 4 and 12 elements.
What does a_23 mean in a matrix?
It is the element in row 2 and column 3. Some questions write it as e_23 or A_23; these all mean the same position. The first number is always the row.
What is the difference between a diagonal matrix and the identity matrix?
Both are square with zeros everywhere off the leading diagonal. In the identity matrix every element on the leading diagonal is 1; in any other diagonal matrix the diagonal elements can be any numbers.
How do you find the transpose of a matrix?
Write each row of the matrix as a column: row 1 becomes column 1, row 2 becomes column 2, and so on. A 2 x 3 matrix has a 3 x 2 transpose.
How can you tell if a matrix is symmetric?
It must be square, and each element must equal its mirror image across the leading diagonal, so the element in row i, column j equals the element in row j, column i. Then the matrix equals its transpose.
What is the difference between upper and lower triangular matrices?
An upper triangular matrix has only zeros below the leading diagonal. A lower triangular matrix has only zeros above it.