Skip to main content

Matrices and Networks - TCE Mathematics Applications (Tasmania)

Syllabus dot point

“Perform matrix operations and analyse graphs, paths and networks”

TCEMathematics ApplicationsUnit 38 min read

Quick answer

You must add, subtract and multiply matrices, find the inverse of a 2x2 matrix, and use graphs and adjacency matrices to model networks, count paths and find shortest routes.

What this dot point is asking

This dot point joins two connected ideas: matrices as a way to store and combine numbers in a grid, and networks as diagrams of connected objects that can themselves be written as matrices.

Matrix operations

A matrix has order m×nm \times n (rows by columns). You can add or subtract two matrices only if they have the same order, by combining matching entries.

Matrix multiplication of AA (m×nm \times n) by BB (n×pn \times p) is defined only when the number of columns of AA equals the number of rows of BB. The result is m×pm \times p, and each entry is the dot product of a row of AA with a column of BB.

Multiplication is not commutative

In general AB≠BAAB \neq BA. The order of multiplication matters, and sometimes only one order is even defined.

Matrix multiplication

Given two 2×22 \times 2 matrices, we find their product ABAB by computing the dot product of each row of AA with each column of BB.

Let A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B=(5678)B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}.

Step 1: Understand the structure of the result

Because AA is 2×22 \times 2 and BB is 2×22 \times 2, the product ABAB is also 2×22 \times 2. Entry (i,j)(i, j) of ABAB is the dot product of row ii of AA with column jj of BB: multiply matching entries and sum them.

Step 2: Compute each entry

Top-left entry (row 1 of AA, column 1 of BB):

1×5+2×7=5+14=191 \times 5 + 2 \times 7 = 5 + 14 = 19

Top-right entry (row 1 of AA, column 2 of BB):

1×6+2×8=6+16=221 \times 6 + 2 \times 8 = 6 + 16 = 22

Bottom-left entry (row 2 of AA, column 1 of BB):

3×5+4×7=15+28=433 \times 5 + 4 \times 7 = 15 + 28 = 43

Bottom-right entry (row 2 of AA, column 2 of BB):

3×6+4×8=18+32=503 \times 6 + 4 \times 8 = 18 + 32 = 50

Step 3: Write the result

AB=(19224350)AB = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}

Final answer: AB=(19224350)AB = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}.

Determinant and inverse of a 2x2 matrix

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, the determinant is det⁡(A)=ad−bc\det(A) = ad - bc. The inverse exists only when det⁡(A)≠0\det(A) \neq 0:

A−1=1ad−bc(d−b−ca)A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

2x2 inverse

Swap the leading diagonal, negate the other diagonal, then divide every entry by det⁡(A)=ad−bc\det(A) = ad - bc.

The inverse lets you solve a matrix equation AX=BAX = B by computing X=A−1BX = A^{-1}B.

Inverse of a 2x2 matrix and solving a system

We solve the simultaneous equations 2x+y=52x + y = 5 and 3x+4y=103x + 4y = 10 by writing them as a matrix equation AX=BAX = B and then multiplying both sides by A−1A^{-1}.

Step 1: Write the system in matrix form

Identify the coefficient matrix AA, the variable column XX, and the constant column BB. The left-hand side of each equation provides the row of AA, and the right-hand side gives the matching entry of BB:

A=(2134),X=(xy),B=(510)A = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}, \quad X = \begin{pmatrix} x \\ y \end{pmatrix}, \quad B = \begin{pmatrix} 5 \\ 10 \end{pmatrix}

Step 2: Find the determinant of A

The determinant is the product of the leading diagonal minus the product of the other diagonal. A non-zero determinant confirms the inverse exists:

det⁡(A)=2×4−1×3=8−3=5\det(A) = 2 \times 4 - 1 \times 3 = 8 - 3 = 5

Step 3: Compute the inverse

For a 2×22 \times 2 matrix, swap the leading diagonal entries, negate the off-diagonal entries, and divide every entry by the determinant:

A−1=15(4−1−32)A^{-1} = \frac{1}{5}\begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix}

Step 4: Solve by multiplying A−1BA^{-1}B

Because AX=BAX = B implies X=A−1BX = A^{-1}B, we multiply A−1A^{-1} by BB:

X=A−1B=15(4−1−32)(510)=15(20−10−15+20)=15(105)=(21)X = A^{-1}B = \frac{1}{5}\begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix}\begin{pmatrix} 5 \\ 10 \end{pmatrix} = \frac{1}{5}\begin{pmatrix} 20 - 10 \\ -15 + 20 \end{pmatrix} = \frac{1}{5}\begin{pmatrix} 10 \\ 5 \end{pmatrix} = \begin{pmatrix} 2 \\ 1 \end{pmatrix}

Substituting x=2x = 2 and y=1y = 1 back into either original equation confirms the solution.

Final answer: x=2x = 2 and y=1y = 1.

Scalar multiplication scales every entry of a matrix by the same number, so 3A3A multiplies each entry of AA by 33. This is used when, for example, a transition or cost matrix is repeated a fixed number of times.

Graphs and networks

A graph (network) is a set of vertices (nodes) joined by edges. Key terms: the degree of a vertex is the number of edges meeting it; a path is a walk that does not repeat vertices; a connected graph has a route between every pair of vertices.

An adjacency matrix records how many edges directly join each pair of vertices. For an undirected graph this matrix is symmetric.

Adjacency matrix and 2-step paths

Counting walks

A network has vertices P, Q, R with edges P-Q, Q-R and P-R. Its adjacency matrix is:

M=(011101110)M = \begin{pmatrix} 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{pmatrix}

The number of walks of length 2 between vertices is given by M2M^2. Entry (P,P):

0×0+1×1+1×1=20\times0 + 1\times1 + 1\times1 = 2

There are two 2-step walks from P back to P (P-Q-P and P-R-P), matching the diagram.

Powers count walks

The entry in row ii, column jj of MkM^k gives the number of walks of length exactly kk from vertex ii to vertex jj.

Shortest path

In a weighted network each edge carries a number (distance, cost or time). The shortest path between two vertices is the route with the smallest total weight. You find it by systematically labelling each vertex with the least cumulative distance from the start, then reading the smallest total at the destination and tracing back.

Check by listing routes

For small networks, list every sensible route and add the edge weights. The route with the lowest total is the shortest path. This is a fast safety check on more formal methods.

Confusing degree with number of edges

The degree of a vertex counts edge-ends meeting it, so a loop (an edge from a vertex to itself) adds 2 to the degree, not 1. Also, the sum of all vertex degrees equals twice the number of edges, never the number of edges. Use this handshake relationship to check your edge count.

In the exam, watch the order of matrix multiplication, confirm the determinant is non-zero before inverting, and use matrix powers to count walks rather than tracing every path by hand.

Exam-style questions

Questions in the style of TASC exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

Practice1 mark
A graph shows the network of walking tracks in a national park (Ranger Station A and camps B to G), with track lengths marked. The ranger wishes to walk every track once, without repeating any track, starting and finishing at the Ranger Station. What mathematical name is given to this type of route?
Show worked answer →

(1 mark) A route that travels every edge (track) of a network exactly once and returns to its starting vertex is an Eulerian circuit (an Eulerian trail is accepted when start and finish differ). Because the ranger starts and finishes at the same vertex (the Ranger Station) and uses every track once, the correct name is an Eulerian circuit.

Practise this

Sources & how we know this

ExamExplained