Matrix vector multiplication
Unit: Matrices
Later Topics
Lesson Preview
We can multiply a square matrix by a column vector, so long as the number of columns in the matrix matches the dimension of the column vector.
For example, we can multiply a matrix by a -dimensional column vector (or matrix):
Note that the output vector will also be -dimensional.
The way we compute the entries is by taking the dot product of the rows of the matrix with the column vector, i.e.,
So the first entry in the resultant (output) vector is the dot product of the first row of the matrix with the (input) column vector.
And the second entry in the resultant (output) vector is the dot product of the second row of the matrix with the input column vector.
Similarly, we can multiply an matrix with an -dimensional column vector (or matrix), and the output will be another -dimensional vector.
A\vec{v} = \begin{bmatrix} \textcolor{red}{a_{11}} & \textcolor{red}{a_{12}} & \textcolor{red}{\dots} & \textcolor{red}{a_{1n}}\\ \textcolor{blue}{a_{21}} & \textcolor{blue}{a_{22}} &\textcolor{blue}{\dots} & \textcolor{blue}{a_{2n}} \\ \vdots & \vdots & \ddots & \vdots \\ ...... continued in the full lesson.
Ready to Start Learning?
Sign up now to access the full Matrix vector multiplication lesson and our entire curriculum!