Multivariable-Calculus · Unit 3 · Video 4 · Interactive Practice

Right to Left: What AB Does, What I Does, and the Matrix That Rotates the Plane

IKey Formulas

FormulaNameWhat it says
(AB)X=A(BX)(AB)X = A(BX)AssociativityABAB means: apply BB first, then AA
ABBAAB \neq BA, and BABA need not existOrder mattersABAB is defined when the width of AA equals the height of BB
IX=XIX = X for every XXThe identity matrixOnes down the diagonal, zeros elsewhere — one II for each size
R=(0110),R(xy)=(yx)R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, \quad R\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} -y \\ x \end{pmatrix}Rotation by 90°90\degreeIts columns are Rı^=ȷ^R\hat{\imath} = \hat{\jmath} and Rȷ^=ı^R\hat{\jmath} = -\hat{\imath}

Key Insight: Reading runs left to right, but acting runs right to left — in ABAB the factor nearest the input goes first. And the columns of any matrix are exactly where the basis vectors land, because multiplying by ı^\hat{\imath} picks out column 1.

IIVisualization 1 — AB Means B First

In ABAB the factor nearest the input acts first: BB transforms XX, then AA transforms the result.

💡 Both orders exist here only because every factor is 2×22 \times 2. If AA is 3×43 \times 4 and BB is 4×24 \times 2, then ABAB is defined and is 3×23 \times 2, while BABA is not defined at all.

IIIVisualization 2 — The Columns Are the Images of the Basis Vectors

The two columns of MM are nothing but the places where ı^\hat{\imath} and ȷ^\hat{\jmath} land.

💡 The same reading works in every size: column kk of MM is MM applied to the kk-th basis vector, which is why the 3×33 \times 3 identity — columns ı^,ȷ^,k^\hat{\imath}, \hat{\jmath}, \hat{k} — returns every column of three entries unchanged.

IVVisualization 3 — Multiplying R by Itself

Composing the quarter turn with itself is ordinary matrix multiplication: R2R^2, R3R^3, R4R^4.

💡 Because R4=IR^4 = I, three more quarter turns undo one: R3R=IR^3 R = I, so R3R^3 is the matrix that undoes RR — the first example of an inverse matrix.

VQuiz Questions

Problem 1 · Applying the Rotation Matrix

Given: R=(0110)R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}compute R(32)R\begin{pmatrix} 3 \\ 2 \end{pmatrix}.

✅ Correct! RR sends (x,y)(x, y) to (y,x)(-y, x), so (3,2)(3, 2) lands on (2,3)(-2, 3) — a quarter turn counterclockwise.
❌ Close, but that is the turn the other way. (y,x)(y, -x) is a clockwise quarter turn; it comes from dotting the input with the columns of RR instead of the rows.
❌ That negates xx and leaves yy alone. That is a flip across the yy-axis. Row one of RR is (0,1)(0, -1), so the first entry of the answer is y-y, never x-x.
❌ That is two quarter turns. (3,2)=(3,2)(-3, -2) = -(3, 2) is R2=IR^2 = -I applied to the input, not RR.
❌ Not quite. Entry one is row one dotted with the column: 03+(1)20 \cdot 3 + (-1) \cdot 2. Entry two is row two: 13+021 \cdot 3 + 0 \cdot 2.
Show solution

Each entry of the answer is a row of RR dotted with the input column:

R(32)=(03+(1)213+02)=(23)R\begin{pmatrix} 3 \\ 2 \end{pmatrix} = \begin{pmatrix} 0 \cdot 3 + (-1) \cdot 2 \\ 1 \cdot 3 + 0 \cdot 2 \end{pmatrix} = \begin{pmatrix} -2 \\ 3 \end{pmatrix}

This matches the general rule (x,y)(y,x)(x, y) \mapsto (-y, x) with x=3x = 3 and y=2y = 2.

Check the lengths: (3,2)=13|(3, 2)| = \sqrt{13} and (2,3)=13|(-2, 3)| = \sqrt{13} — a rotation cannot change a length.

Problem 2 · Which Product Even Exists

Given: AA is 3×43 \times 4 and BB is 4×24 \times 2. Which statement is true?

✅ Correct! (3×4)(4×2)(3 \times 4)(4 \times 2): the inner 44s match, and the answer takes the outer sizes, 3×23 \times 2. Reversed, the inner sizes are 22 and 33 — no match.
❌ Check BABA. It reads (4×2)(3×4)(4 \times 2)(3 \times 4): the width of BB is 22 and the height of AA is 33, so the rows of BB and the columns of AA have different lengths and no dot product can be formed.
❌ You kept the inner sizes. The inner pair must match; the product inherits the outer pair, so (3×4)(4×2)(3 \times 4)(4 \times 2) is 3×23 \times 2.
❌ Check ABAB again. The width of AA is 44 and the height of BB is 44: the inner sizes agree, so ABAB certainly exists. It is BABA that fails.
❌ Not quite. Compare the width of the left factor with the height of the right factor in each order.
Show solution

ABAB: AA is 3×43 \times 4, BB is 4×24 \times 2. The width of AA is 44 and the height of BB is 44, so each row of AA and each column of BB have four entries and their dot product makes sense. The product has one entry for each row of AA and each column of BB:

(3×4)(4×2)=3×2(3 \times 4)(4 \times 2) = 3 \times 2

BABA: now the width of BB is 22 and the height of AA is 33.

(4×2)(3×4)undefined(4 \times 2)(3 \times 4) \quad \text{undefined}

So ABAB and BABA are not merely different answers — only one of them is even a question.

Problem 3 · Both Orders of the Same Pair

Given: the quarter turn A=(0110)A = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} and the shear B=(1101)B = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}compute both products.

What is ABAB?

What is BABA?

✅ Correct! Two genuinely different matrices: ABAB shears and then turns, BABA turns and then shears.
❌ Check ABAB. Entry (i,j)(i, j) is row ii of AA dotted with column jj of BB. Row one of AA is (0,1)(0, -1); column two of BB is (1,1)(1, 1).
❌ Check BABA. Now the rows come from BB and the columns from AA. Row one of BB is (1,1)(1, 1); column one of AA is (0,1)(0, 1).
Show solution

ABAB — rows of AA against columns of BB:

AB=(01+(1)001+(1)111+0011+01)=(0111)AB = \begin{pmatrix} 0 \cdot 1 + (-1) \cdot 0 & 0 \cdot 1 + (-1) \cdot 1 \\ 1 \cdot 1 + 0 \cdot 0 & 1 \cdot 1 + 0 \cdot 1 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ 1 & 1 \end{pmatrix}

BABA — rows of BB against columns of AA:

BA=(10+111(1)+1000+110(1)+10)=(1110)BA = \begin{pmatrix} 1 \cdot 0 + 1 \cdot 1 & 1 \cdot (-1) + 1 \cdot 0 \\ 0 \cdot 0 + 1 \cdot 1 & 0 \cdot (-1) + 1 \cdot 0 \end{pmatrix} = \begin{pmatrix} 1 & -1 \\ 1 & 0 \end{pmatrix}

Read them as transformations. Column one of ABAB is (0,1)(0, 1), so ABAB sends ı^\hat{\imath} to ȷ^\hat{\jmath}: the shear leaves ı^\hat{\imath} alone and the turn lifts it. Column one of BABA is (1,1)(1, 1), so BABA sends ı^\hat{\imath} to (1,1)(1, 1): the turn lifts it to ȷ^\hat{\jmath} first, and the shear then slides it sideways.

Problem 4 · From a Formula to a Matrix, and to a Power of R

Given: a transformation of the plane sends (x,y)(x, y) to (y,x)(y, -x)write it as a matrix, then name it as a power of R=(0110)R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}.

Which matrix is it?

Which power of RR is it?

✅ Correct! Three counterclockwise quarter turns is one clockwise quarter turn, and R3=R2R=(I)R=RR^3 = R^2 R = (-I)R = -R.
❌ Check the coefficients. Write both outputs with every coefficient showing: u=0x+1yu = 0 \cdot x + 1 \cdot y and v=(1)x+0yv = (-1) \cdot x + 0 \cdot y, then read the rows off.
❌ Count the quarter turns. R2=IR^2 = -I sends (x,y)(x, y) to (x,y)(-x, -y) and R4=IR^4 = I changes nothing, so neither of those is (y,x)(y, -x).
Show solution

Step 1 — write the outputs with every coefficient in place. Calling the outputs uu and vv:

u=y=0x+1y,v=x=(1)x+0yu = y = 0 \cdot x + 1 \cdot y, \qquad v = -x = (-1) \cdot x + 0 \cdot y

Step 2 — read the coefficients off, row by row:

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

Step 3 — identify it as a power of RR. Since R2=IR^2 = -I,

R3=R2R=(I)R=R=(0110)=MR^3 = R^2 R = (-I)R = -R = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} = M

Check with the basis vectors. Mı^M\hat{\imath} is column one, (0,1)=ȷ^(0, -1) = -\hat{\jmath}; three counterclockwise quarter turns do carry ı^\hat{\imath} to ȷ^-\hat{\jmath}. And MR=R3R=R4=IM R = R^3 R = R^4 = I, so this is exactly the transformation that undoes RR.

Solved: 0 / 4