Sub topic 1
What an Equation and Its Solution Are
Prerequisites
This chapter assumes you can compute with integers, fractions, and decimals, apply order of operations correctly, and read a letter such as x as a variable, meaning a placeholder for an unknown number.
Equations and Solutions
What an equation is
An equation states that two expressions have equal value. In 3x + 5 = 20, the left side and the right side represent the same number. The letter x is the variable.
What a solution is
A solution is a value that makes the equation true when substituted for the variable. For 3x + 5 = 20, x = 5 is a solution because 3(5) + 5 = 20. A linear equation in one variable usually has exactly one solution.
Keeping the Balance: Equivalent Equations
The balance principle
Treat an equation like a balance scale. If both sides weigh the same, applying the same change to each side keeps it level. Adding, subtracting, multiplying, or dividing both sides by the same number gives an equivalent equation, which has the same solutions. Multiplying or dividing by zero is not allowed, because it can destroy or invent solutions.
Undoing Operations with Inverses
Inverse pairs
An inverse operation reverses another operation. To isolate a variable, apply the inverse of each operation attached to it, working in reverse order.
| Operation | Inverse |
|---|---|
| Add 5 | Subtract 5 |
| Subtract 5 | Add 5 |
| Multiply by 3 | Divide by 3 |
| Divide by 3 | Multiply by 3 |
Solving One-Step Equations
Worked example
To solve 4x = 20, the variable is multiplied by 4. Divide both sides by 4 to isolate x.
from fractions import Fraction
def solve_one_step(a, c):
"""Solve a * x = c exactly for x."""
return Fraction(c) / Fraction(a)
x = solve_one_step(4, 20)
print(x) # 5
print(4 * x) # 20Exercise
Solve 3x + 5 = 20 by undoing each operation in order.
Show answer
Subtract 5 from both sides to get 3x = 15, then divide both sides by 3 to get x = 5.