Sub topic 5
Solving Two-Step Equations
What you should already know
Assume you can add, subtract, multiply, and divide integers. You should also know that a variable is a letter representing an unknown number and that an equation is a statement showing two equal expressions.
A solution is a value that makes an equation true. For example, 7 is the solution of \(3x - 8 = 13\) because \(3(7) - 8 = 13\).
A two-step equation contains two operations applied to the variable. The goal is to undo those operations while keeping the equation balanced.
The balance principle
An equation has the same value on both sides. Therefore, perform the same operation on both sides:
| Operation on one side | Matching operation on the other side |
|---|---|
| Add 8 | Add 8 |
| Subtract 5 | Subtract 5 |
| Multiply by 3 | Multiply by 3 |
| Divide by 4 | Divide by 4 |
Use inverse operations to undo operations:
- Addition and subtraction are inverses.
- Multiplication and division are inverses.
For a two-step equation, undo the addition or subtraction first. Then undo the multiplication or division.
A worked example
Solve:
\[ 3x - 8 = 13 \]
The subtraction of 8 is the outside operation, so add 8 to both sides:
\[ 3x - 8 + 8 = 13 + 8 \]
\[ 3x = 21 \]
Now divide both sides by 3:
\[ \frac{3x}{3} = \frac{21}{3} \]
\[ x = 7 \]
Check the answer in the original equation:
\[ 3(7) - 8 = 21 - 8 = 13 \]
The left side equals the right side, so \(x = 7\) is correct.
A useful general pattern is:
\[ ax+b=c \]
Subtract \(b\) from both sides:
\[ ax=c-b \]
Then divide by \(a\):
\[ x=\frac{c-b}{a} \]
Here, \(a\) cannot be zero if you want to divide by it.
Negative coefficients
Consider:
\[ 5-2x=17 \]
Subtract 5 from both sides:
\[ -2x=12 \]
Divide by \(-2\):
\[ x=-6 \]
Check:
\[ 5-2(-6)=5+12=17 \]
The negative sign matters when dividing. Dividing 12 by \(-2\) gives \(-6\), not 6.
Using a program to check
A short Python function can apply the general pattern exactly, including fractional answers.
from fractions import Fraction
def solve_two_step(a, b, c):
"""Solve a*x + b = c."""
if a == 0:
raise ValueError("The coefficient a must not be zero.")
return (Fraction(c) - Fraction(b)) / Fraction(a)
x = solve_two_step(3, -8, 13)
print(x) # 7
print(3 * x - 8 == 13) # TrueExercise
Solve 7x + 4 = 39 and verify your result by substitution.
Show answer
Subtract 4 from both sides: 7x = 35. Divide by 7: x = 5. Check: 7(5) + 4 = 39, so the solution is correct.