Sub topic 2
Keeping the balance: equivalent equations
This chapter assumes you can do arithmetic with integers, fractions, and decimals, that you know the order of operations, and that you read a variable as a letter standing for a number. It also assumes you know what a solution of an equation is: a value that makes the equation true when you substitute it. Here you learn the rule that lets you change an equation without changing its answer. Every solving method in the rest of the tutorial relies on that rule.
Equations with the same solutions
Two equations are equivalent if they have exactly the same solution set. The solution set is the collection of all values of the variable that make the equation true.
Consider these three equations:
2x + 3 = 112x = 8x = 4
Each one is true when x = 4 and false for every other number, so all three are equivalent. Solving an equation means turning it, one step at a time, into an equivalent equation with the form x = number. At that point the solution can be read off directly.
Equivalence goes both ways. If equation B is equivalent to equation A, then A is equivalent to B. This matters later, because it means a correct step can be undone and a chain of correct steps keeps the solution set the same from start to finish.
The balance principle
An equation says that two expressions have the same value. Picture a balance scale with the left side on one pan and the right side on the other. If the pans balance and you treat both pans identically, they still balance.
The balance principle states this precisely. Suppose A = B is true for some value of the variable. Then, for that same value:
A + k = B + kis true, for any numberk.A - k = B - kis true, for any numberk.A * k = B * kis true, for any numberk.A / k = B / kis true, for any numberkexcept 0.
These steps keep the solution set unchanged only if they are also reversible. Adding k is undone by subtracting k. Multiplying by a nonzero k is undone by dividing by k. That reversibility is what upgrades "every solution survives" to "the solution set is identical".
Why the principle works
Take the equation x + 5 = 9 and suppose some number x makes it true. That number gives the left side and the right side the same value. Subtract 5 from each side and you subtract the same amount from two things that were equal, so the results are equal: x = 4. This shows that any solution of the first equation is a solution of the second.
The other direction is the reversibility argument. If x = 4 is true, adding 5 to both sides gives x + 5 = 9. So any solution of the second is a solution of the first. Both directions together mean the solution sets are the same.
Operations that preserve equivalence
These are the safe steps you will use throughout the tutorial:
- Add or subtract the same number on both sides.
- Multiply or divide both sides by the same nonzero number.
- Simplify either side on its own, for example by distributing or combining like terms. This changes how a side is written but not its value.
- Swap the two sides:
A = BbecomesB = A.
Adding the same expression containing the variable to both sides is also safe. If x stands for the same number on both sides, then 2x is just a number, so subtracting 2x from both sides follows the same rule as subtracting a constant. You need this to collect variables when they appear on both sides.
Operations that break equivalence
Two actions look like balance steps but are not safe.
Multiplying both sides by 0. From x = 4, multiplying both sides by 0 gives 0 = 0. That equation is true for every number, so its solution set is much larger than {4}. The step cannot be reversed, because you cannot divide by 0 to get back.
Dividing both sides by 0. This is undefined, so it is never a valid step. The real danger is dividing by an expression that you did not notice could be 0. Suppose you have x * 3 = x * 5 and divide both sides by x. You get 3 = 5, which is false, and you might conclude there is no solution. But x = 0 is a solution of the original, and the division threw it away. In this tutorial's equations the coefficients are numbers, so you can see whether a divisor is 0. In later algebra you must check whenever you divide by something containing a variable.
A related warning applies to other operations. Squaring both sides, for example, is not reversible: x = 3 squared gives x² = 9, which also holds for x = -3. You do not need squaring for linear equations, but it shows why each step must be checked for reversibility rather than assumed safe.
| Step on both sides | Equivalent? | Reason |
|---|---|---|
| Add or subtract a number | Yes | Undone by the opposite operation |
| Multiply by a nonzero number | Yes | Undone by dividing by that number |
| Divide by a nonzero number | Yes | Undone by multiplying by that number |
| Multiply by 0 | No | Collapses to `0 = 0`, cannot be undone |
| Divide by 0 | No | Undefined |
| Square both sides | No | `x = 3` and `x = -3` give the same result |
Watching equivalence in code
The following program stores an equation of the form a1*x + b1 = a2*x + b2, applies balance steps, and tests candidate values after every step. For legal steps, the list of values that satisfy the equation stays the same. For multiplying by 0, it does not. The program uses Fraction so arithmetic stays exact.
from fractions import Fraction
# An equation is ((a1, b1), (a2, b2)), meaning a1*x + b1 = a2*x + b2.
def add_number(eq, k):
(a1, b1), (a2, b2) = eq
return ((a1, b1 + k), (a2, b2 + k))
def add_x_terms(eq, k):
(a1, b1), (a2, b2) = eq
return ((a1 + k, b1), (a2 + k, b2))
def multiply(eq, k):
(a1, b1), (a2, b2) = eq
return ((a1 * k, b1 * k), (a2 * k, b2 * k))
def holds(eq, x):
(a1, b1), (a2, b2) = eq
return a1 * x + b1 == a2 * x + b2
def solutions(eq, candidates):
return [x for x in candidates if holds(eq, x)]
candidates = range(-10, 11)
# 3x - 2 = 2x + 5
eq0 = ((Fraction(3), Fraction(-2)), (Fraction(2), Fraction(5)))
eq1 = add_number(eq0, 2) # add 2 to both sides
eq2 = add_x_terms(eq1, -2) # subtract 2x from both sides
eq3 = multiply(eq2, 3) # multiply both sides by 3
eq4 = multiply(eq2, 0) # illegal: multiply both sides by 0
for name, eq in [("start", eq0), ("add 2", eq1), ("subtract 2x", eq2),
("times 3", eq3)]:
print(name, solutions(eq, candidates))
print("times 0", len(solutions(eq4, candidates)), "of", len(candidates), "values satisfy it")The output is:
start [7]
add 2 [7]
subtract 2x [7]
times 3 [7]
times 0 21 of 21 values satisfy itThe first four lines show one solution surviving every legal step. The last line shows the collapse to 0 = 0 after multiplying by 0: every candidate now satisfies the equation, so it is no longer equivalent to the original.
A worked chain of equivalent equations
Here is 5x - 4 = 2x + 8, solved with each step labeled by the rule it uses.
5x - 4 = 2x + 8
5x = 2x + 12 add 4 to both sides
3x = 12 subtract 2x from both sides
x = 4 divide both sides by 3Each line is equivalent to the line above it, so x = 4 is equivalent to the starting equation. Substituting 4 into the original gives 5(4) - 4 = 16 and 2(4) + 8 = 16, which agree.
Common mistakes
- Changing only one side. Writing
x + 5 = 9thenx = 9 - 5is fine, because the 5 is subtracted from both sides, but writingx = 9after subtracting 5 from the left only is not. Every operation must hit both sides. - Applying an operation to only one term. To multiply both sides of
x/2 + 1 = 4by 2, multiply every term:x + 2 = 8, notx + 1 = 8. Each whole side is multiplied, and that means every term in it. - Treating the work as a chain of
=signs. Writing2x + 3 = 11 = 2x = 8is wrong because11is not equal to2x = 8. Write each equivalent equation on its own line. - Assuming a step is safe because it looks symmetrical. Check that it is reversible. If you cannot undo it, the solution set may have changed.
Summary of the working model
- Solving an equation means producing a chain of equivalent equations that ends with
x = number. - Doing the same reversible operation to both sides gives an equivalent equation.
- Reversible means there is an inverse step: opposite for addition and subtraction, reciprocal for multiplication and division by a nonzero number.
- Multiplying or dividing by 0 breaks the chain, and dividing by an expression that could be 0 can lose solutions.
The next chapter turns the "reverse" of each operation into a deliberate tool, inverse operations, and uses it to plan which step to do first.
Exercise
A student starts with 4x = 4x + 0 and divides both sides by x to get 4 = 4, concluding that every number is a solution. A second student starts with x 2 = x 5, divides both sides by x, gets 2 = 5, and concludes there is no solution. Which conclusion is correct for each equation, and which step is not a valid balance step in the second case?
Show answer
For 4x = 4x + 0, the equation simplifies to 4x = 4x, which is true for every number, so "every number is a solution" is correct, although dividing by x was an unsafe way to get there because x could be 0 (it happens to work here). For x 2 = x 5, the conclusion is wrong. Dividing both sides by x is not a valid balance step because x might be 0. Subtracting 2x from both sides gives 0 = 3x, so x = 0, and substituting confirms 0 2 = 0 5. The equation has exactly one solution, x = 0, which the division discarded.
Exercise
Starting from 3x - 2 = 2x + 5, a student multiplies both sides by 0 and gets 0 = 0. Explain why the result is not equivalent to the original equation, and say how many solutions the original has.
Show answer
The equation 0 = 0 is true for every number, so its solution set is all numbers. The original equation, 3x - 2 = 2x + 5, simplifies to x = 7, so its only solution is 7. Multiplying by 0 is not reversible, so it produced an equation with extra solutions. The original has exactly one solution.