Matrices and Networks - TCE Mathematics Applications (Tasmania)
“Perform matrix operations and analyse graphs, paths and networks”
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 (rows by columns). You can add or subtract two matrices only if they have the same order, by combining matching entries.
Matrix multiplication of () by () is defined only when the number of columns of equals the number of rows of . The result is , and each entry is the dot product of a row of with a column of .
In general . The order of multiplication matters, and sometimes only one order is even defined.
Given two matrices, we find their product by computing the dot product of each row of with each column of .
Let and .
Step 1: Understand the structure of the result
Because is and is , the product is also . Entry of is the dot product of row of with column of : multiply matching entries and sum them.
Step 2: Compute each entry
Top-left entry (row 1 of , column 1 of ):
Top-right entry (row 1 of , column 2 of ):
Bottom-left entry (row 2 of , column 1 of ):
Bottom-right entry (row 2 of , column 2 of ):
Step 3: Write the result
Final answer: .
Determinant and inverse of a 2x2 matrix
For , the determinant is . The inverse exists only when :
Swap the leading diagonal, negate the other diagonal, then divide every entry by .
The inverse lets you solve a matrix equation by computing .
We solve the simultaneous equations and by writing them as a matrix equation and then multiplying both sides by .
Step 1: Write the system in matrix form
Identify the coefficient matrix , the variable column , and the constant column . The left-hand side of each equation provides the row of , and the right-hand side gives the matching entry of :
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:
Step 3: Compute the inverse
For a matrix, swap the leading diagonal entries, negate the off-diagonal entries, and divide every entry by the determinant:
Step 4: Solve by multiplying
Because implies , we multiply by :
Substituting and back into either original equation confirms the solution.
Final answer: and .
Scalar multiplication scales every entry of a matrix by the same number, so multiplies each entry of by . 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.
Counting walks
A network has vertices P, Q, R with edges P-Q, Q-R and P-R. Its adjacency matrix is:
The number of walks of length 2 between vertices is given by . Entry (P,P):
There are two 2-step walks from P back to P (P-Q-P and P-R-P), matching the diagram.
The entry in row , column of gives the number of walks of length exactly from vertex to vertex .
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.
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.
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 markA 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.