amber_keller
amber_keller 5d ago โ€ข 0 views

Why matrix multiplication is not commutative: Explained for Pre-Calculus.

Hey everyone! ๐Ÿ‘‹ I'm a pre-calculus student struggling to understand why matrix multiplication isn't commutative. Like, why does $A \cdot B$ not always equal $B \cdot A$? It's confusing! ๐Ÿคฏ Can someone explain it in a way that makes sense?
๐Ÿงฎ Mathematics

1 Answers

โœ… Best Answer
User Avatar
timothy_crawford Dec 27, 2025

๐Ÿ“š Introduction to Matrix Multiplication and Commutativity

In the world of numbers, $2 \times 3$ is the same as $3 \times 2$. This property is called commutativity. But when we venture into the realm of matrices, things get a bit different. Matrix multiplication, unlike regular multiplication, is generally not commutative. This means that for two matrices $A$ and $B$, $AB$ is usually not equal to $BA$. Let's explore why!

๐Ÿ“œ A Little History

The concept of matrices emerged in the 19th century, largely thanks to mathematicians like Arthur Cayley. Matrices were developed to simplify and solve systems of linear equations, and their non-commutative nature became apparent as the rules of matrix algebra were established. Understanding this non-commutativity is crucial for various applications in physics, computer graphics, and more!

๐Ÿค” Why Isn't Matrix Multiplication Commutative? Key Principles

  • ๐Ÿ“ Dimensionality Mismatch: Matrix multiplication is only defined when the number of columns in the first matrix equals the number of rows in the second matrix. If $A$ is an $m \times n$ matrix and $B$ is a $p \times q$ matrix, then $AB$ is defined only if $n = p$, and $BA$ is defined only if $q = m$. Even if both $AB$ and $BA$ are defined, they might have different dimensions, making them unequal.
  • ๐Ÿ”ข Element-wise Calculation Differences: Even when $AB$ and $BA$ are both defined and have the same dimensions, the individual elements calculated in each resulting matrix are generally different. The element in the $i$-th row and $j$-th column of $AB$ is calculated by taking the dot product of the $i$-th row of $A$ and the $j$-th column of $B$. This process is different when calculating the elements of $BA$.
  • ๐Ÿ”— Order Matters: Matrix multiplication represents a linear transformation. The order in which you apply these transformations matters. Think of rotating an object and then scaling it versus scaling it and then rotating it; the result will probably be different.

๐Ÿงฎ Concrete Examples to Illustrate Non-Commutativity

Let's look at some real examples to solidify the concept.

Example 1: Consider the following matrices:

$A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ and $B = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$

Then, $AB$ and $BA$ are calculated as follows:

$AB = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ 4 & 3 \end{bmatrix}$

$BA = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 3 & 4 \\ 1 & 2 \end{bmatrix}$

As you can see, $AB \neq BA$.

Example 2: Now let's consider two matrices where the dimensions allow for multiplication in only one order:

$A = \begin{bmatrix} 1 & 2 \end{bmatrix}$ and $B = \begin{bmatrix} 3 \\ 4 \end{bmatrix}$

Then, $AB$ and $BA$ are calculated as follows:

$AB = \begin{bmatrix} 1 & 2 \end{bmatrix} \begin{bmatrix} 3 \\ 4 \end{bmatrix} = \begin{bmatrix} 11 \end{bmatrix}$

$BA = \begin{bmatrix} 3 \\ 4 \end{bmatrix} \begin{bmatrix} 1 & 2 \end{bmatrix} = \begin{bmatrix} 3 & 6 \\ 4 & 8 \end{bmatrix}$

Here, $AB$ is a $1 \times 1$ matrix, while $BA$ is a $2 \times 2$ matrix. They are clearly not equal!

๐ŸŒ Real-World Applications and Examples

  • ๐ŸŽฎ Computer Graphics: In 3D graphics, transformations like rotations, scaling, and translations are represented by matrices. Applying these transformations in different orders can lead to drastically different visual outcomes. For instance, rotating an object before translating it yields a different final position compared to translating it first and then rotating it.
  • ๐Ÿค– Robotics: Robots use matrix multiplication to calculate the movements of their arms and joints. The order of these movements is crucial; performing them in the wrong sequence can cause the robot to malfunction or fail to reach its intended target.
  • ๐Ÿ“ˆ Economics: In economics, matrices are used to model the relationships between different sectors of an economy. The order in which these relationships are analyzed can affect the conclusions drawn about the overall economic system.

โœ… Conclusion

In summary, matrix multiplication is not commutative because the order of multiplication affects both the dimensionality and the element-wise calculations of the resulting matrices. This non-commutative property is fundamental to many applications in mathematics, science, and engineering. Understanding this principle is essential for anyone working with matrices, whether in pre-calculus or advanced fields. Keep exploring and experimenting with matrices to gain a deeper understanding!

Join the discussion

Please log in to post your answer.

Log In

Earn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! ๐Ÿš€