Matrix Multiplication
Learning how to create matrices is only the beginning as we get further into this new area of math. We can also carry out operations with matrices -- including multiplication. As we''ll soon discover, there are many important things to keep in mind when it comes to multiplication with matrices. Although it might be similar to the multiplication operations we''re already familiar with, there are a number of additional rules we must learn:
Scalar multiplication
The easiest way to multiply a matrix is through scalar multiplication. This is when we multiply a single matrix by a single number. For example, what if we wanted to multiply this matrix by 2?
Only four multiplications are necessary in this situation
These products form our resulting matrix:
In other words:
As we can see, this process is quite simple -- and we can use the same basic arithmetic skills that we''re already familiar with.
Multiplying two matrices
Things get a little more complicated when we multiply one matrix by another matrix. This requires a different strategy, and we call this the "dot product" of rows and columns.
The "dot product" is an entire row multiplied by an entire column.
For example, we might multiply this row:
By this column:
But how exactly do we do this? Essentially, we use the same principles as scalar multiplication:
One of the most important things to remember when multiplying matrices is that it''s not the same as multiplying polynomials in an algebraic equation. We do not use the FOIL method, and the operation is not commutative. The above operation is equivalent to:
Seems pretty straightforward, right? Well, we need to do this for every row and every column for the two matrices. We start with the first row and the first column, then we move to the first row and the second column. Next, we do the second row and the first column before finally tackling the second column. We follow this same pattern regardless of how many columns and rows we have on our matrices.
We categorize our matrices based on their rows and columns. For example:
- A matrix has 2 rows and 2 columns
- A matrix has 3 rows and 2 columns
We also call a matrix a "square matrix" because of its shape.
Why does this matter when we do matrix multiplication? Because we can only multiply matrices if their dimensions are compatible. Matrices are only compatible if the number of columns in the first matrix equals the number of rows in the second column.
For example, we could multiply these two matrices:
Why? Because the first matrix has three columns, and the second matrix has three rows.
But we couldn''t multiply these two matrices:
Why? Because the first matrix has two columns, while the second matrix has three rows. These numbers are not equal.
We can write this rule with a very specific formula:
If is an matrix and is an matrix, then the product is an matrix.
In other words:
When we multiply one matrix by another matrix , the result is .
Unless we''re working an identity matrix (explained later), cannot equal .
Identity matrices
We should also learn about the "identity matrix," as this concept can be very useful when multiplying matrices.
Essentially, the identity matrix is the equivalent of "1" in the world of matrices. It looks like this:
Note that this matrix has a number of important features:
- It is square
- It has ones on the main diagonal
- Every other element is 0
As long as our identity matrix has 1s on the main diagonal and 0s everywhere else, it is still an identity matrix. It doesn''t matter whether it''s as small as a matrix or as large as a . As long as the 1s are along the diagonal, our identity matrix can have any number of elements. In other words, we can construct an identity matrix that fits our given matrix, no matter how many columns or rows we might need in order to facilitate a compatible multiplication.
But why is the identity matrix so special?
If the identity matrix is the equivalent of "1" in the world of matrices, this means we can multiply any matrix by the identity matrix and get exactly the same matrix we started with.
It''s the same logic as any number multiplied by 1, such as .
Similarly, the product will be identical to the original matrix. This is useful if we need to find the inverse of a matrix, which is an important step when using matrices to solve systems of linear equations.
We can also use our identity matrix to verify whether two given matrices are inverses of each other. Identity matrices are even more handy when you consider that division operations are impossible with matrices, so finding the inverse is our only option in many cases.
We represent the identity matrix with the letter "I."
We can say that and .
This shows us that the order of our multiplication doesn''t matter when we multiply a matrix by an identity matrix. In contrast, the order does matter when we multiply two normal, non-identity matrices. This is an important concept to keep in mind since the order does not matter with normal arithmetic multiplication. Remember, multiplying matrices is similar to normal multiplication but not identical. The two notable differences are:
- We get different results based on which matrix comes first
- Matrix multiplication is not commutative (no FOIL method)
Multiplying larger matrices
Now that we know all about multiplying matrices, it''s time to move on to something a little more challenging. Consider the following:
How would we multiply these two matrices? A smart starting point would be to write out our resulting matrix with variables:
Let''s start with . We know that to get , we need to multiply row 1 of the first matrix by column 2 of the second matrix. We can write this as:
Great! Now we have our first element for our resulting matrix.
Now we can do exactly the same operation to find the other three elements of our resulting matrix:
Now we know all our values for our resulting matrix. We can replace our variables with the results:
Therefore:
Topics related to the Matrix Multiplication
Associative Property of Matrices
Flashcards covering the Matrix Multiplication
Practice tests covering the Matrix Multiplication
Linear Algebra Diagnostic Tests
Pair your student with a suitable tutor who understands how to multiply matrices
One of the most important requirements for learning how to multiply matrices is to get plenty of practice. But what if your student isn''t getting enough time to hone their skills during class time? In this case, you can have Varsity Tutors pair your student up with a suitable tutor who understands this concept in depth. Tutors can customize lesson plans based on your student''s learning style, choosing verbal techniques for verbal learners and visual techniques for visual learners. They can even use examples that match your student''s hobbies to make learning more fun and engaging. Reach out to our Educational Directors today and rest assured: Varsity Tutors will pair your student with a suitable tutor.
- CSET - California Subject Examinations for Teachers Courses & Classes
- Child Development Tutors
- Essay Editing Tutors
- NBA 2K18 Tutors
- Virginia Bar Exam Test Prep
- AWS Certified SysOps Administrator Courses & Classes
- North Dakota Bar Exam Courses & Classes
- ERB CTP Courses & Classes
- Certified Medical Assistant Exam Courses & Classes
- Basic Computer Literacy Tutors
- SHRM-CP - Society for Human Resource Management- Certified Professional Test Prep
- French Tutors
- PS Exam - Professional Licensed Surveyor Principles of Surveying Exam Tutors
- Delaware Bar Exam Courses & Classes
- ASE - National Institute for Automotive Service Excellence Training
- CCNA Wireless - Cisco Certified Network Associate-Wireless Courses & Classes
- Tom Clancy's Rainbow Six Siege Tutors
- Social Anthropology Tutors
- Arkansas Bar Exam Courses & Classes
- VTNE - Veterinary Technician National Exam Test Prep