Historical Context & Motivation
For centuries, mathematicians and scientists struggled with systems of equations — groups of equations that share the same unknowns. Solving two equations with two unknowns is manageable, but what about ten equations with ten unknowns? Or a thousand? The matrix-vector product was developed as a compact, powerful way to represent and solve these massive systems all at once.
So here's the big question: how do you take a grid of numbers (a matrix) and combine it with a column of numbers (a vector) to get a meaningful result? That is exactly what the matrix-vector product answers.
Core Principles & Definitions
Before you can multiply a matrix by a vector, you need to understand the key vocabulary. A matrix is a rectangular array of numbers arranged in rows and columns. A vector is a single column (or row) of numbers. When we multiply a matrix by a vector, each row of the matrix 'interacts' with the vector to produce one number in the result.
Matrix Dimensions
Vector as a Column
Dot Product Row by Row
Result Is a Vector
Visual Explanation
The diagram below shows exactly what happens when a 2 × 3 matrix multiplies a 3 × 1 vector. Each row of the matrix pairs with the vector through a dot product to produce one entry in the result vector.
Notice the pattern: the first row of the matrix pairs with the vector to create the first entry of the result (12), and the second row creates the second entry (14). Each pairing uses the dot product: multiply matching positions, then add.
Mathematical Framework
Let's write the matrix-vector product using formal notation. If A is an m × n matrix and x is an n × 1 column vector, then the product Ax is an m × 1 column vector whose entries are computed using dot products.
Row View vs. Column View
One of the most powerful ideas in linear algebra is that a matrix-vector product can be understood in two completely equivalent ways. The row view computes each entry of the result using a dot product. The column view assembles the result by scaling and adding the columns of the matrix. The diagram below shows both perspectives side by side using the same numbers.
Why learn two viewpoints? The row view is great for calculations — you go row by row and crank out answers. The column view is great for understanding — it shows that a matrix-vector product creates a new vector by blending the columns of the matrix in proportions given by the vector. This column perspective becomes essential when you study transformations, span, and linear independence later on.
Worked Example
Let's work through a full matrix-vector product step by step. Suppose a small business tracks the prices of three items (a shirt, a hat, and a pair of shoes) across two stores using a matrix, and a customer buys a certain number of each item.
Key Properties & Common Pitfalls
The matrix-vector product obeys some important algebraic rules, but there are also traps that students fall into. The table below summarizes the main properties alongside common mistakes to avoid.
| Property / Rule | What It Means | Watch Out For |
|---|---|---|
| Distributive | A(x + y) = Ax + Ay. You can add vectors first or multiply first — same result. | This only works with vector addition, not mixing different matrices. |
| Scalar factoring | A(cx) = c(Ax). You can pull a constant out of the product. | The scalar c must be a single number, not another matrix. |
| Not commutative | Ax ≠ xA in general. The order matters — you cannot swap the matrix and the vector. | xA often doesn't even make sense dimensionally (a column times a matrix is undefined). |
| Dimension requirement | Number of columns in A must equal number of entries in x. | If the dimensions don't match, the product is undefined — you cannot force it. |
| Identity matrix | Ix = x. The identity matrix (1s on the diagonal, 0s elsewhere) leaves any vector unchanged. | The identity must be the right size — an n × n identity works with an n × 1 vector. |
Connection to Systems of Equations & Beyond
One of the most exciting facts about matrix-vector products is that they give us a compact way to write an entire system of linear equations. Instead of writing out every equation separately, you pack the coefficients into a matrix, the unknowns into a vector, and set the product equal to a result vector.
| Traditional Form | Matrix-Vector Form |
|---|---|
| 2x + y = 5 and 3x − 4y = 2 (two separate equations) | Ax = b where A = [[2, 1], [3, −4]], x = [x, y], b = [5, 2] |
| Need to solve each equation by substitution or elimination | Can use matrix methods: row reduction, inverses, or computer algorithms |
| Hard to handle when there are many equations and unknowns | Scales easily — computers solve millions of equations using the same Ax = b framework |
As you move deeper into linear algebra, you'll discover that matrix-vector products also describe linear transformations — operations that stretch, rotate, reflect, or shear shapes in space. Every time a video game rotates a 3D character or a phone applies a photo filter, a matrix-vector product is doing the heavy lifting behind the scenes.
Practice Problems
Summary
A matrix-vector product multiplies an m × n matrix by an n × 1 vector to produce an m × 1 result vector. Each entry of the result comes from a dot product between one row of the matrix and the entire vector. The inner dimensions must match — that is, the number of columns of the matrix must equal the number of entries in the vector.
You can also view the product as a linear combination of the columns of the matrix, weighted by the entries of the vector. This operation is distributive and allows scalar factoring, but it is not commutative. Matrix-vector products let you write entire systems of linear equations in the compact form Ax = b, making them the gateway to powerful solution methods and linear transformations.