Feynman-Kac Formula and the Black-Scholes Solution¶
The preceding sections derived the Black-Scholes formula by transforming the PDE --- into the heat equation, into frequency space via Fourier, Mellin, or Laplace transforms, or by exploiting scaling structure. All of these are ultimately PDE techniques: they manipulate the equation directly. The Feynman-Kac formula takes a fundamentally different approach. It establishes that the solution of a parabolic PDE can be written as a probabilistic expectation, bypassing the PDE entirely in favor of stochastic calculus.
This shift from differential equations to expectations is not merely a technical alternative --- it is the conceptual foundation of risk-neutral pricing. This section presents the general Feynman-Kac theorem, applies it rigorously to the Black-Scholes PDE, and derives the closed-form option pricing formulas through detailed probabilistic calculations.
The General Feynman-Kac Theorem¶
1. Statement¶
Consider a stochastic process \(X_t\) satisfying the stochastic differential equation:
Let \(u(x,t)\) be a function solving the parabolic PDE:
with terminal condition:
Then the Feynman-Kac formula states:
2. Interpretation of Terms¶
1. Terminal condition term:
This represents the discounted terminal payoff at maturity \(T\).
2. Running cost/reward term:
This represents accumulated discounted cash flows between \(t\) and \(T\).
3. For option pricing: - \(f \equiv 0\) (no intermediate cash flows for European options) - \(r\) is constant (risk-free rate) - \(\Phi(X_T)\) is the option payoff at maturity
The formula simplifies to:
This is the risk-neutral valuation formula.
Application to Black-Scholes¶
1. The Setup¶
Under the risk-neutral measure \(\mathbb{Q}\), the stock price dynamics are:
where: - \(r\) = constant risk-free rate - \(\sigma\) = constant volatility - \(W_t^{\mathbb{Q}}\) = Brownian motion under \(\mathbb{Q}\)
2. The Black-Scholes PDE¶
The option value \(V(S,t)\) satisfies:
with terminal condition:
where \(\Phi(S)\) is the option payoff: - European call: \(\Phi(S) = (S-K)^+\) - European put: \(\Phi(S) = (K-S)^+\)
3. Feynman-Kac Representation¶
By the Feynman-Kac formula:
Interpretation: The option value is the expected discounted payoff under the risk-neutral measure. This is the probabilistic representation of the pricing semigroup \(\mathcal{P}_\tau = e^{\tau\mathcal{L}}\) introduced in the chapter overview.
This converts the PDE problem into a probabilistic expectation problem.
Rigorous Derivation of Feynman-Kac¶
We now prove the Feynman-Kac formula rigorously using Itô's lemma and martingale theory.
1. Step 1: Apply Itô's Lemma to u(X_t, t)¶
For a function \(u(X_t, t)\) where \(dX_t = \mu dt + \sigma dW_t\), Itô's lemma gives:
Since \((dX_t)^2 = \sigma^2 dt\):
2. Step 2: Introduce Discounting¶
Define the discounted value:
Apply the product rule (Itô's lemma for products):
The discount factor satisfies:
Therefore:
Combining:
3. Step 3: Use the PDE Condition¶
If \(u\) satisfies the Feynman-Kac PDE (with \(f=0\)):
Then the drift term vanishes:
Key observation: \(Y_t\) is a martingale (has no \(dt\) term, only \(dW_t\) term).
4. Step 4: Take Conditional Expectation¶
Since \(Y_t\) is a martingale:
Expanding:
Using the terminal condition \(u(X_T,T) = \Phi(X_T)\):
Multiply both sides by \(e^{\int_0^t r ds}\):
This is the Feynman-Kac representation.
5. Application to Black-Scholes¶
For the Black-Scholes case with constant \(r\): - \(X_t = S_t\) - \(\mu(S_t, t) = rS_t\) - \(\sigma(S_t, t) = \sigma S_t\) - \(r(S_t, t) = r\)
The Feynman-Kac formula gives:
with terminal conditions: - European call: \(\Phi(S) = (S-K)^+\) - European put: \(\Phi(S) = (K-S)^+\)
Conclusion: Any solution to the Black-Scholes PDE can be represented as a risk-neutral expectation.
Solving the SDE: Distribution of S_T¶
To evaluate the expectation in the Feynman-Kac formula, we need the distribution of \(S_T\). The result --- that \(\ln S_T\) is normally distributed --- is exactly the lognormal transition density whose Gaussian kernel we already met in the heat equation section. We rederive it here via Ito's lemma, which is the natural probabilistic route and confirms that the two approaches yield the same object.
1. The Stochastic Differential Equation¶
Under the risk-neutral measure:
2. Apply Itô's Lemma to ln S_t¶
Let \(f(S) = \ln S\). Then:
By Itô's lemma:
Substituting \(dS_t = rS_t dt + \sigma S_t dW_t\) and \((dS_t)^2 = \sigma^2 S_t^2 dt\):
3. Integrate from t to T¶
Since \(W_T^{\mathbb{Q}} - W_t^{\mathbb{Q}} \sim \mathcal{N}(0, T-t)\), we can write:
where \(Z \sim \mathcal{N}(0,1)\).
4. Explicit Solution¶
5. Distribution of S_T¶
Define \(\tau = T - t\). Then:
Log-normal distribution: \(S_T\) is log-normally distributed with mean \(\mathbb{E}[\ln S_T | S_t] = \ln S_t + (r - \frac{1}{2}\sigma^2)\tau\) and variance \(\text{Var}[\ln S_T | S_t] = \sigma^2\tau\). The corresponding transition density \(p(S_T \mid S_t)\) is the Gaussian kernel derived in the heat equation section --- expressed here in original \((S,t)\) coordinates rather than transformed \((x,\tau)\) coordinates.
European Call Option: Detailed Derivation¶
1. The Pricing Formula via Feynman-Kac¶
For a European call with payoff \(\Phi(S) = (S-K)^+\):
where \(\tau = T - t\).
2. Step 1: Rewrite as Integral¶
3. Step 2: Split the Integral¶
We need to evaluate two integrals.
4. Step 3: Change to Log-Normal Variable¶
Since \(\ln S_T \sim \mathcal{N}(m, v^2)\) where: - \(m = \ln S + (r - \frac{\sigma^2}{2})\tau\) - \(v = \sigma\sqrt{\tau}\)
Set \(y = \ln S_T\), so \(S_T = e^y\) and \(dS_T = e^y dy\).
The density becomes:
Both integrals transform to:
Integral \(I_2\):
Integral \(I_1\):
5. Step 4: Evaluate I_2 (Probability Term)¶
Standardize the integral. Let:
Then \(y = m + vZ\) and \(dy = v dZ\).
When \(y = \ln K\): \(Z = \frac{\ln K - m}{v}\)
When \(y = \infty\): \(Z = \infty\)
Therefore:
Substituting \(m = \ln S + (r - \frac{\sigma^2}{2})\tau\) and \(v = \sigma\sqrt{\tau}\):
Define:
Then:
Interpretation: \(\mathcal{N}(d_2) = \mathbb{Q}(S_T > K)\) is the risk-neutral probability that the option expires in-the-money.
6. Step 5: Evaluate I_1 (Stock Term)¶
Key technique: Complete the square in the exponent.
Combine the exponents:
Expand:
Complete the square:
Therefore:
Substituting back:
This is a Gaussian integral with mean shifted to \(m + v^2\):
Simplify the exponent. Recall: - \(m = \ln S + (r - \frac{\sigma^2}{2})\tau\) - \(v^2 = \sigma^2\tau\)
Therefore:
For the normal CDF argument:
Define:
Then:
7. Step 6: Combine Results¶
where:
This is the Black-Scholes formula for a European call option.
European Put Option¶
1. Method 1: Direct Calculation¶
For a European put with payoff \(\Phi(S) = (K-S)^+\):
Following similar calculations (completing the square with reversed integration limits):
where \(d_1\) and \(d_2\) are the same as for the call.
2. Method 2: Put-Call Parity¶
From the no-arbitrage relationship:
Therefore:
Using \(\mathcal{N}(-x) = 1 - \mathcal{N}(x)\):
Both methods yield the same formula. ✓
Probabilistic Interpretation¶
1. The Two Terms in the Call Formula¶
2. Meaning of N(d_2)¶
This is the risk-neutral probability that the option expires in-the-money.
Derivation: From our calculation of \(I_2\), we showed:
3. Meaning of N(d_1)¶
\(\mathcal{N}(d_1)\) represents the probability of exercise under the stock measure \(\mathbb{Q}^S\):
Change of numeraire interpretation: Under the stock as numeraire, the stock price dynamics shift:
The drift changes by \(\sigma^2\) (via Girsanov's theorem), which explains the relationship:
Alternative interpretation: \(\mathcal{N}(d_1)\) is also the delta (hedge ratio) of the call option:
4. Decomposition of Call Value¶
The call formula can be written as:
Interpretation: - First term: Expected value of stock received upon exercise (under stock measure) - Second term: Expected present value of strike paid upon exercise (under risk-neutral measure)
The difference between the two measures accounts for the convexity of the payoff.
Connection to Kolmogorov Equations¶
1. Backward Equation¶
The Black-Scholes PDE is the Kolmogorov backward equation for the process \(S_t\) under \(\mathbb{Q}\):
"Backward" because: - We start from terminal condition \(V(S,T) = \Phi(S)\) at time \(T\) - We solve backward in time to find \(V(S,t)\) for \(t < T\) - The PDE describes how the option value evolves as we move backward from maturity
2. Forward Equation (Fokker-Planck)¶
The transition density \(p(S_T, T \mid S_t, t)\) satisfies the Kolmogorov forward equation:
"Forward" because: - Given initial distribution at time \(t\) - We evolve forward in time to find distribution at time \(T\) - The PDE describes how the probability distribution evolves forward
3. Duality Relationship¶
The option value can be expressed as:
Key insight: - The backward equation (PDE for \(V\)) describes the evolution of functionals - The forward equation (PDE for \(p\)) describes the evolution of densities - They are dual to each other through the Feynman-Kac representation
Why Feynman-Kac Works: Deep Intuition¶
The rigorous derivation in the previous sections established that the discounted value \(e^{-\int_0^t r\,ds}\,u(X_t,t)\) is a martingale whenever \(u\) satisfies the Feynman-Kac PDE. In the Black-Scholes setting this takes a particularly transparent form.
1. The Martingale Property¶
Under the risk-neutral measure, \(d(e^{-rt}S_t) = e^{-rt}\sigma S_t\,dW_t^{\mathbb{Q}}\), which has no drift. Hence the discounted stock price is a martingale, and by the same argument the discounted option value \(e^{-rt}V(S_t,t)\) is a martingale whenever \(V\) satisfies the Black-Scholes PDE. This immediately yields the Feynman-Kac representation \(V(S_t,t) = e^{-r(T-t)}\mathbb{E}^{\mathbb{Q}}[\Phi(S_T) \mid \mathcal{F}_t]\).
2. No-Arbitrage = Martingale Measure¶
The Feynman-Kac formula is the mathematical manifestation of no-arbitrage pricing:
Fundamental Theorem of Asset Pricing: - No arbitrage \(\Longleftrightarrow\) Existence of equivalent martingale measure \(\mathbb{Q}\) - Completeness + No arbitrage \(\Longleftrightarrow\) Unique martingale measure
The risk-neutral measure \(\mathbb{Q}\) is the unique measure under which: 1. Discounted asset prices are martingales 2. All derivatives can be priced consistently
Economic interpretation: Feynman-Kac converts the no-arbitrage condition into an explicit pricing formula.
Extensions and Generalizations¶
1. With Continuous Dividend Yield¶
If the stock pays continuous dividends at rate \(q\):
The Black-Scholes formula becomes:
where:
Application: Foreign exchange options (treat foreign interest rate as dividend yield).
2. With Time-Dependent Parameters¶
For time-varying \(r(t)\), \(\sigma(t)\), \(q(t)\):
where:
The log-return is normally distributed with: - Mean: \(\int_t^T(r(s) - q(s) - \frac{\sigma^2(s)}{2})ds\) - Variance: \(\int_t^T\sigma^2(s)ds\)
Modified \(d_1\) and \(d_2\): Replace \(r\tau\) with \(\int_t^T r(s)ds\) and \(\sigma^2\tau\) with \(\int_t^T\sigma^2(s)ds\).
3. Multi-Dimensional Case¶
For basket options with \(n\) assets \(S_1, \ldots, S_n\):
where \(\mathbf{S}_T = (S_1^T, \ldots, S_n^T)\) follows a multivariate log-normal distribution with correlation matrix \(\rho\).
Example payoffs: - Basket call: \(\Phi = (\sum_{i=1}^n w_i S_i^T - K)^+\) - Exchange option: \(\Phi = (S_1^T - S_2^T)^+\) - Spread option: \(\Phi = (S_1^T - S_2^T - K)^+\)
Evaluation: Typically requires numerical integration or Monte Carlo simulation.
Summary¶
The Feynman-Kac formula establishes the fundamental connection:
For Black-Scholes:
Derivation steps:
- Apply Ito's lemma to discounted \(u(X_t,t)\)
- Show it becomes a martingale if \(u\) satisfies the PDE
- Take expectation to get probabilistic representation
- Solve SDE to find distribution of \(S_T\) (log-normal)
- Evaluate expectation by integrating against density
- Complete the square to obtain \(\mathcal{N}(d_1)\) and \(\mathcal{N}(d_2)\) terms
Black-Scholes formulas:
Call: \(C = S\mathcal{N}(d_1) - Ke^{-r\tau}\mathcal{N}(d_2)\)
Put: \(P = Ke^{-r\tau}\mathcal{N}(-d_2) - S\mathcal{N}(-d_1)\)
where:
Interpretation: - \(\mathcal{N}(d_2)\) = Risk-neutral probability of exercise - \(\mathcal{N}(d_1)\) = Delta = Stock-measure probability of exercise
Why Feynman-Kac is powerful:
- Converts PDE to probability: expectations are often easier to compute than solving PDEs, and carry intuitive economic meaning
- Enables Monte Carlo simulation: particularly useful for high-dimensional and path-dependent problems
- Generalizes naturally: extends to time-dependent parameters, multiple assets, and exotic payoffs
- Theoretical foundation: links stochastic calculus with classical PDE theory and the Fundamental Theorem of Asset Pricing
The formula demonstrates that PDE, probability, and stochastic process are three equivalent perspectives on the same mathematical object --- a trinity that underlies modern quantitative finance and enables both theoretical insight and practical computation.
The three core methods are one object¶
The expectation \(\mathbb{E}^{\mathbb{Q}}[\Phi(S_T) \mid S_t = S]\) is a convolution of the payoff with the transition density of \(\ln S_T\) --- exactly the Green's function integral derived in the heat equation section. The heat equation convolution and the Feynman-Kac expectation are the same integral; the Green's function and the transition density are the same function. Conversely, writing the expectation as \(\mathbb{E}^{\mathbb{Q}}[e^{i\omega \ln S_T}]\) in frequency space yields the characteristic function \(\phi_T(\omega)\) that drives Fourier methods. The three core approaches of this chapter are therefore not independent techniques. They compute the same object --- the pricing semigroup \(\mathcal{P}_\tau = e^{\tau\mathcal{L}}\) applied to the payoff --- in three coordinate systems:
| Method | Coordinate system | Key object |
|---|---|---|
| Heat equation | Spatial \((x, \tau)\) | Green's function (Gaussian kernel) |
| Feynman-Kac | Probabilistic | Transition density / expectation |
| Fourier | Spectral \((\omega)\) | Characteristic function |
Exercises¶
Exercise 1. Verify the Feynman-Kac formula for the trivial case \(\Phi(S) = S\) (the stock itself). Show that \(V(S,t) = S\) satisfies both the Black-Scholes PDE and the expectation \(e^{-r(T-t)}\mathbb{E}^{\mathbb{Q}}[S_T \mid S_t = S]\).
Solution to Exercise 1
We need to verify that \(V(S,t) = S\) satisfies both the Black-Scholes PDE and the Feynman-Kac representation.
PDE verification. With \(V = S\): \(\frac{\partial V}{\partial t} = 0\), \(\frac{\partial V}{\partial S} = 1\), \(\frac{\partial^2 V}{\partial S^2} = 0\). Substituting:
The PDE is satisfied.
Feynman-Kac verification. We need \(e^{-r(T-t)}\mathbb{E}^{\mathbb{Q}}[S_T \mid S_t = S] = S\).
Under \(\mathbb{Q}\), \(S_T = S \exp\left((r - \frac{1}{2}\sigma^2)(T-t) + \sigma(W_T - W_t)\right)\). Taking the expectation:
Since \(W_T - W_t \sim \mathcal{N}(0, T-t)\):
Therefore:
Discounting: \(e^{-r(T-t)} \cdot Se^{r(T-t)} = S\). Both representations agree.
Exercise 2. Carry out the "completing the square" step in the evaluation of \(I_1\) in full detail. Starting from the combined exponent \(y - \frac{(y-m)^2}{2v^2}\), show every algebraic step leading to the factorization into \(e^{m + v^2/2}\) times a Gaussian integral with shifted mean \(m + v^2\).
Solution to Exercise 2
Starting from the combined exponent \(y - \frac{(y-m)^2}{2v^2}\), we proceed step by step.
Step 1: Write as a single fraction.
Step 2: Expand the numerator.
Step 3: Complete the square in \(y\).
Step 4: Simplify the constant.
Step 5: Substitute back.
Step 6: Factor out the constant. Therefore:
The second factor is the kernel of a Gaussian with mean \(m + v^2\) and variance \(v^2\), confirming that \(I_1 = e^{m+v^2/2} \cdot \mathcal{N}\left(\frac{(m+v^2) - \ln K}{v}\right)\).
Exercise 3. Use the Feynman-Kac representation to derive the price of a power option with payoff \(\Phi(S_T) = S_T^2\) at maturity. Compute \(e^{-r(T-t)}\mathbb{E}^{\mathbb{Q}}[S_T^2 \mid S_t = S]\) using the log-normal distribution of \(S_T\).
Solution to Exercise 3
The payoff is \(\Phi(S_T) = S_T^2\). By Feynman-Kac:
where \(\tau = T - t\).
Under \(\mathbb{Q}\), \(S_T = S\exp\left((r - \frac{1}{2}\sigma^2)\tau + \sigma\sqrt{\tau}Z\right)\) with \(Z \sim \mathcal{N}(0,1)\). Therefore:
Taking the expectation:
Using \(\mathbb{E}[e^{aZ}] = e^{a^2/2}\) for \(Z \sim \mathcal{N}(0,1)\):
Therefore:
Discounting:
One can verify this satisfies the Black-Scholes PDE: with \(V = S^2 e^{(r+\sigma^2)\tau}\), computing \(V_t = -(r+\sigma^2)V\), \(V_S = 2Se^{(r+\sigma^2)\tau}\), \(V_{SS} = 2e^{(r+\sigma^2)\tau}\), and substituting into \(V_t + rSV_S + \frac{1}{2}\sigma^2 S^2 V_{SS} - rV = 0\) confirms the identity.
Exercise 4. The Kolmogorov backward equation for Black-Scholes governs \(V(S,t)\), while the forward equation governs the transition density \(p(S_T, T \mid S, t)\). Starting from the Black-Scholes backward equation, write down the corresponding forward (Fokker-Planck) equation and verify that the log-normal density \(p(S_T, T \mid S, t)\) satisfies it.
Solution to Exercise 4
Backward equation (Black-Scholes PDE for \(V(S,t)\)):
Deriving the forward equation. The transition density \(p(S_T, T \mid S, t)\) satisfies the Kolmogorov forward (Fokker-Planck) equation with respect to \((S_T, T)\):
Verification. The log-normal density is:
Let \(y = \ln S_T\), \(m = \ln S + (r - \frac{\sigma^2}{2})\tau\), \(v^2 = \sigma^2\tau\). The density in \(y\)-space is Gaussian: \(q(y) = \frac{1}{\sqrt{2\pi v^2}}e^{-(y-m)^2/(2v^2)}\).
Taking derivatives of \(q\) with respect to \(T\) (noting \(m\) and \(v^2\) both depend on \(T\)), one can verify by direct computation that the forward equation is satisfied. The key steps involve:
- \(\frac{\partial m}{\partial T} = r - \frac{\sigma^2}{2}\) and \(\frac{\partial v^2}{\partial T} = \sigma^2\)
- Converting derivatives with respect to \(S_T\) to derivatives with respect to \(y\) using \(\frac{\partial}{\partial S_T} = \frac{1}{S_T}\frac{\partial}{\partial y}\)
- Expanding the forward equation terms and verifying cancellation
Exercise 5. Using the Feynman-Kac formula with time-dependent volatility \(\sigma(t)\), show that the Black-Scholes call price takes the same functional form as the constant-volatility case, but with \(\sigma^2 T\) replaced by \(\int_t^T \sigma^2(s) \, ds\). Define the effective volatility \(\bar{\sigma}\) and express \(d_1\) and \(d_2\) in terms of \(\bar{\sigma}\).
Solution to Exercise 5
With time-dependent volatility \(\sigma(t)\), the SDE under \(\mathbb{Q}\) is:
By Ito's lemma applied to \(\ln S\):
The stochastic integral \(\int_t^T \sigma(s) \, dW_s\) is Gaussian with mean 0 and variance \(\int_t^T \sigma^2(s) \, ds\).
Define the effective (total) variance:
and the effective volatility:
so that \(\Sigma^2 = \bar{\sigma}^2 \tau\).
The distribution of \(\ln S_T\) is:
This is identical to the constant-volatility case with \(\sigma^2\tau\) replaced by \(\Sigma^2 = \int_t^T \sigma^2(s) \, ds\). The call price therefore takes the same functional form:
with:
Exercise 6. Consider a European option with payoff \(\Phi(S_T) = \ln(S_T)\) (a log contract). Use the Feynman-Kac representation to compute its price \(V(S,t) = e^{-r\tau}\mathbb{E}^{\mathbb{Q}}[\ln S_T \mid S_t = S]\). Show that the result is \(V = e^{-r\tau}[\ln S + (r - \frac{1}{2}\sigma^2)\tau]\), and verify that this satisfies the Black-Scholes PDE.
Solution to Exercise 6
The payoff is \(\Phi(S_T) = \ln(S_T)\). By Feynman-Kac:
Under \(\mathbb{Q}\):
Taking the expectation (\(\mathbb{E}[Z] = 0\)):
Therefore:
PDE verification. Let \(\tau = T - t\) and compute derivatives:
Since \(\frac{\partial \tau}{\partial t} = -1\):
Substituting into the BS PDE:
Factoring out \(e^{-r\tau}\):
The PDE is satisfied.
Exercise 7. The discounted option value \(e^{-rt}V(S_t, t)\) is a martingale under \(\mathbb{Q}\). Use Ito's lemma to compute \(d(e^{-rt}V)\) and show that the drift vanishes if and only if \(V\) satisfies the Black-Scholes PDE. This provides an alternative proof of the Feynman-Kac connection.
Solution to Exercise 7
Let \(Y_t = e^{-rt}V(S_t, t)\). Apply the product rule (Ito's lemma for products):
Apply Ito's lemma to \(V(S_t, t)\):
Under \(\mathbb{Q}\), \(dS_t = rS_t \, dt + \sigma S_t \, dW_t\) and \((dS_t)^2 = \sigma^2 S_t^2 \, dt\). Substituting:
Therefore:
For \(Y_t\) to be a martingale, the \(dt\) coefficient (drift) must vanish:
This is exactly the Black-Scholes PDE. Conversely, if \(V\) satisfies the PDE, then:
which has no drift, so \(Y_t = e^{-rt}V(S_t,t)\) is a local martingale (and a martingale under standard integrability conditions). This provides an alternative derivation of the Feynman-Kac representation.