Basic Prerequisites: High-school calculus and a first course in linear algebra.
1. Intuition & Practical Objective
This page builds the why of numerical methods with no prior numerical knowledge needed. The objective is one idea: a numerical answer is an approximation with a known budget, and the whole discipline is about controlling that budget.
Start with the dumbest question: why not just use the formula? Because most of the time there is none. There is no closed form for , for the root of , for the eigenvalues of a matrix, or for the solution of a free-boundary PDE. The formula book ends precisely where real problems begin. So instead of an exact answer we manufacture an approximate one whose error we can bound.
Three steps:
-
Approximation is unavoidable - so measure it. A computer cannot store ; it stores to ~16 digits. Every operation inherits that limit. The goal is never zero error; it is an error small enough for the decision at hand, provably.
-
There is always a trade-off knob. Refine the mesh, add samples, take another iteration - each buys accuracy at a cost. The quality of a method is the rate at which the error falls (its order ), not any single number.
-
Some problems are ill-posed for any algorithm. If the answer changes wildly under a tiny change in the input, no cleverness helps - that is conditioning, a property of the problem, separate from the algorithm.
2. Mathematical Ground Truth & Derivations
The four sources of numerical error. Every wrong digit you will ever see comes from one of these:
| Source | Symbol | Origin | How it shrinks |
|---|---|---|---|
| Truncation (discretisation) | replacing a limit/integral by a finite sum | as mesh , like | |
| Round-off | finite floating-point precision () | grows as , like | |
| Statistical (sampling) | estimating an expectation by random draws | ||
| Model error | - | the equations are wrong | never - fix the model |
Order of accuracy. A method has order if its error , i.e. is finite and non-zero. Concretely: halving divides the error by . So an method gains one binary digit per halving, an method gains two. The Taylor expansion is the engine:
(Duffy eq. 6.6), so any difference formula is the exact derivative plus a remainder whose leading power is the order.
The central limit/consistency/stability triangle. For discretising a well-posed differential problem the governing theorem (Duffy Thm 8.1) is:
Lax equivalence: a consistent scheme converges iff it is stable. Consistency is usually easy (Taylor); stability is the hard part, and it depends on the mesh, not just the stencil.
Conditioning vs stability - keep them apart. Conditioning is a property of the problem: for ,
A large means the answer is inherently sensitive; no algorithm can beat it. Stability is a property of the algorithm - whether errors introduced during computation stay bounded. An algorithm can be numerically stable on an ill-conditioned problem and still return few correct digits (the digits were destroyed by the conditioning, page 05).
Round-off vs truncation - the optimal step. For a difference with truncation and round-off :
For the centred difference ( truncation, round-off) this gives , matching the §3 experiment (floor near ); a one-sided (first-order, ) difference would give the larger step . For the second difference Conte & de Boor quote - the empirical optimum.
3. Computational Implementation - the round-off/truncation valley
The single most instructive experiment in numerical analysis: differentiate at by a centred difference. Watch the error fall as shrinks - and then rise again.
Read the shape: from to the error falls like (as theory predicts - is ~ over a reduction, i.e. order 2), reaches its floor around , and then round-off takes over - by the “derivative” is off. The algorithm did not change; the regime did.
4. Failure Modes & First-Principles Breakdowns
- “Smaller step is always better.” False. Below the subtraction catastrophic-cancels and round-off amplifies like . This is the round-off valley of the experiment above (Conte & de Boor, Duffy §6.3).
- Confusing conditioning with stability. Ill-conditioning () is the problem’s fault and is not fixable by algorithm choice; instability is the algorithm’s fault and is fixable. Diagnosing the wrong one wastes the effort (page 05).
- Assuming order implies accuracy. An method with a huge constant can be worse at practical than an method - big- is an asymptotic promise, not a guarantee at finite .
- Forgetting the fourth error. Choosing a beautiful discretisation of the wrong PDE is still wrong. Numerical error is the smallest of your worries if the model is misspecified.
- Trusting a single grid. A number from one mesh has no error bar. Always refine and check the order: compute at and and verify the error ratio matches - the standard grid-convergence check (Richardson, Duffy §6.5).
5. References
- Duffy, Finite Difference Methods in Financial Engineering
- Glasserman, Monte Carlo Methods in Financial Engineering
- Nocedal & Wright, Numerical Optimization
- Golub & Van Loan, Matrix Computations
6. Connected Graph Bridges
- Base: Linear Algebra & Matrices · Multivariable Calculus & Optimization
- Continue: 02 · Finite Differences · Index Hub
- Cross-link: Pricing · From Zero