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 aija_{ij} by its row ii and column jj, 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.

Juices sold on Saturday
StoreSmallMediumLarge
Burleigh456238
Broadbeach517044
Southport334829

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:

S=[456238517044334829]S = \begin{bmatrix} 45 & 62 & 38 \\ 51 & 70 & 44 \\ 33 & 48 & 29 \end{bmatrix}

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 ii and column jj of matrix SS is written sijs_{ij} — row first, then column. Here s23=44s_{23} = 44.
  • The order (size) of a matrix is (rows) × (columns). SS has 3 rows and 3 columns, so its order is 3×33 \times 3.

Using the juice matrix SS, state the value of s32s_{32}.

Worked example

Store carnival results in a matrix

  • Foundation

At a school athletics carnival, the four houses won these medals.

HouseGoldSilverBronze
Banksia1297
Grevillea81410
Jacaranda10813
Waratah6119

(a) Write the results as a matrix MM and state its order.

(b) State the value of m32m_{32} and say what it means.

(c) How many gold medals were awarded altogether?

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Keep the rows and columns of the table in the same order.

  2. Order = rows × columns.

  3. mijm_{ij} is in row ii, column jj; say what that row and column stand for.

Watch out for

  • Writing the order as 3×43 \times 4. Rows always come first.

  • Reading m32m_{32} 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 4×34 \times 3, and m13m_{13} 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 RR:

R=[921750471]R = \begin{bmatrix} 9 & 2 & 1 \\ 7 & 5 & 0 \\ 4 & 7 & 1 \end{bmatrix}

Rows are the Under 13, Under 15 and Under 17 teams, and columns are wins, losses and draws. What does r21=7r_{21} = 7 tell you?

Choose one answer

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:

N=[0110102012010010]N = \begin{bmatrix} 0 & 1 & 1 & 0 \\ 1 & 0 & 2 & 0 \\ 1 & 2 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{bmatrix}

Row B, column C is 22 because two roads join B and C. The leading diagonal (top left to bottom right) is all 00s 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 NN, 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 aija_{ij} is in row ii and column jj — 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.

Lesson 1 of 70% read

Save your progress with a free account