In short
A matrix is a rectangular array of numbers; an matrix has rows and columns, and is the entry in row , column . Matrices of the same size add entry by entry and are scaled by multiplying every entry. The product is defined when has as many columns as has rows; each entry is a row of times a column of (a dot product). In general . This unit is not tested on the AP Exam.
What you need to know
- State the dimensions of a matrix and read its entries.
- Add, subtract and scale matrices.
- Multiply 2 × 2 matrices and a matrix by a vector.
- Explain why matrix multiplication is not commutative.
Size, entries and simple operations
A matrix organises numbers in rows and columns, like a small table. The matrix below has 2 rows and 3 columns, so it is , and is the entry in row 2, column 3.
Two matrices of the same size add entry by entry. Multiplying by a number (a scalar) multiplies every entry: . A shop recording sales of two products in two weeks might store them in a matrix; adding the matrices for two branches gives the combined sales.
Multiplying matrices: row times column
Matrix multiplication is not entry by entry. Each entry of comes from a row of and a column of : multiply matching numbers and add, exactly the dot product of Topic 4.8.
The size rule: an matrix times an matrix gives an matrix. The inner numbers must match. So a matrix times a column vector is a vector: . This matrix-times-vector product is how matrices act as functions in Topics 4.12 and 4.13.
Order matters
Multiply the same two matrices the other way round:
Unlike multiplying numbers, and are usually different. Matrix multiplication is still associative, , and the identity matrix plays the role of 1: . When you meet matrices as transformations, the order will match the order in which the transformations are applied, which is why it matters so much.
Key terms
- Matrix
- A rectangular array of numbers arranged in rows and columns.
- Dimensions
- m × n: m rows by n columns.
- Matrix product
- Entry (i, j) of AB is row i of A dotted with column j of B.
- Identity matrix
- I, with 1s on the main diagonal and 0s elsewhere; AI = IA = A.
Common mistakes
Multiplying matrices entry by entry.
Use row-times-column sums.
Assuming AB = BA.
Order matters; compute the product in the order given.
Writing a 2 × 3 matrix as 3 × 2.
Rows first, then columns.
How this topic is tested
- Write the size of each matrix above it before multiplying.
- Use one finger on the row and one on the column to avoid mixing entries.
- Unit 4 is not on the AP Exam; graphing calculators multiply matrices if your school test allows them.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · MP 2 · Multiple Representations
What are the dimensions of ?
Question 2 · MP 1 · Procedural and Symbolic Fluency
What is ?
Question 3 · MP 1 · Procedural and Symbolic Fluency
What is ?
Question 4 · MP 3 · Communication and Reasoning
is and is . What can you say about and ?
Question 5 · MP 1 · Procedural and Symbolic Fluency
What is ?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Class-test practice (Unit 4 is not on the AP Exam) · 4 points
Let and .
- (a) Find and .
- (b) Explain what your answers to part (a) show, and find .
Scoring guide: one point for each of the following
Part (a)
Part (b)
- AB ≠ BA, so matrix multiplication is not commutative.
Connected topics
Frequently asked questions
Are matrices on the AP Precalculus Exam?
No. Unit 4 is taught but not assessed on the AP Exam.
Why is multiplication defined in such a strange way?
Because it matches composing transformations and combining systems of equations. Entry-by-entry multiplication would not do either job.
Do I need matrices bigger than 2 × 2?
The AP course works mainly with 2 × 2 matrices and 2 × 1 vectors, but the row-times-column rule works for any compatible sizes.