Using matrices to represent information
Learn how matrices store real information in Year 12 VCE General Mathematics. A cafe owner tracking coffee sales across Geelong, Ballarat and Bendigo, or a tourism office counting visitors to the Twelve Apostles each month, works with tables of numbers. Writing a table as a matrix keeps every number in place, ready to be totalled, compared or multiplied.
You will practise building matrices from tables and written descriptions, choosing what the rows and columns stand for, and stating the order. You will explain elements such as \(s_{23}\) in words, work with zeros and units like hundreds, and find row, column and grand totals, ready for adding and subtracting matrices next.
Theory
Matrices are a compact way to store tables of information. This Year 12 General Mathematics guide for students in Victoria shows how to turn a table or a description into a matrix, state its order, explain what an element means in context, and use row and column totals to answer questions.
A table of numbers can be stored as a matrix. The numbers keep their places; the row and column labels are written beside the matrix (or stated in words), not inside it. The order comes from the context: \(3\) shops selling \(4\) products, with shops as rows, gives a \(3 \times 4\) matrix.
Each element has a meaning. If the rows of \(S\) are cafes and the columns are days, then \(s_{23}\) (also written \(S_{23}\)) is the number for cafe 2 on day 3. Read the row label first, then the column label, and include the units: if the matrix is in hundreds, an element of \(30\) means \(3000\). When nothing happened for a row and column pair, the element is \(0\), not left blank.
Adding along a row gives the total for that row category (one cafe over all days). Adding down a column gives the total for that column category (one day over all cafes). Adding every element gives the grand total. A single list of values is a column matrix or a row matrix, and the transpose stores the same table with the roles of rows and columns swapped.
For a matrix with rows = categories \(1, 2, \ldots, m\) and columns = categories \(1, 2, \ldots, n\):
Row total, column total and grand total:
Order from a context:
Turning information into a matrix
- Decide what the rows and the columns stand for (the question usually says), and keep that order.
- Fill one row at a time from the table or description. Enter \(0\) where nothing happened.
- State the order as (number of rows) \(\times\) (number of columns).
Reading information from a matrix
- For an element \(a_{ij}\), find row \(i\) and column \(j\) and name both labels in your answer.
- For a total of one row category, add along its row; for one column category, add down its column.
- Apply the units (for example multiply by \(100\) if the matrix is in hundreds) and answer in words.
Each day is one row; there is only one column.
| \(\text{rows}\) | \(=\) | \(5 \text{ (one per day)}\) |
| \(\text{columns}\) | \(=\) | \(1\) |
| \(\text{order}\) | \(=\) | \(5 \times 1\) |
| \(m_{31}\) | \(=\) | \(\text{row 3, column 1} = 31\) |
(i) \(M\) is a \(5 \times 1\) column matrix. (ii) \(m_{31} = 31\): the maximum temperature on Wednesday (row 3) was \(31\) degrees Celsius.
| Stall | Apples | Pears | Cherries |
|---|---|---|---|
| Healesville | 64 | 35 | 48 |
| Coldstream | 52 | 41 | 70 |
| Lilydale | 38 | 29 | 55 |
Copy the numbers in the same order and leave the labels outside. A column total adds one fruit over all stalls.
| \(F\) | \(=\) | \(\begin{bmatrix}64 & 35 & 48\\ 52 & 41 & 70\\ 38 & 29 & 55\end{bmatrix}\) |
| \(f_{32}\) | \(=\) | \(\text{row 3 (Lilydale), column 2 (pears)} = 29\) |
| \(\text{pears}\) | \(=\) | \(35 + 41 + 29\) |
| \(\) | \(=\) | \(105\) |
(i) \(F\) is the \(3 \times 3\) matrix above. (ii) \(f_{32} = 29\): Lilydale sold \(29\) boxes of pears. (iii) Adding column 2 gives \(105\) boxes of pears.
Every element is a number of hundreds, so multiply by \(100\) at the end.
| \(v_{13}\) | \(=\) | \(44 \text{ hundred} = 4400\) |
| \(\text{Cape Otway}\) | \(=\) | \(15 + 21 + 13\) |
| \(\) | \(=\) | \(49 \text{ hundred}\) |
| \(\) | \(=\) | \(4900\) |
| \(\text{column totals}\) | \(=\) | \(89,\ 116,\ 76\) |
(i) \(4400\) people visited the Twelve Apostles in February. (ii) \(4900\) people visited Cape Otway. (iii) January had the most visitors: \(116\) hundred, or \(11\,600\).
A delivery that did not happen is still a position in the matrix, so it is entered as \(0\).
| \(\text{A}\) | \(:\) | \(30,\ 0,\ 45\) |
| \(\text{B}\) | \(:\) | \(0,\ 25,\ 20\) |
| \(D\) | \(=\) | \(\begin{bmatrix}30 & 0 & 45\\ 0 & 25 & 20\end{bmatrix}\) |
| \(D^T\) | \(=\) | \(\begin{bmatrix}30 & 0\\ 0 & 25\\ 45 & 20\end{bmatrix}\) |
(i) \(D\) is \(2 \times 3\), with zeros where no crates were delivered. (ii) \(D^T\) is \(3 \times 2\). Its rows are now the markets \(X\), \(Y\), \(Z\) and its columns are the growers, so it holds the same information the other way round.
Common pitfalls
Frequently asked questions
How do you turn a table into a matrix?
Copy the numbers into square brackets in exactly the same rows and columns, leaving the labels outside. The order is the number of rows by the number of columns of numbers.
How do you explain what an element of a matrix represents?
Find its row label and its column label, then describe the number in words with its units, for example 'the number of coffees sold in Ballarat on Sunday'.
What does a row total mean in a matrix?
Adding along a row gives the total for that row category over all the column categories, such as one shop's sales over all products. A column total does the same for one column category.
Why does a matrix have zeros in it?
Every position in a matrix needs a value. If nothing happened for that row and column pair, such as no sales, the element is 0.
What changes when you transpose an information matrix?
The rows and columns swap roles. The numbers are the same, but the old column categories become the rows, so each element must be read with the new labels.