In this explainer, we will learn how to add and subtract algebraic expressions by adding and subtracting like terms.

We first recall that we can add or subtract monomial expressions (products of constants and variables raised to integer exponents) with the same variables raised to the same exponents (called like terms) by adding or subtracting their coefficients. For example, if we want to simplify , we can note that these are like terms. In particular, we can take out the factor of to get

We can apply this process with any number of terms. For example, we can simplify by rearranging the terms into descending exponents:

Then, we combine like terms:

We can extend this idea to simplifying the sum or difference of algebraic expressions by collecting like terms and simplifying. For example, imagine we are asked to add to . We can represent this as . We note that we can rearrange the sum of these terms to give

Now, we combine like terms:

This is sometimes referred to as adding the expressions βhorizontallyβ or βthe horizontal method,β since all the expressions are written on the same line. However, this is not the only method we can use. We can also simplify these expressions vertically.

For example, imagine we want to simplify . We can write this subtraction vertically, where we align like terms in the same column as shown:

Observe that we include the term 0 to help keep track of the terms in each column. We can now subtract the terms in each column. We have , , and . We can write this below the bar as follows:

These are known as the horizontal and column methods for adding and subtracting algebraic expressions respectively.

Letβs now see another example of how to apply the horizontal method to determine the simplified form of the addition of two algebraic expressions.

### Example 1: Adding Two Algebraic Expressions

Simplify .

### Answer

We recall we can add algebraic expressions by combining like terms. We first reorder the addition so that like terms are added together:

We can then add like terms by adding their coefficients. This gives

In our next example, we will find the difference between two algebraic expressions by subtracting them vertically.

### Example 2: Subtracting Two Algebraic Expressions by Writing them Vertically

Using the vertical method, subtract the following algebraic expressions:

### Answer

We first recall that we can subtract algebraic expressions by subtracting the coefficients of the like termsβthat is, the terms with the same variables and with the same exponents on these variables. We see that each column contains like terms, so we just need to subtract their coefficients.

We have

Writing this in a column gives the following:

In our third example, we will solve a real-world problem that involves simplifying the difference of algebraic expressions.

### Example 3: Subtracting Expressions to Solve a Word Problem

Sameh had coins and gave coins to Bassem. How many coins does Sameh have left?

### Answer

The number of coins that Sameh has left will be the number of coins he has initially minus the number of coins he gives away. Since he starts with coins and gives to Bassem, he must have coins left.

We can evaluate this difference by subtracting the coefficients of the like terms. We have

Hence, Sameh has coins left.

In our next example, we will solve a real-world problem that involves both the addition and subtraction of algebraic expressions.

### Example 4: Adding and Subtracting Expressions to Solve a Real-World Problem

Rania has . She gives to Karim and then receives from Adel. Write a simplified expression for the remaining amount of money, in dollars, that Rania has.

### Answer

We first note that the amount of dollars that Rania has will be the amount she starts with minus the amount she gives away plus the amount of money she receives. We can write this as . We can simplify this expression by combining like terms. We then have

In our next example, we will determine the areas of two different geometric constructs.

### Example 5: Finding the Areas of Geometric Shapes

Consider three rectangles whose areas are represented by the expressions below.

- All three rectangles are put together such that none of them overlap. Write an expression to represent the area of the new combined shape.
- If shape is removed, and instead it sticks to a fourth rectangle,
, such that the shapes and
do not overlap, the combined area of and is
.

Write an expression to represent the area of rectangle .

### Answer

**Part 1**

Since all three rectangles do not overlap, the area of the combined shape will be the sum of their areas. We can add all of the areas together by reordering the terms so that we can combine like terms. We have

Now, we combine the like terms by adding and subtracting their coefficients; this gives

**Part 2**

Since shapes and do not overlap, the sum of their areas must equal . If we say that shape has an area of square units, then we have that

We can solve for by subtracting the area of shape from the area of the combined shape. Hence,

We reorder the terms as follows:

Finally, we combine like terms. This gives

In our final example, we will use these concepts and our knowledge of simplifying monomials to find an expression for the surface area of a rectangular prism using its dimensions or side lengths.

### Example 6: Finding an Expression for the Surface Area of a Rectangular Prism

Find the surface area of a rectangular prism with side lengths , , and .

### Answer

We can sketch the rectangular prism with these dimensions as follows.

We then recall that the surface area of a polyhedron is the sum of the areas of each of its faces. Since a rectangular prism has rectangular faces, these areas will be given by the products of pairs of its side lengths. We can find expressions for each of these areas by multiplying the given lengths. We have

We can add these areas to the diagram as shown.

Since opposite faces on a rectangular prism have equal areas, the surface area of this rectangular prism will be the sum of double each of these expressions. Therefore,

Hence, the surface area of the rectangular prism is given by the expression .

Letβs finish by recapping some of the important points from this explainer.

### Key Points

- We can add and subtract algebraic expressions by combining like terms. In particular, we add and subtract the coefficients of the like terms.
- We can evaluate these additions or subtractions horizontally, by writing all expressions in a horizontal line, then rearranging and collecting like terms, or vertically, by writing each expression in a separate row such that like terms are in the same column. These are known as the horizontal and vertical/column methods respectively.