Nepedia
Back to Discover
Advanced Reader
🔢

Crank–Nicolson method

math Maturity 11-13 Next article →

The Crank–Nicolson method is a powerful tool in numerical analysis. It is a finite difference method used to solve partial differential equations. These equations often describe how things like heat or chemicals spread through a space. One of the most common uses is solving the heat equation. Because these equations are often too complex for simple algebra, mathematicians use this method to find approximate solutions. It is highly valued because it is a second-order method in time. This means it provides a high level of accuracy as time progresses.

Crank-Nicolson-stencil
Crank-Nicolson-stencil

To understand how it works, we must look at its mathematical mechanism. The method is based on the trapezoidal rule. This rule helps find a balance between two different points in time. Specifically, the method combines the forward Euler method and the backward Euler method. The forward Euler method looks at the current state to predict the future. The backward Euler method looks at the future state to determine the present. By combining them, the Crank–Nicolson method achieves second-order convergence. It is also an implicit method. This means you cannot simply calculate the next step in one go. Instead, you must solve a system of algebraic equations to find the next value in time.

There are different ways this method handles various types of equations. For linear equations, the method is equivalent to the implicit midpoint method. This is a type of Gauss–Legendre implicit Runge–Kutta method. It also acts as a geometric integrator. When the equations are linear, the resulting algebraic problem is often tridiagonal. A tridiagonal matrix has non-zero numbers only on the main diagonal and the diagonals directly above and below it. This structure allows for very fast solutions using the tridiagonal matrix algorithm. However, if the equation is nonlinear, the discretization becomes nonlinear as well. In these cases, mathematicians must use iterative techniques, such as Newton's method or fixed-point iteration, to reach a solution.

History shows us that this method was a major step forward in the 1940s. It was developed by two mathematicians named John Crank and Phyllis Nicolson. Their work provided a more stable way to handle diffusion equations. For many types of these equations, the method is considered unconditionally stable. This stability is a vital property for scientists using computers to model the world. It ensures that the mathematical solution does not grow out of control or become nonsensical.

Despite its stability, the method has specific requirements for accuracy. If the ratio of the time step to the square of the space step is too large, problems can arise. Specifically, if this ratio is larger than 1/2 according to Von Neumann stability analysis, the solution may show errors. These errors appear as decaying, spurious oscillations. These are mathematical wiggles that do not exist in the real physical process. If a researcher needs to avoid these oscillations, they might use the backward Euler method instead. While the backward Euler method is less accurate, it is immune to these specific oscillations.

We can see the method applied to complex, real-world systems. For example, it can model how a solute contaminant moves through water in a stream. This involves diffusion, advection, and lateral interactions between channels. In two-dimensional problems, such as a square grid, the math becomes more difficult. Solving a full two-dimensional system is very costly for a computer. To solve this, scientists often use an alternating-direction implicit method. This strategy treats one dimension implicitly and the other explicitly. This keeps the math efficient by allowing the use of the tridiagonal matrix algorithm.

Finally, the Crank–Nicolson method has significant applications in financial mathematics. Many financial phenomena can be modeled using the heat equation, which is also called the diffusion equation. A famous example is the Black–Scholes option pricing model. This model uses differential equations to help determine the price of financial options. When these models include complex factors like changing dividends, they cannot be solved with a simple formula. The Crank–Nicolson method allows experts to find numerical solutions for these difficult problems. However, for certain financial instruments, extra steps like damping are needed to prevent oscillations in values like gamma.

700 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Crank-Nicolson-stencil.svg
Crank-Nicolson-stencil.svg
Crank-Nicolson Navier-Stokes 2D.webm
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.