Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 37 ยท Linear Equations

Equations with Variables on Both Sides

Solve linear equations that have the variable on both sides, including brackets, and learn when an equation has no solution or infinitely many solutions.

So far the variable appeared only on one side. Real problems often have variables on both sides: two phone plans with different fees, or two people saving at different rates. The idea is simple: collect all variable terms on one side and all constants on the other, then finish with a one- or two-step equation.

The strategy

  1. Simplify each side: expand brackets, combine like terms.
  2. Move the variable terms to one side (add or subtract the same term on both sides).
  3. Move constants to the other side.
  4. Divide by the coefficient.
  5. Check.

Example 1. Solve 5x + 2 = 3x + 10.

  • Subtract 3x from both sides: 2x + 2 = 10
  • Subtract 2: 2x = 8
  • Divide by 2: x = 4
  • Check: left 5(4) + 2 = 22, right 3(4) + 10 = 22. Equal.

Example 2. Solve 7 - 2y = 4y - 11.

  • Add 2y to both sides: 7 = 6y - 11
  • Add 11: 18 = 6y
  • Divide by 6: y = 3

It does not matter which side the variable ends up on. Many people move the variable so its coefficient stays positive.

Equations with brackets

Example 3. Solve 3(x + 2) = 2x + 9.

  • Expand: 3x + 6 = 2x + 9
  • Subtract 2x: x + 6 = 9
  • Subtract 6: x = 3

Example 4. Solve 2(3n - 1) - 4 = 5(n + 1).

  • Expand: 6n - 2 - 4 = 5n + 5, so 6n - 6 = 5n + 5
  • Subtract 5n: n - 6 = 5
  • Add 6: n = 11

Special cases: no solution and infinitely many solutions

Sometimes the variable disappears.

Example 5. 2x + 3 = 2x + 7. Subtract 2x: 3 = 7. This is false for every x, so there is no solution.

Example 6. 4(x + 1) = 4x + 4. Expand: 4x + 4 = 4x + 4. Subtract 4x: 4 = 4. This is true for every x, so there are infinitely many solutions: every real number works.

After simplifying you get Meaning
x = number One solution
A false statement like 3 = 7 No solution
A true statement like 4 = 4 Infinitely many solutions
Python Solve ax + b = cx + d and classify it

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.

Comparing two plans

Plan A costs 20 dollars plus 5 dollars per hour. Plan B costs 8 dollars plus 8 dollars per hour. When do they cost the same? Set 20 + 5h = 8 + 8h. Subtract 5h: 20 = 8 + 3h. Subtract 8: 12 = 3h, so h = 4. At 4 hours, both cost 40 dollars. For fewer hours B is cheaper; for more hours A is cheaper.

Python Where two plans cost the same

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.

Common mistakes

  1. Subtracting a term from one side only. Both sides must change.
  2. Forgetting to distribute before collecting terms.
  3. Concluding "x = 0" when the variable vanishes. If you reach 3 = 7, there is no solution; if you reach 4 = 4, there are infinitely many. Neither means x = 0.

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. So x = 4.
  2. 2. Solve 2(x + 5) = x + 14.

    Expand: 2x + 10 = x + 14. Subtract x: x + 10 = 14. So x = 4.
  3. 3. What is the solution set of 3x + 1 = 3x - 5?

    Subtracting 3x gives 1 = -5, which is never true.
  4. 4. What is the solution set of 5(x - 2) = 5x - 10?

    Expanding gives 5x - 10 = 5x - 10, which is always true.

Summary

  • Gather variable terms on one side and constants on the other.
  • Expand brackets and combine like terms first.
  • A false result (3 = 7) means no solution; a true result (4 = 4) means infinitely many.
  • Check in the original equation.

Next: Literal Equations and Formulas