Objective
Bisection, Newton and Brent's method were introduced elsewhere. Here we derive their convergence orders, measure them numerically, explain each failure mode with a concrete example, extend Newton to systems, and build an implied-volatility solver that cannot fail on a valid price.
Order of convergence
Let be the error at step . A method has order with rate constant if
With (and ) you gain a fixed number of digits per step, ; bisection has , about 0.3 digits per step. With the number of correct digits is multiplied by about per step. Taking logs of at two consecutive steps gives the estimate used in practice:
When the root is unknown, the step size is a good proxy for once convergence is superlinear.
Newton: order 2
Expand about and evaluate at the root: . Dividing by and using ,
This needs (a simple root) and a start close enough that the neglected terms stay small.
Secant: order
The secant method replaces by the slope through the last two iterates. The same expansion gives with the same . Try : then , so and
Per function evaluation the secant method usually wins: it needs one new per step, while Newton needs and . If costs as much as , Newton's order per evaluation is . Newton wins when comes almost free, as vega does alongside a Black–Scholes price.
Worked example
measuring the orders on x³ − 2x − 5
has a simple root . Run bisection on , the secant method from and Newton from . Estimate each order and check Newton's rate constant against .
Show solutionHide solution
Errors computed against a 50-digit reference root (the secant and Newton runs use high-precision Decimal arithmetic so the asymptotic order is visible before rounding takes over):
| Step | Newton | Newton estimate | Secant | Secant estimate |
|---|---|---|---|---|
| 0 | ||||
| 1 | ||||
| 2 | 1.708 | |||
| 3 | 1.919 | |||
| 4 | 1.994 | 3.929 | ||
| 5 | 2.000 | 1.258 | ||
| 6 | 2.000 | 1.796 | ||
| 7 | 1.557 | |||
| 8 | 1.642 | |||
| 9 | 1.609 | |||
| 10 | 1.622 |
Continuing, the secant estimates go : the golden ratio. Early estimates are meaningless (the method has not reached its asymptotic regime), which is why you read the order from the tail.
Newton's constant. and , so . The measured ratios are (step 3 to 4) and (step 4 to 5). In double precision, and , the double nearest ; further steps stay there, since no step can beat the accuracy with which itself is evaluated.
Bisection. The midpoint errors go : not monotone, because the midpoint can land near the root by luck. The quantity that halves every step is the bracket width, which bounds the error. Ten steps give a width of ; Newton reaches in five.
How Newton fails
The quadratic rate is local. Away from the root, or when the root is not simple, it disappears.
| Failure | Example | What happens |
|---|---|---|
| Multiple root | from | , so convergence is linear with ratio for multiplicity : errors |
| Overshoot and divergence | from | Iterates . From it converges. The dividing point solves , |
| Cycle | from | , : a 2-cycle forever |
| Flat derivative | implied vol, deep out of the money, low start | Vega near 0 makes the step enormous (shown below) |
For a root of known multiplicity , the step restores quadratic convergence; on the double root above it gives errors . If is unknown, apply Newton to , which has a simple root at .
Brent's method: the default when you have a bracket
Brent's method keeps a bracket with at all times. Each step it tries a fast interpolation step, inverse quadratic interpolation through the last three points (fit as a quadratic in and evaluate at ) or a secant step, and accepts it only if it lands inside the bracket and the bracket has been shrinking fast enough; otherwise it bisects. So it never does much worse than bisection, and near a simple root it converges superlinearly (inverse quadratic interpolation has order about 1.84). On the implied-volatility problem below, SciPy's brentq on with xtol=1e-14 needs 13 function evaluations against 51 for bisect.
Use Brent (or a safeguarded Newton, below) whenever a sign change can be guaranteed; use plain Newton only when the start is known to be good.
Newton for systems
For the linearisation is with Jacobian . Each step solves the linear system
by LU factorisation, never by forming . Convergence is quadratic near a root where is nonsingular, and the conditioning of at the root limits the attainable accuracy, exactly as did for linear systems. A step costs derivatives plus an solve; quasi-Newton methods (Broyden) update an approximate Jacobian with rank-one corrections instead. Typical uses: calibrating a model with parameters to prices, or solving first-order conditions of an optimisation.
Worked example
a 2 × 2 Newton iteration
Solve , starting from . Write down the Jacobian and track the residual norm .
Show solutionHide solution
import math
def F(x, y):
return x * x + y * y - 4, math.exp(x) + y - 1
x, y = 1.0, -1.0
for k in range(1, 6):
f1, f2 = F(x, y)
a, b, c, d = 2 * x, 2 * y, math.exp(x), 1.0 # Jacobian [[a, b], [c, d]]
det = a * d - b * c
dx = -(d * f1 - b * f2) / det # Cramer's rule for J @ delta = -F
dy = -(-c * f1 + a * f2) / det
x, y = x + dx, y + dy
print(k, repr(x), repr(y), f"{math.hypot(*F(x, y)):.2e}")
# 1 1.0757656854799804 -1.9242343145200196 8.60e-01
# 2 1.0094707926109934 -1.7378448607830892 3.96e-02
# 3 1.0041885798487606 -1.7296532313345403 1.02e-04
# 4 1.0041687386935545 -1.7296372870860777 8.42e-10
# 5 1.0041687384746592 -1.72963728702587 0.00e+00
The residuals show the squaring: and , each within a modest constant of the next residual. The root is . The system has a second root with (the circle meets the curve twice); which one Newton finds depends on the start, a general feature of nonlinear systems.
For , Cramer's rule is fine; for larger systems call numpy.linalg.solve(J, -F).
Application: a robust implied-volatility solver
The Black–Scholes call price is strictly increasing in (vega ), so any price strictly between the no-arbitrage bounds has exactly one implied volatility, and a bracket is available. Two facts make Newton reliable:
- Vega is free. reuses from the price.
- The inflection point is known. Volga is , and with for forward ,
which is zero at . So is convex for and concave above. Started at , the tangent at the inflection lies below the convex part and above the concave part, so the first Newton step lands on the same side of the root as , and from then on the iterates move monotonically to the root without overshooting.
A production solver still keeps a bracket and falls back to bisection if a step leaves it, which covers rounding trouble and tiny vega.
Worked example
implied volatility by safeguarded Newton
A 6-month call with , , is priced at . Recover from the price, and show what plain Newton does from a start of .
Show solutionHide solution
import math
def N(x):
return 0.5 * math.erfc(-x / math.sqrt(2))
def bs_call(S, K, T, r, sig):
d1 = (math.log(S / K) + (r + 0.5 * sig**2) * T) / (sig * math.sqrt(T))
return S * N(d1) - K * math.exp(-r * T) * N(d1 - sig * math.sqrt(T))
def vega(S, K, T, r, sig):
d1 = (math.log(S / K) + (r + 0.5 * sig**2) * T) / (sig * math.sqrt(T))
return S * math.sqrt(T) * math.exp(-0.5 * d1**2) / math.sqrt(2 * math.pi)
def implied_vol(price, S, K, T, r, tol=1e-12, verbose=False):
lo, hi = 1e-6, 5.0 # the call price is increasing in sigma
m = math.log(S * math.exp(r * T) / K) # log-moneyness ln(F/K)
sig = max(math.sqrt(2 * abs(m) / T), 0.1) # start at the inflection point
for it in range(1, 101):
diff = bs_call(S, K, T, r, sig) - price
if verbose:
print(it, f"{sig:.15f}", f"{diff:+.3e}")
if abs(diff) < tol:
return sig
if diff > 0:
hi = sig
else:
lo = sig
v = vega(S, K, T, r, sig)
step = sig - diff / v if v > 0 else lo
sig = step if lo < step < hi else 0.5 * (lo + hi) # Newton if safe, else bisect
raise RuntimeError("no convergence")
S, K, T, r = 100.0, 120.0, 0.5, 0.02
price = bs_call(S, K, T, r, 0.25)
print(f"price = {price:.6f}")
implied_vol(price, S, K, T, r, verbose=True)
sig = 0.05 # plain Newton from a poor start
diff, v = bs_call(S, K, T, r, sig) - price, vega(S, K, T, r, sig)
print("plain Newton:", f"vega={v:.2e}", f"next sigma={sig - diff / v:.1f}")
Output:
price = 1.679752
1 0.830232634371728 +1.522e+01
2 0.290584242519715 +8.259e-01
3 0.252201427936204 +4.210e-02
4 0.250008949533932 +1.704e-04
5 0.250000000150952 +2.875e-09
6 0.250000000000000 -3.553e-15
plain Newton: vega=2.13e-04 next sigma=7870.5
Reading it. , so . The true vol is below , in the convex region, so every iterate overestimates and decreases monotonically: . The vol errors show the quadratic rate. The bisection fallback never fires.
Plain Newton from is 20% out of the money with vega : the first step jumps to , where the option is worth almost and vega underflows to exactly 0, so the next step divides by zero.
Tolerance. A price tolerance maps to a vol tolerance of about . For deep out-of-the-money options with tiny vega, a price accurate to can still leave the vol uncertain, and a quoted price rounded to a cent may not pin down the vol at all; that is conditioning again ( of the inverse map is large when vega is small).
Knowledge check
Successive errors of an iteration are , , . What order does this suggest?
Knowledge check
Newton's method is applied to with . How do the errors behave near ?
Knowledge check
Evaluating f' costs as much as evaluating f, and you can afford a fixed number of evaluations. Which method usually gains more digits per evaluation near a simple root?
Knowledge check
Why start an implied-vol Newton iteration at ?
Key takeaways
- Order means ; estimate from in the tail. Bisection is linear with , secant has , Newton with .
- Count evaluations, not steps: secant beats Newton per evaluation unless is cheap.
- Newton fails at multiple roots (linear rate), from poor starts (overshoot, cycles) and where is small. Safeguard it with a bracket, or use Brent's method.
- For systems, solve each step; quadratic convergence needs a nonsingular Jacobian at the root.
- Implied vol: unique by monotonicity, Newton with vega from the inflection point, bracket and bisection fallback, and remember that vol accuracy is price accuracy divided by vega.
Practice problems
Finished reading?
Answer the 4 knowledge checks to complete this lesson (0 done).