How to Add and Subtract Variables

Video Crash Courses

Want to watch animated videos and solve interactive exercises about addition and subtraction of algebraic expressions?

Click here to try the Video Crash Course called “Elementary Algebra”!

Here you’ll learn how to add and subtract variable expressions.

You can only add together like terms. If two or more terms have the same variable or combination of variables, then they are like, and you can add them. When you add two terms together, it looks like this:

3a + 2a = 5a

That’s because

3a + 2a = a + a + a +a + a = 5a.

As you can see, the only thing you need to do is add the numbers in front of the variables—the coefficients—together. This sum tells you how many you have of a given variable or combination of variables. In this case you have a total of five a’s.

Given what you’ve just learned, maybe you have an idea about how you subtract terms from each other! As you may have guessed, you can only subtract terms that are like, too. You do it in the same way you subtract numbers. When you subtract like terms, it looks like this:

3a 2a = 1a = a

That’s because

3a 2a = a + a + aa a = a a0 +a a0 + a = 1a = a.

As you can see, it’s enough to subtract the coefficients in front of the variables. The difference tells you how many of a given variable you’re left with after subtracting.

When you need to add terms together, or subtract them from each other, this is what you do:

Rule

Adding and Subtracting

1.
Separate the expression into terms.
2.
Write any like terms next to each other.
3.
Add and subtract the like terms.

Here are some examples of how to add and subtract terms with variables. Put the terms in alphabetical order, with the terms including only numbers last.

Example 1

Calculate y + y + y + y + x + x + x

= y + y + y + y + x + x + x = 4y + 3x = 3x + 4y

y + y + y + y + x + x + x = 4y + 3x = 3x + 4y

Example 2

Calculate 2a + 3 + 4a + 5a + 1

= 2a + 3 + 4a + 5a + 1 = 2a + 4a + 5a + 3 + 1 = 11a + 4

2a + 3 + 4a + 5a + 1 = 2a + 4a + 5a + 3 + 1 = 11a + 4

Example 3

Calculate 2a + b + 2 4a + 3b 5

= 2a + b + 2 4a + 3b 5 = 2a 4a + b + 3b + 2 5 = 6a + 4b 3

2a + b + 2 4a + 3b 5 = 2a 4a + b + 3b + 2 5 = 6a + 4b 3

Example 4

Add the terms ab 3ab + 5ab

ab 3ab + 5ab = ab

because

= ab 3ab + 5ab = ab ab ab ab + ab + ab + ab + ab + ab = ab

ab 3ab + 5ab = ab ab ab ab + ab + ab + ab + ab + ab = ab

Want to know more?Sign UpIt's free!