Why is matrix multiplication not commutative?

Quick Overview

Asks why the order of factors matters in matrix multiplication. Tests whether you can explain what a matrix product does, reason about the shapes of the factors, check a concrete pair of matrices, and name the cases where matrices do commute.

Why is matrix multiplication not commutative?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

Why is matrix multiplication not commutative? ```hint Treat matrices as transformations Think of each matrix as a transformation of the plane and try a concrete pair, such as a 90-degree rotation and a stretch along one axis, applied to a single vector in both orders. ``` ### What a Strong Answer Covers - A geometric or functional explanation of what a matrix product does. - What the shapes of the factors allow. - A concrete pair of square matrices whose two products differ. - The special cases in which matrices do commute. ### Follow-up Questions - Matrix multiplication is associative but not commutative. Why does associativity still hold? - Expand $(A + B)^2$ for square matrices. Which familiar identity from scalar algebra fails, and why? - Why does $\operatorname{tr}(AB) = \operatorname{tr}(BA)$ hold even when $AB\neq BA$? - When do two diagonalizable matrices commute?

Overview: Asks why the order of factors matters in matrix multiplication. Tests whether you can explain what a matrix product does, reason about the shapes of the factors, check a concrete pair of matrices, and name the cases where matrices do commute.

General logo
General
Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

Why is matrix multiplication not commutative?

What a Strong Answer Covers Guidance

  • A geometric or functional explanation of what a matrix product does.
  • What the shapes of the factors allow.
  • A concrete pair of square matrices whose two products differ.
  • The special cases in which matrices do commute.

Follow-up Questions Guidance

  • Matrix multiplication is associative but not commutative. Why does associativity still hold?
  • Expand (A+B)2(A + B)^2 for square matrices. Which familiar identity from scalar algebra fails, and why?
  • Why does tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA) hold even when AB≠BAAB\neq BA ?
  • When do two diagonalizable matrices commute?