MathPicSolver

Method

How to solve for x

Solving for x means undoing everything that was done to it, in the reverse order. That is the whole method, and the rest is bookkeeping.

Solving for x is not a trick you have to remember a different way each time. It is one idea applied carefully: x is buried under a stack of operations, and you peel them off from the outside in, doing the same thing to both sides at every step. This page walks through that idea, three worked examples, the two mistakes that cost the most marks, and how to check an answer without solving again.

What the equation is actually saying

An equation is a balance. Whatever sits on the left of the equals sign is the same number as whatever sits on the right. Anything you do to one side you have to do to the other, or the balance tips and the statement turns false.

So 4x - 9 = 3 says: take some number, multiply it by 4, then subtract 9, and you land on 3. Solving for x means walking that sentence backwards.

The order you undo things in

Operations were applied to x in some order, so they have to come off in the reverse order. Additions and subtractions were done last, so they come off first. Multiplications and divisions were done first, so they come off last.

  • If the equation says 4x - 9, the - 9 comes off first, then the 4 ×
  • If the equation says (x + 2)/5, the /5 comes off first, then the + 2

Doing it the other way round is not illegal, but it drops you into fractions you did not need, which is where errors start. When in doubt, move the things that are furthest from x first.

Example 1: x only on one side

Solve 4x - 9 = 3.

  1. Add 9 to both sides: 4x = 12
  2. Divide both sides by 4: x = 3
  3. Check: 4 × 3 - 9 = 12 - 9 = 3. Correct.

Two steps, one operation each. Most one-side equations are exactly this.

Example 2: x on both sides

Solve 5x + 2 = 2x + 11.

  1. Subtract 2x from both sides: 3x + 2 = 11
  2. Subtract 2 from both sides: 3x = 9
  3. Divide by 3: x = 3
  4. Check: the left side is 5 × 3 + 2 = 17, the right side is 2 × 3 + 11 = 17. Correct.

When x appears on both sides, collect the x terms on one side first. Pick the side that leaves a positive coefficient, purely because positive numbers are easier to divide by than negative ones.

Example 3: x, but with a fraction in the way

Solve x/3 + 2 = 5.

  1. Subtract 2 from both sides: x/3 = 3
  2. Multiply both sides by 3: x = 9

Two answers that also show up a lot:

  • x/2 + 1 = 4 gives x/2 = 3, so x = 6
  • (x - 1)/3 = 2 gives x - 1 = 6, so x = 7

The second one is the same move, just with a bracket on top. Multiply both sides by the denominator first, and the fraction disappears in one step.

The costliest mistakes

Dividing before subtracting. Told to solve 4x - 9 = 3, some students start by dividing by 4 and write x - 9 = 3/4. That is wrong: 9 is not divided by 4, because the 4 does not cover the whole left side. Only the term directly touching the 4 gets divided.

Losing a sign when moving a term. 5x + 2 = 2x + 11 works out to x = 3. Change one sign to 5x + 2 = 2x - 11 and the same steps give 3x = -13. A minus that came across the equals sign without changing is the second most common error on a test paper. Moving a term across the equals sign changes its sign, every time.

Multiplying only the first term. Multiplying both sides by 3 has to reach every term on the left. In x/3 + 2 = 5 that gives x + 6 = 15, which is also correct and also gives x = 9. What is not correct is x + 2 = 15.

How to check an answer without solving again

Substitute the number you found back into the original equation and work out both sides separately. If the two numbers match, the answer is right. If they differ, the answer is wrong, and you find out before the wrong answer reaches a page that is already marked.

For x = 3 in 5x + 2 = 2x + 11: 5 × 3 + 2 = 17 on the left, 2 × 3 + 11 = 17 on the right. Match. For x = 6 in x/2 + 1 = 4: 6/2 + 1 = 4 on the left, 4 on the right. Match.

The check takes ten seconds and catches almost every arithmetic slip. It is the cheapest habit on this page.

When x is squared

If x turns up as x², the equation is quadratic and it usually has two answers, not one. Three cases matter:

  • x² - 5x + 6 = 0 factors to (x - 2)(x - 3) = 0, so x = 2 or x = 3
  • x² = 9 has two roots, x = 3 and x = -3, because squaring throws away the sign
  • x² + 4 = 0 has no real solution at all, because a square cannot be negative

For the general case, the quadratic equation solver prints the discriminant, the formula, and both roots line by line, and says plainly when there are no real roots instead of inventing a decimal.

Let the solver show each line

The solve for x page does all of this in the browser and prints every rearrangement as its own numbered step, then substitutes the answer back into the original equation to check it. It handles brackets and fractions, keeps answers as exact fractions rather than rounding them, and says so plainly when an equation falls outside one variable up to x squared.

If your equation has a bracket in it, the page on equations with parentheses covers the expansion move on its own, including the two ways to handle (x + 1)(x - 5) = 0. Students who are still building the habit can also start from the math picture solver home page, which reads a printed problem inside the browser and hands back the text to solve.