3.4 Composition Is Multiplication
Nothing so far forces a matrix product to mean anything. It becomes inevitable the moment you ask a natural question: if moves the plane and then moves it again, what single matrix describes the combined motion? There must be one, because doing two linear transformations in a row is still linear — the origin stays put, lines stay lines, and combinations survive both steps.
Take a shear and a quarter turn:
slides each point sideways in proportion to its height; rotates the plane a quarter turn counterclockwise. Finding the combined matrix needs only the reading of a matrix you already have from section 3.1: the columns are the images of the basis vectors. So to find the matrix of "do , then ", push and through both steps and collect the results as columns.
Start with . The shear leaves it alone, since 's first column is . The turn then sends to . So the first column of the composite is . Now . The shear sends it to 's second column, . The turn sends to , because maps to . So the second column is , and
Notice the order in the name. The matrix written on the right is the transformation applied first, because that is how the notation composes: . It reads backwards, and it is worth reading it deliberately every time.
Explore in 3D (opens in a new tab)Explore the figure
- At the defaults the two colored parallelograms are plainly different shapes. Same two transformations, same square, different order, different answer.
- Follow the two arrows. Shear-then-turn sends to , straight up, because the shear does not move at all and the turn then stands it upright. Turn-then-shear sends first to and then leans it to . The arrows disagree because the shear meets a different vector each time.
- Drag down to . The shear becomes the identity, and the two parallelograms snap together — with one factor doing nothing, order cannot matter. Drag back up and watch them separate again.
- Now drag to with back at . The turn becomes the identity and the shapes coincide again. A factor that does nothing cannot be disturbed by the other, so order stops mattering — but acting non-trivially is not by itself enough to make order matter, as the worked example below shows.
Reading the product off the columns
The column recipe generalizes into the multiplication rule. To compute , apply to each column of in turn, and collect the results as the columns of the answer. Every entry rule you may have memorized is bookkeeping for that sentence.
Do the other order to see the disagreement in symbols. For — turn first, then shear — push through: the turn sends it to , and the shear sends to . Then : the turn sends it to , and the shear leaves it at , since a point at height slides by nothing. So
Matrix multiplication is not commutative, and the geometry says why without any arithmetic: the shear's effect on a vector depends on how high that vector sits, so turning first hands the shear a different vector to work on. Two operations commute only when neither disturbs what the other is looking at.
One quantity does ignore the order.
The determinant of , computed symbolically: exactly . A shear preserves area and so does a rotation, so their composition must too — and the number confirms it.
The determinant of is also , even though and are different matrices. This is the rule at work: both orders multiply the same two factors, and , and multiplication of numbers does commute. The two parallelograms in the figure differ in shape but never in area.
That last observation is a good habit in disguise. Products of matrices are awkward to compare directly, but a quantity that is genuinely multiplicative over products — the determinant — collapses the comparison to arithmetic you can do in your head. Be careful which quantities those are: eigenvalues are not multiplicative. Two shears with eigenvalues can multiply to a matrix with eigenvalues .
An original work of XYZ Homework, built around interactive XYZ 3D figures. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.