Lesson 1 of 7 · 12 min
Matrices store information
Write information from a table or a network as a matrix, read any element and say what it means in context.
What you will be able to do
- Write the numbers in a table as a matrix, keeping the rows and columns in the same order.
- Name an element by its row and column , and say what it means in context.
- Record the links in a road or social network as a matrix.
A juice bar chain has three stores on the Gold Coast. At the end of Saturday, the manager has this table of juices sold.
| Store | Small | Medium | Large |
|---|---|---|---|
| Burleigh | 45 | 62 | 38 |
| Broadbeach | 51 | 70 | 44 |
| Southport | 33 | 48 | 29 |
The labels are useful for people, but the numbers are what get processed. Keep the numbers in the same positions, drop the labels, and put square brackets around them. That is a matrix:
Each row is a store and each column is a size. Because the layout never changes, the matrix still "knows" that 44 is the number of large juices sold at Broadbeach.
Definition
Matrix, element and order
- A matrix is a rectangular array of numbers in rows and columns. Matrices are named with capital letters.
- Each number is an element. The element in row and column of matrix is written — row first, then column. Here .
- The order (size) of a matrix is (rows) × (columns). has 3 rows and 3 columns, so its order is .
Using the juice matrix , state the value of .
Worked example
Store carnival results in a matrix
At a school athletics carnival, the four houses won these medals.
| House | Gold | Silver | Bronze |
|---|---|---|---|
| Banksia | 12 | 9 | 7 |
| Grevillea | 8 | 14 | 10 |
| Jacaranda | 10 | 8 | 13 |
| Waratah | 6 | 11 | 9 |
(a) Write the results as a matrix and state its order.
(b) State the value of and say what it means.
(c) How many gold medals were awarded altogether?
Step 1: Copy the numbers in the same positions
Keep one row for each house and one column for each medal, in the table's order:
The labels are not part of the matrix, so the positions must carry the meaning. Changing the order of the rows or columns would change what each element means.
Step 2: State the order
has 4 rows and 3 columns, so its order is .
Step 3: Find the element
is in row 3 (Jacaranda) and column 2 (silver), so . Jacaranda won 8 silver medals.
Step 4: Add down the gold column
Column 1 holds the golds: gold medals.
Try it yourself first, then check the working one step at a time.
Answer
(a) , order . (b) : Jacaranda won 8 silver medals. (c) 36 gold medals.
Method
Keep the rows and columns of the table in the same order.
Order = rows × columns.
is in row , column ; say what that row and column stand for.
Watch out for
Writing the order as . Rows always come first.
Reading as row 2, column 3 (Grevillea bronze, 10).
Common mistake
Rows first, every time
The order is written rows × columns, and an element's subscript is row then column. A matrix with 4 rows and 3 columns is , and is in row 1, column 3. Swapping them is the most common slip in this topic.
A netball club records its junior teams' results this season in matrix :
Rows are the Under 13, Under 15 and Under 17 teams, and columns are wins, losses and draws. What does tell you?
Matrices can also record links: which towns are joined by roads, or which people can contact each other. Give each town a row and a column, in the same order, and write the number of roads joining them directly.
Roads joining four towns. There are two different roads between B and C.
Using the order A, B, C, D for both the rows and the columns:
Row B, column C is because two roads join B and C. The leading diagonal (top left to bottom right) is all s because no road starts and ends at the same town. And because every road goes both ways, row A matches column A, row B matches column B, and so on: the matrix is symmetric about its leading diagonal.
Using matrix , how many roads lead out of town C?
Tip
Label your matrices
When you set up a matrix from a context, write the labels beside it, even though they are not part of the matrix. It is how you (and your marker) will know what each entry means when you start combining matrices in later lessons.
Summary
A matrix stores information in rows and columns. Keep the rows and columns in the same order as the table.
The element is in row and column — row first.
The order of a matrix is rows × columns.
A network matrix has one row and one column for each vertex, in the same order; each element counts the direct links.
For a road network the matrix is symmetric, because every road goes both ways.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.