Matrix Multiplication Examples: 46 Problems with Answers
Worked examples of Matrix Multiplication to try before you open each solution, then practice problems with answers.
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
challengePractice Problems
Try each one, then open the solution to compare your method.
Example 1
easyExample 2
mediumExample 3
easyExample 4
easyExample 5
easyExample 6
easyExample 7
easyExample 8
easyExample 9
easyExample 10
easyExample 11
mediumExample 12
mediumExample 13
mediumExample 14
mediumExample 15
mediumExample 16
mediumExample 17
mediumExample 18
mediumExample 19
mediumExample 20
challengeExample 21
challengeExample 22
challengeExample 23
easyExample 24
easyExample 25
easyExample 26
easyExample 27
mediumExample 28
mediumExample 29
mediumExample 30
mediumExample 31
mediumExample 32
mediumExample 33
mediumExample 34
mediumExample 35
mediumExample 36
mediumExample 37
hardExample 38
hardExample 39
hardExample 40
hardExample 41
hardExample 42
hardExample 43
challengeWhat to focus on
Core idea: Each result entry is the dot product of a row of with a column of , and inner dimensions must match.
Common stuck point: 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.
Ask yourself: Does the column count of equal the row count of , and am I dotting rows with columns?
Concept recap
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.
Read the full lesson on Matrix MultiplicationMatrix Multiplication is covered with related ideas in the guide Solving Systems of Equations: Substitution, Elimination, and Matrices.
Related concepts
Background knowledge
These ideas may be useful before you work through the harder examples.