Sub topic 2
Solving One-Variable Linear Equations
This chapter assumes you can do arithmetic with integers, fractions, decimals, and percents, and that you know the order of operations. It also assumes you know the words variable, term, coefficient, and expression. Fractions and decimals inside equations get their own chapter, so the equations here mostly use integers.
What "linear in one variable" means
A linear equation in one variable is an equation where the unknown appears only to the first power. It can be written as ax + b = c, where a, b, and c are numbers and a is not zero. There are no x² terms, no x in a denominator, and no x multiplied by another x.
Solving the equation means finding the value of the variable that makes both sides equal. A linear equation has exactly one solution unless the variable cancels out completely. That cancellation case is covered below.
The core procedure
The previous chapter's rule applies to every step: whatever you do to one side, you do to the other. The usual order of work is:
- Remove parentheses by distributing.
- Combine like terms on each side.
- Move all variable terms to one side and all constants to the other, using inverse operations.
- Divide by the coefficient of the variable.
- Check the answer in the original equation.
Worked example: parentheses and variables on both sides
Solve 3(x - 2) + 4 = 2x + 7.
Solve 3(x - 2) + 4 = 2x + 7
3x - 6 + 4 = 2x + 7
3x - 2 = 2x + 7
x = 9
Check: 3(9 - 2) + 4 = 25 and 2(9) + 7 = 25Here is what happens at each line:
- Distributing the 3 turns
3(x - 2)into3x - 6. - Combining
-6 + 4gives-2. - Subtracting
2xfrom both sides givesx - 2 = 7. - Adding 2 to both sides gives
x = 9.
The check evaluates both sides of the original equation, not the simplified one. A check in a simplified line would miss an algebra slip made earlier.
Distributing a negative sign
The most common arithmetic error in this topic is a lost sign when a minus sign sits in front of a parenthesis. The minus applies to every term inside.
Solve 5 - 2(x - 3) = 4x - 1.
5 - 2(x - 3) = 4x - 1
5 - 2x + 6 = 4x - 1
11 - 2x = 4x - 1
12 = 6x
x = 2
Check: 5 - 2(2 - 3) = 5 + 2 = 7 and 4(2) - 1 = 7The term -2 · -3 is +6. Writing -2(x - 3) as -2x - 6 is the typical mistake. In this example it would give a wrong answer of x = 1.
Notice also that the variable ended up on the right side, giving 12 = 6x. That is fine. You can finish with x = 2 by reading the equation in either direction. You do not need to keep the variable on the left.
A useful habit is to move the variable term so that its coefficient stays positive. In the example, adding 2x to both sides avoids dividing by a negative number.
Nested parentheses
When parentheses sit inside brackets, work from the inside out, or divide away a common factor first.
Solve 2[3 - (x + 1)] = 10.
2[3 - (x + 1)] = 10
3 - (x + 1) = 5 (divide both sides by 2)
3 - x - 1 = 5
2 - x = 5
-x = 3
x = -3
Check: 2[3 - (-3 + 1)] = 2[3 - (-2)] = 2(5) = 10Dividing by 2 first saved a distribution step. This works when a whole side is a multiple of a bracket. It does not work when the bracket is added to other terms.
When the variable disappears
Sometimes the variable terms cancel on both sides. Then the equation reduces to a statement about numbers only, and that statement is either true or false.
2(x + 3) = 2x + 6
2x + 6 = 2x + 6
0 = 0 (always true)
2(x + 3) = 2x + 5
2x + 6 = 2x + 5
6 = 5 (never true)- If you reach a true statement such as
0 = 0, the equation is an identity. Every real number is a solution. - If you reach a false statement such as
6 = 5, the equation is a contradiction. No number is a solution.
These are not mistakes in your algebra. They are the correct outcomes for those equations. The same two outcomes appear again, with graphs, when we study systems.
A common trap: dividing by the variable
Consider 5x = 3x. Dividing both sides by x gives 5 = 3, which would suggest there is no solution. That conclusion is wrong, because x = 0 satisfies the original equation.
5x = 3x
5x - 3x = 0
2x = 0
x = 0Division by x is only legal if you know x ≠ 0. Dividing by a variable discards the case where that variable is zero. The safe move is to subtract and collect, as shown, and divide only by numbers.
Solving for an expression instead of the variable
GRE questions sometimes ask for a value like 2x - 1 rather than x. You can still solve for x first, but it is often quicker to reshape the given equation toward the requested expression.
If 4x - 3 = 17, what is the value of 2x - 1?
4x - 3 = 17
4x = 20
2x = 10
2x - 1 = 9Both routes give 9. The later chapter on systems expands this idea, where it saves much more work.
Checking and what a check tells you
Substitute your answer into the original equation and evaluate each side separately. If the two sides match, the answer is correct for that equation. If they do not match, look for a distribution or sign error before redoing everything.
For a one-variable linear equation, one verified solution is the only solution, unless the equation turned out to be an identity. The check does not need to be repeated for other values.
Optional: checking with code
A short program can confirm your hand work, including the identity and contradiction cases. This one handles equations written in the form a·x + b = c·x + d.
from fractions import Fraction
def solve_linear(a, b, c, d):
"""Solve a*x + b = c*x + d for x using exact fractions."""
coeff = a - c
const = d - b
if coeff == 0:
return "all real numbers" if const == 0 else "no solution"
return Fraction(const, coeff)
print(solve_linear(3, -2, 2, 7)) # 9 (from 3x - 2 = 2x + 7)
print(solve_linear(2, 6, 2, 6)) # all real numbers
print(solve_linear(2, 6, 2, 5)) # no solutionThe function moves all variable terms to the left and all constants to the right. This is the same collection step you do by hand. Using Fraction keeps answers exact, so a result such as 7/3 is not rounded.
Common errors, summarized
| Error | Example | Fix |
|---|---|---|
| Sign lost when distributing | `-2(x - 3)` written as `-2x - 6` | Multiply every term inside: `-2x + 6` |
| Operation done to one side only | Adding 4 to the left side only | Apply every operation to both sides |
| Dividing by the variable | `5x = 3x` turned into `5 = 3` | Subtract, then divide by a number |
| Mixing up constants and coefficients | Dividing only the `x` term by 3 | Divide every term on a side |
| Checking the wrong equation | Substituting into a simplified line | Check in the original equation |
Exercises
Exercise
Solve 4(2x - 1) - 3 = 5x + 8.
Show answer
Distribute: 8x - 4 - 3 = 5x + 8, so 8x - 7 = 5x + 8. Subtract 5x: 3x - 7 = 8. Add 7: 3x = 15, so x = 5. Check: 4(9) - 3 = 33 and 5(5) + 8 = 33.
Exercise
For what value of k does the equation 3(x + 2) = 3x + k have no solution, and for what value does it have infinitely many solutions?
Show answer
Distributing gives 3x + 6 = 3x + k, so the variable cancels and the equation reduces to 6 = k. It has infinitely many solutions when k = 6. It has no solution for any k other than 6, for example k = 5.
Exercise
If 6x + 5 = 29, what is the value of 3x + 1?
Show answer
Subtract 5: 6x = 24. Divide by 2: 3x = 12. So 3x + 1 = 13. (Solving for x gives x = 4, and 3(4) + 1 = 13.)