Basic Prerequisites: 01 · From Zero and Multivariable Calculus.


1. Intuition & Practical Objective

A finite-difference method (FDM) replaces the derivatives in a differential equation by differences on a grid, turning a calculus problem into an algebra problem: a system of linear equations you solve (or march) step by step. It is the workhorse for every one-dimensional initial-boundary-value problem - the heat equation, the Black–Scholes PDE, the diffusion of a bond short rate.

The practical objective of this page is the scheme lookup: given a parabolic PDE, which time-stepping scheme to use, what its order is, and - crucially - whether it is stable.

Two facts carry the whole subject:

  1. Consistency + stability convergence. This is the Lax equivalence theorem (Duffy Thm 8.1). Taylor-expand the scheme to check consistency; do a von Neumann (Fourier) test to check stability; convergence then comes free.
  2. Stability is a joint property of space and time steps. The explicit scheme is correct and useless outside its CFL bound; the implicit and Crank–Nicolson schemes are unconditionally stable but Crank–Nicolson can ring.

The one-sentence essence. “Replace derivatives by divided differences, then prove the replacement is consistent and stable - stability, not the stencil, decides whether your grid produces the solution or a blow-up.”


2. Mathematical Ground Truth & Derivations

Divided differences and their truncation error (Duffy eqs. 6.2–6.10). With the centred, forward and backward operators:

So: centred first difference is , one-sided is , second difference is . (Duffy’s printed (6.10) shows - a typographical error; the Taylor expansion forces , as flagged in the corpus.)

The -method (Duffy eqs. 6.17–6.19, 7.4–7.7). For a semi-discretised system , weight the spatial operator between the old and new time levels by :

on new levelSchemeOrder in timeStability
Explicit Eulerconditional:
Crank–Nicolsonunconditional
Implicit Eulerunconditional

(Beware the labelling clash between Duffy §7.3.1 and §7.4.1, where the weight on the new level is written differently - carry one convention and do not mix.)

Consistency and order (Duffy Defs. 8.1, 8.3, 8.4). A scheme is consistent if, for the exact solution ,

is the local truncation error. Lax (Thm 8.1): a consistent two-level scheme for a well-posed linear IVP is convergent iff stable.

Stability - von Neumann/Fourier analysis (Duffy §8.3). Substituting gives the amplification factor ; stability requires for all frequencies :

Explicit Euler needs ; implicit Euler and Crank–Nicolson are unconditionally stable ( for all ). Note goes negative for large - the source of spurious oscillation.

Stability for matrix schemes - Gerschgorin (Duffy Thm 8.2). For , the eigenvalues of lie in ; Corollary 8.1 gives . For tridiagonal Toeplitz systems the spectrum is closed-form (Duffy eqs. 7.8, 8.51): - a complex eigenvalue signals oscillation.

Richardson extrapolation (Duffy eqs. 6.28–6.36). If , then

a second-order method built from two first-order implicit-Euler solves - without Crank–Nicolson’s ringing.

Exponential fitting (Duffy eq. 6.54–6.56, 11.17). For the convection–diffusion model, replacing the diffusion coefficient by the fitting factor

reproduces the exact solution of the model ODE at the grid points and stays monotone for any - the standard cure for convection-dominated (near-degenerate) problems. Its limit is automatic upwinding.

Maximum principle (Duffy Thms 3.1–3.2, discrete Lemma 11.1). If and on the boundary, then inside. A scheme that preserves this (a positive-type scheme / M-matrix, for ) cannot produce negative values - the property every option price must obey.


3. Computational Implementation - three schemes, one benchmark, one blow-up

Solve on with , ; exact solution . The midline value at is .

Three lessons in one table: (i) at equal Crank–Nicolson is more accurate than either Euler (7.5e-4 vs 1.1e-3 / 2.6e-3); (ii) refining CN by in each direction cuts the error by (7.5e-4 → 1.9e-4), confirming ; (iii) pushing just above () blows the solution to - the same code, one parameter outside its stability bound.


4. Failure Modes & First-Principles Breakdowns

  1. CFL violation (explicit scheme). The explicit operator has eigenvalues ; once the highest-frequency mode has and every time step amplifies it. The grid that was sign-accurate becomes a numerical bomb - measured above, and .
  2. Crank–Nicolson ringing. CN is unconditionally stable () but at high frequencies; a discontinuous initial condition (a payoff kink, a barrier) excites those modes and the solution oscillates around the discontinuity forever. Cure: Rannacher (two implicit-Euler steps, then CN) or Richardson-extrapolated implicit Euler (Duffy Ch 33).
  3. Consistency without stability is worthless. A scheme can have a perfectly vanishing truncation error and still diverge; Lax’s theorem only routes stable consistent schemes to convergence. Always test .
  4. Wrong-way differences on convection-dominated problems. Centred differences for large give complex eigenvalues ⇒ oscillation; the cell-Péclet condition (Duffy eq. 7.14) must hold, or use exponential fitting for uniform convergence independent of .
  5. Round-off floor. The second-difference formula halves the available digits; below the total error grows (page 01). Never refine blindly.
  6. Boundary conditions set the global order. A second-order interior stencil with a first-order boundary treatment is only first-order globally; ghost points or a reduced first-order system at the boundary restore the order (Duffy Ch 1).

5. References

  • Duffy, Finite Difference Methods in Financial Engineering
  • Hull, Options, Futures, and Other Derivatives
  • Strikwerda, J. C.: Finite Difference Schemes and Partial Differential Equations

6. Connected Graph Bridges