Same size only; they give M(S+T)=M(S)+M(T) and M(ฮปT)=ฮปM(T)
dimFm,n=mn
The space of mรn matrices
Basis: the mn matrices Ej,kโ with a single 1 in row j, column k; A=โj,kโAj,kโEj,kโ
(AB)j,kโ=โr=1nโAj,rโBr,kโ
Matrix product
A is mรn, B is nรp, AB is mรp: row j of A times column k of B
M(ST)=M(S)M(T)
Composition becomes multiplication
TโL(U,V), SโL(V,W), one basis for each of U, V, W
Key Insight: The row-times-column rule is forced, not chosen: it is the only product that makes M(ST)=M(S)M(T) true, and the inner size n that must match is dimV, the space in the middle.
IIAdding and Scaling Entry by Entry
Each entry of ฮปA+C uses only the entries of A and C in the same position.
IIIRow Times Column
Entry (j,k) of AB pairs row j of A with column k of B, so the inner sizes must agree.
IVComposition Becomes Multiplication
Applying T then S moves u exactly as AB=M(S)M(T) does; the other order uses BA.
๐ก Order aside, matrix multiplication keeps the laws that products of linear maps have: (AB)C=A(BC), A(B+C)=AB+AC and (A+B)C=AC+BC.
VQuiz Questions
Problem 1 ยท A Linear Combination of Matrices
Given:A=(13โโ20โ) and C=(4โ1โ15โ). Find3AโC.
โ Correct! Each entry is 3Aj,kโโCj,kโ; for example the bottom-left entry is 3โ 3โ(โ1)=10.
โ Not quite. That is 3A+C. Subtracting C means adding (โ1)C, so every entry of C changes sign.
โ Not quite. That is 3(AโC)=3Aโ3C. The scalar 3 multiplies only A.
โ Not quite. That is Aโ3C: the 3 was applied to the wrong matrix.
Show solution
Scalar multiplication multiplies every entry, and 3AโC=3A+(โ1)C is computed entry by entry:
โ Correct!BA fails because B has 3 columns and A has 2 rows; ABC is 2ร2; and dimF2,5=2โ 5=10.
โ Not quite.C is 3ร2 and A is 2ร5: the inner sizes are both 2, so CA exists and is 3ร5.
โ Not quite.B is 5ร3 and C is 3ร2: the inner sizes are both 3, so BC exists and is 5ร2.
โ Not quite.A is 2ร5 and B is 5ร3: the inner sizes are both 5, so AB exists and is 2ร3.
โ Not quite.2ร3 is the size of AB; multiplying by the 3ร2 matrix C changes the column count to 2.
โ Not quite.5ร3 is the size of B. A product keeps the OUTER sizes: rows from the first factor, columns from the last.
โ Not quite.3ร2 is the size of C alone; the row count of ABC comes from A.
โ Not quite.2+5 counts rows plus columns, but the basis has one matrix Ej,kโ per position, and there are 2โ 5 positions.
โ Not quite.5 is the number of columns. Each of the 2โ 5 positions carries its own basis matrix Ej,kโ.
โ Not quite.25=5โ 5 would be dimF5,5; a 2ร5 matrix has 2โ 5 positions.
Show solution
A product of an mรn and a qรp matrix is defined exactly when n=q, because the index r in โrโAj,rโBr,kโ runs over the columns of the first and the rows of the second at once.
In full, AB=(22โโ1โ2โ) and BA=โ112โ7โ314โ1โ12โโ: the two orders do not even have the same size.
Problem 4 ยท The Matrix of a Composition
Given:TโL(F2,F3) and SโL(F3,F2) with T(x,y)=(x+y,ย 2y,ย x) and S(x,y,z)=(z,ย xโy), standard bases throughout. FindM(ST).
โ Correct!M(S)M(T) is (2ร3)(3ร2)=2ร2, and it matches (ST)(x,y)=(x,ย xโy) computed directly.
โ Not quite. Column k of a matrix holds the coordinates of the image of the k-th basis vector: (ST)(1,0)=(1,1) is the FIRST COLUMN, not the first row.
โ Not quite. That 3ร3 matrix is M(T)M(S)=M(TS). In ST the map T acts first, and ST maps F2 to F2, so its matrix is 2ร2.
โ Not quite. The second coordinate of S(T(x,y)) is (x+y)โ2y=xโy; the y inside x+y was dropped.
Show solution
Column k of each matrix records the image of the k-th standard basis vector: