Return to the Purplemath home page

 


powered by FreeFind

 

Print-friendly page

 

 

Matrix Multiplication Defined (page 2 of 3)

Just as with adding matrices, the sizes of the matrices matter when we are multiplying. For matrix multiplication to work, the columns of the second matrix have to have the same number of entries as the rows of the first matrix.

    AB =

    [[ 1  0  -2 ][ 0  3  -1 ]] × [[ 0  3 ][ -2  -1 ][ 0  4 ]]

If, using the above matrices, B had had only two rows, its columns would have been too short to multiply against the rows of A. Then "AB" would not have existed. Likewise, if B had had, say, four rows, or alternatively if A had had two or four columns, then AB would not have existed, because A and B would not have been the right sizes.

In other words, for AB to exist (that is, for the very process of matrix multiplication to be able to function), A must have the same number of columns as B has rows; looking at the matrices, the rows of A must be the same length as the columns of B.

You can use this fact to check quickly whether a given multiplication is defined. Write the product in terms of the matrix dimensions. In the case of the above problem, A is 2×3 and B is 3×2, so AB is (2×3)(3×2). The middle values match:

    (2×3)(3×2): the inner dimensions match, so the product is defined

...so the multiplication is defined. By the way, you will recall that AB, the product matrix, was 2×2. You can also see this on the dimensions:

    (2×3)(3×2): the outer dimensions determine that the product will be 2×2

Using this, you can see that BA ;must be a different matrix from AB, because:

    (3×2)(2×3): the inner dimensions match; the outer dimensions indicate a 3×3 product

The product BA is defined (that is, we can do the multiplication), but the product, when the matrices are multiplied in this order, will be 3×3, not 2×2.

  • Given the following matrices, find the product BA.
    • A = [[ 1  0  -2 ][ 0  3  -1 ]] ,  B = [[ 0  3 ][ -2  -1 ][ 0  4 ]]

    The multiplication works the same way as the previous problem, going across the rows and down the columns. I won't try drawing my hands again, but you can see the computations in the colors:   Copyright © Elizabeth Stapel 2006-2008 All Rights Reserved

      Demonstrates, using color, the process of matrix multiplication.

    Then the answer is:

      BA = [[ 0  9  3 ][ -2  -3  5 ][ 0  12  -4 ]]


Matrix multiplication is probably the first time that the Commutative Property has ever been an issue. Remember when they made a big deal about "ab = ba" or "5×6 = 6×5"? That "rule" probably seemed fairly stupid at the time, because you already knew that order didn't matter in multiplication. Introducing you to those rules back then was probably kind of pointless, since order didn't matter for anything you were multiplying then. Well, now the Law of Commutativity does matter, because order does matter for matrix multiplication. You must remember that, for matrices, AB almost certainly does not equal BA.

<< Previous  Top  |  1 | 2 | 3  |  Return to Index  Next >>

Cite this article as:

Stapel, Elizabeth. "Matrix Multiplication Defined." Purplemath. Available from
    http://www.purplemath.com/modules/mtrxmult2.htm. Accessed
 

 

Lessons index

Lessons CD




Purplemath:
  Linking to this site
  Printing pages
  Donating
  School licensing


Reviews of
Internet Sites:
   Free Help
   Practice
   Et Cetera

The "Homework
   Guidelines"

Study Skills Survey

Tutoring ($$)


This lesson may be printed out for your personal use.

Content copyright protected by Copyscape website plagiarism search
  

  Copyright © 2006-2008  Elizabeth Stapel   |   About   |   Terms of Use

 

 Feedback   |   Error?