SolveCalculator All solvers

Algebra

How to solve linear equations

Equations written in chalk on a green classroom board
Photo: Yulia Meshkova, CC BY 4.0, via Wikimedia Commons

A linear equation is any equation where x appears only to the power 1: no x², no square roots of x. They are the first real algebra most students meet, and the method for solving them works every single time once you learn it.

The golden rule

An equation is a balance. Both sides weigh the same. You may do anything you like to it, add, subtract, multiply, divide, as long as you do exactly the same thing to both sides. Every step below is just that rule applied with a purpose.

The four-step method

  1. Expand any brackets.
  2. Collect the x terms on one side and the plain numbers on the other.
  3. Isolate x by dividing by the number in front of it.
  4. Check by putting your answer back into the original equation.

Example 1: x on both sides

Solve 5x - 4 = 2x + 11.

  • Subtract 2x from both sides: 3x - 4 = 11.
  • Add 4 to both sides: 3x = 15.
  • Divide by 3: x = 5.
  • Check: 5(5) - 4 = 21 and 2(5) + 11 = 21. Correct.

Example 2: brackets

Solve 3(x + 2) = 2(x - 1) + 10.

  • Expand: 3x + 6 = 2x - 2 + 10, which tidies to 3x + 6 = 2x + 8.
  • Subtract 2x: x + 6 = 8.
  • Subtract 6: x = 2.

The most common slip here is forgetting to multiply the second term in a bracket: 2(x - 1) is 2x - 2, not 2x - 1.

Example 3: fractions

Solve x/4 + 3 = 7. Clear the fraction first by multiplying every term by 4: x + 12 = 28, so x = 16. Multiplying through by the denominator (or the lowest common multiple of several denominators) turns a messy equation into a friendly one.

Two equations at once

Sometimes there are two unknowns and two equations, such as 2x + 3y = 12 and x - y = 1. The second equation gives x = y + 1. Substitute that into the first: 2(y + 1) + 3y = 12, so 5y + 2 = 12 and y = 2. Then x = 3. This is substitution. The other method, elimination, adds or subtracts whole equations to cancel one letter. Both reach the same answer; choose whichever makes the numbers easier.

When there is no answer

If the x terms cancel out and leave something false, like 4 = 9, the equation has no solution. If they cancel and leave something always true, like 4 = 4, every value of x works. On a graph, those cases are parallel lines and identical lines.

Habits that save marks

  • Write one step per line, with the equals signs lined up.
  • Move terms by doing an operation to both sides, rather than "moving them across and changing the sign", which is where sign errors creep in.
  • Always check. It takes ten seconds and catches most mistakes.

More study notes