Attic › Mathematics › Arthur Cayley

Matrix multiplication does not give the same answer if you change the order of the matrices

About Matrix multiplication

In an 1858 paper, Cayley invented the algebra of matrices by treating a grid of numbers as a single mathematical quantity. He showed that you can add, subtract, and multiply these grids just like ordinary numbers, except that their multiplication is not commutative.

A matrix is a rectangular array of numbers arranged in rows and columns. Before Cayley, mathematicians used these arrays only as a shorthand way to write a system of linear equations—equations such as 2x + 3y = 7, where variables are multiplied only by constant numbers. Mathematicians frequently studied the determinant of a square matrix, which is a single number calculated from the grid that tells whether the system of equations has a unique solution. Sylvester gave the array the name "matrix" (from the Latin word for "womb") because he saw it as a container that gives birth to determinants.

Cayley realized that the matrix itself is a mathematical object in its own right. He used a single capital letter, such as M, to represent a whole grid of numbers, and he worked out the rules for calculating with them.

To see why matrix multiplication is not commutative, consider what a matrix does. A matrix represents a linear transformation—an operation that moves points in space, such as a rotation, a reflection, or a stretch. Multiplying a matrix A by a matrix B means creating a single new matrix, AB, that has the same effect as doing transformation B first and transformation A second.

If matrix B stretches a square horizontally, and matrix A rotates it by 90 degrees, doing B and then A gives a different result from doing A and then B. Because the order of the operations matters, the product AB does not equal the product BA. However, matrix multiplication is still associative: (AB)C = A(BC).

In the same 1858 paper, Cayley discovered a fundamental rule known as the Cayley–Hamilton theorem. Every square matrix has an algebraic equation associated with it, called its characteristic equation, which is normally solved for an ordinary number. Cayley showed that if you substitute the matrix itself into its own characteristic equation, the result is always a matrix completely filled with zeros. He verified this rule for 2 × 2 and 3 × 3 matrices. Decades after Cayley's death, physicists found that his non-commutative matrix algebra was the exact mathematical language needed to describe quantum mechanics.

Fact-checked against Arthur Cayley on Wikipedia

Part of the Mathematics syllabus: Linear Algebra and Infinite Dimensions

See it on the timeline of Linear Algebra and Infinite Dimensions