Concept Architecture
What the Newton–Raphson method does
Closely related Newton updates also locate stationary points of likelihoods and objective functions. This page explains the tangent-line derivation, convergence, worked calculation, multivariable form, optimisation uses and safeguards needed in statistical and health-economic applications.
The method can converge extremely quickly near a suitable solution, but it is not guaranteed to converge from every starting value. Its reliability depends on the function, derivatives, scaling, initial value and any constraints on the parameter space.
The update follows the tangent line to a root
Suppose the aim is to solve:
At current iterate (x_k), a first-order Taylor approximation is:
Setting the approximation equal to zero and solving for (x) gives the Newton–Raphson update:
Geometrically, the algorithm finds where the tangent line at ((x_k,f(x_k))) crosses the horizontal axis. It then repeats the construction from that new point.
A worked example finds the square root of two
To calculate (\sqrt{2}), solve:
with derivative:
The update becomes:
Starting from (x_0=1.5):
| Iteration | (x_k) | (f(x_k)=x_k^2-2) |
|---|---|---|
| 0 | 1.5000000000 | 0.2500000000 |
| 1 | 1.4166666667 | 0.0069444445 |
| 2 | 1.4142156863 | 0.0000060073 |
| 3 | 1.4142135624 | approximately 0 |
The iterates rapidly approach:
The table demonstrates fast local convergence, not a guarantee that every equation or starting value will behave similarly.
Convergence can be quadratic near a simple root
Let (r) be a simple root, so (f(r)=0) and (f'(r)\ne0). If the function is sufficiently smooth and an iterate is close enough to (r), the error (e_k=x_k-r) approximately satisfies:
This quadratic convergence means the number of correct digits can roughly double at each iteration once the algorithm is in its local convergence region. Before that region is reached, steps may be slow, erratic or divergent.
For a root of multiplicity (m>1), ordinary Newton–Raphson generally converges only linearly. If the multiplicity is known, a modified update is:
The modification should not be used with an assumed multiplicity that has not been established.
The starting value can determine the destination
Newton–Raphson is a local method. A function with several roots may lead different starting values to different solutions, and some starting points can generate cycles or escape to large values. A derivative near zero can create an extremely large step even when the function value is modest.
Before iterating, an analyst should examine:
- The feasible domain and any parameter boundaries.
- The number and approximate location of possible roots.
- Discontinuities, non-differentiable points and flat regions.
- Whether a bracket with opposite endpoint signs can be found.
- Whether the chosen starting value is supported by theory, data or a coarser search.
A plot or grid evaluation is often a valuable diagnostic in one dimension, but it does not replace numerical checks at the final solution.
Stopping requires more than a small step
An algorithm needs a convergence rule and a maximum iteration count. A small change in (x) can occur because the solution has been reached, because the derivative and scaling produce a tiny step, or because floating-point rounding has stalled the iteration. Multiple criteria give stronger evidence.
Common checks include:
and:
|x_{k+1}-x_k| \le \tau_x\left(1+|x_{k+1}| ight)The tolerances (\tau_f) and (\tau_x) should reflect scale and decision needs. The algorithm should also detect non-finite values, an unusably small derivative, cycling and failure to converge within the permitted iterations.
Bracketing methods trade speed for reliability
Bisection begins with an interval ([a,b]) satisfying (f(a)f(b)<0) for a continuous function and repeatedly halves the interval. It converges more slowly than a successful Newton iteration but maintains a root bracket. The secant method replaces the derivative with a slope calculated from two iterates.
| Method | Derivative required | Main advantage | Main limitation |
|---|---|---|---|
| Newton–Raphson | Yes | Very fast local convergence | Can leave the domain or diverge |
| Secant method | No | Avoids an explicit derivative | Usually slower and not bracket-preserving |
| Bisection | No | Guaranteed interval reduction under its assumptions | Linear convergence |
| Brent-type method | No | Combines bracketing with faster interpolation steps | Requires an initial bracket |
Hybrid solvers use a Newton or interpolation step when it is safe and fall back to a bracket-preserving step otherwise. They are often preferable for production root finding.
Damping can prevent an excessively aggressive step
The full Newton step may overshoot, enter an invalid region or worsen the objective. A damped update multiplies the step by (\alpha_k), where (0<\alpha_k\le1):
A line search can choose (\alpha_k) to obtain sufficient improvement while respecting the domain. Trust-region methods instead restrict the step to a region where the local approximation is considered reliable. These safeguards trade some ideal local speed for better global behaviour.
Multivariable Newton solves a linear system at each iteration
For a vector function (F:\mathbb{R}^p\rightarrow\mathbb{R}^p), the target is:
Let (J_F(\theta_k)) be the Jacobian matrix at the current iterate. The Newton step (s_k) solves:
and updates:
Software should solve the linear system for (s_k) rather than explicitly calculate (J_F(\theta_k)^{-1}). A singular or ill-conditioned Jacobian can make the step non-unique, unstable or uninformative.
Newton optimisation uses the gradient and Hessian
To minimise a twice-differentiable objective (Q(\theta)), Newton's method solves the stationarity equation (\nabla Q(\theta)=0). The Hessian (H_Q(\theta)) is the Jacobian of the gradient, giving the update:
Equivalently, when the Hessian is invertible:
The inverse form explains the mathematics, but a linear solve is preferable computationally. For a local minimum, the Hessian should be positive definite near the solution; otherwise the Newton direction may lead toward a maximum or saddle point.
Maximum-likelihood estimation applies Newton to the score
For log-likelihood (\ell(\theta)), the score vector is:
and the observed Hessian is:
Solving (U(\theta)=0) gives the Newton–Raphson likelihood update:
Fisher scoring replaces the negative observed Hessian with the expected information matrix. Iteratively reweighted least squares used for many generalised linear models is closely related. Convergence to a stationary point does not prove that it is the global maximum or that the statistical model is identifiable.
Derivatives can be analytic, automatic or numerical
Accurate derivatives are central to Newton–Raphson. Analytic derivatives can be efficient and precise but are vulnerable to algebra or coding mistakes. Automatic differentiation evaluates derivatives from program operations, while finite differences approximate them through nearby function evaluations.
A centred finite-difference derivative is:
Choosing (h) is a balance: a large step creates truncation error, while a very small step amplifies cancellation and floating-point error. Numerical Hessians can be especially noisy. Derivative checks should compare independent methods at several points rather than only at the final solution.
Constraints require transformations or constrained methods
An unconstrained Newton step can generate impossible parameter values, such as negative rates, probabilities outside ([0,1]) or invalid covariance matrices. Simply clipping the proposed value at a boundary changes the algorithm and can cause false convergence.
Possible approaches include:
- Transforming a positive parameter using (\theta=e^\eta).
- Transforming a probability using a logit parameterisation.
- Using a softmax transformation for probabilities that must sum to one.
- Applying a Cholesky parameterisation for positive-definite covariance matrices.
- Using a constrained optimiser with explicit bounds or nonlinear constraints.
Transformations change derivatives and may change numerical conditioning. Results should be translated back to the natural parameter scale with uncertainty handled consistently.
Scaling affects numerical performance
When parameters or equations operate on very different magnitudes, one component can dominate the step or stopping rule. Poor scaling can make the Jacobian or Hessian ill-conditioned and can produce misleading evidence of convergence.
Useful measures include:
- Rescaling parameters to comparable numerical magnitudes.
- Scaling equations so residual components have comparable influence.
- Using dimensionless or standardised parameterisations when scientifically appropriate.
- Applying preconditioning or a parameter-specific step metric.
- Checking condition numbers and linear-solve residuals.
Scaling should improve numerical behaviour without changing the substantive model or hiding weak identification.
Health-economic models use Newton updates in several places
The method often operates inside statistical or modelling software rather than appearing as a visible health-economic output. Understanding it helps analysts diagnose non-convergence and distinguish numerical failure from evidence or structural problems.
Applications include:
- Estimating generalised linear models for cost and utilisation data.
- Fitting parametric survival and competing-risk models.
- Calibrating model parameters to epidemiological or clinical targets.
- Solving break-even or threshold equations such as (\operatorname{INMB}(x)=0).
- Estimating mixed, latent-variable and evidence-synthesis models.
- Finding internal rates, equilibrium conditions or constrained resource-allocation solutions.
- Computing modes in Bayesian approximations and optimisation-based inference.
For a threshold problem, every reported root should be checked against the feasible parameter range and substituted back into the original economic equation.
A threshold example shows the decision use
Suppose incremental net monetary benefit depends nonlinearly on a price (p):
The break-even price solves (\operatorname{INMB}(p)=0), with derivative:
Starting from (p_0=300), the first update is:
Further iteration approaches the positive root of approximately £341.64. The quadratic also has a negative mathematical root, but a negative price may be outside the feasible decision problem and should not be reported as an actionable threshold.
Spreadsheet implementation should expose every iteration
A spreadsheet can demonstrate Newton–Raphson by placing the iteration number, current value, function, derivative, proposed step and next value in separate columns. The first row contains the starting value, and each later row references the prior iterate. This visible structure helps identify divergence, oscillation and a derivative approaching zero.
Spreadsheet safeguards should include:
- A fixed maximum iteration count.
- Separate absolute and relative convergence checks.
- A minimum acceptable derivative magnitude.
- Domain checks before every function evaluation.
- A warning for non-finite values or increasing residuals.
- Retention of full calculation precision until presentation.
- Independent substitution of the final value into the original equation.
Circular references and automatic iterative calculation should not be used as an undocumented substitute for an explicit algorithm.
Common failures require diagnosis, not forced convergence
Newton–Raphson can return a number even when the number is not the intended solution. A defensible implementation records the path, final residual and reason for stopping.
- A zero or near-zero derivative can create an undefined or enormous step.
- A poor starting value can lead to divergence, cycling or the wrong root.
- A full step can cross a domain boundary or worsen an objective.
- An inaccurate numerical derivative can point in the wrong direction.
- An indefinite Hessian can lead towards a saddle point or maximum during minimisation.
- A singular Jacobian can indicate redundant equations or non-identifiable parameters.
- A small step can reflect floating-point stagnation rather than a small residual.
- A small gradient can occur on a flat surface far from a useful optimum.
- Convergence from only one start can conceal alternative roots or local optima.
- Tightening tolerances cannot fix a misspecified or ill-conditioned problem.
A defensible Newton–Raphson workflow
A reliable analysis combines the fast local update with domain knowledge, diagnostics and a safer fallback. The workflow should make it possible to distinguish successful mathematical convergence from a merely terminated sequence of numbers.
- Define the target: State the original root, score or optimisation equation and the feasible parameter domain.
- Derive the derivatives: Obtain and independently check the derivative, gradient, Jacobian or Hessian.
- Choose starting values: Use theory, a grid, prior estimates or a bracket, and test multiple starts when several solutions are possible.
- Scale the problem: Rescale parameters and equations to reduce avoidable conditioning problems.
- Set safeguards: Specify damping, line search, trust region, derivative thresholds, bounds and a fallback method.
- Set stopping rules: Require appropriate residual, step and iteration criteria rather than one tolerance alone.
- Monitor iterations: Record function values, step sizes, domain violations and conditioning diagnostics.
- Verify the solution: Substitute the estimate into the original equation and check first- and second-order conditions where relevant.
- Test robustness: Repeat with alternative starts, tolerances, derivative methods and a slower reliable solver.
- Report transparently: Document the algorithm, initial values, transformations, convergence status, final residual and unresolved numerical limitations.
Newton–Raphson is powerful because it converts local curvature into rapid progress. Its speed becomes trustworthy only when the final solution is feasible, independently verified and robust to reasonable numerical choices.
Related Concepts (1)
Library
Publications
1
Conceptualizing a Model: A Report of the ISPOR-SMDM Modeling Good Research Practices Task Force-2 — Roberts, Russell, Paltiel, Chambers, McEwan & Krahn, Task Force Report 2 ed., 2012 (Value in Health / Medical Decision Making)
Best-practice guidance on model conceptualisation — defining the decision problem, scoping, and choosing an appropriate model structure before implementation.
Journal ArticleView source →
Frequently Asked Questions (6)
What is the Newton-Raphson method?
A numerical technique finding a function's roots by iteratively improving an initial guess using the function's value and derivative at each step.
Source: Press et al. 2007
What does the Newton-Raphson method need at each step?
At each step the method uses both the value of the function and its slope at the current guess to work out where the function would cross zero if it continued along that slope, and takes that crossing as the next guess. Because it exploits the derivative, it homes in on a root rapidly when the starting guess is good. The reliance on the derivative is also its weakness, since it can fail where the slope is hard to compute, is zero, or the initial guess is poor. Press and colleagues (2007) describe the method.
Source: Press et al. 2007
How does the Newton-Raphson method work?
The Newton-Raphson method works by starting from an initial guess and, at each step, using the function's value and derivative there to find where the tangent line to the function crosses zero, which becomes the next, improved estimate. The update subtracts the function value divided by the derivative from the current guess. Repeating this moves the estimate toward a root, since the tangent approximates the function near the guess, and the process continues until successive estimates change negligibly.
Source: Press et al. 2007
Why does the Newton-Raphson method converge quickly?
The Newton-Raphson method converges quickly, with quadratic convergence, when the initial guess is close enough to a root and the function is well behaved, because near a root the tangent line approximates the function closely, so each step roughly squares the accuracy, doubling the number of correct digits. This rapid convergence makes it efficient for solving equations when a good starting point is available and the derivative can be computed, which is why it is a standard root-finding method.
Source: Press et al. 2007
What are the limitations of the Newton-Raphson method?
The Newton-Raphson method requires the function's derivative, which may be unavailable or costly, and it can fail: it may diverge or oscillate if the starting guess is poor, and it breaks down where the derivative is zero or near zero. It finds only one root at a time and may converge to an unexpected one. It also assumes the function is smooth. These limitations mean it needs a good starting point and a well-behaved function, and safeguards are often added.
Source: Press et al. 2007
Where is the Newton-Raphson method used in modelling?
In modelling and statistics, the Newton-Raphson method is used to solve equations that arise in estimation and calibration, such as finding parameter values that satisfy a condition or maximise a likelihood, since maximisation reduces to finding where a derivative is zero. It is used in fitting statistical models, calibrating health economic models to targets, and other computations requiring the solution of non-linear equations. Its speed makes it attractive where the derivative is available and a reasonable starting point can be found.
Source: Press et al. 2007
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 25 Sep 2026
Content version: 1.0.0
Canonical Identity
- Term code
- HE-EM-DM-070
Stable URI · Machine-readable · Resolvable · CC BY 4.0
