Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 38 ยท Variables and Simple Equations

Two-Step Equations

Solve two-step equations like 3x + 5 = 20 by undoing addition or subtraction first and then multiplication or division, with checks and word problems.

Many equations need two inverse operations. In 3x + 5 = 20, the variable x was first multiplied by 3 and then had 5 added. To solve, undo those operations in reverse order: first undo the addition, then the multiplication. Think of putting on socks and then shoes: to undo, take off the shoes first.

The method

  1. Undo the addition or subtraction (the constant term) on both sides.
  2. Undo the multiplication or division (the coefficient) on both sides.
  3. Check in the original equation.

Example 1: 3x + 5 = 20.

  • Subtract 5 from both sides: 3x = 15.
  • Divide both sides by 3: x = 5.
  • Check: 3(5) + 5 = 20. โœ“

Example 2: 2y โˆ’ 7 = 9.

  • Add 7: 2y = 16.
  • Divide by 2: y = 8.
  • Check: 2(8) โˆ’ 7 = 9. โœ“

Example 3: x/4 + 3 = 8.

  • Subtract 3: x/4 = 5.
  • Multiply by 4: x = 20.
  • Check: 20/4 + 3 = 8. โœ“

Example 4 (negative numbers): โˆ’5n + 4 = โˆ’11.

  • Subtract 4: โˆ’5n = โˆ’15.
  • Divide by โˆ’5: n = 3.
  • Check: โˆ’5(3) + 4 = โˆ’11. โœ“
flowchart LR
    A["3x + 5 = 20"] -- "subtract 5" --> B["3x = 15"] -- "divide by 3" --> C["x = 5"]

Undo the operations in reverse order.

A solver you can read

The program below solves aยทx + b = c and prints each step, in the same words you would write.

Python Solve a x + b = c with steps

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

If the answer is not a whole number, it prints as a fraction. Try solve_two_step(4, 1, 10) and you will get 9/4.

Equations with the variable term on the right

The equation can be written with the variable on either side. 17 = 4x โˆ’ 3 means the same as 4x โˆ’ 3 = 17. Solve the same way: add 3 (20 = 4x), divide by 4 (x = 5). The equals sign is symmetric.

Solving with brackets

For 2(x + 3) = 14, you can either expand first (2x + 6 = 14, then 2x = 8, x = 4) or divide both sides by 2 first (x + 3 = 7, so x = 4). The second way is faster when the bracket multiplier divides the right side evenly.

Word problems

Problem: A phone plan costs 12 dollars a month plus 0.50 dollars per gigabyte. Amira paid 20 dollars. How many gigabytes did she use?

  1. Let g = gigabytes used.
  2. Equation: 0.5g + 12 = 20.
  3. Subtract 12: 0.5g = 8.
  4. Divide by 0.5: g = 16.
  5. Check: 0.5 ร— 16 + 12 = 20. โœ“

Problem: Five times a number, decreased by 9, is 41. Find the number.

  1. 5n โˆ’ 9 = 41.
  2. Add 9: 5n = 50.
  3. Divide by 5: n = 10.
Python Check word problems with sympy

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

When you divide, divide every term on that side. In 4x + 8 = 20 do not divide only the 4x: either subtract 8 first (4x = 12) or divide the entire equation by 4 (x + 2 = 5).

Common mistakes

  • Undoing in the wrong order (dividing before subtracting a constant).
  • Dropping a negative sign: โˆ’7 + 7 is 0, not โˆ’14.
  • Forgetting to check.
  • Applying an operation to only one side.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Solve 4x + 3 = 27.

    Subtract 3: 4x = 24. Divide by 4: x = 6.
  2. 2. Solve y/3 โˆ’ 2 = 5.

    Add 2: y/3 = 7. Multiply by 3: y = 21.
  3. 3. Solve โˆ’2n + 10 = 4.

    Subtract 10: โˆ’2n = โˆ’6. Divide by โˆ’2: n = 3.
  4. 4. A taxi charges 4 dollars plus 2.50 dollars per km. A ride cost 24 dollars. How many km?

    2.5k + 4 = 24, so 2.5k = 20 and k = 8.

Summary

  • A two-step equation needs two inverse operations, applied in the reverse order of how the expression was built.
  • Undo addition or subtraction first, then multiplication or division.
  • Treat both sides identically and check the answer in the original equation.
  • For word problems, define the variable, write the equation, solve, check and answer with units.

Next: Equations with Variables on Both Sides