Basic Prerequisites: Multivariable Calculus & Optimization and 01 · From Zero.
1. Intuition & Practical Objective
Almost every fitted model ends in the same two problems: find the where (calibration, implied parameters, break-even) and find the that minimises (maximum likelihood, least squares, portfolio construction). Neither has a closed form in general, so both are solved by iteration - take a guess, use local information to take a better guess, repeat.
The practical objective of this page is the iterative-method lookup: which method, what its order of convergence, and what can make it fail.
The single organising idea: speed of convergence is a number. Two algorithms solving the same problem can differ by orders of magnitude in the iterations required - and the winner is usually the one that uses curvature, not just slope.
The one-sentence essence. “Newton uses the second-order Taylor model and converges quadratically; gradient descent uses only the gradient and converges linearly at rate - the price of curvature is one linear solve per step.”
2. Mathematical Ground Truth & Derivations
Root-finding. For :
- Bisection. Halve a bracketing interval each step: - linear, exactly one binary digit per iteration, but perfectly robust (only needs a sign change).
- Newton–Raphson.
Each iteration roughly doubles the number of correct digits. It needs (or a finite-difference approximation) and a good start; at a multiple root or it degrades to linear or diverges.
- Secant. Uses a divided-difference slope instead of ; order - between linear and quadratic, no derivative needed.
The convergence-order hierarchy - the standard definition: a sequence with error has order if . Equivalent: the number of correct digits is added to by a constant (linear) or multiplied by (superlinear).
Optimisation. For minimising , with gradient and Hessian :
- Gradient descent. . For a quadratic with condition number (largest/smallest eigenvalue) the error contracts at the rate
Convergence is linear, and slow when is large - the classic zig-zag in an elongated valley.
- Newton’s method. . The second-order Taylor model of a quadratic is exact, so Newton solves a quadratic in one step; near a minimum it is quadratically convergent. Cost: forming/inverting () per step.
- Quasi-Newton (BFGS, L-BFGS). Build an approximate Hessian from gradient differences - superlinear, no second derivatives, per step (L-BFGS ).
- Line search / trust region. The step is a direction; the step length is chosen by a Wolfe/Armijo condition. Without it, full Newton steps can overshoot far from the minimum (Newton is only locally guaranteed).
Convexity and the KKT conditions. If is convex the local minimum is global and gradient-based methods cannot be trapped by a spurious stationary point; if it is not, every method above can converge to a saddle or a local minimum. Constrained problems are characterised by the KKT conditions (stationarity, primal/dual feasibility, complementary slackness) - the full treatment is in Multivariable Calculus & Optimization; numerically, constraints are often handled by penalty or projected (PSOR) methods, which replace the constraint by a reaction term that drives the iterate back into the feasible region (Duffy eqs. 28.15–28.17, 29.11).
Conditioning of the optimiser. The GD rate and the Newton step both degrade with ; preconditioning (a change of variables that makes the Hessian near-identity) is the standard cure - the same idea as the parameter transformation that whitens an ill-conditioned quadratic.
3. Computational Implementation - Newton vs gradient descent, and quadratic convergence
Two fingerprints of quadratic convergence: in the root-finding log the error sequence has each error roughly the square of the previous (the number of correct digits doubles every line: 1, 2, 4, 9, 16). And on the quadratic objective Newton hits machine precision in a single step, because the second-order model is exact - whereas gradient descent needs 26 iterations even on a benign .
4. Failure Modes & First-Principles Breakdowns
- Gradient descent stalls when . The rate approaches 1: for you need ~ iterations per digit. Fix by preconditioning or by using curvature (Newton/quasi-Newton), not by tuning the step.
- A too-large step diverges. GD is stable only for . For the iteration’s error is amplified each step - the optimisation twin of the CFL bound (page 02).
- Newton on a bad start overshoots or diverges. The quadratic model is local. Without a line search / trust region a full Newton step can land far away or cross a stationary point of ; Newton’s global reliability comes from damping, not from the update itself.
- Non-convexity traps every local method. Gradient descent and Newton both stop at a stationary point; on a non-convex objective that may be a saddle or a local minimum. Convexity is what turns “a minimum” into “the minimum”.
- Multiple/nearly-vanishing roots kill Newton’s order. At a double root () Newton drops to linear; where (flat regions) the step explodes. Secant or bisection (robust but slow) are the fallbacks.
- Finite-difference gradients are noisy. If is estimated by a difference, its truncation/round-off error (page 01) enters the iteration. Prefer analytic or automatic differentiation when the order matters.
- Scaling of variables. An optimisation problem with wildly different variable scales is implicitly ill-conditioned even if each function is well-behaved - always nondimensionalise first (the same advice the FDM literature gives for grid problems).
5. References
- Nocedal, J. & Wright, S. J.: Numerical Optimization (2nd ed.)
- Dennis, J. E. & Schnabel, R. B.: Numerical Methods for Unconstrained Optimization and Nonlinear Equations
- Duffy, Finite Difference Methods in Financial Engineering
- Tsay, Analysis of Financial Time Series
6. Connected Graph Bridges
- Base: Multivariable Calculus & Optimization · 01 · From Zero
- Continue: 05 · Numerical Linear Algebra (the linear solve inside every Newton step) · Index Hub
- Forward links: Pricing · Failure Modes · Modern Portfolio Theory (the canonical constrained optimisation)