1.4 - Matrix algebra and powers
Some familiar algebraic laws survive for matrices, while others fail because order matters. Learn to keep products in the correct order, use identity and zero matrices safely, and recognise patterns in powers of square matrices.
Order of multiplication
Can two matrices have both products defined and still give ? Yes: even two square matrices of the same size need not commute.
Take and . Multiplying on the left by scales rows of ; multiplying on the right by scales columns. There is no reason for those operations to give the same array.
Commuting matrices
Matrices commute when both products are defined and . Matrix multiplication is not commutative in general. Some particular pairs do commute, including a square matrix and the matching identity.
To show two matrices do not commute, one unequal corresponding entry is enough. Computing both complete products also checks the arithmetic.
Worked example 1: unequal products
Question. For the matrices above, calculate and .
Plan. Keep the row-column rule fixed and change which matrix supplies the rows.
Answer. The matrices do not commute: their top-right entries are and .
Check. Apply each sequence to . First , then , gives ; first , then , gives . These are the different second columns found above.
Change just the second diagonal entry of from to . The matrix becomes a scalar multiple of the identity; now both rows and columns are scaled equally.
Worked example 2: a pair that commutes
Question. Keeping , let . Show that and commute.
Plan. Calculate both products, recognising that .
For instance, both top-right calculations give , because the two diagonal scale factors are now equal.
Answer. , so this pair commutes.
Check. For any column , both products give . Equality holds for every input, not just a selected one.
The first example disproves a general commutative law; the second shows why “matrices never commute” would also be false.
Watch out
is generally wrong. Expansion gives ; combine the middle terms only when .
Test order with another pair.
Identity and zero products
The identity behaves like the number one in a product, but a zero matrix product has a surprise: neither factor need be zero.
For any matrix , . On the left, an identity row selects the matching row of ; on the right, an identity column selects its matching column. The identities may have different sizes when is rectangular.
Matrix algebra laws
For compatible dimensions,
Multiplication distributes over addition and is associative: brackets may change, but factor order must stay fixed. Also and whenever the products exist. Not in the formula booklet: learn it.
For distributivity, each row-column sum distributes term by term. Associativity says that grouping successive combinations differently gives the same final combination; it does not permit swapping two factors. Addition is commutative for equal-sized matrices, because ordinary entry addition is commutative.
Worked example 3: nonzero factors, zero product
Question. Calculate , where and .
Plan. Calculate the row-column products rather than applying the number rule for a zero product.
Answer. , although and .
Check. Every output of has first coordinate zero. Multiplication by keeps only the first coordinate, so it sends each such output to zero.
Now change only the second row of the right factor. The left matrix still discards that whole row's contribution.
Worked example 4: why cancellation can fail
Question. Let , and . Does imply ?
Plan. Compute and compare the right factors.
But and have unequal second rows.
Answer. No: here, yet .
Check. Subtracting gives , verifying the equality by a separate product.
Later, an inverse will tell us when cancellation is valid. A nonzero matrix alone is not sufficient. There is no general matrix “division” operation that allows a factor to be crossed out.
Watch out
does not imply that either factor is zero. Likewise, cancelling a merely nonzero matrix from can lose valid possibilities.
Find a zero product directly.
Powers of square matrices
A power of a square matrix means repeated matrix multiplication, not raising each entry to that power.
For example, . The top-right entry is a sum of products, , not simply ; the agreement with in this entry is accidental.
Matrix powers
For a square matrix , is the product of copies of , for positive integer . Define . Thus for nonnegative integers . A non-square matrix has no ordinary square power because its self-product is incompatible.
Repeated multiplication may reveal a short pattern. Check the mechanism that continues it; the first two values alone do not prove a general formula.
Worked example 5: an accumulating entry
Question. For , calculate and , then determine .
Plan. Multiply successively and identify how each additional factor changes the upper-right entry.
For any number ,
Each new factor therefore adds , leaving the other entries unchanged. Starting from , twelve factors give an upper-right entry .
Answer. .
Check. Three blocks of combine to give upper-right entry , independently grouping the twelve factors.
Change just the sign of the upper-right entry. The same mechanism now subtracts at each multiplication.
Worked example 6: a negative increment
Question. For , find , and .
Plan. Track the upper-right entry while preserving matrix multiplication.
Multiplying by changes to , so twelve copies give .
Answer. .
Check. Direct calculation gives . Multiplying the proposed twelfth powers also gives , as twelve cancelling pairs must.
Other powers cycle instead of growing. For , multiplication gives and hence . A block of four factors can then be removed: . Always establish the short identity before reducing a large power.
Problem-solving
Look for a stable entry pattern or a small power equal to , or . Keep factors in order; powers of the same matrix commute because they are copies of that one matrix.
Use the accumulating-entry method with a fresh increment.
Quick Recap
- Matrix multiplication is associative and distributive; it is generally not commutative.
- Matching identities leave a matrix unchanged, but zero products can have nonzero factors.
- Do not cancel a matrix just because it is nonzero.
- Powers use repeated matrix multiplication; justify any pattern you use.
The opening pair has , even though both are defined. Order remains essential in every later calculation.