# Finite Difference Methods

> The finite difference method solves the partial differential equation that a price satisfies by replacing derivatives with differences between values at grid points. It finds the option price at each grid point, working back from the payoff at expiry to today. It can also value American options, which can be exercised before expiry.

- URL: https://www.derivatives-compass.org/en/valuation/finite-difference/
- Area: Valuation › Numerical Methods
- Last reviewed: 2026-11-27
- 日本語版: https://www.derivatives-compass.org/ja/valuation/finite-difference/index.md

The mechanics of the [finite difference method](https://www.derivatives-compass.org/en/glossary/finite-difference-method/) matter when you compute an [option](https://www.derivatives-compass.org/en/glossary/option/) price numerically on a grid, or check the value of an option that can be exercised before expiry.

**Prerequisites**

- [Introduction to Stochastic Calculus (Ito's Lemma)](https://www.derivatives-compass.org/en/basics/stochastic-calculus/) — To see first how the partial differential equation that the price satisfies is derived.
- [The Black-Scholes Model](https://www.derivatives-compass.org/en/valuation/black-scholes/) — To see first the conditions of the common example call and the formula that gives the price to compare against.

## Key points

- The explicit method has a time step limit, while the implicit and Crank-Nicolson methods have none.
- For a call, halving the grid spacing cuts the Crank-Nicolson error to about a quarter.
- For an American option, each time step keeps the larger of the grid value and the exercise value.
- More risk factors multiply the grid points, so valuations with many underlying assets suit the Monte Carlo method.

## Replacing a partial differential equation with differences on a grid

Under the [Black-Scholes model](https://www.derivatives-compass.org/en/glossary/black-scholes-model/), the option price satisfies a [partial differential equation](https://www.derivatives-compass.org/en/glossary/partial-differential-equation/). The finite difference method places grid points over the range where you want prices, replaces the derivatives in the equation with differences between neighboring points, and finds the price at each point[^lyuu-grid].

### The log-price equation

Let $$V$$ be the price of a [European option](https://www.derivatives-compass.org/en/glossary/european-option/), $$S$$ the price of the [underlying asset](https://www.derivatives-compass.org/en/glossary/underlying-asset/), and $$\tau = T - t$$ the time to expiry. The interest rate $$r$$ and the [volatility](https://www.derivatives-compass.org/en/glossary/volatility/) $$\sigma$$ are constant, and the underlying pays no dividends. The equation is as follows[^giles-pde].

$$
\frac{\partial V}{\partial \tau} = -rV + rS\,\frac{\partial V}{\partial S} + \frac{1}{2}\sigma^2 S^2\,\frac{\partial^2 V}{\partial S^2}
$$

Because time is measured as the time to expiry $$\tau$$, expiry is $$\tau = 0$$ and today is $$\tau = T$$. The payoff at expiry is the starting value (the initial condition), and the calculation advances by increasing $$\tau$$ until it reaches today's price. Changing the variable to $$x = \ln(S/K)$$ gives an equation whose coefficients do not depend on $$S$$[^giles-log]. $$K$$ is the [strike price](https://www.derivatives-compass.org/en/glossary/strike-price/).

$$
\frac{\partial V}{\partial \tau} = -rV + \left(r - \frac{\sigma^2}{2}\right)\frac{\partial V}{\partial x} + \frac{1}{2}\sigma^2\,\frac{\partial^2 V}{\partial x^2}
$$

### Difference formulas and the order of calculation

Place a grid with spacing $$h$$ in the $$x$$ direction and $$\Delta\tau$$ in the $$\tau$$ direction. Let $$V_j^n$$ be the approximate price at the point $$x_j = x_0 + jh$$ and time $$\tau_n = n\Delta\tau$$. The three derivatives are replaced by the following differences[^giles-diff].

| Derivative                      | Difference                                 | Type of difference |
| ------------------------------- | ------------------------------------------ | ------------------ |
| $$\partial V / \partial \tau$$  | $$(V_j^{n+1} - V_j^n) / \Delta\tau$$       | Forward difference |
| $$\partial V / \partial x$$     | $$(V_{j+1}^n - V_{j-1}^n) / (2h)$$         | Central difference |
| $$\partial^2 V / \partial x^2$$ | $$(V_{j+1}^n - 2V_j^n + V_{j-1}^n) / h^2$$ | Central difference |

The calculation runs in this order.

1. Put the payoff at expiry on every point of the grid.
2. Put the boundary values at the lower and upper ends (and reset them to the values for that time at each step forward).
3. Advance one time step and find the value at each point.
4. Only for an American option, replace each point's value with the larger of that value and the exercise value (covered in "Replacing values for American options").
5. Repeat steps 3 and 4 from expiry to today, then read the value at the point that corresponds to the current price of the underlying as the price.

### Boundary values and the grid range

The calculation covers only a finite range. So you place boundaries at the lower and upper ends of $$x$$ and fix the values there. For a European option, the boundary values follow from [put-call parity](https://www.derivatives-compass.org/en/glossary/put-call-parity/).

A [call](https://www.derivatives-compass.org/en/glossary/call-option/) approaches $$S - Ke^{-r\tau}$$ where the underlying price is high and approaches 0 where it is low. A [put](https://www.derivatives-compass.org/en/glossary/put-option/) approaches $$Ke^{-r\tau} - S$$ where the price is low and 0 where it is high[^holst-bc]. A condition that fixes the value at a boundary is called a Dirichlet boundary condition[^holst-bc].

| Type         | Value at the lower end (small $$S$$) | Value at the upper end (large $$S$$) |
| ------------ | ------------------------------------ | ------------------------------------ |
| Call         | 0                                    | $$S - Ke^{-r\tau}$$                  |
| European put | $$Ke^{-r\tau} - S$$                  | 0                                    |

The value at expiry ($$\tau = 0$$) is the payoff: $$\max(S - K, 0)$$ for a call option and $$\max(K - S, 0)$$ for a put option[^giles-init].

## Three methods and the time step

The equation in difference form splits into three methods, according to how time is stepped. Collect the differences in the price direction at each point $$j$$ into one operator, written as follows.

$$
(\mathcal{L}V)_j = a\,V_{j-1} + b\,V_j + c\,V_{j+1}
$$

With $$D = \sigma^2/2$$ (the coefficient of the second derivative) and $$\mu = r - \sigma^2/2$$ (the coefficient of the first derivative), the coefficients are $$a = D/h^2 - \mu/(2h)$$, $$b = -2D/h^2 - r$$, and $$c = D/h^2 + \mu/(2h)$$[^giles-theta].

### Three methods chosen by θ

The parameter $$\theta$$ chooses whether $$\mathcal{L}V$$ is evaluated at the earlier time $$n$$, at the next time $$n+1$$, or as the average of the two[^giles-theta].

$$
V_j^{n+1} - \theta\,\Delta\tau\,(\mathcal{L}V^{n+1})_j = V_j^n + (1 - \theta)\,\Delta\tau\,(\mathcal{L}V^n)_j
$$

$$\theta = 0$$ is the explicit method, $$\theta = 1$$ is the implicit method, and $$\theta = 1/2$$ is the Crank-Nicolson method. The three differ as follows.

| Method         | $$\theta$$ | One time step                                                           | Time step limit                                                                          | Error (for smooth initial values) |
| -------------- | ---------: | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | --------------------------------- |
| Explicit       |          0 | Computes the next values directly from three values at the earlier time | Has a limit (the guide from the diffusion term alone is $$\Delta\tau \le h^2/\sigma^2$$) | $$O(h^2, \Delta\tau)$$            |
| Implicit       |          1 | Solves a system of equations for the values at the next time            | None (unconditionally stable)                                                            | $$O(h^2, \Delta\tau)$$            |
| Crank-Nicolson |        1/2 | Also solves a system of equations                                       | None (unconditionally stable in the $$L^2$$ norm)                                        | $$O(h^2, \Delta\tau^2)$$          |

### The explicit method's time step limit

The explicit method needs no system of equations. The next value is the three earlier values added with weights.

$$
V_j^{n+1} = a\Delta\tau\,V_{j-1}^n + (1 + b\Delta\tau)\,V_j^n + c\Delta\tau\,V_{j+1}^n
$$

However, the explicit method for a diffusion equation becomes unstable when the time step exceeds $$(\Delta x)^2/(2D)$$[^lyuu-stab]. In the log-price equation the coefficient of the second derivative is $$\sigma^2/2$$, so the guide from the diffusion term alone is $$\Delta\tau \le h^2/\sigma^2$$[^dsub]. Halving the grid spacing $$h$$ multiplies the number of time steps by 4 and the number of points by 2, so the computation takes about 8 times as long[^lyuu-stab].

For a diffusion equation without discounting and advection (first-derivative) terms, the three coefficients lie between 0 and 1 and sum to 1 under the stability condition. They can therefore be read as probabilities, and the explicit method is the same as a backward calculation on a trinomial tree[^lyuu-trin]. The formula above has a discounting term, so its coefficients sum to $$1 - r\Delta\tau$$.

### The implicit and Crank-Nicolson methods

The implicit and Crank-Nicolson methods solve a tridiagonal system (nonzero coefficients only on the diagonal and its two neighbors) for the values at the next time. A tridiagonal system can be solved in time and memory proportional to the number of points[^lyuu-tri]. The implicit method has no restriction on the time step and is unconditionally stable[^lyuu-impl].

For smooth initial values, the error of the Crank-Nicolson method is $$O(h^2, \Delta\tau^2)$$, which shrinks faster than the $$O(h^2, \Delta\tau)$$ of other values of $$\theta$$. For $$\theta \ge 1/2$$, the size of the solution (its $$L^2$$ norm) does not grow whatever the time step. So you can make the time step proportional to $$h$$ and keep both accuracy and efficiency[^giles-cn].

> **Deep dive: How to check the stability of the explicit and implicit methods**
>
> Split the solution of the heat equation $$\partial V/\partial\tau = D\,\partial^2 V/\partial x^2$$ into components of the form $$e^{ipx}$$. Suppose each component is multiplied by $$G$$ in one time step. If $$|G| \le 1$$, the component does not grow, and if $$|G|$$ exceeds 1, it keeps growing. With $$\lambda = D\Delta\tau/h^2$$, $$G$$ for the explicit method ($$G_{\mathrm{E}}$$) and for the implicit method ($$G_{\mathrm{I}}$$) is as follows[^rutgers-g].
>
> $$
> G_{\mathrm{E}} = 1 - 4\lambda\sin^2\left(\frac{ph}{2}\right)
> $$
>
> $$
> G_{\mathrm{I}} = \frac{1}{1 + 4\lambda\sin^2(ph/2)}
> $$
>
> $$\sin^2(ph/2)$$ can come arbitrarily close to 1, so the condition for $$|G_{\mathrm{E}}| \le 1$$ to hold for every component is $$\lambda \le 1/2$$. This corresponds to $$\Delta\tau \le h^2/(2D)$$. For the implicit method, $$G_{\mathrm{I}}$$ is greater than 0 and at most 1 for any positive $$\lambda$$, so the time step has no restriction.

## The common example call

Consider a hypothetical example in which a call option is valued with an underlying price of 100, a strike price of 100, one year to expiry, an interest rate of 1%, and a volatility of 20%. The Black-Scholes formula gives a price of 8.4333[^calc-bs].

The grid covers $$x$$ from $$-1$$ to $$1$$ ($$S$$ from 36.79 to 271.83). Each end is 5 times the [standard deviation](https://www.derivatives-compass.org/en/glossary/standard-deviation/) of the log price at expiry, $$\sigma\sqrt{T} = 0.2$$, away from the current point[^calc-bc].

### One time step by hand

Follow one time step of the explicit method by hand. Take a grid spacing of $$h = 0.1$$ and a time step of $$\Delta\tau = 0.025$$ (one year divided into 40 steps). With $$D = 0.2^2/2 = 0.02$$ and $$\mu = 0.01 - 0.02 = -0.01$$, the coefficients are as follows.

| Coefficient                                              | Formula                                             |   Value |
| -------------------------------------------------------- | --------------------------------------------------- | ------: |
| $$a\Delta\tau$$ (weight of the point below, $$x_{j-1}$$) | $$0.025 \times (0.02/0.1^2 + 0.01/(2 \times 0.1))$$ | 0.05125 |
| $$1 + b\Delta\tau$$ (weight of the same point, $$x_j$$)  | $$1 + 0.025 \times (-2 \times 0.02/0.1^2 - 0.01)$$  | 0.89975 |
| $$c\Delta\tau$$ (weight of the point above, $$x_{j+1}$$) | $$0.025 \times (0.02/0.1^2 - 0.01/(2 \times 0.1))$$ | 0.04875 |

All three weights are at least 0, and they sum to 0.99975 ($$= 1 - 0.01 \times 0.025$$). Advance the point $$x_j = 0.1$$ (underlying price 110.5171) by one time step from the payoff at expiry.

| Point      | $$x$$ | Underlying price | Payoff at expiry |  Weight |
| ---------- | ----: | ---------------: | ---------------: | ------: |
| One below  |     0 |         100.0000 |           0.0000 | 0.05125 |
| Same point |   0.1 |         110.5171 |          10.5171 | 0.89975 |
| One above  |   0.2 |         122.1403 |          22.1403 | 0.04875 |

The weighted sum is $$0.05125 \times 0 + 0.89975 \times 10.5171 + 0.04875 \times 22.1403 = 0 + 9.4628 + 1.0793 = 10.5421$$. This equals the underlying price 110.5171 minus the [present value](https://www.derivatives-compass.org/en/glossary/present-value/) of the strike, $$100 \times e^{-0.01 \times 0.025} = 99.9750$$[^calc-step].

### Comparing the three methods

Next, spread the grid over the whole range and solve with the three methods. The grid spacing is $$h = 0.02$$ (100 intervals), and the explicit method's guide from the diffusion term alone is $$\Delta\tau \le h^2/\sigma^2 = 0.01$$, that is, 100 steps or more. The table shows the price at the point $$S = 100$$ ($$x = 0$$) and its difference from the Black-Scholes price.

| Number of time steps ($$\Delta\tau$$) | Explicit (difference)                  | Implicit (difference) | Crank-Nicolson (difference) |
| ------------------------------------- | -------------------------------------- | --------------------- | --------------------------- |
| 40 (0.025)                            | Diverges (about $$-5 \times 10^{22}$$) | 8.3980 (−0.0353)      | 8.4236 (−0.0097)            |
| 200 (0.005)                           | 8.4285 (−0.0048)                       | 8.4184 (−0.0149)      | 8.4235 (−0.0098)            |

With a time step of 0.025, the explicit method is at 2.5 times the guide, and the calculation diverges. Cutting the time step to a fifth hardly changes the Crank-Nicolson difference. This difference comes mainly from the grid spacing $$h$$[^calc-a]. The implicit method's difference shrinks as the time step gets smaller.

With the same conditions and a grid spacing of 0.01 (200 intervals), the explicit method's guide becomes $$\Delta\tau \le 0.0025$$, that is, 400 steps or more. The explicit method with 300 steps diverges, and with 400 steps it gives a price of 8.4284 (difference −0.0049)[^calc-h001]. The product of the number of points and the number of steps rises from $$100 \times 100 = 10{,}000$$ to $$200 \times 400 = 80{,}000$$, 8 times as much.

### Grid spacing and error

Now refine the grid with the Crank-Nicolson method. The time step is $$\Delta\tau = h/2$$, and each time $$h$$ is halved, the time step is halved too.

| Grid spacing $$h$$ | Intervals | Time steps |  Price | Difference from the Black-Scholes price |
| -----------------: | --------: | ---------: | -----: | --------------------------------------: |
|                0.1 |        20 |         20 | 8.1735 |                                 −0.2598 |
|               0.05 |        40 |         40 | 8.3711 |                                 −0.0622 |
|              0.025 |        80 |         80 | 8.4179 |                                 −0.0154 |
|             0.0125 |       160 |        160 | 8.4295 |                                 −0.0038 |

Each time $$h$$ is halved, the difference falls to about a quarter, which matches the error order $$O(h^2, \Delta\tau^2)$$ in the table[^calc-b]. Other valuations need not show differences of the same size.

**Simulator: How the price differs by method, grid, and time step in the finite difference method**

Change the method, the number of grid intervals, and the number of time steps, and see how far the price of the common example call is from the Black-Scholes price of 8.4333. The initial values are the Crank-Nicolson method, a grid spacing of $$h = 0.02$$ (100 intervals), and 200 steps, the same conditions as the 200-step row of the table comparing the three methods. If you switch to the explicit method and reduce the number of time steps, the time step passes the stability guide and the screen shows an instability or divergence warning. If you choose the put and American, the price is higher because the option can be exercised before expiry. The difference on the screen is from the Black-Scholes (European) price, which is a different definition from the difference in the American table (from the European price on the same grid).

The interactive version is on the article page: <https://www.derivatives-compass.org/en/valuation/finite-difference/#simulator-1>

## Replacing values for American options

An [American option](https://www.derivatives-compass.org/en/glossary/american-option/) can also be exercised before expiry. Its value at any time is the larger of the value of holding it and the value of exercising it now. The American put equation is the Black-Scholes equation with an added condition that the value never falls below the exercise value $$K - S$$[^lyuu-am]. Unlike the European case, the boundary condition cannot be fixed in advance, and the problem becomes a free boundary problem, in which the exercise boundary is determined together with the solution[^holst-free].

On a grid, after each time step you compare each point's value with the exercise value (the [intrinsic value](https://www.derivatives-compass.org/en/glossary/intrinsic-value/)) and replace it with the larger one[^calc-am]. Another approach is the penalty method. It adds a term that can be ignored where the option is not exercised, so that the solution is almost equal to the exercise value where it is exercised[^giles-pen].

The next table shows a put with the same conditions as the common example call, solved with the Crank-Nicolson method and the replacement at each time step. The European price is the value solved on the same grid and time step without the replacement[^calc-am].

| Grid spacing $$h$$ | Time steps | European put | American put | Difference (American − European, same grid) |
| -----------------: | ---------: | -----------: | -----------: | ------------------------------------------: |
|               0.02 |        200 |       7.4284 |       7.5020 |                                      0.0736 |
|               0.01 |        400 |       7.4358 |       7.5104 |                                      0.0746 |
|              0.005 |        400 |       7.4377 |       7.5124 |                                      0.0747 |

The European put from the Black-Scholes formula is 7.4383. The American put is higher than the European put by the value of exercising before expiry. A 2,000-step tree of the [binomial model](https://www.derivatives-compass.org/en/glossary/binomial-model/) gives an American put of 7.5127, and the finite difference prices approach this value as the grid is refined[^calc-am].

## Choosing between finite differences and Monte Carlo

An option with few risk factors that can be exercised before expiry is well suited to finite differences[^giles-high]. A valuation with many risk factors suits the Monte Carlo method[^lyuu-dim]. Both the binomial model and finite differences are grid calculations that work backward from expiry.

The [Monte Carlo method](https://www.derivatives-compass.org/en/glossary/monte-carlo-method/) approximates a price by averaging over many random paths. How paths are built and how the error behaves are covered in [Monte Carlo Simulation](https://www.derivatives-compass.org/en/valuation/monte-carlo/). The two methods differ as follows.

| Aspect                                                            | Finite differences                                                                                                                                                                       | Monte Carlo                                                                                                 |
| ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| How the price is found                                            | Solves the equation at grid points                                                                                                                                                       | Averages many random paths[^lyuu-mc]                                                                        |
| As the number of factors (dimensions) grows                       | The number of grid points grows, and the cost of solving the system far exceeds the one-dimensional case[^giles-high]                                                                    | The statistical error shrinks as $$1/\sqrt{N}$$ in the sample size $$N$$, whatever the dimension[^lyuu-dim] |
| American options                                                  | Adds the condition that the value stays at or above the exercise value                                                                                                                   | One path makes it hard to decide the exercise point, so a modified method is needed[^lyuu-mc-am]            |
| [Greeks](https://www.derivatives-compass.org/en/glossary/greeks/) | Finds [delta](https://www.derivatives-compass.org/en/glossary/delta/) and [gamma](https://www.derivatives-compass.org/en/glossary/gamma/) from differences of grid values[^giles-greeks] | Uses a difference approximation that revalues with the input shifted slightly (bumping)[^lyuu-crn]          |

The difference in dimension shows in the number of points. Consider a hypothetical example in which each axis has 100 points. With 1, 2, or 3 axes there are 100, 10,000, or 1,000,000 points, which is $$100^d$$ points for $$d$$ axes. Deterministic methods that do not use random numbers, grid calculations included, suffer the curse of dimensionality, in which the points grow exponentially as axes are added[^pryz].

The bumping difference approximation is a different use from the finite difference method that solves an equation on a grid. Ways to compute sensitivities quickly are covered in [Adjoint Algorithmic Differentiation (AAD)](https://www.derivatives-compass.org/en/valuation/aad/).

## Assumptions and limits

The finite difference method solves an equation numerically. The price is determined by the model that the equation assumes. The Black-Scholes equation assumes that the interest rate and the volatility are constant over the period[^holst-assump]. If this assumption fails, the solved price need not match the market price.

In the common example, the grid range hardly affects the price. Narrowing the range of $$x$$ from $$\pm 1$$ to $$\pm 0.5$$ (2.5 standard deviations from the current point) changes the Crank-Nicolson price with $$h = 0.02$$ and 200 steps only from 8.4235 to 8.4234[^calc-bc].

A payoff that is not smooth is also a source of error. The call payoff has a kink at the strike, so delta and gamma found by central differences of the grid values have larger errors than the price itself. The largest gamma error appears at the strike[^giles-greeks]. The Crank-Nicolson method is unconditionally stable only in the $$L^2$$ norm, and when the payoff is not smooth, the convergence of delta and gamma in the maximum error gets worse[^giles-greeks].

As a remedy, there are methods in the family of Rannacher time stepping, which replaces the first few time steps with half steps of the implicit method. Replacing the first two steps with four half steps makes the maximum errors of the price, delta, and gamma shrink at second order[^giles-ran]. The examples on this page use the Crank-Nicolson method without this replacement.

## What this page does not cover

- The definition and interpretation of sensitivities are not covered on this page. They are covered in [The Greeks](https://www.derivatives-compass.org/en/valuation/greeks/).
- The difference between European and American exercise is not covered on this page. It is covered in [Exercise Styles: European, American and Bermudan](https://www.derivatives-compass.org/en/product-basics/exercise-styles/).

[^lyuu-grid]: Page 543, "Finite-Difference Methods", of [Yuh-Dauh Lyuu, "Finite-Difference Methods and Monte Carlo Simulation"](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf) (National Taiwan University lecture notes; the "Lyuu 2006 lecture notes").

[^giles-pde]: Section 2 (page 2) of [M. B. Giles, "Crank-Nicolson time-marching"](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b) (Oxford-Man Institute of Quantitative Finance; the "Giles Crank-Nicolson note"). The equation written with $$\tau \equiv T - t$$, and the form after changing to $$x \equiv \log S$$.

[^giles-log]: The source uses $$x = \log S$$. This page uses $$x = \ln(S/K)$$, which shifts the variable by $$\ln K$$ and leaves the form of the derivatives unchanged.

[^giles-diff]: Pages 547–548 ("Explicit Methods", equations (59)–(61)) of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf), and Sections 1 and 2 (pages 1–2) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). Section 2 of Giles uses the central difference $$V_{j+1} - V_{j-1}$$ for the first derivative.

[^holst-bc]: Section 1.5 (page 8), equations (1.36)–(1.43), of [Michael Holst, "Computational Finance: Differential Equation Techniques \[Lectures 8-10\]"](https://ccom.ucsd.edu/~mholst/teaching/ucsd/413_s15/MGTF-413-Lecture-Notes-8.pdf) (the "Holst lecture notes"). The notes use the term "Dirichlet boundary conditions".

[^giles-init]: Section 2 (page 2) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). The initial value of the call is $$V(S, 0) = \max(S - K, 0)$$.

[^giles-theta]: Section 1 (pages 1–2) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b), the $$\theta$$ scheme. The coefficients are the source's discretization operator $$D$$ divided by the time step.

[^lyuu-stab]: Page 551, "Stability", of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). The explicit method for the diffusion equation $$D\,\partial^2\theta/\partial x^2 - \partial\theta/\partial t = 0$$ is unstable unless $$\Delta t \le (\Delta x)^2/(2D)$$, and halving $$\Delta x$$ multiplies the computation time by 8.

[^dsub]: The condition obtained by putting the coefficient of the second derivative in the log-price equation, $$\sigma^2/2$$, into the source's $$D$$.

[^lyuu-trin]: Page 552, "Explicit Method and Trinomial Tree", of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). Under the stability condition the three coefficients lie between 0 and 1 and sum to 1, so the explicit formula equals a backward calculation on a trinomial tree. The sum with a discounting term is calculated from the formula on this page.

[^lyuu-tri]: Pages 553–556, "Implicit Methods", of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). A tridiagonal system can be solved in $$O(N)$$ time and $$O(N)$$ memory.

[^lyuu-impl]: Page 554, "Implicit Methods (continued)", of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). The notes call the implicit formula "unconditionally stable".

[^giles-cn]: Section 1 (page 2) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). Unconditional $$L^2$$ stability for $$\theta \ge 1/2$$, and the error orders ($$O(h^2, k^2)$$ for Crank-Nicolson, $$O(h^2, k)$$ for other $$\theta$$). $$k$$ is $$\Delta\tau$$ on this page.

[^rutgers-g]: [Rutgers University lecture notes "Numerical Solution of PDEs"](https://ow3.math.rutgers.edu/~falk/math575/lecture18.pdf) (page 65, "Example 1: explicit scheme for the heat equation", and page 68, "Example: implicit scheme for the heat equation"). The source's $$\sigma$$ is the diffusion coefficient, which corresponds to $$D$$ on this page, and $$k$$ is the time step.

[^calc-bs]: The value 8.433319 from the Black-Scholes formula ($$d_1 = (\ln(S/K) + (r + \sigma^2/2)T)/(\sigma\sqrt{T})$$, $$d_2 = d_1 - \sigma\sqrt{T}$$), rounded at the fifth decimal place.

[^calc-bc]: A calculation for the conditions in the text ($$h = 0.02$$, 200 steps, Crank-Nicolson method). With the range of $$x$$ at $$\pm 0.5$$ the price is 8.4234, and with $$\pm 1$$ and $$\pm 1.5$$ it is 8.4235 (rounded at the fifth decimal place). The range of $$S$$ is 36.79 to 271.83 for $$\pm 1$$ and 60.65 to 164.87 for $$\pm 0.5$$.

[^calc-step]: The weights and prices were calculated from the formulas in the text. $$100 \times e^{-0.00025} = 99.9750$$ and $$110.5171 - 99.9750 = 10.5421$$.

[^calc-a]: A calculation for the conditions in the text. The price is the value at the grid point $$x = 0$$ ($$S = 100$$). The difference is the price rounded at the fifth decimal place minus 8.4333. The explicit price with 40 steps was $$-4.86 \times 10^{22}$$.

[^calc-h001]: A calculation for the conditions in the text (explicit method, $$h = 0.01$$). The price with 300 steps is $$-2.3 \times 10^{64}$$, and with 400 steps it is 8.428365. The difference is the price rounded at the fifth decimal place minus 8.4333.

[^calc-b]: A calculation for the conditions in the text. The difference is the price rounded at the fifth decimal place minus 8.4333. The ratios of the absolute differences, from the previous row, are 4.2, 4.0, and 4.1.

[^lyuu-am]: Page 559 of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). The condition $$P(S, t) = \max(P(S, t), X - S)$$ ($$X$$ is the strike price $$K$$). The notes give no procedure for the replacement on a grid.

[^holst-free]: Section 2.4, "American Options as a Free Boundary Problem" (page 17), and the opening (page 9) of the [Holst lecture notes](https://ccom.ucsd.edu/~mholst/teaching/ucsd/413_s15/MGTF-413-Lecture-Notes-8.pdf). American options become a free boundary problem. The section on how to handle it is unfinished.

[^calc-am]: A calculation for the conditions in the text (put, Crank-Nicolson method). After each time step the value is replaced by $$\max(\text{value at that point}, K - S)$$, with the lower end set to $$K - S$$ and the upper end to 0. The binomial tree is a CRR tree (2,000 steps).

[^giles-pen]: Section 4 (page 4) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). A nonlinear penalty term approximates American options. It can be ignored where the option is not exercised and makes the solution almost equal to the exercise value elsewhere.

[^lyuu-mc]: Pages 562–564 ("Monte Carlo Simulation", "The Big Idea") of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). The notes explain the Monte Carlo method as estimating an expected value by a sample average.

[^giles-high]: Section 4 (page 4) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). In higher dimensions, solving the system of equations directly costs much more.

[^lyuu-dim]: Pages 566–567 ("Accuracy and Number of Replications") of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). The statistical error of a sample average decreases at the rate $$1/\sqrt{N}$$ regardless of the dimension $$n$$, while ordinary numerical integration suffers the curse of dimensionality. The notes say that the Monte Carlo method is more efficient than other procedures for securities that depend on more than one asset.

[^lyuu-mc-am]: Page 570 of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). The standard Monte Carlo method is not suited to early exercise because the exercise point is hard to determine from a single path.

[^giles-greeks]: Section 2 (pages 2–3) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). For a European call, delta and gamma computed by central differences deviate more than the price, and the largest gamma error appears at the strike ($$S = 1$$ in the source).

[^lyuu-crn]: Pages 571–572 ("Delta and Common Random Numbers") of the [Lyuu 2006 lecture notes](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf). Computing delta from two separate simulations has a large variance and is not recommended, and using the same random numbers is better.

[^pryz]: Section 1, Introduction (page 4 of the PDF), of [Paweł Przybyłowicz, "Monte Carlo methods and stochastic simulations: from integration to approximation of SDEs"](https://arxiv.org/pdf/2208.05531) (arXiv:2208.05531). Deterministic algorithms are affected by the curse of dimensionality.

[^holst-assump]: Section 1.3 (page 5) of the [Holst lecture notes](https://ccom.ucsd.edu/~mholst/teaching/ucsd/413_s15/MGTF-413-Lecture-Notes-8.pdf). The notes list, among the assumptions of the Black-Scholes-Merton market model, that the interest rate and the volatility are constant on $$[0, T]$$, calling this "an idealization, but required by the model".

[^giles-ran]: Section 3 (pages 3–4) of the [Giles Crank-Nicolson note](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b). Replacing the first two Crank-Nicolson steps with four half steps of the implicit method gives second-order accuracy in the maximum error of the price, delta, and gamma for puts, calls, and digitals.

**Read next**

- [Monte Carlo Simulation](https://www.derivatives-compass.org/en/valuation/monte-carlo/) — To learn how valuations with many underlying assets are done by averaging over random paths.
- [Adjoint Algorithmic Differentiation (AAD)](https://www.derivatives-compass.org/en/valuation/aad/) — To learn how to compute sensitivities quickly, rather than from differences of grid values.

## Sources

- [Finite-Difference Methods and Monte Carlo Simulation（講義資料 Page 540〜577）](https://www.csie.ntu.edu.tw/~lyuu/finance1/2006/20060517.pdf) — National Taiwan University（Yuh-Dauh Lyuu の講義資料、2006 年 5 月 17 日）
- [Crank-Nicolson time-marching](https://ora.ox.ac.uk/objects/uuid:06cd3a4b-1dff-4ef8-836c-3a01f7fc80fd/files/m77413fbffc60c37f501971d658acbd8b) — University of Oxford（M. B. Giles、Oxford-Man Institute of Quantitative Finance）
- [Computational Finance: Differential Equation Techniques \[Lectures 8-10\]](https://ccom.ucsd.edu/~mholst/teaching/ucsd/413_s15/MGTF-413-Lecture-Notes-8.pdf) — University of California, San Diego（Michael Holst、2015 年 6 月 1 日）
- [Numerical Solution of PDEs（講義資料 65〜68 ページ）](https://ow3.math.rutgers.edu/~falk/math575/lecture18.pdf) — Rutgers University（数学科、講義 Math 575 の資料）
- [Monte Carlo methods and stochastic simulations: from integration to approximation of SDEs](https://arxiv.org/pdf/2208.05531) — AGH University of Krakow（Paweł Przybyłowicz）
