Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 Maths - General (Unit 3 & Unit 4) Matrices and their applications

Order, elements and types of matrices

20 practice questions 0 video lessons Theory + worked examples

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.

Create a free accountTrack your progress and save your work as you go.
Create free account

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.

Key idea. Rows first, then columns, every time: in the order \(m \times n\), in the element \(a_{ij}\) and in a rule for \(e_{ij}\). Then name the type by checking the shape, the leading diagonal and where the zeros are.
A 3 by 4 matrix with element a 2 3 markedMatrix A has 3 rows and 4 columns. Row 2 and column 3 are shaded; they cross at the element 9. A = 4 βˆ’1 0 7 2 5 9 βˆ’3 6 0 1 8 row 1 row 2 row 3 col 1 col 2 col 3 col 4 order 3 Γ— 4 (rows Γ— columns), 12 elements a23 = row 2, column 3 = 9
Order \(3 \times 4\): three rows, four columns. Row 2 and column 3 cross at \(a_{23} = 9\) (also written \(A_{23}\)).
Nine types of matrixExamples of a row, column, zero, diagonal, identity, symmetric, upper triangular, lower triangular and binary matrix. Shading marks the leading diagonal, the zeros of a triangular matrix and the mirror pairs of the symmetric matrix. 3 βˆ’1 5 row 2 7 4 column 0 0 0 0 0 0 zero 4 0 0 0 βˆ’2 0 0 0 6 diagonal 1 0 0 0 1 0 0 0 1 identity I 5 2 βˆ’1 2 0 3 βˆ’1 3 4 symmetric 2 7 1 0 3 5 0 0 8 upper triangular 6 0 0 1 4 0 9 βˆ’2 3 lower triangular 1 0 1 0 1 1 1 1 0 binary
The main types. A diagonal matrix is also upper and lower triangular, and symmetric. The identity \(I\) is a special diagonal matrix.

Order and number of elements of a matrix with \(m\) rows and \(n\) columns:

\[\text{order} = m \times n, \qquad \text{number of elements} = mn\]
order=m×n

The element in row \(i\), column \(j\):

\[a_{ij} = e_{ij} = A_{ij} = \text{element in row } i \text{, column } j\]
aij=row i, column j

The transpose swaps rows and columns:

\[(A^T)_{ij} = a_{ji}, \qquad m \times n \;\to\; n \times m\]
(AT)ij=aji

Symmetric matrix and the \(3 \times 3\) identity matrix:

\[A = A^T \;\;(a_{ij} = a_{ji}), \qquad I = \begin{bmatrix}1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1\end{bmatrix}\]
A=AT
Triangular test. Upper triangular: \(a_{ij} = 0\) whenever \(i > j\) (below the diagonal). Lower triangular: \(a_{ij} = 0\) whenever \(i < j\) (above the diagonal).

Reading a matrix

  1. Count the rows, then the columns: that is the order \(m \times n\).
  2. For an element \(a_{ij}\) (or \(A_{ij}\)), go down to row \(i\), then across to column \(j\).

Naming the type

  1. Shape: one row, one column, or square?
  2. Values: all \(0\) (zero matrix) or all \(0\) and \(1\) (binary)?
  3. 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).
  4. Mirror test: if every \(a_{ij} = a_{ji}\), the matrix is symmetric.

Building from a rule, and transposing

  1. Work row by row. In row \(i\), substitute \(i\) and each column number \(j\) into the rule.
  2. For a two-case rule, check the condition (for example \(i \le j\)) before choosing the formula.
  3. To transpose, write row 1 as column 1, row 2 as column 2, and so on. The order flips.
Example 1 β€” Order and elements
The number of rainy days in Ballarat (row 1) and Bendigo (row 2) from June to September is stored in matrix \(R = \begin{bmatrix}18 & 20 & 19 & 17\\ 13 & 15 & 14 & 12\end{bmatrix}\). (i) State the order of \(R\) and the number of elements. (ii) Find \(r_{23}\) and say what it means. (iii) Write down the position of the element \(17\).
Solution

Order is rows \(\times\) columns. In \(r_{23}\) the first number is the row, the second is the column.

Rainy days matrixRows Ballarat and Bendigo; columns June to September; the element in row 2, column 3 (14) is shaded. R = 18 20 19 17 13 15 14 12 Ballarat Bendigo Jun Jul Aug Sep
\(\text{order}\)\(=\)\(2 \times 4\)
\(\text{elements}\)\(=\)\(2 \times 4\)
\(\)\(=\)\(8\)
\(r_{23}\)\(=\)\(\text{row 2, column 3}\)
\(\)\(=\)\(14\)
\(17\)\(=\)\(r_{14}\)
r23=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}\)).

Example 2 β€” Naming the type of matrix
Name the type of each matrix.
\[P = \begin{bmatrix}3 & 0\\ 0 & -5\end{bmatrix}, \quad Q = \begin{bmatrix}1 & 4 & 2\\ 4 & 0 & -5\\ 2 & -5 & 3\end{bmatrix}\]
\[R = \begin{bmatrix}7 & 0 & 0\\ 1 & 2 & 0\\ -3 & 6 & 4\end{bmatrix}, \quad S = \begin{bmatrix}0 & 1 & 1\\ 1 & 0 & 0\end{bmatrix}\]
Solution

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}\)
Q=QT

\(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.

Example 3 β€” Building a matrix from a rule
A \(2 \times 3\) matrix \(E\) has elements given by the rule \(e_{ij} = 3i - 2j\), where \(e_{ij}\) is the element in row \(i\) and column \(j\). (i) Construct \(E\). (ii) Does \(E\) have an element \(e_{32}\)?
Solution

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}\).

eij=3i-2j

(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.)

Example 4 β€” Transpose and symmetric matrices
(i) Find the transpose of \(A = \begin{bmatrix}2 & -3 & 7\\ 0 & 4 & 1\end{bmatrix}\) and state its order. (ii) \(S = \begin{bmatrix}4 & x & -1\\ 6 & 0 & y\\ z & 5 & 2\end{bmatrix}\) is a symmetric matrix. Find \(x\), \(y\) and \(z\).
Solution

The transpose turns each row into a column. A symmetric matrix equals its own transpose, so \(s_{ij} = s_{ji}\).

A matrix and its transposeRow 1 of A (blue) becomes column 1 of A transpose; row 2 (orange) becomes column 2. A = 2 βˆ’3 7 0 4 1 AT = 2 0 βˆ’3 4 7 1
\(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\)
ST=S

(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

Rows before columns. A matrix with \(3\) rows and \(2\) columns is \(3 \times 2\), not \(2 \times 3\). In the same way \(a_{32}\) is row 3, column 2. Watch out for swapping them: \(a_{23}\) is a different element.
The order is not a number. A \(2 \times 4\) matrix has order \(2 \times 4\). The product \(8\) is the number of elements, not the order.
Types overlap. A diagonal matrix is also symmetric and both upper and lower triangular, and the identity is also diagonal and binary. Only square matrices can be diagonal, triangular, symmetric or the identity.

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.