Two-Step Equations and Undoing Operations in Reverse Order
Solve two-step equations by reversing the order of operations, with worked examples, an alternative first move and word problems.
Key takeaways
- List the operations in the order they act on the unknown, then undo them from last to first.
- In the usual form ax + b = c with a ≠ 0, remove the added constant before dividing by the coefficient.
- A fraction bar groups its whole numerator, so (x + 5)/3 is undone by multiplying first.
- Dividing first is legal if you divide every term on both sides, though it may create fractions.
- Check the solution in the original equation, evaluating each side by the order of operations.
In a two-step equation, two operations have been applied to the unknown, and you remove them one at a time in the opposite order. For 4x + 7 = 31, x was first multiplied by 4 and then had 7 added. So you first subtract 7, then divide by 4, and find x = 6.
Reversing the order is what keeps the work short and the numbers friendly. Once you see how an expression was built, the route back is already decided.
Think about getting dressed
You put on socks first and shoes second. To reverse the process, you take off the shoes first and the socks second. The last thing done is the first thing undone.
Expressions work the same way. Take 4x + 7 and imagine choosing a number for x. The order of operations tells you to multiply by 4 and then add 7. Those two actions, in that order, built the expression.
To get back to x, reverse both the actions and their order.
| Building 4x + 7 | Undoing it |
|---|---|
| 1. multiply by 4 | 2. divide by 4 |
| 2. add 7 | 1. subtract 7 |
The numbers in the right column show the order in which you apply the inverse steps. Each inverse is the same kind of move used in one-step equations.
The basic pattern
Solve 4x + 7 = 31.
4x + 7 = 31
4x = 24 (subtract 7 from both sides)
x = 6 (divide both sides by 4)
Check: 4(6) + 7 = 24 + 7 = 31 Now try one with negative numbers: −3y − 8 = 13.
−3y − 8 = 13
−3y = 21 (add 8 to both sides)
y = −7 (divide both sides by −3)
Check: −3(−7) − 8 = 21 − 8 = 13 The coefficient here is −3, including its sign. Divide by −3 and the coefficient becomes 1. Dividing by 3 would leave −y = 7, which is not wrong but is not finished.
In general terms, if ax + b = c and a is not zero, then x = (c − b)/a. You do not need to memorize that line. It is simply the two inverse steps written with letters.
When the variable term comes second
In 20 − 3x = 5, the constant is written first. The expression is 20 plus (−3x), so the coefficient of x is −3.
20 − 3x = 5
−3x = −15 (subtract 20 from both sides)
x = 5 (divide both sides by −3)
Check: 20 − 3(5) = 5 A common slip is to subtract 20 and write 3x = −15, losing the minus sign. If that worries you, there is another route: add 3x to both sides first, giving 20 = 5 + 3x. Then subtract 5 and divide by 3. You reach x = 5 with a positive coefficient the whole way, at the cost of one extra step.
Fraction bars and parentheses change the order
Compare these two equations, which look alike.
x/3 + 5 = 9 (x is divided by 3, then 5 is added)
x/3 = 4 (subtract 5)
x = 12 (multiply by 3)
(x + 5)/3 = 9 (5 is added to x, then the sum is divided by 3)
x + 5 = 27 (multiply by 3)
x = 22 (subtract 5) Checks: 12/3 + 5 = 9, and (22 + 5)/3 = 27/3 = 9. The same three numbers lead to different answers because the structure differs. A fraction bar acts like parentheses around everything above it, as explained in grouping symbols and fraction bars.
Parentheses do the same job. In 5(x − 2) = 35, subtraction happens first and multiplication second. So divide by 5 to get x − 2 = 7, then add 2 to get x = 9. Check: 5(7) = 35.
Fraction and decimal coefficients
The same two steps handle any nonzero coefficient. In (3/4)x − 2 = 7, the unknown is multiplied by 3/4 and then 2 is subtracted.
(3/4)x − 2 = 7
(3/4)x = 9 (add 2)
x = 12 (multiply by 4/3, the reciprocal of 3/4)
Check: (3/4)(12) − 2 = 9 − 2 = 7 Multiplying by the reciprocal turns the coefficient into 1 in a single move. You could instead multiply by 4 and then divide by 3, which is the same operation split in two.
With decimals, work in the same order. For 0.5x + 1.2 = 4.7, subtract 1.2 to get 0.5x = 3.5, then divide by 0.5 to get x = 7. The check is 3.5 + 1.2 = 4.7.
Keep exact values while you work. If a coefficient is 1/3, writing it as 0.33 introduces an error that the final check will expose, because 0.33 times 3 is 0.99 and not 1.
Squares and other single chains
Reverse order is a general idea that reaches past linear equations. Whenever the unknown appears exactly once, you can peel off the operations from the outside in.
Take √(2x + 1) = 5. The chain is multiply by 2, add 1, take the principal square root. Undo the root by squaring, which gives 2x + 1 = 25, so x = 12. Check: √25 = 5.
Squaring needs more care than adding or dividing, because it can create false solutions. The equation √(2x + 1) = −5 has none, since a principal square root is never negative, yet squaring it blindly would also produce x = 12. Always substitute back.
Similarly, (x − 3)² = 16 splits into two paths, because both 4 and −4 square to 16. You get x = 7 or x = −1.
Other first moves are legal
Reverse order is the most efficient plan, but it is not a law. Any move applied to both sides keeps the equation true, provided you apply it to the whole side.
Take 4x + 7 = 31 and divide first. Every term must be divided by 4.
4x + 7 = 31
x + 7/4 = 31/4 (divide every term by 4)
x = 24/4 = 6 (subtract 7/4) The answer matches. The price was a pair of fractions. The frequent mistake is writing x + 7 = 31/4, dividing only some terms. The distributive property is the reason: dividing a sum by 4 means dividing each part by 4.
Sometimes dividing first is the better choice. In 5(x − 2) = 35, dividing by 5 is cleaner than expanding to 5x − 10 = 35. In 6x + 12 = 30, dividing everything by 6 gives x + 2 = 5 at once.
From a situation to an equation
Say a hypothetical bike rental charges a fixed fee of 8 dollars plus 5 dollars per hour, and the total bill is 33 dollars. Let h be the number of hours.
5h + 8 = 33
5h = 25 (remove the fixed fee)
h = 5 (split the rest into hourly charges) Notice that the algebra mirrors common sense. You take the fee off the bill, then see how many hourly charges fit into what remains. The check is 5(5) + 8 = 33.
Here is a second case. Four friends share a hypothetical bill equally, and each also pays a 3 dollar tip, for a personal total of 17 dollars. If B is the bill, then B/4 + 3 = 17. Subtract 3 to get B/4 = 14, then multiply by 4 to get B = 56.
Reading an equation before touching it
A ten-second pause makes the choice of steps almost automatic. Ask three questions about the side that holds the unknown.
- Where is the unknown, and how many times does it appear?
- If I were given its value, what would I compute first?
- What would I compute last?
The answer to the third question is the first thing you undo. For 2 + x/9 = 5, you would divide first and add 2 last, so subtract 2 and then multiply by 9. The solution is x = 27.
It also helps to estimate. In 4x + 7 = 31, the term 4x has to be somewhat less than 31, so x is a little under 8. A result such as x = 38/4, which comes from adding 7 instead of subtracting it, fails this test immediately.
Finally, write one equation per line. Chaining everything together, as in 4x + 7 = 31 = 24 = 6, states that 31 equals 24, which is false. Each line should be a true statement about the same x.
Errors to watch for
- Undoing in building order. Dividing only the 4x term before subtracting 7 breaks the equation.
- Dropping a negative sign. In 9 − x = 14, subtracting 9 gives −x = 5, so x = −5.
- Treating a bar as partial. In (2x + 1)/5 = 3, multiply by 5 to get 2x + 1 = 15, so x = 7. Do not remove the 1 before the 5.
- Skipping the check. Substitution catches nearly every sign error.
Practice with solutions
- 6a − 11 = 25
- b/7 + 2 = −1
- (c − 4)/2 = 9
- 15 − 2d = 4
- 3(e + 6) = 12
1. 6a = 36, a = 6
2. b/7 = −3, b = −21
3. c − 4 = 18, c = 22
4. −2d = −11, d = 11/2
5. e + 6 = 4, e = −2 Common questions
Does the order really matter?
It matters for the simple version of each step. Subtracting 7 from both sides of 4x + 7 = 31 removes the 7 cleanly. Dividing by 4 first is still valid, but only if the 7 is divided too. What you may never do is divide one term and leave another unchanged.
How do I know which sign a number carries?
A sign belongs to the term that follows it. In −8 + 5x = 22, the constant is −8, so you add 8 to both sides. Then 5x = 30 and x = 6.
What if the unknown ends up on the right?
An equation such as 31 = 4x + 7 is solved the same way: subtract 7, then divide by 4. You get 6 = x, which means exactly the same as x = 6.
Should I simplify before undoing anything?
Yes, whenever one side can be tidied. If you see 4x + 3 + 4 = 31, combine the constants first to get 4x + 7 = 31. What looked like a longer problem is the familiar two-step one. The same applies to fractions that reduce, such as (6/8)x, which is simply (3/4)x.
Where this leads
Reverse order works beautifully when the unknown appears once. When it appears in two places, as in 5x + 2 = 3x + 10, there is no single chain of operations to unwind. The extra idea you need is to gather the terms together first, which is the subject of solving equations with variables on both sides.