4. Functions Involving Parameters, Vectors, and Matrices

Matrices

Matrices 📊

students, imagine you are organizing a school concert with several bands, instruments, and time slots. A table is a great way to keep track of everything at once. A matrix is a mathematical table that does the same thing: it stores numbers in rows and columns so we can organize information clearly and use it to solve problems. In this lesson, you will learn what matrices are, how they are written, and why they are useful in AP Precalculus. By the end, you should be able to explain the basic ideas, use matrix language correctly, and connect matrices to vectors and other topics in this unit 🎵📚

What Is a Matrix?

A matrix is a rectangular array of numbers arranged in rows and columns. Each number inside the matrix is called an entry or element. If a matrix has $m$ rows and $n$ columns, it is called an $m \times n$ matrix, read as “$m$ by $n$.”

For example, the matrix

$$

$A = \begin{bmatrix}$

2 & 5 \\

-1 & 4

$\end{bmatrix}$

$$

has $2$ rows and $2$ columns, so it is a $2 \times 2$ matrix. The entry in row $1$, column $2$ is $5$, and the entry in row $2$, column $1$ is $-1$.

Matrices are often used to organize real information. A coach might use a matrix to record points scored by different players over several games. A store might use one to track the number of items sold in different weeks. This makes matrices useful when we want to see patterns in data quickly.

A special kind of matrix is a square matrix, where the number of rows equals the number of columns, such as $2 \times 2$ or $3 \times 3$. Square matrices appear often in algebra and geometry because they can represent transformations, systems, and more.

Matrix Vocabulary and Basic Ideas

To work with matrices correctly, students, you need the main vocabulary.

  • Row: a horizontal line of entries.
  • Column: a vertical line of entries.
  • Entry: a single number in the matrix.
  • Dimensions: the size of a matrix, written as $m \times n$.
  • Diagonal: the entries from the top left to the bottom right in a square matrix.
  • Identity matrix: a square matrix with $1$’s on the main diagonal and $0$’s elsewhere.

For example, the $3 \times 3$ identity matrix is

$$

$I_3 = \begin{bmatrix}$

1 & 0 & 0 \\

0 & 1 & 0 \\

0 & 0 & 1

$\end{bmatrix}$

$$

The identity matrix works like the number $1$ does in multiplication. For many matrix operations, multiplying by an identity matrix leaves the original matrix unchanged.

It is also important to know that not every matrix operation works the same way as regular number arithmetic. For example, matrix multiplication is generally not commutative, which means $AB$ may not equal $BA$. That fact is important and often surprising 😮

Adding, Subtracting, and Scaling Matrices

Matrices can be added or subtracted only when they have the same dimensions. This is called being conformable for addition or subtraction.

If

$$

$A = \begin{bmatrix}$

1 & 3 \\

2 & 4

$\end{bmatrix}$

\quad \text{and} \quad

$B = \begin{bmatrix}$

5 & 1 \\

0 & -2

$\end{bmatrix},$

$$

then

$$

$A + B = \begin{bmatrix}$

1+5 & 3+1 \\

2+0 & 4+(-2)

$\end{bmatrix} = \begin{bmatrix}$

6 & 4 \\

2 & 2

$\end{bmatrix}.$

$$

You add matrices entry by entry. Subtraction works the same way:

$$

$A - B = \begin{bmatrix}$

1-5 & 3-1 \\

2-0 & 4-(-2)

$\end{bmatrix} = \begin{bmatrix}$

-4 & 2 \\

2 & 6

$\end{bmatrix}.$

$$

A scalar is a regular number. Multiplying a matrix by a scalar means multiplying every entry by that number. If $c$ is a scalar and $A$ is a matrix, then $cA$ means each entry in $A$ is multiplied by $c$.

For example,

$$

$3\begin{bmatrix}$

1 & -2 \\

4 & 0

$\end{bmatrix}$

$=$

$\begin{bmatrix}$

3 & -6 \\

12 & 0

$\end{bmatrix}.$

$$

These operations are useful when combining data or adjusting values. If a recipe calls for one batch of ingredients and you need three batches, scalar multiplication makes the calculation fast.

Matrix Multiplication: The Big Idea

Matrix multiplication is one of the most important matrix skills. It is also the operation that students often find most different from ordinary multiplication.

To multiply two matrices, the number of columns in the first matrix must match the number of rows in the second matrix. If $A$ is an $m \times n$ matrix and $B$ is an $n \times p$ matrix, then $AB$ is defined and the result is an $m \times p$ matrix.

The entries of the product come from row-by-column multiplication. This means each entry in the product is found by multiplying matching entries from a row of the first matrix and a column of the second matrix, then adding the results.

Example:

$$

$A = \begin{bmatrix}$

1 & 2 \\

3 & 4

$\end{bmatrix},$

$\quad$

$B = \begin{bmatrix}$

5 & 6 \\

7 & 8

$\end{bmatrix}$

$$

Then

$$

$AB = \begin{bmatrix}$

$1\cdot 5$ + $2\cdot 7$ & $1\cdot 6$ + $2\cdot 8$ \\

$3\cdot 5$ + $4\cdot 7$ & $3\cdot 6$ + $4\cdot 8$

$\end{bmatrix}$

$= \begin{bmatrix}$

19 & 22 \\

43 & 50

$\end{bmatrix}.$

$$

Notice that $AB$ is not the same as $BA$ in many cases. In fact,

$$

$BA = \begin{bmatrix}$

5 & 6 \\

7 & 8

$\end{bmatrix}$

$\begin{bmatrix}$

1 & 2 \\

3 & 4

$\end{bmatrix}$

$= \begin{bmatrix}$

23 & 34 \\

31 & 46

$\end{bmatrix},$

$$

so $AB \neq BA$. This is a key reason matrix multiplication is different from multiplication with numbers.

Matrices and Systems of Linear Equations

Matrices are closely connected to systems of equations. A system of linear equations can be written in matrix form to make the structure easier to see.

Consider the system

$$

$\begin{aligned}$

$2x + y &= 7 \\$

$3x - y &= 5$

$\end{aligned}$

$$

This can be written as

$$

$\begin{bmatrix}$

2 & 1 \\

3 & -1

$\end{bmatrix}$

$\begin{bmatrix}$

x \\

y

$\end{bmatrix}$

$=$

$\begin{bmatrix}$

7 \\

5

$\end{bmatrix}.$

$$

The first matrix contains the coefficients, the second matrix contains the variables, and the last matrix contains the constants. This form is called a matrix equation.

Why is this helpful? Because it lets us see how the coefficients act on the variable vector. It also connects matrices to vectors, since a column matrix with one column is often used as a vector.

In AP Precalculus, you do not need advanced matrix methods beyond the course focus, but you should be able to recognize matrix representations and use them to organize and reason about information. This supports the broader topic of Functions Involving Parameters, Vectors, and Matrices because matrices can describe patterns, relationships, and transformations among quantities.

Matrices and Vectors

A vector can be written as a column matrix, such as

$$

$\mathbf{v}$ = $\begin{bmatrix} 3$ \ -$2 \end{bmatrix}$.

$$

This makes matrices a natural way to work with vectors. A matrix can transform a vector into another vector.

For example, if

$$

$M = \begin{bmatrix}$

2 & 0 \\

1 & 3

$\end{bmatrix}$

$$

and

$$

$\mathbf{v} = \begin{bmatrix}$

4 \\

1

$\end{bmatrix},$

$$

then

$$

$M\mathbf{v} = \begin{bmatrix}$

$2\cdot 4 + 0\cdot 1 \\$

$1\cdot 4 + 3\cdot 1$

$\end{bmatrix}$

$= \begin{bmatrix}$

8 \\

7

$\end{bmatrix}.$

$$

This is a simple example of how a matrix can act on a vector. In geometry, matrix transformations can stretch, shrink, reflect, or rotate figures. Even when AP Precalculus does not ask you to prove these properties, it is important to understand that matrices can model changes in position or scale.

Why Matrices Matter in AP Precalculus

students, matrices fit into AP Precalculus because they help organize relationships among numbers, variables, and vectors. They connect to several major ideas:

  • Parameters: matrices can include values that change, allowing models to adapt.
  • Vectors: vectors are often written as column matrices.
  • Functions: a matrix can represent a rule that changes one vector into another.
  • Linear structure: matrices help express linear relationships efficiently.

A real-world example is an animation program. A shape may be stored as points in a coordinate plane. A matrix can transform those points to make the shape larger, flipped, or tilted. Another example is computer graphics in video games, where matrices help move objects on the screen 🎮

Even if matrices are not heavily assessed on the AP Exam, the topic builds mathematical maturity. It helps you move from working with single numbers to working with structured collections of numbers, which is an important step in higher mathematics.

Conclusion

Matrices are organized arrays of numbers that help us store information, represent systems, and model transformations. You should know the terms row, column, entry, dimension, identity matrix, and square matrix. You should also understand basic operations such as addition, subtraction, scalar multiplication, and matrix multiplication. Most importantly, students, you should see how matrices connect to vectors and to the larger AP Precalculus theme of functions involving parameters, vectors, and matrices.

When you encounter a matrix, ask: What does each entry represent? What are the dimensions? What operation is allowed? What real-world situation could this table model? Thinking this way will help you use matrices with confidence and accuracy ✅

Study Notes

  • A matrix is a rectangular array of numbers arranged in rows and columns.
  • The size of a matrix is written as $m \times n$.
  • An entry is a single number in a matrix.
  • A square matrix has the same number of rows and columns.
  • The identity matrix has $1$’s on the main diagonal and $0$’s elsewhere.
  • Matrices can be added or subtracted only if they have the same dimensions.
  • Scalar multiplication means multiplying every entry by the same number.
  • Matrix multiplication uses row-by-column multiplication.
  • In general, $AB \neq BA$.
  • A system of linear equations can be written as a matrix equation.
  • Column vectors can be written as matrices, which helps connect matrices to vectors.
  • Matrices are useful for organizing data, solving problems, and modeling transformations.
  • In AP Precalculus, matrices support reasoning about parameters, vectors, and functions.

Practice Quiz

5 questions to test your understanding

Matrices — AP Precalculus | A-Warded