
# 2.2: Solving Equations - Multiple Steps


Recall the “Wrap” and “Unwrap” discussion from Section 2.1. To wrap a present we put the gift paper on, put the tape on, and put the decorative bow on. To unwrap the gift, we must “undo” each of these steps in inverse order. Hence, to unwrap the gift we take oﬀ the decorative bow, take oﬀ the tape, and take oﬀ the gift paper.

Now, imagine a machine that multiplies its input by $$3$$, then adds $$5$$ to the result. This machine is pictured on the left in Figure $$\PageIndex{1}$$.

To “unwrap” the eﬀect of the machine on the left, we need a machine that will “undo” each of the steps of the ﬁrst machine, but in inverse order. The “unwrapping” machine is pictured on the right in Figure $$\PageIndex{1}$$. It will ﬁrst subtract $$5$$ from its input, then divide the result by $$3$$. Note that each of these operations “undoes” the corresponding operation of the ﬁrst machine, but in inverse order.

The following argument shows that the second machine “undoes” the operation of the ﬁrst machine.

1. Drop the integer $$4$$ into the machine on the left in Figure $$\PageIndex{1}$$. This machine will ﬁrst multiply $$4$$ by $$3$$, then add $$5$$ to the result. The result is $$3(4) + 5$$, or $$17$$.
2. To “unwrap” this result, drop $$17$$ into the machine on the right. This machine ﬁrst subtracts $$5$$, then divides the result by $$3$$. The result is $$(17-5)/3$$, or $$4$$, the original integer that was put into the ﬁrst machine.

Example $$\PageIndex{1}$$

Solve for $$x : 3 x+5=14$$.

Solution

On the left, order of operations demands that we ﬁrst multiply $$x$$ by $$3$$, then add $$5$$. To solve this equation for $$x$$, we must “undo” each of these operations in inverse order. Thus, we will ﬁrst subtract $$5$$ from both sides of the equation, then divide both sides by $$3$$.

\begin{aligned} 3x+5 &=14 \quad \color{Red} \text{ Original equation. } \\ 3x+5-5 &=14-5 \quad \color{Red} \text{ To "undo" adding 5, subtract 5 from both sides of the equation. } \\ 3x &=9 \quad \color{Red} \text{ Simplify both sides. } \\ \dfrac{3 x}{3} &=\dfrac{9}{3} \quad \color{Red} \text{ To "undo" multiplying by 3, divide both sides of the equation by 3. } \\ x&=3 \quad \color{Red} \text{ Simplify both sides. } \end{aligned} \nonumber

Check: To check the solution, substitute $$3$$ for $$x$$ in the original equation and simplify.

\begin{aligned} 3x+5 &=14 \quad \color{Red} \text{ Original equation. } \\ 3(3)+5 &=14 \quad \color{Red} \text{ Substitute 3 for x. } \\ 9+5 &=14 \quad \color{Red} \text{Multiply first: 3(3) = 9. } \\ 14 &=14 \quad \color{Red} \text{ Add: 9 + 5 = 14. } \end{aligned} \nonumber

Because the last line of the check is a true statement, this guarantees that $$3$$ is a solution of the original equation.

Exercise $$\PageIndex{1}$$

Solve for $$x :2 x+3=7$$.

$$x=2$$

Let’s try an equation with fractions.

Example $$\PageIndex{2}$$

Solve for $$x : \dfrac{x}{5}-\dfrac{2}{3}=\dfrac{1}{2}$$.

Solution

On the left, order of operations demands that we ﬁrst divide $$x$$ by $$5$$, then subtract $$2/3$$. To solve this equation for $$x$$, we must “undo” each of these operations in inverse order. Thus, we will ﬁrst add $$2/3$$ to both sides of the equation, then multiply both sides of the resulting equation by $$5$$.

\begin{aligned} \dfrac{x}{5}-\dfrac{2}{3} &=\dfrac{1}{2} \quad \color{Red} \text{ Original equation. }\\ \dfrac{x}{5}-\dfrac{2}{3}+\dfrac{2}{3} &=\dfrac{1}{2}+\dfrac{2}{3} \quad \color{Red} \text{ To "undo" subtracting 2/3, add 2/3 to both sides of the equation. } \end{aligned} \nonumber

On the left, we simplify. On the right, we make equivalent fractions with a common denominator.

\begin{aligned} \dfrac{x}{5}&=\dfrac{3}{6}+\dfrac{4}{6} \quad \color{Red} \text { Make equivalent fractions } \\ \dfrac{x}{5}&=\dfrac{7}{6} \quad \color{Red} \text { Add: } \dfrac{3}{6}+\dfrac{4}{6}=\dfrac{7}{6} \end{aligned} \nonumber

Now we “undo” dividing by ﬁve by multiplying both sides of the equation by $$5$$.

\begin{aligned} \left(\dfrac{x}{5}\right)&=5\left(\dfrac{7}{6}\right) \quad \color{Red} \text { Multiply both sides by } 5 \\ x&=\dfrac{35}{6} \quad \color{Red} \text { On the left, simplify. On the right, multiply: } 5\left(\dfrac{7}{6}\right)=\dfrac{35}{6} \end{aligned} \nonumber

Check: Let’s use the TI-84 to check this solution.

1. Store the value $$35/6$$ in the variable $$X$$ using the following keystrokes.
1. Enter the left-hand side of the original equation: $$x/5 - 2/3$$. Use the following keystrokes.
1. Press the MATH button on your calculator (see Figure $$\PageIndex{3}$$), then select 1:►Frac, then press the ENTER button. This will convert the decimal result to a fraction (see Figure $$\PageIndex{3}$$).

Note that the result is $$\dfrac{1}{2},$$ showing that $$\dfrac{35}{6}$$ is a solution of $$\dfrac{x}{5}-\dfrac{2}{3}=\dfrac{1}{2}$$.

Exercise $$\PageIndex{2}$$

Solve for $$x: \dfrac{x}{2}-\dfrac{3}{5}=\dfrac{1}{4}$$.

$$x = 17/10$$

Let’s try an equation with decimals.

Example $$\PageIndex{3}$$

Solve for $$x : 5.2 x+2.3=-3.94$$.

Solution

On the left, order of operations demands that we ﬁrst multiply $$x$$ by $$5.2$$, then add 2.3. To solve this equation for $$x$$, we must “undo” each of these operations in inverse order. Thus, we will ﬁrst subtract $$2.3$$ from both sides of the equation, then divide both sides by $$5.2$$.

\begin{aligned} 5.2 x+2.3 &=-3.94 \quad \color{Red} \text{ Original equation. }\\ 5.2 x+2.3-2.3 &=-3.94-2.3 \quad \color{Red} \text{ To "undo" adding 2.3, subtract 2.3 from both sides.}\\ 5.2 x &=-6.24 \quad \color{Red} \text{ On the left, simplify. On the right, add: -3.94-2.3=-6.24. }\\ \frac{5.2 x}{5.2} &=\frac{-6.24}{5.2} \quad \color{Red} \text{ To undo multiplying by 5.2, divide both sides by 5.2. }\\ x &=-1.2 \quad \color{Red} \text{ On the left, simplify. On the right, divide: -6.24/5.2=-1.2. } \end{aligned} \nonumber

Check: To check the solution, substitute $$-1.2$$ for $$x$$ in the original equation and simplify.

\begin{aligned} 5.2 x+2.3 &=-3.94 \quad \color{Red} \text{ Original equation. }\\ 5.2(-1.2)+2.3 &=-3.94 \quad \color{Red} \text{ Substitute -1.2 for x. }\\ -6.24+2.3 &=-3.94 \quad \color{Red} \text{ Multiply: 5.2(-1.2)=-6.24 }\\ -3.94 &=-3.94 \quad \color{Red} \text{ Add: -6.24+2.3=-3.94 } \end{aligned} \nonumber

Because the last line of the check is a true statement, this guarantees that $$-1.2$$ is a solution of the original equation.

Exercise $$\PageIndex{3}$$

Solve for $$x: 3.25-1.2 x=0.37$$.

$$x=2.4$$

## Variables on Both Sides of the Equation

It is not uncommon that the variable you are solving for appears in terms on both sides of the equation. Consider, for example, the equation $$2x+3=5−7x$$. In cases like this, it is helpful to have a general understanding of what it means to “solve for $$x$$.”

Solve for x

When asked to solve an equation for $$x$$, the goal is to manipulate the equation into the ﬁnal form

$$x=\text{"Stuff"}$$

where “Stuﬀ” is a valid mathematical expression that may contain other variables, mathematical symbols, etc., but it must not contain any occurrence of the variable $$x$$.

In this section, “Stuﬀ” will always be a single number, but in Section 2.4, Formulae, “Stuﬀ” will take on added complexity, including variables other than $$x$$.

Strategy for solving for $$x$$

When asked to solve an equation for $$x$$, a common strategy is to isolate all terms containing the variable $$x$$ on one side of the equation and move all terms not containing the variable $$x$$ to the other side of the equation.

Example $$\PageIndex{4}$$

Solve $$3-2 x=5 x+9$$ for $$x$$.

Solution

We need to isolate all terms containing $$x$$ on one side of the equation. We can eliminate $$5x$$ from the right-hand side of $$3−2x =5x+9$$ by subtracting $$5x$$ from both sides of the equation.

\begin{aligned} 3-2x &=5x+9 \quad \color{Red} \text { Original equation. } \\ 3-2x-5x & =5x+9-5x \quad \color{Red} \text { Subtract } 5x \text { from both sides. } \\ 3-7x &=9 \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

Next, eliminate $$3$$ from the left-hand side of the last equation by subtracting $$3$$ from both sides of the equation.

\begin{aligned} 3-7x-3 & =9-3 \quad \color{Red} \text { Subtract } 3 \text { from both sides. } \\ -7x & =6 \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

Note how we have isolated all terms containing $$x$$ on one side of the equation.

\begin{aligned} \dfrac{-7 x}{-7}&=\dfrac{6}{-7} \quad \color{Red} \text { Divide both sides by }-7 \\ x&=-\dfrac{6}{7} \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

Check: To check the solution, substitute $$-6/7$$ for $$x$$ in the original equation.

\begin{aligned} 3-2 x &=5 x+9 \quad \color{Red} \text { Original equation. }\\ 3-2\left(-\dfrac{6}{7}\right) &=5\left(-\dfrac{6}{7}\right)+9 \quad \color{Red} \text { Substitute -6/7 for x. }\\ 3+\dfrac{12}{7} &=-\dfrac{30}{7}+9 \quad \color{Red} \text { Multiply: } -2(-6/7)=12/7 \text { and } 5(-6/7)=-30/7. \\ \dfrac{21}{7}+\dfrac{12}{7} &=-\dfrac{30}{7}+\dfrac{63}{7} \quad \color{Red} \text { Make equivalent fractions with a common denominator. }\\ \dfrac{33}{7} &=\dfrac{33}{7} \quad \color{Red} \text { Add. } \end{aligned} \nonumber

Because the last line of the check is a true statement, this guarantees that $$-6/7$$ is a solution of the original equation.

Exercise $$\PageIndex{4}$$

Solve for $$x: 4x+7=5-8x$$.

$$x=-1 / 6$$

## Simplifying Expressions when Solving Equations

Sometimes we need to simplify expressions before we can isolate terms containing $$x$$.

Example $$\PageIndex{5}$$

Solve for $$x: 2(3 x+1)-3(4-2 x)=-34$$.

Solution

We’ll ﬁrst simplify the expression on the left-hand side of the equation using the Rules Guiding Order of Operations.

\begin{aligned}2(3 x+1)-3(4-2 x)&=-34 \quad \color{Red} \text { Original equation. } \\ 6x+2-12+6x&=-34 \quad \color{Red} \text { Multiply: } 2(3 x+1)=6 x+2 \text {, Multiply: } -3(4-2 x)=-12+6 x\\ 12 x-10&=-34 \quad \color{Red} \text { Add: } 6x+6 x=12x \text {, Add: } 2-12=-10\\ \end{aligned} \nonumber

To “undo” subtracting $$10$$, we add $$10$$ to both sides of the equation.

\begin{aligned} 12x-10+10&=-34+10 \quad \color{Red} \text { Add } 10 \text { to both sides. } \\ 12x&=-24 \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

To “undo” multiplying by $$12$$, we divide both sides by $$12$$.

\begin{aligned} \dfrac{12 x}{12}&=\dfrac{-24}{12} \quad \color{Red} \text { Divide both sides by } 12\\ x&=-2 \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

Check: Let’s use the TI-84 to check this solution.

1. First, store −2 in the variableX using the following keystrokes.
1. Enter the left-hand side of original equation: $$2(3x + 1)-3(4-2x)$$. Use the following keystrokes.

Note that when $$-2$$ is substituted for $$x$$ in the left-hand of the equation, the result is $$-34$$, equalling the right-hand side of the equation. Thus, the solution $$-2$$ checks.

Exercise $$\PageIndex{5}$$

Solve for $$x : 2 x-(x-2)=2(x+7)$$.

$$x=-12$$

Example $$\PageIndex{6}$$

Solve for $$x : 2 x-5(3-2 x)=4(x-1)$$.

Solution

We’ll ﬁrst simplify the expressions on each side of the equation using the Rules Guiding Order of Operations.

\begin{aligned} 2x-5(3-2x)&=4(x-1) \quad \color{Red} \text { Original equation. } \\ 2x-15+10x&=4x-4 \quad \color{Red} \text { On the left, distribute the -5. On the right, distribute the 4.} \\ 12x-15&=4x-4 \quad \color{Red} \text { On the left, add: } 2x+10x=12 x \end{aligned} \nonumber

Next, we need to isolate terms containing the variable $$x$$ on one side of the equation. To remove the term $$4x$$ from the right-hand side, we subtract $$4x$$ from both sides of the equation.

\begin{aligned} 12x-15-4x&=4x-4-4x \quad \color{Red} \text { Subtract } 4 x \text { from both sides. } \\ 8x-15&=-4 \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

To remove the term $$-15$$ from the left-hand side, we add $$15$$ to both sides of the equation.

\begin{aligned} 8x-15+15&=-4+15 \quad \color{Red} \text { Add } 15 \text { to both sides. } \\ 8x&=11 \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

Finally, to “undo” multiplying by $$8$$, we divide both sides by $$8$$.

\begin{aligned} \dfrac{8x}{8}&=\dfrac{11}{8} \quad \color{Red} \text { Divide both sides by } 8 \\ x&=\dfrac{11}{8} \quad \color{Red} \text { Simplify both sides. } \end{aligned} \nonumber

Check: Let’s use the TI-84 to check this solution.

1. First, store 11/8 in the variable X using the following keystrokes.
1. Enter the left-hand side of the original equation: $$2x-5(3-2x)$$. Use the following keystrokes.
1. Enter the right-hand side of the original equation: $$4(x - 1)$$. Use the following keystrokes.

There is no need to use the 1:►Frac from the MATH menu this time. The fact that both sides of the equation evaluate to an identical $$1.5$$ when $$x = 11 /8$$ guarantees that $$11/8$$ is a solution of $$2x-5(3-2x) = 4(x-1)$$.

Exercise $$\PageIndex{6}$$

Solve for $$x:5(1-x)=2(x+3)-(x-1)$$.

$$x=-1 / 3$$