Types: N/A
Examples: 11.4.1 Example of Matrix-Matrix Multiplication via Dot Products
Constructions: N/A
Generalizations: N/A

Properties: 11.6 Algebraic Properties of Matrix-Matrix Multiplication
Sufficiencies: N/A
Questions: N/A

Matrix-Matrix Multiplication via Dot Products

Let matrices ARm×p and XRp×n. The product B=AX is the m×n matrix whose value in the ith row and kth entry is given by

bik=Rowi(A)Columnk(X)=A(i,:)X(:,k)

for i{1,2,,m} and k{1,2,,n}.

Remark. When we want to find the individual entries of a matrix-matrix multiplication product, the dot product definition is a good tool for this. We are chopping the left matrix into rows and the right matrix into columns.

B=AX=[A(1,:)A(2,:)a(m,:)]m×p[X(:,1)X(:,2)X(:,n)]p×n=[b11b12b1nb21b22b2nbm1bm2bmn]m×n


Remark. Let's take a look at the individual entries on the left and right side of this equation.

b11=[A(1,:)]1×p[X(:,1)]p×1=[a11a12a1p]1×p[x11x21xp1]p×1=x11a11+x21a12++xp1a1p=a11x11+a12x21++a1pxp1=j=1pa1jxj1=[Row1(A)]1×p[Column1(x)]p×1=[Column1(AT)]p×1[Column1(x)]p×1

Let's look at the next entry of b now.

b21=[A(2,:)]1×p[X(:,1)]p×1=[a21a22a2p]1×p[x11x21xp1]p×1=x11a21+x21a22++xp1a2p=a21x11+a22x21++a2pxp1=j=1pa2jxj1=[Row2(A)]1×p[Column1(x)]p×1=[Column2(AT)]p×1[Column1(x)]p×1

Can we guess a pattern? Let's try to construct our general form.

bik=[A(i,:)]1×p[X(:,k)]p×1=[ai1ai2aip]1×p[x1kx2kxpk]p×1=x1kai1+x2kai2++xpkaip=ai1x1k+ai2x2k++aipxpk=j=1paijxjk=[Rowi(A)]1×p[Columnk(X)]p×1=[Columni(AT)]p×1[Columnk(X)]p×1