Definition. The product AB is defined only when the number of columns of A equals the number of rows of B. If A=[aik]m×n and B=[bkj]n×p, then AB=[cij]m×p with
cij=k=1∑naikbkj=ai1b1j+ai2b2j+⋯+ainbnj
— the entry at (i,j) is row i of A times column j of B: multiply across the row and down the column, then add.
Order bookkeeping:(m×n)(n×p)→m×p — the inner numbers must match and cancel; the outer numbers survive.
Worked product.AB=(1324)(2103)=(1⋅2+2⋅13⋅2+4⋅11⋅0+2⋅33⋅0+4⋅3)=(410612)
Surprise 1: AB=BA
With the same matrices in the other order:
BA=(2103)(1324)=(210414)=AB
Matrix multiplication is not commutative in general. Worse, BA may not even exist: if A is 2×3 and B is 3×4, then AB is 2×4 but BA pairs (3×4)(2×3) — inner numbers 4 and 2 clash. Both products exist and have the same order only when A and B are square of the same order — and even then they usually differ.
Surprise 2: zero divisors
For numbers, ab=0 forces a=0 or b=0. For matrices:
(00−12)(3050)=(0000)
— the product of two nonzero matrices can be the zero matrix. Consequently there is no cancellation law: AB=AC does not imply B=C.
Properties That Do Survive
The good news
For matrices with compatible orders:
Property
Statement
associativity
(AB)C=A(BC)
distributivity (left)
A(B+C)=AB+AC
distributivity (right)
(A+B)C=AC+BC
multiplicative identity
AI=IA=A (identity of the appropriate order)
scalars slide through
k(AB)=(kA)B=A(kB)
Associativity is what makes powers unambiguous: A3=AAA needs no brackets. And because multiplication does not commute, left and right distributivity are separate facts — expand (A+B)2 carefully:
(A+B)2=A2+AB+BA+B2(NOT A2+2AB+B2 unless AB=BA)
The same caution kills the familiar identities: (A+B)(A−B)=A2−AB+BA−B2=A2−B2 in general.
Row and column vectors as products
A 1×n row times an n×1 column is a 1×1 matrix — essentially a number:
(1−23)231=[1⋅2−2⋅3+3⋅1]=[−1]
In the other order, (n×1)(1×n) blows up into an n×n matrix — a dramatic illustration of how much the order matters.
Multiplication as aggregation (the word problems)
A bookshop holds 120 chemistry, 96 physics and 120 economics books, selling at 80, 60 and 40 rupees. The total revenue is the product
(12096120)806040=[9600+5760+4800]=[20160]
i.e. ₹ 20160 — quantities-row times prices-column. Every cost/revenue/audience word problem in the exercises is this pattern, sometimes with several rows (several shops) or several columns (several price lists) at once.
Common mistakes to avoid
Mistake 1 — multiplying entrywise.(AB)ij is a sum of products along row i and column j, never aijbij.
Mistake 2 — assuming AB=BA. Never assume it; when a problem says the matrices commute, that is a special hypothesis to be used.
Mistake 3 — expanding (A+B)2 with the binomial formula. Keep AB and BA separate unless told they are equal.
Mistake 4 — cancelling matrices. From AB=AC you may NOT conclude B=C (no division; zero divisors exist).
Mistake 5 — order bookkeeping. Before computing anything, check conformability and write down the product's order — half the MCQs are settled by the orders alone.
Solved Examples
Example 1 — A full 2×2 product, both orders
For A=(1324) and B=(2103), compute AB and BA and compare.
Answer: all but BA are defined, with the orders listed — order bookkeeping first, arithmetic second.
Example 5 — Verifying associativity on numbers
For A=(1012), B=(2101), C=(1101), verify (AB)C=A(BC).
Step 1 — left grouping:AB=(3212), then (AB)C=(3+12+212)=(4412).
Step 2 — right grouping:BC=(2201), then A(BC)=(2+2412)=(4412).
Answer: both groupings agree — associativity in action (it holds always; a numerical verification is how boards ask it).
Example 6 — The identity in action
Show that AI=IA=A for A=(acbd) and I=(1001).
Step 1 — AI: row-by-column gives (acbd) back (each row of A picks out the matching column of I).
Step 2 — IA: likewise returns A.
Answer:I is the multiplicative identity — the one matrix that commutes with everything of its order.
Example 7 — A revenue product
A bookshop has 120 chemistry, 96 physics and 120 economics books, priced at 80, 60 and 40 rupees respectively. Use a matrix product to find the total revenue if all are sold.
Step 1 — quantities row times prices column:(12096120)806040=[9600+5760+4800]=[20160]
Answer: ₹ 20160. The row-times-column sum is the natural "quantity times price, added up" — which is why matrix multiplication is defined the way it is.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.