Algebra
Solving linear equations step by step
A linear equation is one where the unknown, usually x, appears only to the first power. There are no x² terms and no x in a denominator. Solving it means finding the value of x that makes both sides equal. The method never changes: whatever you do to one side, you do to the other, until x is alone.
The balance idea
Picture a pair of scales with the equals sign as the middle. If you add 3 to one side, add 3 to the other and it stays level. Every step in solving an equation is a move that keeps the scales balanced. You undo operations in reverse order: deal with adding and subtracting first, then multiplying and dividing.
| If x has been... | Undo it by... |
|---|---|
| increased by a number | subtracting that number |
| decreased by a number | adding that number |
| multiplied by a number | dividing by that number |
| divided by a number | multiplying by that number |
Two-step equations
Solve 3x + 7 = 22.
- Subtract 7 from both sides: 3x = 15.
- Divide both sides by 3: x = 5.
- Check: 3 × 5 + 7 = 22. Correct.
Solve -2x + 5 = 11.
- Subtract 5: -2x = 6.
- Divide by -2: x = -3.
- Check: -2 × -3 + 5 = 6 + 5 = 11. Correct.
Watch the signs when you divide by a negative number. A negative divided by a negative is positive, but here 6 divided by -2 is negative.
Variables on both sides
Solve 5x - 4 = 2x + 11. Collect the x terms on one side and the numbers on the other.
- Subtract 2x from both sides: 3x - 4 = 11.
- Add 4 to both sides: 3x = 15.
- Divide by 3: x = 5.
- Check: left side 5 × 5 - 4 = 21, right side 2 × 5 + 11 = 21. Correct.
It does not matter which side you collect the x terms on. If you move them to the right instead, you will get 15 = 3x, which gives the same answer.
Equations with brackets
Multiply out the brackets first, then carry on as before.
Solve 3(x - 2) = x + 10.
- Expand: 3x - 6 = x + 10.
- Subtract x: 2x - 6 = 10.
- Add 6: 2x = 16.
- Divide by 2: x = 8.
- Check: 3 × (8 - 2) = 18 and 8 + 10 = 18. Correct.
Sometimes there is a shortcut. For 2(x + 3) = 18, divide both sides by 2 first to get x + 3 = 9, so x = 6. This only works neatly when everything on the other side divides evenly.
Equations with fractions
Solve x/4 + 3 = 8. Subtract 3 to get x/4 = 5, then multiply by 4 to get x = 20.
When fractions appear on both sides, clear them by multiplying everything by a common denominator. Solve (x + 1)/2 = (x - 1)/3. Multiply both sides by 6, the LCM of 2 and 3, to get 3(x + 1) = 2(x - 1). Expand: 3x + 3 = 2x - 2. Subtract 2x: x + 3 = -2. Subtract 3: x = -5. Check: (-5 + 1)/2 = -2 and (-5 - 1)/3 = -2. Both sides match.
Special cases: no solution and every solution
- 2x + 3 = 2x + 5. Subtract 2x from both sides and you get 3 = 5, which is never true. There is no solution.
- 2(x + 1) = 2x + 2. Expand and the two sides are identical, so you get 2x + 2 = 2x + 2 and then 2 = 2. This is always true, so every value of x is a solution.
If the x terms vanish, look at what is left. A false statement means no solution, and a true one means infinitely many.
A word problem
A phone plan costs $20 a month plus $0.05 per minute. This month's bill is $32.50. How many minutes were used? Let m be the minutes: 20 + 0.05m = 32.50. Subtract 20 to get 0.05m = 12.50. Divide by 0.05 to get m = 250 minutes. Check: 0.05 × 250 = 12.50 and 20 + 12.50 = 32.50.
Turning words into an equation is usually the hardest part. Name the unknown, write down what stays the same each month (the $20), what changes with the unknown (the $0.05 each minute), and what the total must equal.
Writing your working neatly
Keep one step per line, line up the equals signs, and write what you did to both sides in the margin, such as "subtract 7". Marking schemes award credit for method, and tidy working makes it easy to find a slip. If you get stuck, look at the first line where the numbers stop making sense and work from there rather than starting from scratch.
Equations with decimals
Decimals are no harder than whole numbers. For 0.4x + 1.2 = 3.6, subtract 1.2 to get 0.4x = 2.4, then divide by 0.4 to get x = 6. If you prefer, multiply every term by 10 first to get 4x + 12 = 36, which gives the same answer. Check: 0.4 × 6 + 1.2 = 3.6.
Always check your answer
Substituting your answer back into the original equation, not your rewritten one, catches almost every slip. It takes ten seconds and shows whether you made a sign error halfway through.
Common mistakes
- Doing something to only one side. Every operation must happen on both sides.
- Forgetting to multiply every term inside a bracket. In 3(x - 2), the 3 multiplies the -2 as well, giving -6, not -2.
- Sign errors when moving terms. Moving +4 across the equals sign makes it -4.
- Dividing only one term. To divide both sides of 3x + 6 = 12 by 3, divide every term: x + 2 = 4.
- Mixing up the order. Undo addition and subtraction before multiplication and division.
When there are two unknowns
If you have two variables and two equations, you need a different method, using substitution or elimination. The system of equations solver shows both. For a single unknown, the linear equation solver prints each step, so you can compare it with your own working. When the unknown is squared, see the quadratic equations guide.