A matrix is a rectangular array of numbers arranged in rows and columns, and an matrix has rows and columns. To multiply two matrices, the number of columns in the first must equal the number of rows in the second, and each entry of the product is the dot product of a row from the first matrix and a column from the second.
Why This Matters for the AP Precalculus Exam
Unit 4 topics, including matrices, are not assessed on the AP Precalculus exam. The exam covers Units 1, 2, and 3. Still, learning matrices is worth your time. Schools often teach this unit, and matrix skills set you up for college calculus, linear algebra, and any field that uses computer graphics or data modeling.
This topic builds the foundation for later Unit 4 ideas like finding inverses and determinants, running linear transformations, and modeling state changes. If you can multiply matrices correctly and track dimensions, the rest of the unit makes a lot more sense. Practicing matrix operations by hand and with a graphing calculator also strengthens the careful, step-by-step reasoning that helps across the whole course.

Key Takeaways
- An n x m matrix has n rows and m columns. The row count always comes first.
- Two matrices can be multiplied only when the number of columns in the first equals the number of rows in the second.
- When an n x m matrix multiplies an m x p matrix, the product has dimensions n x p.
- Each entry of the product is the dot product of a row from the first matrix and a column from the second.
- The dot product of two vectors multiplies matching components and adds the results, giving a single number.
- Matrix multiplication is not commutative, so the order of the matrices matters.
Understanding Matrices
A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns. Think of a spreadsheet or table with values lined up in a grid. In math, matrices let you organize information and perform operations such as solving systems of equations, calculating determinants, and representing transformations.
Each value inside a matrix is called an element, and every element has a unique position set by its row and column.
Notation
The size of a matrix is described by its number of rows and columns. Officially, an n x m matrix has n rows and m columns. The row count is always written first.
When you locate an element, you name its row number, then its column number. So the entry in the ith row and jth column tells you exactly where that value sits in the grid.
Matrix Multiplication
Two matrices can be multiplied only when the number of columns in the first matrix equals the number of rows in the second matrix. This is the compatibility rule, and it has to be satisfied for the product to exist.
Here is how the dimensions work. Let A be an n x m matrix and let B be an m x p matrix. Because the columns of A (which is m) match the rows of B (also m), the product C = A x B exists and has dimensions n x p.
A quick way to check: write the two sizes side by side.
The two inner numbers must match for multiplication to work, and the two outer numbers give you the size of the result.
How to Find Each Entry
The entry in the ith row and jth column of the product is the dot product of the ith row of matrix A and the jth column of matrix B. You pair the row with the column, multiply matching parts, and add.
So to fill in the product, you repeat this process for every row of A against every column of B.
What's a Dot Product Again?
The dot product is an operation that combines two vectors and produces a single number. Recall from the earlier vector topics that a vector has both magnitude and direction.
To calculate a dot product, multiply each component of the first vector by the matching component of the second vector, then add up all those products. For example, with vectors A = [3, 4] and B = [2, 1]:
Inside matrix multiplication, this is exactly what you do with one row and one column to get a single entry of the product.
How to Use This on the AP Precalculus Exam
Unit 4 is not tested on the AP Precalculus exam, so there are no required matrix tasks on the official exam. The guidance below helps you in class, on school assessments, and as preparation for later math courses.
Problem Solving
- Before multiplying, write the dimensions of both matrices side by side and check that the inner numbers match. If they do not, the product does not exist.
- Use the outer numbers to predict the size of the answer so you know how many entries to compute.
- Compute one entry at a time. For the entry in row i, column j, slide along row i of the first matrix and down column j of the second, multiplying matching values and adding.
- Keep your work organized in a grid so you do not lose track of which row and column you are pairing.
Using Technology
- Practice entering matrices into a graphing calculator and using it to perform multiplication. This is a skill you will use throughout the rest of Unit 4.
- Use technology to check work you did by hand, especially with larger matrices where arithmetic mistakes are easy to make.
Common Trap
- Order matters. A x B and B x A are usually not the same, and one of them may not even be defined. Always multiply in the order given.
Common Misconceptions
- Matrix multiplication is not commutative. A x B does not generally equal B x A, and swapping the order can change the answer or make the product undefined.
- The compatibility rule is about columns of the first matrix matching rows of the second, not about the two matrices being the same size. Matrices of different shapes can still be multiplied.
- An n x m matrix means n rows and m columns, in that order. Mixing up the order leads to wrong dimensions and wrong products.
- The product's size comes from the outer numbers of the dimensions, not the inner ones. The inner numbers only tell you whether multiplication is allowed.
- Each entry of the product is a single number from one dot product, not a whole row or column. You compute it by pairing exactly one row with one column.
Related AP Precalculus Guides
Vocabulary
The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.Term | Definition |
|---|---|
column | The vertical lines of elements in a matrix. |
dot product | A scalar quantity obtained by multiplying the magnitudes of two vectors and the cosine of the angle between them; equals zero when vectors are perpendicular. |
matrix | A rectangular array of numbers arranged in rows and columns that represents a linear transformation. |
matrix product | The product of two matrices that represents the composition of their corresponding linear transformations. |
row | The horizontal lines of elements in a matrix. |
Frequently Asked Questions
Are matrices tested on the AP Precalculus exam?
No. Unit 4 topics, including matrices, are not assessed on the AP Precalculus exam. They are still useful for school courses and later math, especially linear algebra and transformations.
What is a matrix?
A matrix is a rectangular array of numbers or expressions arranged in rows and columns. Its dimensions are written as rows by columns.
When can two matrices be multiplied?
Two matrices can be multiplied when the number of columns in the first matrix equals the number of rows in the second matrix.
What are the dimensions of a matrix product?
If an n by m matrix multiplies an m by p matrix, the product has dimensions n by p. The inner dimensions must match, and the outer dimensions give the product size.
How do you find an entry in a matrix product?
Each entry comes from the dot product of one row from the first matrix and one column from the second matrix. Multiply matching entries and add the products.
Why does matrix multiplication order matter?
Matrix multiplication is not commutative. A times B and B times A can produce different results, and one order may be defined while the other is not.