A = (1 2; 3 4), B = (5 6; 7 8)
(AB)₁₁
19.
The entry in row , column of the product is the sum : row of multiplied term by term with column of . The product exists only when the number of columns of equals the number of rows of .
This page is easier if you are comfortable with:
Each entry of the product is a scalar product of a row of the first matrix with a column of the second. An matrix times an matrix gives an matrix.
Matrix multiplication is not commutative: and are usually different, and one may exist when the other does not. This is why the order matters in a composite transformation, in the inverse of a product and in the transpose of a product.
Special cases are worth knowing: multiplying by the identity leaves a matrix unchanged, and the determinant of a product is the product of the determinants. The related trace of a product does not depend on the order.
Matrix multiplication combines two tables of numbers row by row and column by column. It represents doing one linear operation after another.
The two products 1 × 5 and 2 × 7 add up to the entry 19.
These examples are worked by hand, step by step, so you can compare your own working.
Find for , .
Find the product of and .
Show that for , .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
(AB)₁₁
19.
(AB)₁₂
22.
(AB)₂₁
43.
(AB)₂₂
50.
(AB)ᵢⱼ = Σₖ aᵢₖbₖⱼ: row i of A times column j of B. The product exists only if A has as many columns as B has rows.
Row 1 · column 1.
Row 1 · column 2.
Row 2 · column 1.
Row 2 · column 2.
a₁₁b₁₁ ✗
row · column ✓
Matrix product.
column · row ✗
row of A · column of B ✓
Order.
equal ✗
usually not ✓
Order.
any ✗
columns of A = rows of B ✓
Existence.
Try each one on paper, then open the answer. Use the solver above to see the full working.
2
8
7
19
6
15
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
Multiply row i of A by column j of B and add.
When A has as many columns as B has rows.
Usually not.
rows of A by columns of B.
composite transformation.
determinant of a product.
More in Vectors and matrices and the formula sheets.