Step-by-step solver
Type a problem and get the whole derivation — every line names the method it uses.
The engine works in exact rational arithmetic, so no 0.33333 float tails leak into a step; everything runs locally in your browser and your problem is never uploaded.
Problem
Approach
Find one rational root, divide it out, and finish with the quadratic formula.
Steps
Step 1
Make one side zero
The right side is already 0, so this is the standard form aₙxⁿ + … + a₀ = 0.
Step 2
Rational root test
Possible roots are (factor of 4) / (factor of 1); substituting 1 gives 0.
Step 3
Divide the factor out
The remainder is 0, so the linear factor divides exactly and the degree drops by one.
Step 4
Check by substituting back
Put x = 1 into the original equation: both sides come to 0.
Step 5
Rational root test
Possible roots are (factor of 4) / (factor of 1); substituting -1 gives 0.
Step 6
Divide the factor out
The remainder is 0, so the linear factor divides exactly and the degree drops by one.
Step 7
Check by substituting back
Put x = -1 into the original equation: both sides come to 0.
Step 8
Read off the coefficients
a = 1, b = 0, c = -4.
Step 9
Discriminant
Δ = b² − 4ac decides how many real roots the equation has.
Step 10
Quadratic formula
Δ > 0 gives two distinct real roots, x = (−b ± √Δ) / (2a).
Step 11
Two roots
√Δ = 4 is rational, so both roots are exact fractions.
Step 12
Same result by factoring
Knowing both roots, the quadratic splits into two linear factors.
Step 13
Check by substituting back
Put x = 2 into the original equation: both sides come to 0.
Answer
x = 1, x = -1, x₁ = 2, x₂ = -2
- x = 1
- x = -1
- x₁ = 2
- x₂ = -2
Worked examples
What it handles today
- Linear to quartic equations in one unknown: move everything to one side, collect terms, deflate with the rational root theorem, apply the quadratic formula, then substitute the root back to check.
- Factorising: common factor first, then the cross-method split of the middle term, verified by multiplying the brackets back out.
- Simplification: expand brackets, collect like terms, and show the common denominator in fraction arithmetic.
- Derivatives and indefinite integrals: sum rule plus the power rule, one line per term.
- A negative discriminant yields the conjugate pair; roots come out as decimals to ten significant figures, so x² = 2 reads 1.414213562 rather than an exact radical.
Every step is computed locally in your browser, one line at a time; your problem is never uploaded.
Related calculators
Famous problems this calculator can work out
- The golden ratio as a quadratic: x² − x − 1 = 0
- ∫x² dx = x³/3 + C: the rule Newton and Leibniz published
- Rise over run, with the arithmetic left in
- At −40 the two temperature scales print the same number, and here is the equation