36. Matrix–Vector Product

A special case of matrix multiplication: a matrix times a single column vector.

For an 𝑚×𝑛 matrix 𝐴 and a vector 𝑥𝑛, the product 𝐴𝑥𝑚 has entries:

(𝐴𝑥)𝑖=𝑗=1𝑛𝑎𝑖𝑗𝑥𝑗
Example
𝐴=[123456]𝑥=[789]𝐴𝑥=[17+28+3947+58+69]=[50122]

36.1. Two equivalent views

1. Row view (dot products): each entry is a dot product of a row of 𝐴 with 𝑥.

2. Column view (linear combination): 𝐴𝑥 is a linear combination of 𝐴’s columns, weighted by the entries of 𝑥:

𝐴𝑥=𝑥1𝑎1+𝑥2𝑎2++𝑥𝑛𝑎𝑛

where 𝑎𝑗 is the 𝑗-th column of 𝐴.

This view explains why 𝐴𝑥=𝑏 has a solution iff 𝑏 lies in the column space of 𝐴.

36.2. Linear transformation view

Every matrix defines a linear transformation 𝑇𝐴:𝑛𝑚:

𝑇𝐴(𝑥)=𝐴𝑥

Conversely, every linear transformation between finite-dimensional spaces is a matrix–vector product (after fixing bases).

36.3. Linearity

𝐴(𝑥+𝑦)=𝐴𝑥+𝐴𝑦𝐴(𝑐𝑥)=𝑐(𝐴𝑥)

𝐴 applied to the zero vector returns the zero vector.