Download Article
Download Article
If you know how to multiply two matrices together, you're well on your way to "dividing" one matrix by another. That word is in quotes because matrices technically cannot be divided. Instead, we multiply one matrix by the inverse of another matrix. [1] X Research source These calculations are commonly used to solve systems of linear equations. [2] X Research source
Steps
-
Understand matrix "division. " Technically, there is no such thing as matrix division. Dividing a matrix by another matrix is an undefined function. [3] X Research source The closest equivalent is multiplying by the inverse of another matrix. In other words, while [A] ÷ [B] is undefined, you can solve the problem [A] * [B] -1 . Since these two equations would be equivalent for scalar quantities, this "feels" like matrix division, but it's important to use the correct terminology.
- Note that [A] * [B] -1 and [B] -1 * [A] are not the same problem. You may need to solve both to find all possible solutions.
- For example, instead of
, write
.
You may also need to calculate , which may have a different answer.
-
Confirm the "divisor matrix" is square. To take the inverse of a matrix, it must be a square matrix, with the same number of rows and columns. If the matrix you're planning to inverse is non-square, there is no unique solution to the problem. [4] X Research source
- The term "divisor matrix" is a little loose, since this is not technically a division problem. For [A] * [B] -1 , this refers to matrix [B]. In our example problem, this is .
- A matrix that has an inverse is called "invertible" or "non-singular." Matrices without an inverse are "singular."
Advertisement -
Check that the two matrices can be multiplied together. To multiply two matrices together, the number of columns in the first matrix must equal the number of rows in the second matrix. [5] X Research source If this does not work in either arrangement ([A] * [B] -1 or [B] -1 * [A]), there is no solution to the problem.
- For example, if [A] is a 4 x 3 matrix (4 rows, 3 columns) and [B] is a 2 x 2 matrix (2 rows, 2 columns), there is no solution. [A] * [B] -1 does not work since 3 ≠ 2, and [B] -1 * [A] does not work since 2 ≠ 4.
- Note that the inverse [B] -1 always has the same number of rows and columns as the original matrix [B]. There's no need to calculate the inverse to complete this step.
- In our example problem, both matrices are 2 x 2s, so they can be multiplied in either order.
-
Find the determinant of a 2 x 2 matrix. There's one more requirement to check before you can take the inverse of a matrix. The determinant of the matrix must be nonzero. If the determinant is zero, the matrix does not have an inverse. Here's how to find the determinant in the simplest case, the 2 x 2 matrix: [6] X Research source
- 2 x 2 matrix: The determinant of the matrix is ad - bc. [7] X Research source In other words, take the product of the main diagonal (top left to bottom right), then subtract the product of the anti-diagonal (top right to bottom left).
- For example, the matrix has the determinant (7)(3) - (4)(2) = 21 - 8 = 13. This is nonzero, so it is possible to find the inverse.
-
Find the determinant of a larger matrix. If your matrix is 3 x 3 or larger, finding the determinant takes a bit more work: [8] X Research source
- 3 x 3 matrix : Choose any element and cross out the row and column it belongs to. Find the determinant of the remaining 2 x 2 matrix, multiply by the chosen element, and refer to a matrix sign chart to determine the sign. Repeat this for the other two elements in the same row or column as the first one you chose, then sum all three determinants. Read this article for step-by-step instructions and tips to speed this up.
- Larger matrices : Using a graphing calculator or software is recommended. The method is similar to the 3 x 3 matrix method, but is tedious by hand. [9] X Research source For example, to find the determinant of a 4 x 4 matrix, you need to find the determinants of four 3 x 3 matrices.
-
Continue on. If your matrix is not square, or if its determinant is zero, write "no unique solution." The problem is complete. If the matrix is square and its determinant is non-zero, continue to the next section for the next step: finding the inverse.
Advertisement
-
Switch the positions of the elements on the main 2 x 2 diagonal. If your matrix is 2 x 2, you can use a shortcut to make this calculation much easier. [10] X Research source The first step in this shortcut involves switching the top left element with the bottom right element. For example:
- →
- Note: Most people use calculators to find the inverse of a 3 x 3 matrix or larger. If you'd like to calculate it by hand, refer to the end of this section.
-
Take the opposite of the other two elements, but leave them in position. In other words, multiply the top right and bottom left elements by -1: [11] X Research source
- →
-
Take the reciprocal of the determinant. You found the determinant of this matrix in the section above, so there's no need to calculate it a second time. Just write down the reciprocal 1 / (determinant): [12] X Research source
- In our example, the determinant is 13. The reciprocal of this is .
-
Multiply the new matrix by the reciprocal of the determinant. Multiply each element of the new matrix by the reciprocal you just found. The resulting matrix is the inverse of the 2 x 2 matrix: [13] X Research source
-
=
-
-
Confirm the inverse is correct. To check your work, multiply the inverse by the original matrix. If the inverse is correct, their product will always be the identity matrix, If the math checks out, continue on to the next section to complete your problem.
- For the example problem, multiply .
- Here's a refresher on how to multiply matrices.
- Note: Matrix multiplication is not commutative: the order of the factors matters. However, when multiplying a matrix by its inverse, both options will result in the identity matrix. [14] X Research source
-
Review matrix inversion for 3 x 3 matrices or larger. Unless you are learning this process for the first time, save yourself time by using a graphing calculator or math software for larger matrices. If you do need to calculate it by hand, here's a quick summary of one method: [15] X Research source [16] X Research source
- Adjoin the identity matrix I to the right side of your matrix. For example, [B] → [B | I ]. The identity matrix has "1" elements along the main diagonal, and "0" elements in all other positions.
- Perform row operations to reduce the matrix until the left side is in row-echelon form, then continue reducing until the left side is the identity matrix.
- Once the operation is complete, your matrix will be in the form [I | B -1 ]. In other words, the right side will be the inverse of the original matrix.
Advertisement
-
Write both possible equations. In "ordinary math" with scalar quantities, multiplication is commutative; 2 x 6 = 6 x 2. This is not true for matrices, so you may need to solve two problems: [17] X Research source
- [A] * [B] -1 is the solution x for the problem x [B] = [A].
- [B] -1 * [A] is the solution x for the problem [B] x = [A].
- If this is part of an equation, make sure you are performing the same operation on both sides. If [A] = [C], then [B] -1 [A] does not equal [C][B] -1 , because the [B] -1 is on the left side of [A] but the right side of [C]. [18] X Research source
-
Find the dimensions of your answer. The dimensions of the final matrix are the outer dimensions of the two factors. It has the same number of rows as the first matrix, and the same number of columns as the second matrix. [19] X Research source
- Returning to our original example, both and are 2 x 2 matrices so the dimensions of the answer are also 2 x 2.
- To take a more complicated example, if [A] is a 4 x 3 matrix and [B] -1 is a 3 x 3 matrix, then the matrix [A] * [B] -1 has dimensions 4 x 3.
-
Find the value of the first element. Refer to the linked article for full instructions, or refresh your memory with this summary: [20] X Research source
- To find row 1, column 1 of [A][B] -1 , find the dot product of [A] row 1 and [B] -1 column 1. That is, for a 2 x 2 matrix, calculate .
- In our example
, row 1 column 1 of our answer is:
-
Repeat the dot product process for each position in your matrix. For example, the element at position 2,1 is the dot product of [A] row 2 and [B] -1 column 1. Try to complete the example on your own. You should get the following answers: [21] X Research source
- If you need to find the other solution,
Advertisement
Community Q&A
Search
-
QuestionIf matrix AB is given, as well as A, how do I find B?Community AnswerWell, first determine if A is invertible (i.e. has a nonzero determinant). If A is invertible, left multiply AB by A^-1. This produces: IB=B. There really is no such thing as matrix division. If A is singular (noninvertible), then B could be many different things. You could actually solve systems of equations to find possible entries for B. But if A is invertible, B is unique.
-
QuestionHow do I divide a matrix by a scalar number?Community AnswerJust divide each individual number inside the matrix by the scalar number.
-
QuestionWhat is the importance of matrix division?Community AnswerMatrix division is very useful in solving systems of linear equations.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
- You can divide a matrix by a scalar by dividing each element of the matrix by the scalar.
- For example, the matrix divided by 2 =
Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
Warnings
- Calculators are not always 100% accurate when it involves matrix calculations. For instance, if your calculator tells you an element is a very small number (2E -8 , for example), the value is most likely zero. [22] X Research sourceThanks
Advertisement
References
- ↑ https://www.mathsisfun.com/algebra/matrix-introduction.html
- ↑ https://www.mathcentre.ac.uk/resources/Engineering%20maths%20first%20aid%20kit/latexsource%20and%20diagrams/5_6.pdf
- ↑ https://people.richland.edu/james/lecture/m116/matrices/operations.html
- ↑ https://people.richland.edu/james/lecture/m116/matrices/inverses.html
- ↑ https://people.richland.edu/james/lecture/m116/matrices/operations.html
- ↑ https://www.cuemath.com/algebra/inverse-of-a-matrix/
- ↑ https://www.khanacademy.org/math/precalculus/precalc-matrices/determinant-of-2x2-matrix/v/finding-the-determinant-of-a-2x2-matrix
- ↑ https://www.mathsisfun.com/algebra/matrix-determinant.html
- ↑ https://www.purplemath.com/modules/minors.htm
- ↑ https://www.mathwords.com/i/inverse_of_a_matrix.htm
- ↑ https://www.cuemath.com/algebra/inverse-of-a-matrix/
- ↑ https://www.cuemath.com/algebra/inverse-of-a-matrix/
- ↑ https://www.cuemath.com/algebra/inverse-of-a-matrix/
- ↑ https://www.purplemath.com/modules/mtrxinvr2.htm
- ↑ https://www.mathwords.com/i/inverse_of_a_matrix.htm
- ↑ https://people.richland.edu/james/lecture/m116/matrices/inverses.html
- ↑ https://www.mathsisfun.com/algebra/matrix-multiplying.html
- ↑ https://www.purplemath.com/modules/mtrxinvr2.htm
- ↑ https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:multiplying-matrices-by-matrices/a/multiplying-matrices
- ↑ https://www.mathsisfun.com/algebra/matrix-multiplying.html
- ↑ https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:multiplying-matrices-by-matrices/a/multiplying-matrices
- ↑ https://people.richland.edu/james/lecture/m116/matrices/inverses.html
About This Article
Article Summary
X
1. Find the determinant of matrix [B] by calculating ad-bc
, where [ a b
] is the top row and [ c d
] is the bottom row.
Did this summary help you?
Thanks to all authors for creating a page that has been read 503,505 times.
Reader Success Stories
- "Though I am an engineer, it's been quite a while since I had practiced this stuff. So just a quick reminder for manual calculation and to get back to the philosophy behind matrices, I came to this website and it helped me to get it so quickly. Thank you for your help. " ..." more
Advertisement