If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

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.
3 columns2 rows[255267]
The dimensions of a matrix give the number of rows and columns of the matrix in that order. Since matrix A has 2 rows and 3 columns, it is called a 2×3 matrix.
If 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 A=[4837] and B=[1052], let's find A+B.
We can find the sum simply by adding the corresponding entries in matrices A and B. This is shown below.
A+B=[4837]+[1052]=[4+18+03+57+2]=[5889]

Check your understanding

Problem 1
A=[520119] and B=[234102].
A+B=

Problem 2
Add.
[101263]+[14227]=

Subtracting matrices

Similarly, to subtract matrices, we subtract the corresponding entries.
For example, let's consider C=[2809] and D=[56113].
We can find CD by subtracting the corresponding entries in matrices C and D. This is shown below.
CD=[2809][56113]=[258601193]=[32116]

Check your understanding

Problem 3
X=[4161022] and Y=[11563].
XY=

Problem 4
Subtract.
[349686734][167642415]=

Scalar multiplication as repeated addition

Suppose we wanted to consider the repeated addition of a matrix.
If A=[4821], let's find A+A+A.
=A+A+A=[4821]+[4821]+[4821]=[4+4+48+8+82+2+21+1+1]=[34383231]=3[4821]=3A
Here we see that A+A+A=3A.
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 AB as A+(B), which is in turn the same as A+(1)B. This is similar to how we can think about subtraction of two real numbers!