How to multiply a matrix by a vector
We can write a vector as a column matrix, which lets us multiply it by another matrix using the same row-by-column process. Each row produces one component of the answer. Let’s work through a product and see what changes when we reverse the order.
Check the dimensions first
An matrix multiplies an -component column vector to produce an -component column vector. Use
Use one row to calculate each component
Use a row vector to multiply on the left
If is written as the row vector , we can multiply . This time the single row combines with each column of , giving
The order and the way we write the vector determine which components are paired.