Skip to content
Tutorials Center
My learning

Topics

Lesson 19 of 38 ยท Variables and Simple Equations

Equations with Variables on Both Sides

Solve multi-step equations with the variable on both sides: collect variable terms, simplify brackets, and spot equations with no solution or infinitely many.

Sometimes the unknown appears on both sides of the equals sign: 5x + 3 = 2x + 15. The idea stays the same, keep the balance, but you first gather all the variable terms on one side and all the constants on the other. After that it is a two-step equation.

The method

  1. Simplify each side: expand brackets and combine like terms.
  2. Move the variable terms to one side by adding or subtracting a term from both sides.
  3. Move the constants to the other side.
  4. Divide by the coefficient.
  5. Check in the original equation.

Example 1: 5x + 3 = 2x + 15.

  • Subtract 2x from both sides: 3x + 3 = 15.
  • Subtract 3: 3x = 12.
  • Divide by 3: x = 4.
  • Check: left 5(4) + 3 = 23, right 2(4) + 15 = 23. โœ“

Example 2: 7 โˆ’ 2y = 3y โˆ’ 8.

  • Add 2y to both sides: 7 = 5y โˆ’ 8.
  • Add 8: 15 = 5y.
  • Divide by 5: y = 3.
  • Check: left 7 โˆ’ 6 = 1, right 9 โˆ’ 8 = 1. โœ“

A tip: move the variable term with the smaller coefficient to avoid negative coefficients. In Example 1, moving 2x (smaller) leaves a positive 3x.

With brackets

Example 3: 3(x + 2) = x + 14.

  • Expand: 3x + 6 = x + 14.
  • Subtract x: 2x + 6 = 14.
  • Subtract 6: 2x = 8.
  • Divide: x = 4.

Example 4: 2(3m โˆ’ 1) โˆ’ m = 4(m + 1) + 3.

  • Expand: 6m โˆ’ 2 โˆ’ m = 4m + 4 + 3.
  • Combine: 5m โˆ’ 2 = 4m + 7.
  • Subtract 4m: m โˆ’ 2 = 7.
  • Add 2: m = 9.
Python Solve equations with variables on both sides

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.

Special cases

Sometimes the variable disappears.

No solution: 2x + 5 = 2x + 9. Subtract 2x: 5 = 9, which is false for every x. The equation has no solution.

Infinitely many solutions: 3(x + 1) = 3x + 3. Expand: 3x + 3 = 3x + 3. Subtract 3x: 3 = 3, always true. Every number is a solution; the two sides are equivalent expressions (an identity).

After simplifying you get Meaning
x = number exactly one solution
a false statement such as 5 = 9 no solution
a true statement such as 3 = 3 infinitely many solutions
Python Classify equations by testing values

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.

This is a numerical test, not a proof. The algebra (simplify until the variable disappears or isolates) is what proves the answer.

Word problem

Problem: Plan A charges a 20-dollar sign-up fee plus 5 dollars per class. Plan B has no fee but charges 9 dollars per class. After how many classes do the plans cost the same?

  1. Let c = number of classes.
  2. Equation: 20 + 5c = 9c.
  3. Subtract 5c: 20 = 4c.
  4. Divide by 4: c = 5.
  5. Check: Plan A 20 + 25 = 45; Plan B 9 ร— 5 = 45. โœ“

Beyond 5 classes, Plan A is cheaper.

Python Compare two plans

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 you get stuck, simplify each side completely before moving anything. Most errors come from skipping that first step.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Solve 6x โˆ’ 4 = 2x + 12.

    Subtract 2x: 4x โˆ’ 4 = 12. Add 4: 4x = 16. Divide by 4: x = 4.
  2. 2. Solve 4(n โˆ’ 1) = 3n + 5.

    Expand: 4n โˆ’ 4 = 3n + 5. Subtract 3n: n โˆ’ 4 = 5, so n = 9.
  3. 3. How many solutions does 5x + 1 = 5x โˆ’ 3 have?

    Subtracting 5x leaves 1 = โˆ’3, which is false, so there is no solution.
  4. 4. How many solutions does 2(x + 4) = 2x + 8 have?

    Expanding gives 2x + 8 = 2x + 8, which is true for every x.

Summary

  • Simplify both sides, gather variable terms on one side and constants on the other, then divide.
  • Moving the smaller variable term avoids negative coefficients.
  • If the variable vanishes, a false statement means no solution and a true one means infinitely many.
  • Always check in the original equation.

Next: back to the Pre-Algebra course overview