Matrix Operations | Lesson 8 of 12: VM Cluster

Add, Subtract, and Multiply Matrices

Lesson 8 of 12: VM Cluster

In this lesson:

  • Decide from dimensions whether an operation is defined
  • Add and subtract same-dimension matrices entry by entry
  • Compute matrix products using the row-column dot product
  • Decide which order of two data matrices is defined
Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

What You Will Learn Today

  1. Decide from dimensions whether an operation is defined
  2. Add and subtract:
  3. Multiply, and non-square, entry by entry
  4. Decide the order of two data matrices; read an entry
Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

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?

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Add Matching Entries to Combine Grids

January and February sales: and are both .

  • :
  • :
  • :
  • :

Adding each matching position. That move has a name.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Matrix Addition: Entry-Wise and Same-Shape

  • Requires identical dimensions
  • Result has the same shape

The sum is the two-month totals.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Worked Example: Adding Matrices Entry by Entry

Two 2x2 matrices with colored matching positions and arrows to result entries

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Subtraction: Add the Negative Matrix

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Subtracting Sales Shows the Change

, February minus January:

Shirts East , Shirts West , Dresses East , Dresses West .

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Matrix Addition Fails with Different Shapes

Position (1,3) exists in but not in , so it has no partner.

⚠️ Addition needs identical dimensions — not matching inner dimensions.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Quick Check: Which Pairs Can Be Added?

Decide: defined or undefined for each pair?

  1. and
  2. and
  3. and
  4. and

Decide for all four before advancing.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

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.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

The Dimension Rule for Multiplication

  • Inner dimensions must match (both ); outer dimensions survive

Dimension rule diagram showing inner dimensions canceling and outer dimensions forming the result

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

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.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Computing a Full Product

  • : · :

Row-column pairing diagram for 2x2 product with each entry annotated

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Complete the Bottom Row Yourself

Row 2 of =

  • : dot with Col 1 of : entries
  • : dot with Col 2 of : entries

Compute both before advancing.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Rectangular Matrices Multiply the Same Way

result

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Swapping Order Can Break Multiplication

, :

  • : defined →
  • : inner → undefined

, :

  • : ; :

Order can change whether is defined, and its size.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Quick Check: State the Product Dimensions

For each product, state result dimensions or "undefined":

  1. = ?
  2. = ?
  3. = ?
  4. = ?

State all four before advancing.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Find the Mistake in This Product

,

Student's answer:

What went wrong? Find the correct .

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Full Product from Scratch — Unscaffolded

Compute completely with no setup:

Produce all four entries of .

Work the full product before advancing.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Which Order of and Is Defined?

: quantities, (rows are products, columns are warehouses, )

: prices, (one price per product)

  • : is defined and is
  • : is undefined, since
Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Read Entry of

Each term: price of a product times its quantity in warehouse .

Entry is the total value of warehouse .

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Computing the Value of Two Warehouses

Values: $550, $770. : undefined.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Matrix Products Encode Two-Step Calculations

If maps Category 1 → Category 2, and maps Category 2 → Category 3 (the middle categories match):

maps Category 1 → Category 3 directly, with no intermediate step.

Entry of : price times quantity of each product in warehouse , summed over the products.

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

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
Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Matrix Operations: What You Now Know

✓ Add/subtract — identical dimensions; entry by entry

✓ Multiply — inner dimensions match; entry = row · column

✓ Shape —

✓ Order — may be undefined or differ in size

✓ Data products — dimensions decide the order

Grade 9+ Pre-Calculus | HSN.VM.C.8
Matrix Operations | Lesson 8 of 12: VM Cluster

Next: Does Multiplication Order Matter?

VM.C.9 — Non-Commutativity of Matrix Multiplication

You've seen that can be undefined or a different size. The next lesson asks:

  • When both products are defined and the same size, are they equal?
  • Is matrix multiplication associative? Does it distribute over addition?
Grade 9+ Pre-Calculus | HSN.VM.C.8

Click to begin the narrated lesson

Add, subtract, and multiply matrices