Motivating Matrix Multiplication
- Matrix multiplication is an operation that produces a matrix from two matrices
- Linear transformations are typically performed using matrix multiplication
- In other words, multiplying any matrix by a vector is equivalent to performing a linear transformation on that vector
- Therefore, matrices are a convenient way of representing linear transformations
- In matrix multiplication, each entry in the resultant matrix is the dot product of a row in the first matrix and a column in the second matrix
System of Equations and Linear Combinations
- Up until now, we have only used scalar multiplication to determine a linear combination of a set of vectors
- However, we can actually combine our scalars into a matrix, then our scalar multiplication becomes matrix multiplication
- In linear algebra, we mostly work with the system of equations defined as the following:
-
If we're given a constant vector and we want to find a vector that is a linear combination of a set of vectors , then we're solving for in the system of equations
- We're given and
- In this case, we would use matrix multiplication to solve for
-
If we're finding a vector that makes a linear combination of a set of vectors , then we are solving for in the system of equations Ax=b
- We're given and
- In this case, we would use row reduction to solve for
System of Equations and Linear Transformations
-
If we're given a transformation matrix and a vector from that transformed vector space and we want to find the vector from our initial vector space, then we're solving for in the system of equations
- We're given and
- In this case, we would use matrix multiplication to solve for
-
If we're given a transformation matrix and a vector from our inital vector space and we want to find the vector from our transformed vector space, then we're solving for in the system of equations
- We're given and
-
In this case, we would perform the following steps:
- Find the determinant of the transformation matrix
- Use that determinant to find the inverse of the transformation matrix
- Use that inverse matrix by multipling each side of our system of equations , so we get
- Solve for by performing matrix multiplication of the inverse matrix and vector
- Therefore, we can also use matrix multiplication of the inverse matrix if we want to find a vector that makes a linear combination of a set of vectors , instead of manually performing row reduction
- We can do this because we're solving for the same thing (i.e. vector ) in both scenarios
Matrix Multiplication as a Linear Combination
- When performing matrix multiplication, we're computing the dot-product of a row in the first matrix with a column in the second matrix iteratively
- We can also think of this process (of multiplying constants by our variables ) as the linear combination of our constants and variables
- Another way to look at it is that it's a linear combination of the rows of matrix using coefficients from our vector
- In this scenario, the linear combination operation and dot product operation are interchangeable operations
Summarizing the Relationship of Everything
- Matrix multiplication involves taking the dot product of a row from one matrix and a column from another matrix
- In other words, matrix multiplication involves the dot product
- Linear transformation is an application of matrix multiplication
- Linear combination is an application of matrix multiplication