Skip to main content

4.10 Matrices

add to ChatGPT
Verified for the 2027 examUpdated September 2026Fiveable Content Team
Fiveable

📈AP Precalculus Unit 4 Review

QR code for AP Precalculus practice questions

4.10 Matrices

A matrix is a rectangular array of numbers arranged in rows and columns, and an n×mn \times m matrix has nn rows and mm 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.

Matrices are not assessed on the AP Precalculus exam, which covers only Units 1, 2, and 3, but schools often teach Unit 4 and the skills carry into college calculus, linear algebra, computer graphics, and data modeling. Multiplying matrices and tracking dimensions sets up later Unit 4 ideas like inverses, determinants, linear transformations, and state-change models, and practicing by hand and with a graphing calculator builds the careful, step-by-step reasoning that helps across the whole course.

Matrix Dimensions and the Multiplication Rule

  • 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.

(n×m)(m×p)=(n×p)(n \times m)(m \times p) = (n \times p)

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

[123456]⏟2×3[210210]⏟3×2=[551414]⏟2×2,(2×3)(3×2)=(2×2)$6pt]c11=1(2)+2(0)+3(1)=5,c12=1(1)+2(2)+3(0)=5,c21=4(2)+5(0)+6(1)=14,c22=4(1)+5(2)+6(0)=14.\begin{gathered} \underbrace{\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}}_{2\times3} \underbrace{\begin{bmatrix}2&1\\0&2\\1&0\end{bmatrix}}_{3\times2} = \underbrace{\begin{bmatrix}5&5\\14&14\end{bmatrix}}_{2\times2}, \qquad (2\times3)(3\times2)=(2\times2) \text{\textdollar}6pt] \begin{aligned} c_{11}&=1(2)+2(0)+3(1)=5, &c_{12}&=1(1)+2(2)+3(0)=5,\\ c_{21}&=4(2)+5(0)+6(1)=14, &c_{22}&=4(1)+5(2)+6(0)=14. \end{aligned} \end{gathered}

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]:

A⋅B=(3×2)+(4×1)=6+4=10A \cdot B = (3 \times 2) + (4 \times 1) = 6 + 4 = 10

Inside matrix multiplication, this is exactly what you do with one row and one column to get a single entry of the product.

Multiplying Matrices Correctly by Hand and by Calculator

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

  • Misconception: Matrix multiplication is commutative.
    Actually: 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.
  • Misconception: The two matrices must be the same size to be multiplied.
    Actually: 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.
  • Misconception: An n x m matrix means m rows and n columns.
    Actually: 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.
  • Misconception: The product's size comes from the inner numbers of the dimensions.
    Actually: 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.
  • Misconception: Each entry of the product is a whole row or column.
    Actually: 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.

Practice Questions for 4.10

1 of 10

A logistics company transports 2 types of cargo using 4 different truck models. Matrix TT (4×24 \times 2) represents the capacity of each cargo type per truck model. Matrix WW (2×32 \times 3) represents the weight of each cargo type across 3 different packaging methods. Which expression models the total weight capacity for each truck model and packaging method?

A.

The expression TWTW produces a 4×34 \times 3 matrix representing the total weight capacities.

B.

The expression TWTW produces a 2×42 \times 4 matrix representing the total weight capacities.

C.

The expression WTWT produces a 2×22 \times 2 matrix representing the total weight capacities.

D.

The expression WTWT produces a 3×43 \times 4 matrix representing the total weight capacities.

Vocabulary

The following words are mentioned explicitly in the AP® course framework 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.

See Fiveable more often in Google

Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.

Prefer us on Google