Unit 4 · Topic 4.10

Matrices

A matrix is a rectangle of numbers with dimensions rows by columns.

Practice 1: Procedural and Symbolic Fluency

Beyond the exam. The AP® Precalculus exam does not test this unit. Many classes teach it, and it prepares you for calculus.

Part 1 · Hook

Why this matters

A food truck sells three items on two days. A table of how many it sold, times a list of prices, gives each day's revenue in one step. That rectangular table is a matrix, and the "row times column" rule for multiplying matrices is exactly the arithmetic the food truck owner would do by hand.

Part 2 · Prerequisite check

Quick check before you start

1. What is ⟨2,−1⟩⋅⟨4,1⟩\left\langle 2, -1 \right\rangle \cdot \left\langle 4, 1 \right\rangle?

  1. 77
  2. 99
  3. −7-7
  4. 33
Show the answer

Multiply matching components and add: 2(4)+(−1)(1)2(4) + (-1)(1)=8−1= 8 - 1=7= 7.

  • Correct: 77:
  • 99:
  • −7-7:
  • 33:

2. Solve the system x+y=5x + y = 5, x−y=1x - y = 1.

  1. x=3x = 3, y=2y = 2
  2. x=2x = 2, y=3y = 3
  3. x=4x = 4, y=1y = 1
  4. x=5x = 5, y=0y = 0
Show the answer

Adding the equations gives 2x=62x = 6, so x=3x = 3 and y=2y = 2.

  • Correct: x=3x = 3, y=2y = 2:
  • x=2x = 2, y=3y = 3:
  • x=4x = 4, y=1y = 1:
  • x=5x = 5, y=0y = 0:

Part 3 · See it

See it first

Matrix A with rows (2, -1) and (0, 3) times matrix B with rows (1, 4) and (-2, 1) equals the product with rows (4, 7) and (-6, 3). Row 1 of A and column 2 of B are highlighted, and the entry 7 in row 1, column 2 of the product is boxed: 2 times 4 plus (-1) times 1 = 7.
Each entry of a product is a row of the first matrix times a column of the second: 2(4)+(−1)(1)=72(4) + (-1)(1) = 7 goes in row 1, column 2. LevlPrep original diagram.

Part 4 · Step by step

How it works, step by step

  1. A matrix has mm rows and nn columnsits dimensions are m×nm \times n, rows first
  2. The number of columns of AA equals the number of rows of BBABAB is defined; an m×nm \times n times an n×pn \times p gives an m×pm \times p
  3. Take row ii of AA and column jj of BBmultiply matching entries and add: that is the entry in row ii, column jj of ABAB
  4. Swap the order of the factorsBABA usually differs from ABAB, or is undefined at all

Part 5 · Key ideas

Key ideas

  • A matrix is a rectangular array of numbers. An m×nm \times n matrix has mm rows and nn columns; aija_{ij} is the entry in row ii, column jj.
  • Add matrices of the same dimensions entry by entry; a number times a matrix multiplies every entry.
  • Matrix multiplication: entry (i,j)(i, j) of ABAB is row ii of AA times column jj of BB, multiplied entry by entry and added. It needs columns of AA = rows of BB.
  • Order matters: usually AB≠BAAB \ne BA. The identity I=[1001]I = \left[ \begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix} \right] gives AI=IA=AAI = IA = A.

Part 6 · Misconception

A common mistake

The wrong idea: To multiply two matrices, multiply the entries in the same positions.

What actually happens: Each entry of the product combines a whole row with a whole column. Multiplying matching positions is a different operation, and it does not give the revenue, the combined transformation or anything else the product is used for.

Part 7 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Table

Three matrices

A=[3−112],B=[20−14],C=[1023−11]A = \left[ \begin{matrix} 3 & -1 \\ 1 & 2 \end{matrix} \right], \quad B = \left[ \begin{matrix} 2 & 0 \\ -1 & 4 \end{matrix} \right], \quad C = \left[ \begin{matrix} 1 & 0 & 2 \\ 3 & -1 & 1 \end{matrix} \right]

1. What is ABAB?

  1. [7−408]\left[ \begin{matrix} 7 & -4 \\ 0 & 8 \end{matrix} \right]
  2. [6−219]\left[ \begin{matrix} 6 & -2 \\ 1 & 9 \end{matrix} \right]
  3. [60−18]\left[ \begin{matrix} 6 & 0 \\ -1 & 8 \end{matrix} \right]
  4. [7−406]\left[ \begin{matrix} 7 & -4 \\ 0 & 6 \end{matrix} \right]
Show the answer

Row 1 of AA with each column of BB: 3(2)+(−1)(−1)=73(2) + (-1)(-1) = 7 and 3(0)+(−1)(4)=−43(0) + (-1)(4) = -4. Row 2: 1(2)+2(−1)=01(2) + 2(-1) = 0 and 1(0)+2(4)=81(0) + 2(4) = 8.

  • Correct: [7−408]\left[ \begin{matrix} 7 & -4 \\ 0 & 8 \end{matrix} \right]: Row times column for each of the four entries.
  • [6−219]\left[ \begin{matrix} 6 & -2 \\ 1 & 9 \end{matrix} \right]: This is BABA; the order is reversed.
  • [60−18]\left[ \begin{matrix} 6 & 0 \\ -1 & 8 \end{matrix} \right]: This multiplies entries in matching positions; use rows times columns.
  • [7−406]\left[ \begin{matrix} 7 & -4 \\ 0 & 6 \end{matrix} \right]: Row 2, column 2: 1(0)+2(4)=81(0) + 2(4) = 8.

2. What is the entry in row 1, column 2 of BABA?

No calculator. Type the exact value (a fraction, π, e or a root is fine).

Show the answer

Row 1 of BB is (2,0)(2, 0) and column 2 of AA is (−1,2)(-1, 2): 2(−1)+0(2)=−22(-1) + 0(2) = -2.

  • Answer: -2

3. Which products are defined? Select all that apply.

  1. ACAC
  2. BCBC
  3. CACA
  4. CBCB
Show the answer

AA and BB are 2×22 \times 2; CC is 2×32 \times 3. A product needs the inside numbers to match.

  • Correct: ACAC: (2×2)(2×3)(2 \times 2)(2 \times 3): inside 2=22 = 2.
  • Correct: BCBC: (2×2)(2×3)(2 \times 2)(2 \times 3): inside 2=22 = 2.
  • CACA: (2×3)(2×2)(2 \times 3)(2 \times 2): inside 3≠23 \ne 2.
  • CBCB: (2×3)(2×2)(2 \times 3)(2 \times 2): inside 3≠23 \ne 2.

4. What are the dimensions of ACAC?

  1. 2×32 \times 3
  2. 3×23 \times 2
  3. 2×22 \times 2
  4. 3×33 \times 3
Show the answer

(2×2)(2×3)(2 \times 2)(2 \times 3): the outside numbers give 2×32 \times 3.

  • Correct: 2×32 \times 3: Rows of AA by columns of CC.
  • 3×23 \times 2: Rows come first: AA has 22 rows, CC has 33 columns.
  • 2×22 \times 2: CC has 33 columns, so the product does too.
  • 3×33 \times 3: AA has 22 rows, so the product does too.

5. What are the dimensions of [123456]\left[ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{matrix} \right]?

  1. 2×32 \times 3
  2. 3×23 \times 2
  3. 6×16 \times 1
  4. 2×22 \times 2
Show the answer

Two rows and three columns: 2×32 \times 3, rows first.

  • Correct: 2×32 \times 3: Rows by columns.
  • 3×23 \times 2: Rows come first: there are 22 rows.
  • 6×16 \times 1: Count rows and columns, not entries.
  • 2×22 \times 2: There are 33 columns.

6. What is [1234][5−1]\left[ \begin{matrix} 1 & 2 \\ 3 & 4 \end{matrix} \right]\left[ \begin{matrix} 5 \\ -1 \end{matrix} \right]?

  1. [311]\left[ \begin{matrix} 3 \\ 11 \end{matrix} \right]
  2. [5−4]\left[ \begin{matrix} 5 \\ -4 \end{matrix} \right]
  3. [26]\left[ \begin{matrix} 2 \\ 6 \end{matrix} \right]
  4. [311]\left[ \begin{matrix} 3 & 11 \end{matrix} \right]
Show the answer

Row 1: 1(5)+2(−1)=31(5) + 2(-1) = 3. Row 2: 3(5)+4(−1)=113(5) + 4(-1) = 11. A 2×22 \times 2 times a 2×12 \times 1 is 2×12 \times 1.

  • Correct: [311]\left[ \begin{matrix} 3 \\ 11 \end{matrix} \right]: Each row times the column.
  • [5−4]\left[ \begin{matrix} 5 \\ -4 \end{matrix} \right]: This multiplies matching positions (1⋅51 \cdot 5 and 4⋅(−1)4 \cdot (-1)); use whole rows.
  • [26]\left[ \begin{matrix} 2 \\ 6 \end{matrix} \right]: This uses columns of the first matrix instead of rows.
  • [311]\left[ \begin{matrix} 3 & 11 \end{matrix} \right]: The product is 2×12 \times 1, a column, not a row.

Part 8 · Summary

Summary

A matrix is a rectangle of numbers with dimensions rows by columns. Matrices of the same size add entry by entry. A product ABAB is defined when AA has as many columns as BB has rows; each entry is a row of AA times a column of BB. The order of the factors matters.

Part 9 · Up next

What comes next

Part 10 · Connections

Connections