Permutation and binary matrices: VCE General Mathematics Unit 4 Matrices
“Recognise and use a permutation matrix as a binary matrix with exactly one 1 in each row and column, apply it to reorder the entries of a state matrix, and identify the matrix that reverses or repeats the reordering”
A binary matrix has only 0s and 1s. A permutation matrix is a square binary matrix with exactly one 1 in every row and every column. Pre-multiplying a column matrix by reorders it: the 1 in row , column puts element into position , and a 1 on the leading diagonal leaves that element where it is. applies the reordering twice, and means the original order returns after steps. The inverse of is its transpose, which undoes the reordering.
Jump to a section
What this dot point is asking
The Study Design lists "binary and permutation matrices, and their properties and applications" under Matrices and their applications, and names both in its list of matrix types. You are expected to:
- recognise a binary matrix and a permutation matrix, and tell them apart from identity and diagonal matrices;
- apply a permutation matrix to reorder the elements of a column (or row) matrix;
- reverse a reordering with the inverse, which for a permutation matrix is its transpose;
- use powers of a permutation matrix to repeat a reordering, and decide when the original order returns.
This is a small topic that turns up every year, usually as a one-mark multiple-choice item (2025 Examination 1 Question 25, correct; 2023 Examination 1 Question 26, ) and sometimes as a short-answer question in context (2023 Examination 2 Question 9c, ; 2025 Examination 2 Question 14, where parts b and c were answered correctly by only and ). The multiple-choice items are well done. The context questions are where marks go, because students multiply correctly but cannot say what or means.
The answer
Binary matrices
A binary matrix is any matrix whose elements are all 0 or 1. Binary matrices record yes/no information: whether a student takes a subject, whether two people can communicate, whether one team beat another, whether two vertices of a graph are joined. Communication, dominance and adjacency matrices (for simple graphs) are all binary.
Because the elements are 0 or 1, row and column totals count things. Multiplying a binary matrix by a column of 1s gives its row totals; multiplying a row of 1s by it gives its column totals. That is the most common "application" of a binary matrix outside the permutation and dominance topics.
Permutation matrices
A permutation matrix is a square binary matrix with exactly one 1 in each row and exactly one 1 in each column. Every permutation matrix is binary; most binary matrices are not permutation matrices.
The identity matrix is a permutation matrix (it leaves everything in place). A permutation matrix is never a zero matrix, and it always has an inverse: its determinant is or .
A permutation matrix is a square binary matrix with exactly one element equal to 1 in each row and each column. Multiplying a column matrix by it rearranges the elements without changing their values.
Reading a permutation matrix row by row
When a permutation matrix multiplies a column matrix, , each row of picks exactly one element of :
For above and : row 1 has its 1 in column 2, so position 1 of is ; row 2 picks column 3, giving ; row 3 picks column 1, giving . So .
A 1 on the leading diagonal (row , column ) keeps element in place. Counting the diagonal 1s tells you at a glance how many elements never move. In 2023 Examination 1 Question 26 the 1s in rows 1 and 5 were on the diagonal, so and stayed and moved.
Reading a movement matrix column by column
Some questions give a permutation matrix labelled like a transition matrix, with "this month" across the top and "next month" down the side (2023 Examination 2 Question 9c). Read it the transition-matrix way, by columns: the 1 in column sits in the row of the place goes to next. Both readings describe the same matrix; the labels tell you which question is being asked:
- a column matrix of names in positions multiplied by : read rows ("position receives element ");
- a from/to movement matrix: read columns ("from column, to row").
If you read a from/to matrix by rows you get the cycle backwards.
The inverse is the transpose
Undoing a reordering needs . For a permutation matrix you never need the determinant formula:
Transposing turns each "row takes element " into "row takes element ", which sends every element back where it came from. You can check with CAS that . For a swap of two elements (a matrix equal to its own transpose), : doing the swap twice restores the order.
Powers repeat the reordering
If , then , and in general . So:
- the order after two applications uses (day three of a program that starts on day one is , not );
- if , then and the order repeats every steps.
The smallest such comes from the cycles of the permutation. Follow one element around until it returns: that is one cycle. The order returns when every cycle is complete, which is the lowest common multiple of the cycle lengths. A 3-cycle alone gives ; a 2-cycle and a 3-cycle together give .
: a 1 in row , column puts element into position . Diagonal 1s mean "stays in place". . With : . If the order repeats every steps, and the smallest such is the LCM of the cycle lengths.
The figure shows the permutation from 2025 Examination 2 Question 14, where seven activities are rearranged from one day to the next.
Which three letters move? (2023 Examination 1 Question 26)
and .
- Step 1: read each row of
- Row 1 picks element 1 (). Row 2 picks element 3 (). Row 3 picks element 4 (). Row 4 picks element 2 (). Row 5 picks element 5 ().
- Step 2: write the product
- .
- Step 3: compare
- and are unchanged (diagonal 1s in rows 1 and 5); , and have moved. Answer: B.
Following a movement matrix (2023 Examination 2 Question 9c)
Columns are "this month" ; rows are "next month". The matrix has 1s at (row , column ), (row , column ), (row , column ), (row , column ) and (row , column ).
Step 1: start at and read down column . The 1 is in row : the circus goes to .
Step 2: keep going. Column sends it to ; column to ; column to ; column back to .
Answer. I, H, E, G, F. All five towns appear before the circus returns to , so this is a single 5-cycle and the matrix to the power 5 is the identity.
A timetable that repeats (2025 Examination 2 Question 14)
Day one is and each day's order is times the previous day's.
- Step 1: the fixed activities
- Rows 3, 4 and 5 of have their 1 on the leading diagonal, so gardening, lunch and music are always at 11 am, 12 pm and 1 pm.
- Step 2: day two
- Row 1 picks element 6 (R), row 2 picks element 7 (S), row 6 picks element 2 (D), row 7 picks element 1 (C): day two is R, S, G, L, M, D, C.
- Step 3: day three
- Apply the same rule to day two (or calculate on CAS): D, C, G, L, M, S, R.
- Step 4: the cycle
- Follow cooking: 9 am on day one, 3 pm on day two, 10 am on day three, 2 pm on day four, 9 am again on day five. The four moving activities share one 4-cycle, so . Day five is the same as day one, and the 40-day program is 10 full cycles of four days.
Marker's note: the report's answer for (c) was "Order of the activities rotates on a four-day cycle. There are 10 cycles completed in the 40-day program." Only gave an answer like this; most just restated that is the identity. Say what the identity does to the order.
Undoing a reordering
A list is reordered by to give . Find the matrix that restores the list.
Step 1: transpose. .
Step 2: check. applied to : row 1 picks element 2 (), row 2 picks element 4 (), row 3 picks element 1 (), row 4 picks element 3 (). The original list returns, so .
When does the order come back?
acts on each day.
- Step 1: find the cycles
- Rows 1 and 2 swap the first two people (length 2). Rows 3, 4 and 5 rotate the last three (length 3).
- Step 2: combine
- Both cycles are complete together after days.
- Step 3: check the tempting wrong answers
- After 2 days the swap is undone but the rotation is not (); after 3 days the rotation is undone but the swap is not (). Only day 6 gives .
- Calling any 0-1 matrix a permutation matrix
- Check every row and every column for exactly one 1. A matrix with a zero row or two 1s in a column is binary, not permutation.
- Reading a movement matrix by rows
- If the columns are "this month" and the rows "next month", the 1 in a column shows where that place goes. Reading rows gives the cycle in reverse.
- Using the wrong power
- Day three is two steps after day one: . The state after steps is .
- Restating instead of interpreting
- " is the identity matrix" is the given information. The mark is for "the order repeats every four days" (and, in context, how many cycles fit in the program).
- Multiplying on the wrong side
- needs to be a column matrix. with a column matrix is not defined; with a row matrix it reorders using the columns of , which is the same as applying .
- Inverting the long way
- You do not need the determinant: .
Before multiplying, circle the 1 in each row (or column, for a from/to matrix) and write the element it selects beside the row. The reordered list can then be read straight off, and diagonal 1s show which elements are fixed. For "when does it repeat" questions, follow one element around its cycle, then check the others; the answer is the LCM of the cycle lengths. Confirm on CAS by raising to that power and checking you get the identity.
Binary matrices in other topics
Permutation matrices are only one kind of binary matrix. The same 0-1 idea appears in:
- communication matrices, where a 1 means one person can send a message directly to another;
- dominance matrices, where a 1 means one competitor beat another;
- adjacency matrices of simple graphs in Networks, where a 1 means two vertices are joined (a graph with multiple edges or loops has entries larger than 1, so its adjacency matrix is not binary).
In each case the row and column totals count something, and powers of the matrix count multi-step links. The difference is that a permutation matrix has the strict one-per-row-and-column structure, so its powers just shuffle the order again, while the powers of a communication or dominance matrix grow.
A permutation matrix is a grid of 0s and 1s with exactly one 1 in every row and every column. Multiplying a list by it shuffles the list: the 1 in each row points to the item that goes into that spot. A 1 on the diagonal means that item stays put. Doing the shuffle twice uses the matrix squared. If some power of the matrix is the identity, the list is back in its original order after that many shuffles. To undo a shuffle, swap the matrix's rows and columns (take the transpose).
Exam-style questions
Questions in the style of VCAA 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.
2025 VCAA Exam 1 Q25Past paper1 markConsider the matrix where . Which one of the following correctly describes matrix ? A. a binary matrix B. a permutation matrix C. an identity matrix D. a diagonal matrix
Show worked answer →
Test each definition against .
- Binary: every element is 0 or 1. True for .
- Permutation: square, binary, and exactly one 1 in every row and every column. Row 2 has two 1s and row 3 has none, so is not a permutation matrix.
- Identity: 1s on the leading diagonal and 0s elsewhere. The leading diagonal of is all 0s.
- Diagonal: every element off the leading diagonal is 0. has non-zero elements off the diagonal.
The answer is A. answered correctly; chose B. Every permutation matrix is binary, but a binary matrix is a permutation matrix only if it passes the one-per-row-and-column test.
Source: VCAA 2025 General Mathematics Examination 1, Question 25, and the 2025 examination report.
2023 VCAA Exam 1 Q26Past paper1 markMatrix is a permutation matrix and matrix is a column matrix. , . When is multiplied by , which three letters change position? A. B. C. D. E.
Show worked answer →
" is multiplied by " means ( times ). Read one row at a time: the column holding the 1 says which element of goes into that position.
- Row 1: 1 in column 1, so position 1 is .
- Row 2: 1 in column 3, so position 2 is .
- Row 3: 1 in column 4, so position 3 is .
- Row 4: 1 in column 2, so position 4 is .
- Row 5: 1 in column 5, so position 5 is .
. The letters and stay (their rows have the 1 on the leading diagonal) and move: option B ( correct).
Source: VCAA 2023 General Mathematics Examination 1, Question 26, and the 2023 examination report.
2023 VCAA Exam 2 Q9cPast paper1 markThe circus moves from one location to the next each month. It rotates through each of the five locations, before starting the cycle again. The following matrix displays the movement between the five locations (columns: this month ; rows: next month ). The circus started in town . What is the order in which the circus will visit the five towns?
Show worked answer →
This is a movement matrix, so read it by columns: the 1 in the column for "this month" sits in the row for "next month".
- Column : the 1 is in row , so .
- Column : the 1 is in row , so .
- Column : the 1 is in row , so .
- Column : the 1 is in row , so .
- Column : the 1 is in row , back to the start.
Order: I, H, E, G, F (then back to I). scored the mark. Reading the rows instead gives the reverse cycle, I, F, G, E, H, which is the order in which the circus arrives from, not goes to.
(Part d, adding a sixth location, was invalidated by VCAA after an error was found in the question.)
Source: VCAA 2023 General Mathematics Examination 2, Question 9c, and the 2023 examination report.
2025 VCAA Exam 2 Q14Past paper3 marksThe early learning centre runs seven different activities during its 40-day holiday program: cooking (C), drama (D), gardening (G), lunch (L), music (M), reading (R) and sport (S). The timetabled order for day one (9 am to 3 pm) is C, D, G, L, M, R, S, shown in column matrix . is a permutation matrix: a column matrix of one day's order is multiplied by to give the next day's order. a. State the activities that are always held at the same time on each day. b. Determine the order on day three. c. is an identity matrix. Explain what this means for the order over the 40-day program.
Show worked answer →
(a) Rows 3, 4 and 5 of have their 1 on the leading diagonal, so those positions never change: gardening, lunch and music. (1 mark; .)
(b) Day two is : row 1 takes element 6 (R), row 2 takes element 7 (S), rows 3 to 5 keep G, L, M, row 6 takes element 2 (D), row 7 takes element 1 (C). Day two: R, S, G, L, M, D, C. Day three is : apply the same rule to day two to get D, C, G, L, M, S, R (drama, cooking, gardening, lunch, music, sport, reading). (1 mark; only . Day three needs , not .)
(c) means : the order on day five is the same as on day one, so the timetable repeats on a four-day cycle. The 40-day program is exactly 10 complete cycles. (1 mark; only .)
Source: VCAA 2025 General Mathematics Examination 2, Question 14, and the 2025 examination report.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksWhich of these matrices are permutation matrices? Give a reason for each. , , ,
Show worked solution →
Check that each row and each column contains exactly one 1.
- : one 1 in every row and every column. Permutation matrix.
- : every row has one 1, but column 2 has two 1s and column 3 has none. Not a permutation matrix (it would copy the second entry twice and lose the third).
- : one 1 in every row and column. Permutation matrix (it swaps the first and third entries).
- : row 1 has two 1s and row 3 has none. Not a permutation matrix.
All four are binary matrices. (2 marks: 1 for the correct pair and , 1 for the reasons.)
foundation3 marksA coach lists four players as and applies . (a) Find . (b) Write down the matrix that reverses the reordering. (c) Show that it works.
Show worked solution →
(a) Row 1 picks element 3 (), row 2 picks element 1 (), row 3 picks element 4 (), row 4 picks element 2 (): . (1 mark)
(b) The inverse of a permutation matrix is its transpose: . (1 mark)
(c) applied to : row 1 picks element 2 (), row 2 picks element 4 (), row 3 picks element 1 (), row 4 picks element 3 (). The result is , the original order. (1 mark) A CAS check: .
core2 marksLet . (a) Find . (b) Find . (c) Explain why the answers are in different orders.
Show worked solution →
(a) Row by row: .
(b) Element of the product is the row matrix times column of . Column 1 has its 1 in row 3, so element 1 is ; column 2 has its 1 in row 1, giving ; column 3 has its 1 in row 2, giving : .
(c) Pre-multiplying () reorders the rows of using the rows of ; post-multiplying () reorders the columns of using the columns of , which is the same as applying . (1 mark for (a) and (b), 1 mark for (c).)
core2 marksFind the permutation matrix that changes the column matrix into , and state the smallest for which .
Show worked solution →
Build one row at a time: position 1 needs (element 4), so row 1 has its 1 in column 4; position 2 needs (column 1); position 3 needs (column 2); position 4 needs (column 3).
. (1 mark)
Each application moves every letter one place down (and the last to the top), so after 4 applications every letter is home: . (1 mark) Check: gives , not yet the original.
exam3 marksFive people V, W, X, Y and Z sit in a row, . Each day they move according to , where . (a) Find . (b) Find the smallest for which . (c) Find .
Show worked solution →
(a) . (1 mark)
(b) Split the movement into cycles. Positions 1 and 2 swap: a cycle of length 2. Positions 3, 4 and 5 rotate: a cycle of length 3. Everyone is home together only when both cycles are complete, after days. (1 mark) Check: and ; neither is , but .
(c) , so . (1 mark)
exam3 marksFour security guards rotate between stations N, E, S and W each week. The movement matrix (columns: this week N, E, S, W; rows: next week N, E, S, W) is . (a) A guard starts at N. List the order of stations. (b) A fifth station X is added, visited after E and before W, with nothing else changed. Write the new movement matrix with columns and rows ordered N, E, S, W, X.
Show worked solution →
(a) Read columns: N S (column N has its 1 in row S), S E, E W, W N. Order: N, S, E, W then back to N. (1 mark)
(b) The new cycle is N S E X W N. Put a 1 in row "to", column "from":
(2 marks: 1 for column E now sending to X, 1 for column X sending to W.) Check: every row and column still has exactly one 1, and the matrix now has order 5 (each guard returns after 5 weeks).
core2 marksA binary matrix records which of four students (rows P, Q, R, T) study which of four subjects (columns: Maths, English, Art, Music), with 1 meaning "studies": . (a) Calculate and explain what it gives. (b) Calculate and explain what it gives.
Show worked solution →
(a) Multiplying by a column of 1s adds each row: . It is the number of subjects each student studies. (1 mark)
(b) A row of 1s in front adds each column: . It is the number of students in each subject. (1 mark) Both totals add to , the number of 1s in .
Practise this
Sources & how we know this
- VCE General Mathematics Examination 1 (2023) and examination report — VCAA (2023)
- VCE General Mathematics Examination 2 (2023) and examination report — VCAA (2023)
- VCE General Mathematics Examination 1 (2025) and examination report — VCAA (2025)
- VCE General Mathematics Examination 2 (2025) and examination report — VCAA (2025)
- VCE Mathematics Study Design: General Mathematics (from 2023) — VCAA
- VCE General Mathematics: examination specifications, past examinations and reports — VCAA