SolveCalculator All solvers

Algebra

Linear equation solver

Pick one equation in x, or a system of two equations in x and y. Type the numbers in front of each letter and the solver balances the equation for you, line by line.

Your answer and the full working will appear here.

The idea

Think of an equation as a balance scale. Whatever you do to one side, you must do to the other, or it tips. Solving means doing fair moves until x is alone on one side.

For one equation, the solver gathers the x terms on the left and the plain numbers on the right, then divides. For two equations, it uses Cramer's rule, a tidy shortcut built on the determinant, which is the same answer you would reach by elimination or substitution. If the determinant is zero, the two lines are parallel (no solution) or the same line (endless solutions).

Formula box

  • One equation: ax + b = cx + d gives x = (d - b) ÷ (a - c)
  • System: a₁x + b₁y = c₁ and a₂x + b₂y = c₂
  • D = a₁b₂ - b₁a₂
  • x = (c₁b₂ - b₁c₂) ÷ D, y = (a₁c₂ - c₁a₂) ÷ D

Worked problem

Problem: 3x + 7 = x + 15.

Subtract x from both sides: 2x + 7 = 15. Subtract 7: 2x = 8. Divide by 2: x = 4. Check: 3(4) + 7 = 19 and 4 + 15 = 19. Balanced.

Problem: 2x + 3y = 12 and x - y = 1.

D = 2(-1) - 3(1) = -5. Then x = (12(-1) - 3(1)) ÷ -5 = 3, and y = (2(1) - 12(1)) ÷ -5 = 2. Check: 2(3) + 3(2) = 12.

Questions

What if my equation has brackets?

Expand them first. 2(x + 3) = 10 becomes 2x + 6 = 10, so a = 2, b = 6, c = 0 and d = 10.

How do I enter "x" with no number in front?

Use 1, because x means 1x. Use -1 for -x, and 0 if there is no x on that side.

Which method should I show in class?

Use the one your teacher asks for. Elimination and substitution both reach the same answer as this solver, so you can use it to check either.

Related solvers