Can You Combine Two Sales Tables?
A store tracks monthly sales for two products across two regions:
| East | West | |
|---|---|---|
| Shirts | 120 | 80 |
| Dresses | 90 | 110 |
This is January. February has a similar table. How would you build a single grid showing two-month totals?
Add Matching Entries to Combine Grids
January and February sales:
: : : :
Adding each matching position. That move has a name.
Matrix Addition: Entry-Wise and Same-Shape
- Requires identical dimensions
- Result has the same shape
The sum is the two-month totals.
Worked Example: Adding Matrices Entry by Entry
Subtraction: Add the Negative Matrix
Subtracting Sales Shows the Change
Shirts East
Matrix Addition Fails with Different Shapes
Position (1,3) exists in
Addition needs identical dimensions — not matching inner dimensions.
Quick Check: Which Pairs Can Be Added?
Decide: defined or undefined for each pair?
and and and and
Decide for all four before advancing.
One Revenue Calculation Previews Multiplication
3 shirts × 20 + 5 dresses × 35 = 60 + 175 = 235
That move — multiply corresponding entries, then sum — is the dot product.
Each entry of a matrix product works exactly this way.
In a moment, you'll see how this fills an entire result matrix.
The Dimension Rule for Multiplication
- Inner dimensions must match (both
); outer dimensions survive
Each Entry Uses a Row and a Column
- Take row
of — numbers - Take column
of — also numbers - Multiply corresponding, then sum
Not entry-wise. You combine an entire row with an entire column.
Computing a Full Product
: · :
Complete the Bottom Row Yourself
Row 2 of
: dot with Col 1 of : entries : dot with Col 2 of : entries
Compute both before advancing.
Rectangular Matrices Multiply the Same Way
Swapping Order Can Break Multiplication
: defined → : inner → undefined
: ; :
Order can change whether
Quick Check: State the Product Dimensions
For each product, state result dimensions or "undefined":
= ? = ? = ? = ?
State all four before advancing.
Find the Mistake in This Product
Student's answer:
What went wrong? Find the correct
Full Product from Scratch — Unscaffolded
Compute
Produce all four entries of
Work the full product before advancing.
Which Order of and Is Defined?
: is defined and is : is undefined, since
Read Entry of
Each term: price of a product times its quantity in warehouse
Entry
Computing the Value of Two Warehouses
Values: $550, $770.
Matrix Products Encode Two-Step Calculations
If
Entry
Four Mistakes That Trip Students Up
- M1: Addition uses inner-dimension rule → needs identical dimensions
- M2: Multiplication is entry-wise → use row-column dot product
- M3:
→ may not exist, or may have a different size - M4:
gives → result is
Matrix Operations: What You Now Know
✓ Add/subtract — identical dimensions; entry by entry
✓ Multiply — inner dimensions match; entry = row · column
✓ Shape —
✓ Order —
✓ Data products — dimensions decide the order
Next: Does Multiplication Order Matter?
VM.C.9 — Non-Commutativity of Matrix Multiplication
You've seen that
- When both products are defined and the same size, are they equal?
- Is matrix multiplication associative? Does it distribute over addition?
Click to begin the narrated lesson
Add, subtract, and multiply matrices