CrankNicolson
Crank–Nicolson is a finite difference method for solving time-dependent partial differential equations, named after John Crank and Phyllis Nicolson who introduced it in 1947. It is especially suited for parabolic problems such as diffusion or heat equations and is widely used in physics, engineering, and quantitative finance.
The method is implicit and time-centered, effectively taking the average of the spatial discretization at the
(u_i^{n+1} − u_i^n)/Δt = (κ/2) [ (u_{i+1}^{n+1} − 2u_i^{n+1} + u_{i−1}^{n+1})/Δx^2 + (u_{i+1}^n − 2u_i^n + u_{i−1}^n)/Δx^2 ].
This yields a linear system with a tridiagonal coefficient matrix at each time step, which can be
Key properties include its balance between stability and accuracy and its suitability for stiff problems. While
Extensions include applying Crank–Nicolson in multiple dimensions and using alternating direction implicit (ADI) schemes to handle