<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
You are viewing an older version of this Concept. Go to the latest version.

## Sum corresponding elements of same-dimension matrices

0%
Progress
Progress
0%

Using the movie theater example from the previous lesson, how could we determine how much more the theater charges at night for each ticket type?

Recall that for a matinee movie, the movie theater charges the following prices:

Kids: $5 Adults:$8 Seniors: $6 For the same movie at night, the theater charges the following prices: Kids:$7 Adults: $10 Seniors:$8

### Watch This

Watch the middle portion of this video, from about 4:00 to 6:25.

### Guidance

If two matrices have the same dimensions, then they can be added or subtracted by adding or subtracting corresponding elements as shown below.

$\begin{bmatrix}a & b\\c & d\end{bmatrix}+\begin{bmatrix}e & f\\g & h\end{bmatrix}=\begin{bmatrix}a+e & b+f\\c+g & d+h\end{bmatrix}$

Subtraction:

$\begin{bmatrix}a & b\\c & d\end{bmatrix}-\begin{bmatrix}e & f\\g & h\end{bmatrix}=\begin{bmatrix}a-e & b-f\\c-g & d-h\end{bmatrix}$

It is important to note that the two matrices are not required to be square matrices. The requirement is that they are the same dimensions. In other words, you can add two matrices that are both $2 \times 3$ , but you cannot add a $2 \times 2$ matrix with a $3 \times 2$ matrix. Before attempting to add two matrices, check to make sure that they have the same dimensions.

#### Investigation: Commutative and Associative Properties of Addition

The Commutative Property of Addition states that $a + b = b + a$ for real numbers, $a$ and $b$ . Does this property hold for matrices? The Associative Property of Addition states that $a + (b + c) = (a + b) + c$ for real numbers, $a, b$ and $c$ . Does this property hold for matrices? Consider the matrices below:

$A = \begin{bmatrix}-3 & 7\\4 & -1 \end{bmatrix} \qquad B = \begin{bmatrix}5 & 1\\-8 & -2 \end{bmatrix} \qquad C = \begin{bmatrix}-6 & -10\\5 & 3 \end{bmatrix}$

1. Find $A + B \Rightarrow \begin{bmatrix}-3 & 7\\4 & -1 \end{bmatrix} + \begin{bmatrix}5 & 1\\-8 & -2 \end{bmatrix} = \begin{bmatrix}2 & 8\\-4 & -3 \end{bmatrix}$

2. Find $B + A \Rightarrow \begin{bmatrix}5 & 1\\-8 & -2 \end{bmatrix} + \begin{bmatrix}-3 & 7\\4 & -1 \end{bmatrix} = \begin{bmatrix}2 & 8\\-4 & -3 \end{bmatrix}$

Since $A + B = B + A$ , we can conjecture that matrix addition is commutative.

3. Find $(A + B) + C \Rightarrow \left( \begin{bmatrix}-3 & 7\\4 & -1 \end{bmatrix} + \begin{bmatrix}5 & 1\\-8 & -2 \end{bmatrix} \right) + \begin{bmatrix}-6 & -10\\5 & 3 \end{bmatrix} = \begin{bmatrix}2 & 8\\-4 & -3 \end{bmatrix} + \begin{bmatrix}-6 & -10\\5 & 3 \end{bmatrix} = \begin{bmatrix}-4 & -2\\1 & 0 \end{bmatrix}$

4. Find $A + (B + C) \Rightarrow \begin{bmatrix}-3 & 7\\4 & -1 \end{bmatrix} + \left( \begin{bmatrix}5 & 1\\-8 & -2 \end{bmatrix} + \begin{bmatrix}-6 & -10\\5 & 3 \end{bmatrix} \right) = \begin{bmatrix}-3 & 7\\4 & -1 \end{bmatrix} + \begin{bmatrix}-1 & -9\\-3 & 1 \end{bmatrix} = \begin{bmatrix}-4 & -2\\1 & 0 \end{bmatrix}$

Since $(A + B) + C = A + (B + C)$ , we can conjecture that the associative property is true for matrix addition as well.

Commutative Property: $A + B = B + A$

Associative Property: $(A + B) + C = A + (B + C)$

$^*$ Note that these properties do not work with subtraction with real numbers. For example: $7 -5 \ne 5 - 7$ . Because they do not hold for subtraction of real numbers, they also do not work with matrix subtraction.

#### Example A

Find the sum: $\begin{bmatrix}4 & -5 & 6\\-3 & 7 & 9 \end{bmatrix} + \begin{bmatrix}-1 & 4 & 8\\0 & -3 & 12 \end{bmatrix} =$

Solution:

By adding the elements in corresponding positions we get:

$\begin{bmatrix}4 & -5 & 6\\-3 & 7 & 9 \end{bmatrix} + \begin{bmatrix}-1 & 4 & 8\\0 & -3 & 12 \end{bmatrix} = \begin{bmatrix}4+-1 & -5+4 & 6+8\\-3+0 & 7+-3 & 9+12 \end{bmatrix} = \begin{bmatrix}3 & -1 & 14\\-3 & 4 & 21 \end{bmatrix}$

#### Example B

Find the difference: $\begin{bmatrix}-7\\6\\-9\\10 \end{bmatrix} - \begin{bmatrix}-3\\-2\\8\\15 \end{bmatrix} =$

Solution:

By subtracting the elements in corresponding positions we get:

$\begin{bmatrix}-7\\6\\-9\\10 \end{bmatrix} - \begin{bmatrix}-3\\-2\\8\\15 \end{bmatrix} = \begin{bmatrix}-7-(-3)\\6-(-2)\\-9-8\\10-15 \end{bmatrix} = \begin{bmatrix}-4\\8\\-17\\-5 \end{bmatrix}$

#### Example C

Perform the indicated operation: $\begin{bmatrix}-4 & 2\\5 & -3\\13 & 8 \end{bmatrix} + \begin{bmatrix}7 & -1 & 0\\-5 & 2 & 6 \end{bmatrix}$

Solution:

In this case the first matrix is $3 \times 2$ and the second matrix is $2 \times 3$ . Because they have different dimensions they cannot be added.

Intro Problem Revisit We could organize the data into two separate matrices and subtract.

$\begin{bmatrix}7 & 10 & 8\end{bmatrix} - \begin{bmatrix}5 & 8 & 6\end{bmatrix} = \begin{bmatrix}2 & 2 & 2\end{bmatrix}$

We can now easily see that the movie theater charges \$2 more for each ticket type at night.

### Guided Practice

Perform the indicated operation.

1. $\begin{bmatrix}3 & -7\end{bmatrix} + \begin{bmatrix}-1 & 8\end{bmatrix}$

2. $\begin{bmatrix}1\\-5 \end{bmatrix} - \begin{bmatrix}3 & -3\\4 & 1 \end{bmatrix}$

3. $\begin{bmatrix}6 & -7\\-11 & 5 \end{bmatrix} - \begin{bmatrix}-2 & 4\\-3 & 9 \end{bmatrix}$

1. $\begin{bmatrix}3 & -7 \end{bmatrix} + \begin{bmatrix}-1 & 8 \end{bmatrix} = \begin{bmatrix}3+(-1) & -7+8 \end{bmatrix} = \begin{bmatrix}2 & 1 \end{bmatrix}$

2. These matrices cannot be subtracted because they have different dimensions.

3. $\begin{bmatrix}6 & -7\\-11 & 5 \end{bmatrix} - \begin{bmatrix}-2 & 4\\-3 & 9 \end{bmatrix} = \begin{bmatrix}6-(-2) & -7-4\\-11-(-3) & 5-9 \end{bmatrix} = \begin{bmatrix}8 & -11\\-8 & -4 \end{bmatrix}$

### Practice

Perform the indicated operation (if possible).

1. .
$\begin{bmatrix}2 & -1\\5 & 0 \end{bmatrix} + \begin{bmatrix}-6 & 0\\3 & -4 \end{bmatrix}$
1. .
$\begin{bmatrix}3 & -2\\-5 & 1\\10 & 9 \end{bmatrix} - \begin{bmatrix}-2 & 7\\10 & -8\\7 & 5 \end{bmatrix}$
1. .
$\begin{bmatrix}4 \\-2\\12\\7 \end{bmatrix} + \begin{bmatrix}-1 \\9 \\-2 \\0 \end{bmatrix}$
1. .
$\begin{bmatrix}-1 & -4 & -1 & 12\\2 & 6 & 14 & 5\end{bmatrix} - \begin{bmatrix}-3 & 1\\7 & -6 \end{bmatrix}$
1. .
$\begin{bmatrix}4 & -1\end{bmatrix} + \begin{bmatrix}0 & 5\end{bmatrix} - \begin{bmatrix}-12 & 3 \end{bmatrix}$
1. .
$\begin{bmatrix}3 & 5 \end{bmatrix} + \begin{bmatrix}-2 & -1 \end{bmatrix}$
1. .
$\begin{bmatrix}2\\7 \end{bmatrix} + \begin{bmatrix}-3 & 5 \end{bmatrix}$
1. .
$\begin{bmatrix}11 & 7 & -3\\9 & 15 & 8 \end{bmatrix} + \begin{bmatrix}20 & -4 & 7\\1 & 11 & -13 \end{bmatrix}$
1. .
$\begin{bmatrix}25\\19\\-5 \end{bmatrix} - \begin{bmatrix}11\\20\\-3 \end{bmatrix}$
1. .
$\begin{bmatrix}2 & -5 & 3\\9 & 15 & 8\\-1 & -4 & 6 \end{bmatrix} + \begin{bmatrix}-3 & 8 & -3\\11 & -6 & -7\\0 & 8 & 5 \end{bmatrix}$
1. .
$\begin{bmatrix}-3 & 2\\4 & -1 \end{bmatrix} - \begin{bmatrix}6 & -11 & 13\\17 & 8 & 10 \end{bmatrix}$
1. .
$\begin{bmatrix}-5 & 2\\9 & -3 \end{bmatrix} + \begin{bmatrix}-3 & -5\\8 & 12 \end{bmatrix}$
1. .
$\left( \begin{bmatrix}5 & -2\\-3 & 1 \end{bmatrix} + \begin{bmatrix}-8 & 5\\6 & 13 \end{bmatrix} \right) - \begin{bmatrix}-10 & 8\\9 & 1 \end{bmatrix}$
1. .
$\begin{bmatrix}-5 & 2\\11 & 3 \end{bmatrix} - \left( \begin{bmatrix}8 & -2\\3 & 5 \end{bmatrix} + \begin{bmatrix}-12 & 3\\-6 & 15 \end{bmatrix} \right)$
1. .
$\left( \begin{bmatrix}22 & -7\\5 & 3\\11 & -8 \end{bmatrix} - \begin{bmatrix}-8 & 9\\15 & 12\\10 & -1 \end{bmatrix} \right) + \begin{bmatrix}5 & 11\\17 & -3\\-9 & 4 \end{bmatrix}$