Type any linear equation in one variable, such as 3x + 7 = 25 or 5(y − 2) = 3(y + 4), and the solver works it out line by line: it opens the brackets, clears fractions, moves the terms across the = sign, finds the value of the unknown and checks it. It is made for students of Class 6, 7 and 8 learning simple equations and linear equations in one variable, and for anyone who wants to check homework.
What is a linear equation in one variable?
An equation is a statement that two expressions are equal. It is linear in one variable when it has only one unknown (say x) and the highest power of that unknown is 1. So 4x − 9 = 2x + 5 is linear, but x2 = 16 is not (it is quadratic), and 3x + 2y = 7 has two variables. A linear equation in one variable has exactly one solution, unless the x terms cancel out (see "Special cases" below).
How the solver finds the answer
- Simplify each side. Multiply out brackets, for example 2(x + 3) = 2x + 6, and combine like terms, so that each side looks like (number) × x + (number).
- Clear fractions. If any term has a denominator, multiply every term on both sides by the LCM of the denominators. Decimals are treated as fractions: 0.25 = 1/4.
- Transpose. Bring all x terms to the left side and all numbers to the right side. A term that crosses the = sign changes its sign: + becomes − and − becomes +. This is the same as adding or subtracting the same quantity on both sides.
- Combine and divide. You now have ax = b, so x = b ÷ a. The answer is given as a whole number or a fraction in lowest terms.
- Check. Put the value back into the original equation. If LHS = RHS, the answer is correct.
Worked example
Question: Solve 2(x + 3) − 5 = x/2 + 4.
Step 1: Open the bracket: 2x + 6 − 5 = x/2 + 4, so 2x + 1 = x/2 + 4.
Step 2: The only denominator is 2. Multiply every term by 2: 4x + 2 = x + 8.
Step 3: Transpose x to the left and 2 to the right: 4x − x = 8 − 2.
Step 4: 3x = 6, so x = 6 ÷ 3 = 2.
Check: LHS = 2(2 + 3) − 5 = 10 − 5 = 5. RHS = 2/2 + 4 = 1 + 4 = 5. LHS = RHS, so x = 2 is correct.
Special cases
- If the x terms cancel and you get something false, such as 0 = 4 from 2x + 1 = 2x + 5, the equation has no solution.
- If the x terms cancel and you get something always true, such as 0 = 0 from 2(x + 1) = 2x + 2, the equation is an identity: every value of x works.
- If x appears in a denominator, as in (x + 1)/(x − 2) = 3/4, cross-multiply first: 4(x + 1) = 3(x − 2). Then type the new equation into the solver.
Common mistakes
- Forgetting to change the sign when a term crosses the = sign.
- Multiplying only the first term inside a bracket: 3(x − 4) is 3x − 12, not 3x − 4.
- When clearing fractions, multiplying only the terms that have denominators. Every term on both sides must be multiplied by the LCM.
- A minus sign before a bracket changes the sign of every term inside it: −(x − 3) = −x + 3.
- Dividing by the wrong number at the end. From −3x = 6, x = 6 ÷ (−3) = −2, not 2.