PrecalculusMatricesN-VM.C.7

Matrices and Matrix Arithmetic

Add matrices and multiply them by numbers.

Not started Jump to practice

When you solved systems in three variables, most of the writing was the same letters over and over. Only the numbers mattered. A matrix is a rectangular table that keeps just the numbers, and it turns out to be useful far beyond systems: in graphics, statistics and economics.

Key idea

An $m \times n$ matrix has $m$ rows and $n$ columns. The entry in row $i$, column $j$ is $a_{ij}$. Matrices of the same size add and subtract entry by entry, and a number (a scalar) multiplies every entry: $$k\begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{bmatrix} ka & kb \\ kc & kd \end{bmatrix}.$$

Why it works

Think of a matrix as a table of data, say the number of small, medium and large shirts (columns) at two stores (rows). Next week's delivery is another table of the same shape. The new stock is found by adding matching entries; there is nothing sensible to add across different positions, and tables of different shapes cannot be matched at all. Doubling every order doubles every entry, which is scalar multiplication.

Worked examples

Worked example: Size and entries

For $A = \begin{bmatrix} 2 & -1 & 0 \\ 5 & 3 & 4 \end{bmatrix}$, give the size and $a_{21}$.
  1. $2$ rows and $3$ columns: $A$ is $2 \times 3$ (rows first).
  2. $a_{21}$ is row $2$, column $1$: $5$.

Answer: $2 \times 3$; $a_{21} = 5$

Worked example: Adding and scaling

Let $A = \begin{bmatrix} 1 & 4 \\ -2 & 0 \end{bmatrix}$ and $B = \begin{bmatrix} 3 & -1 \\ 5 & 2 \end{bmatrix}$. Find $A + B$ and $2A - B$.
  1. $$A + B = \begin{bmatrix} 1 + 3 & 4 - 1 \\ -2 + 5 & 0 + 2 \end{bmatrix} = \begin{bmatrix} 4 & 3 \\ 3 & 2 \end{bmatrix}.$$
  2. $2A = \begin{bmatrix} 2 & 8 \\ -4 & 0 \end{bmatrix}$, so $2A - B = \begin{bmatrix} 2 - 3 & 8 + 1 \\ -4 - 5 & 0 - 2 \end{bmatrix}$.

Answer: $A + B = \begin{bmatrix} 4 & 3 \\ 3 & 2 \end{bmatrix}$, $2A - B = \begin{bmatrix} -1 & 9 \\ -9 & -2 \end{bmatrix}$

Worked example: A matrix equation

Solve $$X + \begin{bmatrix} 3 & 1 \\ 0 & -2 \end{bmatrix} = \begin{bmatrix} 5 & 1 \\ -4 & 6 \end{bmatrix}.$$
  1. Subtract the known matrix from both sides, entry by entry.
  2. $X = \begin{bmatrix} 5 - 3 & 1 - 1 \\ -4 - 0 & 6 - (-2) \end{bmatrix}$.

Answer: $X = \begin{bmatrix} 2 & 0 \\ -4 & 8 \end{bmatrix}$

Common mistake

Reading the size or an entry in the wrong order. Size and position are always row first, then column: a $2 \times 3$ matrix is two rows long and three columns wide, and $a_{21}$ is in the second row. Also, matrices of different sizes cannot be added; there is no "missing entry is zero" rule.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 1 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax Precalculus 2e, Section 9.5 Matrices and Matrix Operations
  • Common Core State Standards for Mathematics, N-VM.C.7
@teddyrookbook GitHub