Algebra Simplifier with Steps
Expand brackets, factorise, simplify fractions and split into partial fractions. Calvo works with exact fractions, shows each step, and checks the answer by multiplying it back out.
Use * for multiplication (2x and (x+1)(x-1) also work), ^ for powers, and / for fractions. Several letters are fine for Expand, Factor and Simplify.
What each mode does
| Mode | Example | Result |
|---|---|---|
| Expand | (x + 2)(x − 3) | x² − x − 6 |
| Factor | x² − 5x + 6 | (x − 2)(x − 3) |
| Simplify | (x² − 4)/(x − 2) | x + 2 |
| Partial fractions | (3x + 5)/(x² + x − 2) | 8/(3(x − 1)) + 1/(3(x + 2)) |
Worked example: partial fractions
Split (3x + 5)/((x − 1)(x + 2)). Write A/(x − 1) + B/(x + 2). Multiply out: 3x + 5 = A(x + 2) + B(x − 1). Matching coefficients gives A + B = 3 and 2A − B = 5, so A = 8/3 and B = 1/3.
How Calvo checks the answer
Every factorisation is multiplied back out with exact fractions and must equal the original. Expand, Simplify and Partial fractions answers are also compared with the original expression at several test values.
What is not supported
Only polynomials and fractions of polynomials: no sin, ln, ex or square roots. Factoring is over the rational numbers, so x² − 2 is left as it is. Partial fractions needs one letter and a denominator whose factors are linear or quadratic.
Identities worth knowing by heart
- (a + b)² = a² + 2ab + b² and (a − b)² = a² − 2ab + b²
- a² − b² = (a − b)(a + b)
- a³ + b³ = (a + b)(a² − ab + b²) and a³ − b³ = (a − b)(a² + ab + b²)
A factoring routine that rarely fails
- Take out any common factor first.
- Check for a difference of two squares or a perfect square.
- For ax² + bx + c, find two numbers that multiply to ac and add to b.
- If there are four terms, try grouping.
Example: x³ − 8 = (x − 2)(x² + 2x + 4). For 6x² + 5x − 6, ac = −36 and the numbers 9 and −4 add to 5, so 6x² + 9x − 4x − 6 = 3x(2x + 3) − 2(2x + 3) = (3x − 2)(2x + 3).
Simplifying fractions: cancel factors, not terms
Simplify (x² − 9)/(x² + x − 6). Factor both parts: (x − 3)(x + 3) over (x + 3)(x − 2). Cancelling the common factor gives (x − 3)/(x − 2), valid for x ≠ −3 and x ≠ 2. A very common error is to cancel terms, such as (x + 4)/4 = x + 1. That is wrong: only a factor that multiplies the whole numerator and the whole denominator can be cancelled.
Partial fractions with a repeated factor
Split 1/(x²(x + 1)) as A/x + B/x² + C/(x + 1). Then 1 = Ax(x + 1) + B(x + 1) + Cx². Put x = 0 to get B = 1. Put x = −1 to get C = 1. Matching the x² coefficients gives A + C = 0, so A = −1. The result is −1/x + 1/x² + 1/(x + 1). Check at x = 1: the original is 1/2, and −1 + 1 + 1/2 = 1/2. ✓
Sign errors to watch
When a minus sign sits in front of a bracket it changes every term inside: −(x − 3) = −x + 3. This is the single most common reason an expansion does not match the answer in the book.
FAQ
How do I factor a quadratic step by step?
Take out any common factor, then look for two numbers that multiply to ac and add to b, or use the rational root test. Calvo shows the root it finds and the division that follows.
How do I expand (x+2)^3?
Use the binomial theorem: x^3 + 3x^2(2) + 3x(2^2) + 2^3 = x^3 + 6x^2 + 12x + 8.
How do I simplify an algebraic fraction?
Factor the top and the bottom, cancel the common factors, and remember the cancelled factor cannot be zero in the original expression.
What are partial fractions?
A way to split one fraction into simpler ones, such as 1/(x^2-1) = 1/(2(x-1)) - 1/(2(x+1)). It is used for integration and in solving equations.
Does it factor expressions with two letters?
Yes. It handles common factors, differences of squares and cubes, perfect squares and factoring by grouping, for example xy + 2x + 3y + 6 = (x + 3)(y + 2).
Why does the simplifier mention restrictions such as x ≠ 2?
If a cancelled factor would make the original denominator zero, that value of x is not allowed in the original expression. The simplified form is equal only where the original is defined.
Why is x² − 2 left unfactored?
Factoring here is over the rational numbers. x² − 2 would need √2, which is not rational, so it stays as it is.