PDF download Download Article PDF download 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] These calculations are commonly used to solve systems of linear equations. [2]

Part 1
Part 1 of 3:

Confirming That "Division" is Possible

PDF download Download Article
  1. " Technically, there is no such thing as matrix division. Dividing a matrix by another matrix is an undefined function. [3] 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.
  2. 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]
    • 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
  3. To multiply two matrices together, the number of columns in the first matrix must equal the number of rows in the second matrix. [5] 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.
  4. 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]
    • 2 x 2 matrix: The determinant of the matrix is ad - bc. [7] 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.
  5. If your matrix is 3 x 3 or larger, finding the determinant takes a bit more work: [8]
    • 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] For example, to find the determinant of a 4 x 4 matrix, you need to find the determinants of four 3 x 3 matrices.
  6. 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.
  7. Advertisement
Part 2
Part 2 of 3:

Inverting the Matrix

PDF download Download Article
  1. If your matrix is 2 x 2, you can use a shortcut to make this calculation much easier. [10] 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.
  2. In other words, multiply the top right and bottom left elements by -1: [11]
  3. 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]
    • In our example, the determinant is 13. The reciprocal of this is .
  4. 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]

    • =
  5. 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]
  6. 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] [16]
    • 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.
  7. Advertisement
Part 3
Part 3 of 3:

Multiplying Matrices to Complete the Problem

PDF download Download Article
  1. 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]
    • [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]
  2. 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]
    • 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.
  3. Refer to the linked article for full instructions, or refresh your memory with this summary: [20]
    • 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:


  4. 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]
    • If you need to find the other solution,
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    If matrix AB is given, as well as A, how do I find B?
    Community Answer
    Well, 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.
  • Question
    How do I divide a matrix by a scalar number?
    Community Answer
    Just divide each individual number inside the matrix by the scalar number.
  • Question
    What is the importance of matrix division?
    Community Answer
    Matrix division is very useful in solving systems of linear equations.
Ask a Question
      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 =
      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]
      Advertisement

      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 500,937 times.

      Reader Success Stories

      • Tahir Khan

        May 28, 2017

        "Though I am an engineer, it's been quite a while since I had practiced this stuff. So just a quick reminder ..." more
        Rated this article:
      Share your story

      Did this article help you?

      Advertisement