Introduction to the Numerical Solution of Partial Differential Equations in Finance
Claus Munk∗ October 29, 2007
This note gives a short presentation of some numerical techniques for the solution of the type of second-order partial differential equation that appears in many financial asset pricing models. For more information about the techniques discussed here and some alternatives, the interested reader is referred to Ames (1977), Smith (1985), Johnson (1990), Wilmott, Dewynne, and Howison (1993), Thomas (1995), Wilmott (1998), and Tavella and Randall (2000).
1 The problem
Suppose we want to find a function f(x, t), f : S × [0, T] → R, which solves the second-order partial differential equation (PDE) ∂f ∂t (x, t) + µ(x, t)∂f ∂x(x, t) + 1 2σ(x, t)2 ∂2f ∂x2 (x, t) − r(x, t)f(x, t) = 0, (x, t) ∈ S × [0, T), (1) with some terminal condition f(x, T) = F(x), x ∈ S, (2) where F : S → R is a known function. Here S ⊆ R. This is a well-known problem in finance, see e.g. specific problems Black and Scholes (1973), Vasicek (1977), and Cox, Ingersoll, and Ross (1981, 1985), and a more general introduction to the topic in Hull (2006) and Munk (2007). In these financial models f is the unknown price of an asset that depends on an underlying state variable x, which takes values in S with typically S = R or S = R+ ≡ [0, ∞). The function r is the short-term continuously compounded risk-free interest rate, which is also assumed to depend at most on time t and the state variable x. The function F is the payoff function of the asset so that F(x) is the state-dependent payoff of the asset at the maturity date T. Finally, µ is the drift rate of the state variable under the so-called risk-neutral probability measure, while σ denotes the absolute volatility of x.1
∗Department of Business and Economics, University of Southern Denmark, DK-5230 Odense. E-mail: cmu@sam.sdu.dk.
Internet homepage: http://www.sam.sdu.dk/ ∼ cmu
1In other words, the risk-neutral dynamics of the state variable is assumed to be dxt = µ(xt, t) dt + σ(xt, t) dzt, where
z = (zt) is a standard Brownian motion under the risk-neutral probability measure.