Explain why matrix multiplication is not commutative.

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 4K views
xsgx
Messages
29
Reaction score
0
The title says it all.

Commutative* sorry
Mod note: fixed title.
 
Last edited by a moderator:
Physics news on Phys.org
Let A = [aij] and B = [ajk] where j ≠ k, then AB is defined, but BA is not.

But consider the case where i = j = k, so that A = [ai] and B = [ai] are square matrices.

Then, take for example i = 2 and calculate AB and BA. What do you find?

Generally, AB ≠ BA, for all values of i. It just stems from the definition of matrix multiplication.
 
Matrix multiplication is defined only for certain rectangular matrices A and B. The matrix product AB is defined only if the number of columns in A is equal to the number of rows in B. Assuming this condition is met, the product AB is defined, but the product BA may not be.
 
h6ss and SteamKing,
Please hold off further comments until I can ascertain whether this is a homework question. If it is, it was posted in the wrong section with no efforts shown.