AP Course

AP Precalculus

Study nine focused AP Precalculus units through topic lessons, original graph examples, quizzes, and practice sets.

Follow the College Board topic sequence across polynomial, rational, exponential, logarithmic, trigonometric, polar, parametric, vector, and matrix functions.

Lessons
Change in TandemRates of ChangeRates of Change in Linear and Quadratic FunctionsPolynomial Functions and Rates of ChangePolynomial Functions and Complex ZerosPolynomial Functions and End BehaviorRational Functions and End BehaviorRational Functions and ZerosRational Functions and Vertical AsymptotesRational Functions and HolesEquivalent Representations of Polynomial and Rational ExpressionsTransformations of FunctionsFunction Model Selection and Assumption ArticulationFunction Model Construction and ApplicationChange in Arithmetic and Geometric SequencesChange in Linear and Exponential FunctionsExponential FunctionsExponential Function ManipulationExponential Function Context and Data ModelingCompeting Function Model ValidationComposition of FunctionsInverse FunctionsLogarithmic ExpressionsInverses of Exponential FunctionsLogarithmic FunctionsLogarithmic Function ManipulationExponential and Logarithmic Equations and InequalitiesLogarithmic Function Context and Data ModelingSemi-log PlotsPeriodic PhenomenaSine, Cosine, and TangentSine and Cosine Function ValuesSine and Cosine Function GraphsSinusoidal FunctionsSinusoidal Function TransformationsSinusoidal Function Context and Data ModelingThe Tangent FunctionInverse Trigonometric FunctionsTrigonometric Equations and InequalitiesThe Secant, Cosecant, and Cotangent FunctionsEquivalent Representations of Trigonometric FunctionsTrigonometry and Polar CoordinatesPolar Function GraphsRates of Change in Polar FunctionsParametric FunctionsParametric Functions Modeling Planar MotionParametric Functions and Rates of ChangeParametrically Defined Circles and LinesImplicitly Defined FunctionsConic SectionsParametrization of Implicitly Defined FunctionsVectorsVector-Valued FunctionsMatricesThe Inverse and Determinant of a MatrixLinear Transformations and MatricesMatrices as FunctionsMatrices Modeling Contexts
Quizzes
Practice Problems Open a unit to choose from 58 topic-aligned practice sets.

Unit 9 · Topic 4.10 · Optional

Matrices

Organize numerical information in rows and columns, then multiply compatible matrices by pairing each row of the first matrix with each column of the second.

Learning Goals

  • Identify matrix dimensions and locate an entry by row and column.
  • Add, subtract, and scalar-multiply matrices with compatible dimensions.
  • Determine whether a matrix product is defined and predict its dimensions.
  • Calculate each product entry as a row-column dot product.
  • Explain why matrix multiplication generally depends on order.
  • Construct and interpret matrix products in numerical contexts.

1. A Matrix Is a Rectangular Array

A matrix organizes numbers into rows and columns. Capital letters usually name matrices, while lowercase indexed letters name their entries:

\[A=\begin{bmatrix} a_{11}&a_{12}&\cdots&a_{1n}\\ a_{21}&a_{22}&\cdots&a_{2n}\\ \vdots&\vdots&\ddots&\vdots\\ a_{m1}&a_{m2}&\cdots&a_{mn} \end{bmatrix}.\]

The entry \(a_{ij}\) is located in row i and column j. Always read the row index first.

2. Dimensions Are Rows by Columns

The matrix

\[A=\begin{bmatrix}4&-1&7\\2&5&0\end{bmatrix}\]

has 2 rows and 3 columns, so its dimensions are \(2\times3\). Here \(a_{12}=-1\) and \(a_{23}=0\).

3. Common Matrix Shapes

TypeDimensions or property
Row matrix\(1\times n\)
Column matrix\(m\times1\)
Square matrix\(n\times n\)
Zero matrixEvery entry equals 0
Identity matrixSquare with 1s on the main diagonal and 0s elsewhere

A vector \(\langle x,y\rangle\) can be represented as the \(2\times1\) column matrix \(\begin{bmatrix}x\\y\end{bmatrix}\).

4. Rows and Columns Carry Structure

Matrices example graphMatrix multiplication combines rows of the first matrix with columns of the second.
Matrix multiplication combines rows of the first matrix with columns of the second.

Rows often represent cases or categories, while columns represent measured variables. The meaning depends on the labels and units supplied by the context, so rearranging rows or columns changes the interpretation.

5. Equality, Addition, and Subtraction

Two matrices are equal only when they have the same dimensions and every corresponding entry is equal. Addition and subtraction also require equal dimensions:

\[\begin{bmatrix}1&3\\-2&4\end{bmatrix} +\begin{bmatrix}5&-1\\6&2\end{bmatrix} =\begin{bmatrix}6&2\\4&6\end{bmatrix}.\]

A \(2\times2\) matrix cannot be added to a \(2\times3\) matrix because some entries have no corresponding partner.

6. Scalar Multiplication

Multiply every entry by the scalar:

\[-3\begin{bmatrix}2&-1\\0&4\end{bmatrix} =\begin{bmatrix}-6&3\\0&-12\end{bmatrix}.\]

The dimensions remain unchanged. This operation is different from multiplying two matrices.

7. Matrix Multiplication Is Not Entrywise

In the product \(AB\), every output entry combines one complete row of A with one complete column of B. If

\[A\text{ is }m\times r,\qquad B\text{ is }r\times n,\]

then \(AB\) is defined and has dimensions \(m\times n\). The matching inner dimension r is consumed; the outer dimensions describe the result.

8. Check Dimensions Before Calculating

ProductDefined?Result dimensions
\((2\times3)(3\times4)\)Yes: inner dimensions are 3\(2\times4\)
\((3\times2)(2\times1)\)Yes: inner dimensions are 2\(3\times1\)
\((2\times3)(2\times3)\)No: 3 does not equal 2Undefined
\((1\times4)(4\times1)\)Yes: inner dimensions are 4\(1\times1\)

Having the same dimensions does not guarantee that two matrices can be multiplied.

9. Each Entry Is a Row-Column Dot Product

If \(C=AB\), then the entry in row i, column j is

\[c_{ij}=\sum_{k=1}^{r}a_{ik}b_{kj}.\]

For a row \(\begin{bmatrix}a&b&c\end{bmatrix}\) and column \(\begin{bmatrix}p\\q\\r\end{bmatrix}\), their contribution is the scalar \(ap+bq+cr\). Move across the columns of B to complete one output row, then move to the next row of A.

10. Worked \(2\times2\) Product

Let

\[A=\begin{bmatrix}1&2\\3&4\end{bmatrix}, \qquad B=\begin{bmatrix}5&-1\\2&3\end{bmatrix}.\]

The product is defined and will be \(2\times2\):

\[\begin{aligned} AB&=\begin{bmatrix} 1(5)+2(2)&1(-1)+2(3)\\ 3(5)+4(2)&3(-1)+4(3) \end{bmatrix}\\ &=\begin{bmatrix}9&5\\23&9\end{bmatrix}. \end{aligned}\]

For example, the lower-left entry 23 is row 2 of A dotted with column 1 of B.

11. Rectangular Matrix Times a Column Vector

\[\begin{bmatrix} 1&0&2\\ -1&3&1 \end{bmatrix} \begin{bmatrix}4\\2\\-1\end{bmatrix} = \begin{bmatrix} 1(4)+0(2)+2(-1)\\ -1(4)+3(2)+1(-1) \end{bmatrix} = \begin{bmatrix}2\\1\end{bmatrix}.\]

The dimensions are \((2\times3)(3\times1)=(2\times1)\). Each output component is the dot product of one matrix row with the input vector.

12. Order Usually Matters

Using the same A and B from the \(2\times2\) example,

\[AB=\begin{bmatrix}9&5\\23&9\end{bmatrix}, \qquad BA=\begin{bmatrix}2&6\\11&16\end{bmatrix}.\]

Therefore, \(AB\ne BA\). In other cases, one order may be defined while the reverse order is not. Never switch multiplication order without justification.

13. Useful Product Properties

PropertyStatement when products are defined
Associative\((AB)C=A(BC)\)
Left distributive\(A(B+C)=AB+AC\)
Right distributive\((A+B)C=AC+BC\)
Identity\(AI=IA=A\), with compatible identity matrices
Not generally commutative\(AB\ne BA\) in general

14. Context Example: Equipment Costs

Suppose goals, balls, and jerseys cost 300, 10, and 30 dollars. The two columns below list quantities for Teams A and B:

\[\begin{bmatrix}300&10&30\end{bmatrix} \begin{bmatrix} 6&10\\ 30&24\\ 14&20 \end{bmatrix} = \begin{bmatrix}2520&3840\end{bmatrix}.\]

The first dot product \(300(6)+10(30)+30(14)=2520\) gives Team A's total. The second gives Team B's total. Matrix order and labels make the units meaningful: price per item times item counts produces dollars.

15. AP Workflow and Common Errors

  1. Write each matrix's dimensions as rows by columns.
  2. For \(AB\), compare columns of A with rows of B.
  3. Predict the product's outer dimensions before calculating.
  4. Place each output at the intersection of its chosen row and column.
  5. Multiply corresponding entries and add.
  6. Repeat systematically across columns and down rows.
  7. Check the result's dimensions, labels, and units.
  • Do not read \(a_{ij}\) as column i, row j.
  • Do not multiply matrices entry by entry.
  • Do not assume equal-sized matrices are automatically multipliable.
  • Do not reverse \(AB\) to \(BA\).
  • Do not use the inner dimensions as the product dimensions.
  • Do not omit a term from a row-column dot product.

Key Takeaways

  • Perform matrix operations and interpret rows, columns, dimensions, and products.
  • Core relationship: \((AB)_{ij}=\sum_k a_{ik}b_{kj}\)
  • Error check: Matrix multiplication is not entry-by-entry multiplication and is not generally commutative.
Checkpoint · Topic 4.10
  1. State the dimensions of \(\begin{bmatrix}2&0&-1\\5&3&4\end{bmatrix}\) and identify \(a_{23}\).
  2. For A of size \(4\times2\) and B of size \(2\times3\), decide whether \(AB\) and \(BA\) are defined and give each possible result's dimensions.
  3. Calculate \(\begin{bmatrix}2&-1\\0&3\end{bmatrix}\begin{bmatrix}4&5\\2&-2\end{bmatrix}\).
  4. Calculate \(\begin{bmatrix}1&2&-1\\3&0&4\end{bmatrix}\begin{bmatrix}2\\-1\\5\end{bmatrix}\).
  5. Construct a matrix product that gives the total revenue from three product prices and quantities sold at two stores; label the dimensions and units.