How it works
The solver rewrites the equation as f(x) = left − right = 0 and uses Newton’s method: from a guess x it moves to x − f(x)/f′(x), repeating until f(x) is essentially 0.
xₙ₊₁ = xₙ − f(xₙ) ÷ f′(xₙ)
An equation can have several solutions; the start value decides which one you get. eˣ = 3x, for example, has one solution near 0.62 and another near 1.51.
This calculator estimates f′(x) from two nearby values of f (a central difference), so you never have to type the derivative. If Newton’s method stalls, for example at a point where f′(x) = 0, it looks for a place where f(x) changes sign, checking the nearest stretches on both sides of the start value first and widening the search up to a million either way, then halves that interval until it finds the root (the bisection method). A sign change where the function jumps to infinity (a pole, as in 1/x at 0) is not a root, so it is skipped. The working says which of the two methods gave the answer.
Worked example
Solve x³ − 2x = 5. Starting from x = 2, Newton’s method settles on x ≈ 2.094551482, and (2.094551482)³ − 2 × 2.094551482 ≈ 5.
Newton’s method, step by step
Solve x³ − 2x − 5 = 0 from x₀ = 2. Here f(x) = x³ − 2x − 5 and f′(x) = 3x² − 2.
| Step | x | f(x) | f′(x) | Next x = x − f/f′ |
|---|---|---|---|---|
| 0 | 2 | −1 | 10 | 2.1 |
| 1 | 2.1 | 0.061 | 11.23 | 2.094568121 |
| 2 | 2.094568121 | ≈ 0.00019 | ≈ 11.16 | 2.094551482 |
Each step roughly doubles the number of correct digits, which is why the solver settles in a handful of steps.
Choosing the start value
eˣ = 3x has two solutions. Starting at 0 the solver finds x ≈ 0.6190612867; starting at 2 it finds x ≈ 1.512134552. Sketch the two sides, or try a few start values, to find every solution.
When there is no answer
- x² = −1 has no real solution, so the solver cannot converge.
- Starting exactly where f′(x) = 0 stops plain Newton’s method, because it would divide by zero. For x² = 4 from x = 0, this calculator switches to its sign-change search instead and returns x = 2; start at −1 to get x = −2.
- sin x = 2 has no solution, because sin x is never more than 1.
Tips
- Use exactly one = sign. Without one, the solver finds where the expression equals 0.
- If it fails, try a different start value; a sketch of both sides helps you pick one.
- For quadratics, the quadratic equation calculator gives exact roots instead.
Questions
Why did I get only one answer?
The solver returns one solution, usually one near the start value. If Newton’s method stalls it searches outward for a sign change, so the answer can come from farther away. Try other start values to find the rest.
Can it solve sin x = 0.5?
Yes. Choose the angle unit; in degrees, start near 30 to get 30.
Is the answer exact?
No. It is a decimal accurate to about 10 significant figures; the check line shows how close left and right are.
How do I find all the solutions?
Run the solver from several start values spread across the range you care about. Each run finds the solution its start value leads to.
Why does the solver say it found no solution?
Either the equation has no real solution (such as x² = −1), or the start value led away from it. Try another start value close to where you expect the answer.
How fast is Newton’s method?
Near a simple root, each step roughly doubles the number of correct digits: from 2 correct digits to 4, then 8, then 16.
Sources
- NIST Digital Library of Mathematical Functions, §3.8 Nonlinear Equations. §3.8(ii) Newton’s Rule, equation 3.8.4: z(n+1) = z(n) − f(z(n))/f′(z(n)); text: for a simple zero the iteration converges locally and quadratically. Checked 22 November 2026.
- NIST Digital Library of Mathematical Functions, §3.8 Nonlinear Equations. §3.8(iii) Bisection Method: if f(a)f(b) < 0 the interval [a, b] contains a zero (the method the solver falls back to after a sign-change scan). Checked 22 November 2026.
- NIST Digital Library of Mathematical Functions, §3.4 Differentiation. §3.4(i), equation 3.4.6 (three-point formula; with t = 0 it is the central difference the solver uses for f′(x)). Checked 22 November 2026.