01 / Simplify
Simplify, expand, factor
Brackets multiplied out, fractions combined and cancelled, and the factored form side by side.
Free tool
Type an expression to simplify, expand or factor it, or an equation to solve it. Linear, quadratic and higher equations get exact roots, complex roots and the steps, fractions with x in the bottom are cleared, and the two sides are graphed with the solutions marked. No sign-up, and it runs in your browser.
Steps
Auto solves when there is an = sign and simplifies when there is not. Write 1/(2x) with brackets. Roots, logs, trig and powers like 2^x with the unknown inside are not solved yet.
Worked out in your browser. Nothing is sent anywhere.
The method
01 / Simplify
Brackets multiplied out, fractions combined and cancelled, and the factored form side by side.
02 / Solve
Linear, quadratic and higher equations, with exact roots, complex roots and fractions with x in the bottom.
03 / Check
Each root is put back into the equation, and the two sides are graphed with the solutions marked.
Guide
An algebra calculator simplifies expressions and solves equations, and shows how it got there. Type 2x + 3 = 11 and it solves for x. Type (x^2 − 4)/(x − 2) and it simplifies to x + 2. It also expands brackets, factors polynomials, solves quadratics with exact square roots or complex answers, finds the rational roots of cubics and higher, and clears fractions that have x in the bottom.
Take 2x + 3 = 11. Subtract 3 from both sides to get 2x = 8, then divide by 2 to get x = 4. Check: 2 times 4 plus 3 is 11. For 3(x − 2) = 2(x + 1), multiply out to 3x − 6 = 2x + 2, which becomes x − 8 = 0 after moving everything to one side, so x = 8. Check: 3 times 6 is 18 and 2 times 9 is 18.
A quadratic is a x^2 + b x + c = 0. The discriminant b^2 − 4ac tells you what to expect. Above 0 gives two real roots, 0 gives one repeated root, and below 0 gives two complex roots. The formula is x = (−b ± the square root of the discriminant) / 2a.
| Equation | Discriminant | Solutions |
|---|---|---|
| x^2 − 5x + 6 = 0 | 25 − 24 = 1 | x = 2 and x = 3 |
| 2x^2 + 3x − 1 = 0 | 9 + 8 = 17 | x = (−3 ± √17)/4, about 0.2808 and −1.7808 |
| x^2 − 6x + 9 = 0 | 36 − 36 = 0 | x = 3, repeated |
| x^2 + 2x + 5 = 0 | 4 − 20 = −16 | x = −1 + 2i and x = −1 − 2i |
For a cubic or higher, the calculator first looks for rational roots. Any rational root p/q has p dividing the constant term and q dividing the leading coefficient. For x^3 − 6x^2 + 11x − 6 = 0 the constant is −6, so it tries 1, 2, 3, 6 and their negatives, and finds 1, 2 and 3. Then the equation factors as (x − 1)(x − 2)(x − 3). If some roots are not rational, they are found as decimals and marked as decimals, because there is no neat exact form to show.
Take (x^2 − 1)/(x − 1) = 2. Clearing the fraction and moving terms gives x^2 − 2x + 1 = 0, whose only root is x = 1. But x = 1 makes the bottom 0, so the original equation is not defined there, and the answer is no solution. The calculator throws out such values and tells you why. For 1/x + 1/(x + 1) = 1 the roots are (1 ± √5)/2, and neither makes a bottom zero.
(x^2 − 4)/(x − 2) factors on top as (x − 2)(x + 2), the (x − 2) cancels, and the result is x + 2 for every x except 2. (x + 1)^2 − (x − 1)^2 expands to x^2 + 2x + 1 − x^2 + 2x − 1, which is 4x. Factoring needs one letter and whole-number factors: x^4 − 5x^2 + 4 becomes (x − 1)(x + 1)(x − 2)(x + 2).
With several letters, degree 1 and 2 equations still work. a x + b = c solved for x gives x = (c − b)/a. Solving a x^2 + b x + c = 0 for x gives the quadratic formula with a, b and c in it.
It does not solve inequalities, absolute value equations, equations with the unknown inside a root, log or trig function, or equations like 2^x = 8. It does not factor with letters other than one variable. When it meets one of these, it says so instead of guessing.
For a system with two or more equations, use the . For the factors of a plain number, try the factor calculator, and to see an equation as a curve use the graphing calculator.
Questions
It simplifies, expands and factors expressions, and solves linear, quadratic and higher polynomial equations, including ones with fractions. It shows the steps.
If x = 1 makes a bottom of a fraction equal to 0, the equation is not defined there, so x = 1 is not allowed. The steps point out which value was thrown out.
Yes. Pick it under Solve for. Other letters are kept as constants, so the answer can contain them for degree 1 and 2.
When the discriminant is negative, the roots involve the square root of a negative number, written with i, where i squared is −1. They come in pairs like −1 + 2i and −1 − 2i.
Roots of cubics and higher that are not rational have no short exact form here, so they are shown as decimals and marked as such.
Use / for a fraction and ^ for a power. Put brackets around a longer top or bottom, like (x+1)/(x−1).
Not yet. It solves equations only.
Each root is put back in the equation and the sides are compared. The engine was also compared against the computer algebra system SymPy on 65 equations and expressions.
It stays in your browser. The last thing you typed is remembered on this device only and nothing is sent anywhere.