标量乘法:乘法的结合性

Before this, know与标量相乘

Read · 1 min

Let AA be a matrix of size m×nm\times n. Let pp and qq be scalars. The associative property of scalar multiplication says that p(qA)=(pq)Ap(qA)=(pq)A. Basically, it doesn't matter what order you multiply the scalars in.

Example

Let p=2p=2 and q=3q=3 and A=[5970]A=\begin{bmatrix}5&9\\7&0\end{bmatrix}.

Then, p(qA)=2⋅(3⋅[5970])=2⋅[1527210]=[3054420]\begin{align} p(qA)&=2\cdot\left(3\cdot\begin{bmatrix}5&9\\7&0\end{bmatrix}\right)\\ &=2\cdot\begin{bmatrix}15&27\\21&0\end{bmatrix}\\ &=\begin{bmatrix}30&54\\42&0\end{bmatrix} \end{align}

And, (pq)A=(2⋅3)⋅[5970]=6⋅[5970]=[3054420]\begin{align} (pq)A&=(2\cdot3)\cdot\begin{bmatrix}5&9\\7&0\end{bmatrix}\\ &=6\cdot\begin{bmatrix}5&9\\7&0\end{bmatrix}\\ &=\begin{bmatrix}30&54\\42&0\end{bmatrix} \end{align}

Video · + 1 min read

(Video) The Associative Property of Matrix Multiplication

by MathTheBeautiful

This video by MathTheBeautiful describes the associate property, or the associativity, of matrix multiplication.

Summary

The Associative Property for matrices is very similar to the Associative Property you learned earlier with regular numbers.

The Associative Property tells us that when we have three items, we can place the parentheses in different ways. The order of grouping does not change the result.

Because of this,

13⋅24⋅4=13⋅(24⋅4)=(13⋅24)⋅413\cdot24\cdot4 = 13\cdot(24\cdot4) = (13\cdot24)\cdot4

The Associative Property allows us to multiply the items that are easiest to multiply. We can apply this property to matrices.

Saw we have the following expression:

[148279][487946][121371122]\begin{bmatrix} 1&4&8 \\ 2&7&9 \\ \end{bmatrix} \begin{bmatrix} 4&8 \\ 7&9 \\ 4&6\\ \end{bmatrix} \begin{bmatrix} 1&2&1&3 \\ 7&11&2&2 \\ \end{bmatrix}

We can see that the first matrix is 2×32 \times 3, the second matrix is 3×23 \times 2, and the third matrix is 2×42 \times 4.

To multiply these three matrices, we need to check whether the middle result will work with the last matrix.

If we multiply the first two matrices, we get a 2×22×2 matrix. This matrix can be multiplied by the third matrix, which is 2×42×4.

After multiplying them, the final result will be a 2×42×4 matrix. Matrix multiplication works only when the inner dimensions match. Since the first result is 2×22×2 and the next matrix is 2×42×4, the sizes line up, so the multiplication is allowed.

Additionally, if we multiplied the second and third matrices together, we would end up with a 3×43 \times 4 matrix. This intermediate matrix would be multiplied by the first matrix, which is a 2×32 \times 3 matrix, and that is also compatible. The result would be a 2×42 \times 4 matrix.

So, no matter which order we multiply the matrices, the middle matrix will still work with the last one. In both cases, the final result will be a 2×42×4 matrix.

The next question is whether the result itself is the same each time. The answer is yes.

This happens because of the Associative Property.

Illustrated · 1 min

Scalar Multiplication for Matrices: the Associate Property

It may be helpful to review the Associative Property before diving into this lesson! That same concept will be applied here, to matrices.

In math, a matrix is a grid of numbers arranged in rows and columns. Sometimes, we multiply a matrix by a scalar, which is just a regular number. When you multiply a matrix by a scalar, you multiply every entry in the matrix by that number.

Scalar Multiplication for Matrices: Associative Prop.
(p*q)[matrix: a b c d] = p*(q*[matrix: a b c d])
so: when we multiply scalars, order doesn't matter!

Image source: by Anusha Rahman

When we multiply a matrix by a scalar value, we can apply the associative property, which states that the order of the scalars don't matter.

The associative property of scalar multiplication tells us that it doesn’t matter which scalar you multiply first: the result is the same.

###Example

Consider the following equation:

[1543]\begin{bmatrix} 1&5 \\ 4&3 \\ \end{bmatrix} ⋅4\cdot 4 ⋅2\cdot 2

This matrix can also be written as:

[1543]\begin{bmatrix} 1&5 \\ 4&3 \\ \end{bmatrix} ⋅2\cdot 2 ⋅4\cdot 4

And it can also be written as:

[1543]\begin{bmatrix} 1&5 \\ 4&3 \\ \end{bmatrix} ⋅(4⋅2)\cdot (4 \cdot 2)

If you use your nifty scalar multiplication skills, you will find that all of these matrices are equal to each other!

Looking Further

This rule helps make matrix math easier and more predictable when working with scalar multiplication.

In the next lesson, you will learn about the multiplicative property of zero for matrices.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems