Main content

### Course: Algebra (all content) > Unit 20

Lesson 4: Adding & subtracting matrices# Adding & subtracting matrices

Learn how to find the result of matrix addition and subtraction operations.

## What you should be familiar with before taking this lesson

A

**matrix**is a rectangular arrangement of numbers into rows and columns. Each number in a matrix is referred to as a**matrix element**or**entry**.The $A$ has $2$ rows and $3$ columns, it is called a $2\times 3$ matrix.

**dimensions**of a matrix give the number of rows and columns of the matrix*in that order*. Since matrixIf this is new to you, we recommend that you check out our intro to matrices.

## What you will learn in this lesson

As long as the dimensions of two matrices are the same, we can add and subtract them much like we add and subtract numbers. Let's take a closer look!

## Adding matrices

Given $\mathbf{A}=\left[\begin{array}{cc}4& 8\\ \\ 3& 7\end{array}\right]$ and $\mathbf{B}=\left[\begin{array}{cc}1& 0\\ \\ 5& 2\end{array}\right]$ , let's find $\mathbf{A}+\mathbf{B}$ .

We can find the sum simply by adding the corresponding entries in matrices $\mathbf{A}$ and $\mathbf{B}$ . This is shown below.

### Check your understanding

## Subtracting matrices

Similarly, to subtract matrices, we subtract the corresponding entries.

For example, let's consider $\mathbf{C}=\left[\begin{array}{cc}2& 8\\ \\ 0& 9\end{array}\right]$ and $\mathbf{D}=\left[\begin{array}{cc}5& 6\\ \\ 11& 3\end{array}\right]$ .

We can find $\mathbf{C}-\mathbf{D}$ by subtracting the corresponding entries in matrices $\mathbf{C}$ and $\mathbf{D}$ . This is shown below.

### Check your understanding

## Scalar multiplication as repeated addition

Suppose we wanted to consider the

*repeated addition*of a matrix.If $\mathbf{A}=\left[\begin{array}{cc}4& 8\\ \\ 2& 1\end{array}\right]$ , let's find $\mathbf{A}+\mathbf{A}+\mathbf{A}$ .

Here we see that $\mathbf{A}+\mathbf{A}+\mathbf{A}=3\mathbf{A}$ .

This is true for other scalar multiplications, so we can interpret scalar multiplication in the same way as we interpret multiplication with real numbers–as repeated matrix addition!

## Subtraction as the addition of the opposite

Another way scalar multiplication relates to addition and subtraction is by thinking about $\mathbf{A}-\mathbf{B}$ as $\mathbf{A}+(-\mathbf{B})$ , which is in turn the same as $\mathbf{A}+(-1)\cdot \mathbf{B}$ . This is similar to how we can think about subtraction of two real numbers!

## Want to join the conversation?

No posts yet.