Matrix-Vector
Products
Master how to multiply a matrix by a vector and discover the powerful connection to linear combinations.
What Is a Matrix-Vector Product?
A matrix-vector product \( A\mathbf{x} \) takes a matrix \( A \) and a vector \( \mathbf{x} \) and produces a new vector. It is the most fundamental operation in linear algebra: it transforms inputs into outputs.
Quick Refresher: Vectors and Matrices
Why Does This Matter?
Matrix-vector products appear everywhere: systems of linear equations, computer graphics, machine learning, and physics simulations. The equation \( A\mathbf{x} = \mathbf{b} \) is at the heart of all of them.
The Row-Vector Rule
The row-vector rule says: each entry of \( A\mathbf{x} \) is the dot product of a row of \( A \) with \( \mathbf{x} \).
The Column Rule: Linear Combinations
\( A\mathbf{x} \) can also be seen as a linear combination of the columns of \( A \), weighted by the entries of \( \mathbf{x} \):
Visualizing Linear Combinations
Row View vs. Column View
| Row-Vector (Dot Product) | Column (Linear Combination) | |
|---|---|---|
| Approach | Dot each row with \( \mathbf{x} \) | Weight each column by entries of \( \mathbf{x} \) |
| Formula | \( (\text{row}_i) \cdot \mathbf{x} \) | \( x_1\mathbf{a}_1 + x_2\mathbf{a}_2 + \cdots \) |
| Gives you | One entry at a time | The whole vector at once |
| Best for | Computing answers | Understanding geometry |
Dimension Requirements
For \( A\mathbf{x} \) to be defined, the number of columns of \( A \) must equal the number of entries in \( \mathbf{x} \).
How to Compute \( A\mathbf{x} \)
Example 1: \( 2 \times 2 \) Product
Compute \( A\mathbf{x} \) where:
Example 2: \( 3 \times 2 \) Product
Example 3: Column View in Action
Express \( A\mathbf{x} \) as a linear combination of columns:
Connection to Systems of Equations
The system of equations:
can be written as the single matrix-vector equation:
Common Mistakes
Summary Table
| Concept | Key Idea | Formula |
|---|---|---|
| Matrix-vector product | Transform a vector | \( A\mathbf{x} = \mathbf{b} \) |
| Row view | Dot products, one per row | \( b_i = \text{row}_i \cdot \mathbf{x} \) |
| Column view | Linear combination of columns | \( x_1\mathbf{a}_1 + \cdots + x_n\mathbf{a}_n \) |
| Dimension rule | Columns of \( A \) = length of \( \mathbf{x} \) | \( (m \times n)(n \times 1) = m \times 1 \) |
| Systems connection | Every system is \( A\mathbf{x}=\mathbf{b} \) | Coefficients form \( A \) |
Question 1 of 5
Compute \( \begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix} \begin{bmatrix} 4 \\ -1 \end{bmatrix} \).
Question 2 of 5
If \( A \) is a \( 4 \times 3 \) matrix and \( \mathbf{x} \) is a \( 3 \times 1 \) vector, what is the size of \( A\mathbf{x} \)?
Question 3 of 5
The product \( A\mathbf{x} \) can be interpreted as a linear combination of which objects?
Question 4 of 5
Which of the following products is undefined?
Question 5 of 5
Express \( \begin{bmatrix} 1 & -2 \\ 3 & 0 \end{bmatrix}\begin{bmatrix} 2 \\ 5 \end{bmatrix} \) as a linear combination. What is the result?