Matrix Multiplication Formula
Matrix multiplication is multiplying matrices A (m × n) and B (n × p) by taking dot products of rows of A with columns of B to produce an m × p result.
The Formula
Ask yourself: Does the column count of equal the row count of , and am I dotting rows with columns?
Quick example
Notation
What this formula means
Multiplying matrices () and () by taking dot products of rows of with columns of to produce an result.
Matrix multiplication works like a shop checkout: each row of is one customer's basket, each column of is a price list, and each entry of is one basket rung up on one price list. The basket and the price list must cover the same items, which is the inner-size rule. The picture does not explain why differs from ; swapping the order changes which matrix plays the baskets.
Formal view
Worked examples
Example 1
mediumShow solution
Answer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
hardExample 3
challengeCommon mistakes
- Multiplying when inner dimensions disagree — is undefined; the inner numbers must match.
- Assuming — matrix multiplication is generally non-commutative, so order matters.
- Multiplying entrywise — each result entry is a row-by-column SUM of products, not a single product.
Why this formula matters
Matrix multiplication packs many separate sums of products into one operation: order quantities times unit prices give every customer's bill at once, and a whole system of equations becomes the single statement . Rotations and stretches combine by multiplying their matrices. Treating it like ordinary multiplication causes the classic errors: multiplying entry by entry, multiplying mismatched sizes, or assuming .
Frequently asked questions
What is the Matrix Multiplication formula?
Multiplying matrices () and () by taking dot products of rows of with columns of to produce an result.
How do you use the Matrix Multiplication formula?
Use it when one table's columns line up with another table's rows: quantities times prices, or a coefficient matrix times a column of unknowns as in . It also composes transformations: doing and then is the single matrix . Check the inner dimensions first. If the matrices have the same size and you want totals or differences position by position, add or subtract instead; if one factor is a single number, it is a scalar multiple.
What do the symbols mean in the Matrix Multiplication formula?
means multiply by (row-by-column). Dimensions: . The inner dimensions must match.
Why is the Matrix Multiplication formula important in Math?
Matrix multiplication packs many separate sums of products into one operation: order quantities times unit prices give every customer's bill at once, and a whole system of equations becomes the single statement . Rotations and stretches combine by multiplying their matrices. Treating it like ordinary multiplication causes the classic errors: multiplying entry by entry, multiplying mismatched sizes, or assuming .
What do students get wrong about Matrix Multiplication?
The procedure for matrix multiplication is the easy part; the trap is multiplying when inner dimensions disagree. Asking "Does the column count of equal the row count of , and am I dotting rows with columns?" first is what keeps a correct-looking calculation from being attached to the wrong concept.
What should I learn before the Matrix Multiplication formula?
Before studying the Matrix Multiplication formula, you should understand: matrix operations, matrix definition.
The full guide
This formula is covered in depth in Solving Systems of Equations: Substitution, Elimination, and Matrices.