Types: N/A
Examples: 10.1.1 Example of Matrix-Column-Vector Multiplication via Linear Combinations
Constructions: 11.2 Matrix-Matrix Multiplication via Linear Combination of Columns
Generalizations: N/A

Properties: 10.3 Properties of Matrix-Column-Vector Multiplication
Sufficiencies: N/A
Questions: N/A

Matrix-Column-Vector Multiplication via Linear Combinations

Let matrix ARm×n and 3.1 Column Vector xRn×1.

  • Note that the number of rows of x matches the number of columns of A.
  • ! The inner dimensions must agree!

Then, the linear combination version of the matrix-column-vector product Ax=bRm×1 is given by

Ax=x1[a11a21am1]+x2[a12a22am2]++xn[a1na2namn]=b

The matrix vector product can also be written using 8.11 Colon Notation and summation notation.

Ax=x1A(:,1)+x2A(:,2)++xnA(:,n)=k=1nxkA(:,k)=b

Remark. In the real world when the matrix is on the left, it usually represents some real world data that we have collected. The right vector x is the algebraic work we are trying to do on this data.

[A]m×nmodeling matrix[x]n×1algebraic work

Let's cut up our modeling matrix into columns and vector into individual scalars.

[A]m×n=[A(:,1)A(:,2)A(:,n)]m×n[x1x2xn]n×1

We multiply by "pairing" each column of A with a corresponding scalar of x.

=x1A(:,1)+x2A(:,2)++xnA(:,n)=x1[a11a21am1]m×1+x2[a12a22am2]m×1++xn[a1na2namn]m×1
Why must the inner dimensions agree?

Because the product of matrix-column-vector multiplication is a linear combination, there has to be a matching scalar for each column of A (no column left behind!). In other words, every column must have a scalar value to be matched with.


Remark. We know what the input will look like, but what about the output? The size of the output will be the size of the sum of adding m×1 vectors.

[A]m×n[x]n×1=bm×1

A nice way to think of this would be the n dimensions "cancelling" each other out.


Remark. Instead of a linear combination, we can also see the product as entry-by-entry values. Recall that in 4.1 Scalar-Vector Multiplication, we can bring the scalar inside the vector.

Am×nxn×1=[x1a11x1a21x1am1]+[x2a12x2a22x2am2]++[xna1nxna2nxnamn]

We can go even further by looking at the sums using 4.2 Column Vector Addition.

[b1b2bm]m×1=[x1a11+x2a12++xna1nx2a12+x2a22++xna2nx1am1+x2am2++xnamn]m×1
Claim

Every individual entry of b can be calculated as an 5.1 Inner Product Between Vectors.