# Bisection & Newton-Raphson Root Finder

Find roots of nonlinear equations using interval bisection and Newton-Raphson iterative methods with this free numerical solver.

---

- **Canonical URL:** https://dothecalculation.com/calculators/bisection-method-calculator
- **Category:** Math calculators
- **Publisher:** Do The Calculation (https://dothecalculation.com)
- **Cost:** Free, no account or sign-up required
- **Privacy:** Runs entirely in the browser; inputs are never sent to a server
- **Methodology:** https://dothecalculation.com/methodology

---

## Numerical Root Finder Solver

Find roots of nonlinear equations. Compare numerical methods including Bisection and Newton-Raphson with iteration logs.

- Custom target functions
- Adjustable iteration limits
- Step-by-step convergence tables

## Introduction to Numerical Root-Finding Algorithms

In mathematics, a root of a function \(f(x)\) is a value of \(x\) for which the function equals zero (\(f(x) = 0\)). While simple linear and quadratic equations can be solved algebraically, many higher-degree polynomials and transcendental equations (equations containing trigonometric, exponential, or logarithmic terms) cannot be solved analytically. In these cases, we must use numerical methods to approximate the root to a desired level of accuracy.

Numerical root-finding algorithms are iterative procedures that start with an initial guess or interval and refine the approximation step-by-step. The two most popular methods are the Bisection Method (a bracketed method that is guaranteed to converge) and the Newton-Raphson Method (an open method that converges rapidly but requires calculating the function's derivative).

This calculator solves root-finding problems for standard test functions. It displays the step-by-step iteration tables for both Bisection and Newton-Raphson methods, helping you compare their convergence rates and behavior.

## How to Use This Calculator

Pick a test function (cubic \(x^3 - x - 2\), exponential \(e^{-x} - x\), or trigonometric \(\cos(x) - x\)), set the bracket interval \([a, b]\), and choose a maximum iteration count (up to 30). The calculator runs both the Bisection method and Newton-Raphson from the same bracket, showing the full iteration log for each so you can compare how quickly each converges to the root.

## Mathematical Formulation of Bisection and Newton-Raphson Methods

The **Bisection Method** is based on the Intermediate Value Theorem. If a continuous function \(f(x)\) changes sign over an interval \([a, b]\) (meaning \(f(a) \cdot f(b) < 0\)), there must be at least one root in the interval. The method halves the interval at each step:

$$c = \frac{a + b}{2}$$

If \(f(c) = 0\), \(c\) is the root. Otherwise, we replace either \(a\) or \(b\) with \(c\) depending on the sign of \(f(c)\) to maintain a sign change across the new, smaller interval.

The **Newton-Raphson Method** uses the tangent line at the current guess \(x_k\) to find the next approximation \(x_{k+1}\):

$$x_{k+1} = x_k - \frac{f(x_k)}{f'(x_k)}$$

This method requires that the derivative \(f'(x_k)\) is non-zero at each iteration step.

## Worked Case Study: Approximating the Root of x^3 - x - 2 = 0

Let us find the root of \(f(x) = x^3 - x - 2\) in the interval \([1, 2]\) using the Bisection Method.

First, we verify a sign change exists: \(f(1) = 1^3 - 1 - 2 = -2\), and \(f(2) = 2^3 - 2 - 2 = 4\). Since \(f(1) \cdot f(2) < 0\), a root exists.

1. **Iteration 1**: Midpoint \(c_1 = \frac{1 + 2}{2} = 1.5\). Evaluate \(f(1.5) = 1.5^3 - 1.5 - 2 = -0.125\). Since \(f(1.5)\) is negative, the root lies in \([1.5, 2]\). New interval: \([1.5, 2]\) (width = 0.5).

2. **Iteration 2**: Midpoint \(c_2 = \frac{1.5 + 2}{2} = 1.75\). Evaluate \(f(1.75) = 1.75^3 - 1.75 - 2 = 1.6094\). Since \(f(1.75)\) is positive, the root lies in \([1.5, 1.75]\). New interval: \([1.5, 1.75]\) (width = 0.25).

3. **Iteration 3**: Midpoint \(c_3 = \frac{1.5 + 1.75}{2} = 1.625\). Evaluate \(f(1.625) = 1.625^3 - 1.625 - 2 = 0.6660\). The root lies in \([1.5, 1.625]\). New interval: \([1.5, 1.625]\) (width = 0.125).

Repeating this process rapidly narrows the interval. After 10 iterations the bisection estimate is \(c_{10} \approx 1.5205\), and after the calculator's default 12 iterations it reaches \(\approx 1.52124\) — both converging toward the true root of approximately \(1.52138\) (verified independently with Newton-Raphson, which reaches the same value to 6 decimal places in only 4 iterations from the same starting interval).

## Comparing Convergence Rates: Linear vs. Quadratic Convergence

The Bisection method has linear convergence, meaning the error is halved at each iteration step. While slow, it is extremely robust and guaranteed to find a root if one exists in the initial interval.

The Newton-Raphson method has quadratic convergence, meaning the number of correct decimal places roughly doubles at each step when close to the root. However, it can fail to converge if the initial guess is far from the root or near a flat region where the derivative is close to zero.

## Related Calculators

For polynomials up to degree 2, exact algebraic roots are faster to get from the [quadratic solver](/calculators/quadratic-solver) than a numerical method. For systems of several linear equations rather than a single nonlinear one, use the [system of equations calculator](/calculators/system-of-equations-calculator).

## Frequently asked questions

### What is numerical root finding?

Numerical root finding is an iterative process used to approximate the solutions of equations f(x) = 0 when algebraic solutions are difficult or impossible to find.

### How does the Bisection Method work?

The Bisection Method repeatedly halves an interval [a, b] where the function changes sign, narrowing down the location of the root.

### What is the Intermediate Value Theorem?

A theorem stating that if a continuous function has opposite signs at the endpoints of an interval, it must cross zero at least once within that interval.

### How does the Newton-Raphson Method work?

The Newton-Raphson Method starts with an initial guess and uses the function's value and derivative to find the x-intercept of the tangent line, which serves as the next guess: x_(k+1) = x_k - f(x_k)/f'(x_k).

### Why is the Bisection Method guaranteed to converge?

Because it is a bracketed method that maintains a sign change across a shrinking interval, ensuring it converges to a root of a continuous function.

### When can the Newton-Raphson Method fail?

It can fail if the initial guess is close to a local extremum (where the derivative f'(x) is zero, leading to division by zero) or if the iterations cycle or diverge away from the root.

### What is linear convergence?

Linear convergence means the error decreases by a constant factor at each step (for Bisection, the error is halved at each step).

### What is quadratic convergence?

Quadratic convergence means the error at step k+1 is proportional to the square of the error at step k, leading to rapid convergence near the root.

### How do you choose between Bisection and Newton-Raphson?

Use Bisection when robustness is required and a sign-changing interval is known. Use Newton-Raphson when speed is important and a good initial guess is available.

### What is the tolerance parameter in root finding?

The tolerance is a small number (like 10⁻⁶) representing the target accuracy. Iterations stop when the interval width or function value is smaller than this tolerance.

### Can these methods find multiple roots?

Each run of these algorithms approximates a single root. To find multiple roots, you must run the algorithm with different starting intervals or initial guesses.

### What is a double root or root of multiplicity?

A double root occurs where the function touches the x-axis but does not cross it (such as f(x) = (x-r)²). Bisection cannot find these roots because there is no sign change.

## Related concepts

- **Intermediate Value Theorem** — A calculus theorem guaranteeing the existence of a root for continuous functions with opposite sign endpoints.
- **Secant Method** — A root-finding algorithm that approximates the derivative in Newton-Raphson using secant lines through two points.
- **Convergence Rate** — A measure of how fast the sequence of approximations approaches the exact root value.

## Related guides

- [Scientific Notation Guide: Powers of Ten Made Practical](https://dothecalculation.com/blog/math/scientific-notation-basics) — Learn how to convert, compare, and calculate with powers of ten using worked examples and the live DTC scientific calculator.

## Related calculators

- [Derivative & Limit Solver](https://dothecalculation.com/calculators/derivative-solver) — Compute first and second derivatives of algebraic functions, find limits, and solve tangent line equations with clear steps.
- [Boolean Algebra Simplifier & K-Map Solver](https://dothecalculation.com/calculators/boolean-algebra-calculator) — Simplify Boolean logic expressions, generate truth tables, and visualize Karnaugh Maps instantly with this free algebra solver.
- [Complex Number & Phasor Calculator](https://dothecalculation.com/calculators/complex-number-calculator) — Add, subtract, multiply, divide, and find roots of complex numbers, with automatic rectangular-to-polar phasor conversion, using this free calculator.
- [Exponent Calculator](https://dothecalculation.com/calculators/exponent-calculator) — Solve exponent equations, simplify fractional powers into radicals, and compute large scientific notations with this free calculator.
- [Definite & Indefinite Integral Solver](https://dothecalculation.com/calculators/integral-solver) — Evaluate indefinite antiderivatives, definite integrals, and Riemann sum approximations instantly with this free calculus solver.
- [Laplace & Inverse Laplace Transform Solver](https://dothecalculation.com/calculators/laplace-transform-calculator) — Compute Laplace transforms for time-domain functions and inverse Laplace transforms with clear step-by-step solutions shown.

---

_This mathematical solver is designed for academic, engineering, and educational analysis. Rounding errors, numerical tolerances, or algorithm constraints might apply near poles, boundary conditions, or complex coordinate spaces. Always verify critical computations independently._

---

_Source: [Do The Calculation](https://dothecalculation.com/calculators/bisection-method-calculator). Quote freely with attribution and a link to this page._
