Halley’s Method
Source inspiration: (Mathew 2000-2019).
Description
Halley’s method, attributed to Edmond Halley (1656–1742), is a root-finding algorithm that extends Newton-Raphson by incorporating the second derivative \(f''\). Where Newton-Raphson fits a tangent line at each iterate and finds its \(x\)-intercept, Halley’s method fits an osculating hyperbola, a rational function \(y = \dfrac{a + b(x - x_n)}{1 + c(x - x_n)}\) that matches \(f\), \(f'\) and \(f''\) at \(x_n\), and takes its \(x\)-intercept as \(x_{n+1}\). (Taking the root of the second-order Taylor parabola instead gives a different iteration, Halley’s irrational method.) This extra curvature information yields cubic convergence at simple roots — the number of accurate digits roughly triples each iteration, compared to doubling for Newton-Raphson.
Iteration Formula
Given a smooth function \(f(x)\) with derivatives \(f'(x)\) and \(f''(x)\), the Halley iteration is:
\[x_{n+1} = x_n - \frac{2\, f(x_n)\, f'(x_n)}{2\bigl[f'(x_n)\bigr]^2 - f(x_n)\, f''(x_n)}\]
This can be rewritten to make the Newton-Raphson correction explicit:
\[x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} \cdot \frac{1}{\displaystyle 1 - \frac{f(x_n)\, f''(x_n)}{2\bigl[f'(x_n)\bigr]^2}}\]
The second factor, \(1\big/\bigl(1 - f(x_n)\, f''(x_n)/(2[f'(x_n)]^2)\bigr)\), is a multiplicative correction to the Newton step. When \(|f(x_n)\, f''(x_n)|\) is small compared with \(2[f'(x_n)]^2\), which always happens close to a simple root, this factor is close to 1 and the Halley step nearly coincides with the Newton step.
Convergence
For a simple root \(x^*\) (where \(f(x^*) = 0\) and \(f'(x^*) \neq 0\)), Halley’s method converges with order 3:
\[|e_{n+1}| \approx C\,|e_n|^3, \qquad e_n = x_n - x^*\]
where the asymptotic error constant is
\[C = \left|\frac{f'''(x^*)}{6\,f'(x^*)} - \frac{\bigl[f''(x^*)\bigr]^2}{4\bigl[f'(x^*)\bigr]^2}\right|.\]
Mathews’ theorem gives the hypotheses: \(f \in C^3[a, b]\), \(f(x^*) = 0\) with \(f'(x^*) \neq 0\), and \(x_0\) close enough to \(x^*\), so convergence is only local. Case 1b and Case 2 show the cubic rate: in extended precision, \(|e_{n+1}|/|e_n|^3\) settles at \(C = 1/8\) and \(C = 1/3\) by the third step.
At a multiple root of order \(m \geq 2\), the cubic rate is lost and the method reverts to linear convergence (as with Newton-Raphson).
Trade-offs
Each Halley step requires three function evaluations — \(f\), \(f'\), and \(f''\) — versus two for Newton-Raphson. Because its digits triple rather than double, Halley needs only about \(\log 2/\log 3 \approx 0.63\) times as many iterations for a high-precision result, but per function evaluation its efficiency index \(3^{1/3} \approx 1.442\) is barely above Newton’s \(2^{1/2} \approx 1.414\), so whether it saves time depends on how costly \(f''\) and the extra arithmetic are. Computing \(\sqrt{2}\) from \(x_0 = 2\) to 20,000 digits at fixed working precision with the first formula above, for example, Halley needs 10 iterations against Newton’s 15 but takes about as long or slightly longer (the second form, evaluated as written, does two more divisions per step and takes about twice as long as Newton).
Newton-Raphson is the method Halley’s corrects, the Secant Method needs no derivatives, and at multiple roots, where Halley’s is only linear, Accelerated and Modified Newton-Raphson and the Improved Newton Method restore quadratic convergence.
Animations
Case 1a shows the Newton-Raphson tangent-line construction alone (tangent blue dashed) as a baseline. Cases 1b and 2 show the osculating-hyperbola construction of Halley’s method: at each step the current iterate \(x_n\) is marked on the curve, the tangent line (blue dotted) shows where Newton’s method would jump next, and the osculating hyperbola (orange dashed) crosses the \(x\)-axis at the Halley iterate \(x_{n+1}\) — yielding cubic rather than quadratic convergence at simple roots.
Julia source scripts that generated these animations are linked under each case.
Cases 1a, 1b and 2 follow Examples 1(a), 1(b) and 2(b) of Mathews’ Halley’s Method module. The module’s Example 2(a), which applies Newton-Raphson iteration to the Case 2 function from the same starting value, is not animated here; Case 2’s blue diamond shows only the Newton step from the current Halley iterate.
Case 1a — Newton-Raphson baseline, \(f(x) = x^2 - 2\), \(x_0 = 2\)
Behavior: Starting at \(x_0 = 2\), the tangent at each iterate intersects the \(x\)-axis to produce the next iterate. The method converges quadratically to \(x^* = \sqrt{2} \approx 1.41421\), roughly doubling the number of correct digits per step (e.g., \(x_1 = 1.5\), \(x_2 \approx 1.4167\), \(x_3 \approx 1.4142\)).

Case 1b — Halley’s Method, \(f(x) = x^2 - 2\), \(x_0 = 2\)
Behavior: Starting at the same \(x_0 = 2\), Halley’s iteration uses both \(f'\) and \(f''\) to correct the Newton step. The orange diamond marks the Halley iterate; the blue diamond shows where Newton would land for comparison. Halley achieves \(x_1 \approx 1.42857\) in one step (vs Newton’s \(x_1 = 1.5\)); from there the number of accurate digits roughly triples each iteration (about 1.8, 6.4 and 20 after steps 1, 2 and 3, in extended precision) because \(|g'''(x^*)| / 3!\) governs the asymptotic error rather than \(|g''(x^*)| / 2!\), where \(g\) is the iteration map, \(x_{n+1} = g(x_n)\).

Case 2 — Halley’s Method, \(f(x) = x^3 - 3x + 2\), \(x_0 = -2.2\)
Behavior: \(f(x) = x^3 - 3x + 2 = (x+2)(x-1)^2\) has a simple root at \(x = -2\) and a double root at \(x = 1\). Starting at \(x_0 = -2.2\) (near the simple root), Halley converges cubically: the first Halley step reaches \(x_1 \approx -2.002\), while Newton only reaches \(x_1 \approx -2.022\). In extended precision, Newton’s own iterates from \(x_0 = -2.2\) have errors of about \(2.2\times10^{-2}\), \(3.2\times10^{-4}\), \(6.9\times10^{-8}\) and \(3.2\times10^{-15}\) after steps 1–4, against Halley’s \(2.1\times10^{-3}\), \(2.9\times10^{-9}\) and \(8.2\times10^{-27}\) after steps 1–3; in double precision Newton first reaches \(-2\) exactly at \(x_5\), Halley at \(x_3\). Neither first step overshoots: both stay to the left of the root, on the same side as \(x_0\), and Halley’s lands within 0.0021 of it. The two first-step markers are only about 0.02 apart, so they overlap at this scale; the legend gives their values.
