Main content

### Course: Precalculus > Unit 7

Lesson 11: Properties of matrix multiplication- Defined matrix operations
- Matrix multiplication dimensions
- Intro to identity matrix
- Intro to identity matrices
- Dimensions of identity matrix
- Is matrix multiplication commutative?
- Associative property of matrix multiplication
- Zero matrix & matrix multiplication
- Properties of matrix multiplication
- Using properties of matrix operations
- Using identity & zero matrices

© 2024 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Properties of matrix multiplication

Learn about the properties of matrix multiplication (like the distributive property) and how they relate to real number multiplication.

## Properties of matrix multiplication

In this table, $A$ , $B$ , and $C$ are $n\times n$ matrices, $I$ is the $n\times n$ identity matrix, and $O$ is the $n\times n$ zero matrix

Property | Example |
---|---|

The commutative property of multiplication | |

Associative property of multiplication | |

Distributive properties | |

Multiplicative identity property | |

Multiplicative property of zero | |

Dimension property | The product of an |

Let's take a look at matrix multiplication and explore these properties.

#### What you should be familiar with before taking this lesson

In

**matrix multiplication**, each entry in the product matrix is the dot product of a row in the first matrix and a column in the second matrix.If this is new to you, we recommend that you check out our matrix multiplication article.

Here are other relevant articles:

## Matrix multiplication is not commutative

One of the biggest differences between real number multiplication and matrix multiplication is that matrix multiplication is

**not commutative**.In other words, in matrix multiplication, the order in which two matrices are multiplied matters!

### See for yourselves!

Let's take a look at a concrete example with the following matrices.

Notice that the products are not the same! Since $AB\ne BA$ , matrix multiplication is not commutative!

Other than this major difference, however, the properties of matrix multiplication are mostly similar to the properties of real number multiplication.

## Associative property of multiplication: $(AB)C=A(BC)$

This property states that you can change the grouping surrounding matrix multiplication.

For example, you can multiply matrix $A$ by matrix $B$ , and then multiply the result by matrix $C$ , $B$ by matrix $C$ , and then multiply the result by matrix $A$ .

**or**you can multiply matrixWhen using this property, be sure to pay attention to the order in which the matrices are multiplied, since we know that the commutative property does not hold for matrix multiplication!

## Distributive properties

We can distribute matrices in much the same way we distribute real numbers.

If a matrix $A$ is distributed from the left side, be sure that each product in the resulting sum has $A$ on the left! Similarly, if a matrix $A$ is distributed from the right side, be sure that each product in the resulting sum has $A$ on the right!

## Multiplicative identity property

The $n\times n$ ${I}_{n}$ , is a matrix with $n$ rows and $n$ columns. The entries on the diagonal from the upper left to the bottom right are all $1$ 's, and all other entries are $0$ .

**identity matrix**, denotedFor example:

The multiplicative identity property states that the product of any $n\times n$ matrix $A$ and ${I}_{n}$ is always $A$ , regardless of the order in which the multiplication was performed. In other words, $A\cdot I=I\cdot A=A$ .

The role that the $n\times n$ identity matrix plays in matrix multiplication is similar to the role that the number $1$ plays in the real number system. If $a$ is a real number, then we know that $a\cdot 1=a$ and $1\cdot a=a$ .

## Multiplicative property of zero

A $0$ . For example, the $3\times 3$ zero matrix is ${O}_{3\times 3}=\left[\begin{array}{rrr}0& 0& 0\\ 0& 0& 0\\ 0& 0& 0\end{array}\right]$ .

**zero matrix**is a matrix in which all of the entries areA zero matrix is indicated by $O$ , and a subscript can be added to indicate the dimensions of the matrix if necessary.

The multiplicative property of zero states that the product of any $n\times n$ matrix and the $n\times n$ zero matrix is the $n\times n$ zero matrix. In other words, $A\cdot O=O\cdot A=O$ .

The role that the $n\times n$ zero matrix plays in matrix multiplication is similar to the role that the number $0$ plays in the real number system. If $a$ is a real number, then we know that $a\cdot 0=0$ and $0\cdot a=0$ .

## The dimension property

One property that is unique to matrices is the dimension property. This property has two parts:

- The product of two matrices will be defined if the number of columns in the first matrix is equal to the number of rows in the second matrix.
- If the product is defined, the resulting matrix will have the same number of rows as the first matrix and the same number of columns as the second matrix.

For example, if $A$ is a ${3}\times {2}$ matrix and if $B$ is a ${2}\times {4}$ matrix, the dimension property tells us:

- The product
is defined.$AB$ will be a$AB$ matrix.${3}\times {4}$

## Check your understanding

Now that you are familiar with matrix multiplication and its properties, let's see if you can use them to determine equivalent matrix expressions.

For the problems below, let $A$ , $B$ , and $C$ be $2\times 2$ matrices and let $O$ be the $2\times 2$ zero matrix.

## Want to join the conversation?

- The last exercise (exercise 4), says that 0(A+B) and (A+B)0 give us 0.

But, both final results (the two 0) won't have the same dimensions right?

Because it is not commutative, so: 0(A+B) is not equal to (A+B)0

Am I right? I hope my question was clear(33 votes)- It was assumed that all A, B and 0 are nxn, therefore 0(A+B)=(A+B)0.(47 votes)

- Hi, everyone.

In the second challenge question, which is given as follows:

2) Which of the following expressions are equivalent to A(B+C)?

Select all that apply.

Selecting i): AB+AC, & ii):A(C+B) will mark the answers right, but selecting " (B+C)A " is wrong? I think it should be right as well, that is, there are overall three answers.

My logic is this that, first we should add 'B' and 'C' and then multiply it by A. We did so in A(C+B), since addition is commutative, ( C+B=B+C ).

So, therefore A(C+B)=(B+C)A, right? I often do this in my Maths book:

(x+a)(x+b)

=x(x+b)+a(x+b)

=x^2+xb+xa+ab

=x^2+(b+a)x+ab

Thanks for reading and you time.(6 votes)- We are multiplying Matrices, not scalars.

Matrix multiplication is NOT commutative. If A and B are matrices such that AB and BA are defined (can be multiplied) AB≠BA.

Check the very first property listed here:

https://www.khanacademy.org/math/precalculus/precalc-matrices/properties-of-matrix-multiplication/a/properties-of-matrix-multiplication(20 votes)

- I still don't get the whole point in making a matrix full of zeros. Isn't it it redundant? Shouldn't the best and easiest way to multiply a matrix to get 0, be to just use the scalar quantity 0 rather than a matrix full of zeros?(4 votes)
- Using the Zero matrix has a lot of use in computing and allows us to compare matrices to algabraic rules(2 votes)

- can a 4x5 multiply a 6x2(4 votes)
- No, and the reason for that is you are going to have an
**undefined**matrix where you can't perform multiplication, such as**Matrix 4 x 5**by**Matrix 6 x 2**is**undefined**. So, how can we have a**defined matrix**? Well,**a matrix**is**defined**when**the number of columns**of the**first matrix**is equal to**the number of rows**of the**second matrix**. For example, let**A**,**B**be two matrices. Find out**C**=**AB**.

Solution:**A**=

| 4 0 9|,**B**=

|-1 14 |

| 2 -2 |

|-8 5 |

Now, Matrix A=**1 x 3**and B=**3 x 2**, which means that we can go ahead a apply multiplication to AB to get C since Matrix C is defined by having the number of Columns in A equal to the number of Rows in B.(1 vote)

- in the following question which is

Which of the following expressions are equivalent to I2 (AB)

Option

AB and (AB) I2 were correct i get why AB is correct, however, i m a bit doubtful about the second option for instance if I 2 is a 2 * 2 matrix and A is 2*3 while B is 3*4 well then AB would be 2*4 so I2 ( AB) would be defined but (AB) I2 wouldnt be possible. BTW i dont know what I2 really means but what i have understood after goin through the lecture is that I 2 means identity matrix with 2 rows and 2 columns(2 votes)- Above all the questions there is a note stating that
**For the problems below, let A, B, and C be 2×2 matrices and let O be the 2×2 zero matrix**(2 votes)

- what is the union and intersection of two matrices?(1 vote)
- Union and intersection are defined on sets, not on matrices.(2 votes)

- in Q2 of "check your understanding it says:
*Which of the following expressions are equivalent to A(B+C)?*

Why is (B+C)A wrong?(0 votes)- Because it is matrix multipliation and you are multiplying rows with columns. Because of that, changing the order changes which numbers get multiplied. Try it out yourself. Take two 2x2 matrices like:
`[ 1 2 ] [ 5 6 ]`

[ 3 4 ] [ 7 8 ]

And do the dot product, then swap them and do the dot product.(4 votes)

- In question 2(d), is (B + C)A wrong because it would end up being BA + CA? I'm used to being able to switch around the order of scalars. The side on which it A is matters even when the terms its multiplying into are in parentheses?(1 vote)
- Yes, it will become
`BA + CA`

. Remember,**matrix multiplication is not commutative**.(1 vote)

- I remember when a real number times its inverse,will get 1.How to find inverse of a matrix?(1 vote)
- Hello! This is Akshat of Class 9! Check this link - https://www.khanacademy.org/math/precalculus/precalc-matrices/intro-to-matrix-inverses/v/inverse-matrix-part-1(1 vote)

- How is the distributive property proved for matrices?(1 vote)
- create a general matrix A, B and C.

Using the definition of matrix multiplication you will get A(B+C) = AB + AC.

You will need to make use of the lemma, a(b+c) = ab + ac.(1 vote)