Quant Memo
Advanced

Deriving The Black-Scholes PDE

Hold an option and short exactly the right number of shares and the randomness cancels out. What is left cannot earn more than a bank deposit without creating free money, and writing that sentence down gives you the Black-Scholes equation.

Prerequisites: Itô's Lemma, Geometric Brownian Motion, The Black-Scholes Model

You can write down an option's payoff in one line. Working out what it is worth today is another matter entirely, and the obvious approach fails immediately: average the payoff over where you think the stock might end up, and your answer depends on how bullish you are. Two traders with different views would quote different prices for the same contract, and there would be no such thing as a market. Black and Scholes found the way out, and the surprise is that the answer does not depend on your view at all.

Noise-cancelling headphones

Noise-cancelling headphones listen to the sound around you and play the exact opposite into your ear. Two loud signals arrive, one the mirror of the other, and you hear silence. An option and its stock are two loud signals driven by the same noise: when the stock jumps the option jumps too, just by a different amount. So hold the option and short the right number of shares, and the jumps cancel. What is left in your hands has no randomness in it at all.

A thing with no randomness has an obvious price. It must grow at the bank rate, because if it grew faster you would borrow to buy it and collect the difference for free, and if it grew slower you would sell it and do the same. "Riskless things earn the risk-free rate" is the only economics in the whole derivation. Everything else is bookkeeping.

Step 1: how the stock moves

dSt  =  μStdt  +  σStdWt.dS_t \;=\; \mu\, S_t\, dt \;+\; \sigma\, S_t\, dW_t .

In plain English: over a tiny slice of time, the stock drifts up a little and gets shoved randomly, both in proportion to its current price. The pieces: StS_t is the price now, μ\mu ("mu") is the expected growth rate per year, σ\sigma ("sigma") is the volatility, and dWtdW_t is the random shove, a coin flip whose typical size is the square root of the time slice. Note where μ\mu sits, because in three steps it will be gone.

Step 2: how the option moves

Call the option's value V(S,t)V(S, t), a function of the stock price and the date. Because SS is jittery rather than smooth, ordinary calculus is not enough; you need Itô's lemma, which gives

dV=(Vt+μSVS+12σ2S22VS2)dt  +  σSVSdW.dV = \left( \frac{\partial V}{\partial t} + \mu S \frac{\partial V}{\partial S} + \tfrac{1}{2}\sigma^{2} S^{2} \frac{\partial^{2} V}{\partial S^{2}} \right) dt \;+\; \sigma S \frac{\partial V}{\partial S}\, dW .

In plain English: the option's value changes for four reasons. It loses value simply because time passed (V/t\partial V/\partial t, called theta). It moves because the stock drifted. It gains from the bend in its own value curve (2V/S2\partial^{2}V/\partial S^{2}, called gamma) being shaken back and forth. And it gets the same random shove the stock did, scaled by the slope V/S\partial V/\partial S, called delta.

That third term is the one that is not in ordinary calculus. It exists because the option's value curve is bent, so a shake up and an equal shake down do not cancel: the up gains more than the down loses. It is the entire reason volatility is worth money.

Step 3: cancel the noise

Build the portfolio: own one option, short delta shares.

Π  =  V    VSS.\Pi \;=\; V \;-\; \frac{\partial V}{\partial S}\, S .

Over the next instant, the shares lose exactly what the option's random term gains. Both dWdW pieces vanish, and so, silently, does every μ\mu:

dΠ  =  (Vt+12σ2S22VS2)dt.d\Pi \;=\; \left( \frac{\partial V}{\partial t} + \tfrac{1}{2}\sigma^{2} S^{2} \frac{\partial^{2} V}{\partial S^{2}} \right) dt .

In plain English: the hedged portfolio's change over the next instant is a known number. No coin flip, and no trace of how fast anyone expected the stock to grow.

today option value the delta hedge gap opens up and down stock price
The straight amber line is what your hedge delivers; the green curve is what the option delivers. They touch at today's price and the curve is above the line everywhere else, so the hedged position gains whichever way the stock moves. That free gain is gamma, and the PDE says exactly what it costs.

Step 4: charge it the bank rate

A riskless portfolio must earn rr, otherwise there is free money: dΠ=rΠdtd\Pi = r\,\Pi\, dt. Substitute the two expressions for dΠd\Pi, cancel dtdt, and rearrange:

Vt  +  12σ2S22VS2  +  rSVS    rV  =  0.\frac{\partial V}{\partial t} \;+\; \tfrac{1}{2}\sigma^{2} S^{2} \frac{\partial^{2} V}{\partial S^{2}} \;+\; r S \frac{\partial V}{\partial S} \;-\; r V \;=\; 0 .

In plain English, reading left to right: time decay, plus the value earned from shaking a bent position, plus the financing carry on the shares you hold, must equal the interest on the money tied up in the option. That is the Black-Scholes partial differential equation.

The version worth carrying in your head drops the interest terms, which are small for short-dated options:

Θ    12σ2S2Γ.\Theta \;\approx\; -\tfrac{1}{2}\sigma^{2} S^{2} \Gamma .

Theta is the rent you pay for gamma. Own a bent position and every wobble in the stock hands you money; the market charges for that privilege through time decay, and the PDE is the invoice.

stock = steady drift + random shove Ito: option also gains a curvature term short delta shares: shove and drift cancel what remains is riskless, so it earns r the Black-Scholes PDE
The whole derivation in five moves. Only the highlighted step is a financial idea; the rest is calculus and arithmetic. And note that the payoff of the option never appears, because it enters only later, as a boundary condition.

The equation does not know whether you hold a call, a put or something exotic. What makes it a call is the boundary condition V(S,T)=max(SK,0)V(S, T) = \max(S - K, 0), imposed at expiry and solved backwards.

Worked example 1: checking the theta-gamma balance

Take a 30-day at-the-money call: stock at $100, strike $100, volatility 20 percent, and set r=0r = 0 so the arithmetic stays clean. Here T=30/365=0.0822T = 30/365 = 0.0822 years, so T=0.2867\sqrt{T} = 0.2867 and σT=0.0573\sigma\sqrt{T} = 0.0573.

  1. Gamma. Γ=ϕ(d1)/(SσT)\Gamma = \phi(d_1)/(S\sigma\sqrt{T}), where ϕ\phi is the bell-curve height, here 0.39880.3988. So Γ=0.3988/(100×0.0573)=0.0695\Gamma = 0.3988 / (100 \times 0.0573) = 0.0695.
  2. The gamma term. 12σ2S2Γ=0.5×0.04×10,000×0.0695=13.91\tfrac{1}{2}\sigma^{2}S^{2}\Gamma = 0.5 \times 0.04 \times 10{,}000 \times 0.0695 = 13.91 per year.
  3. So theta must be 13.91-13.91 per year, which is 13.91/365=0.038113.91 / 365 = 0.0381 per calendar day.
  4. Check it independently. The textbook theta formula gives Sϕ(d1)σ/(2T)=(100)(0.3988)(0.2)/(2×0.2867)=13.91-S\phi(d_1)\sigma / (2\sqrt{T}) = -(100)(0.3988)(0.2) / (2 \times 0.2867) = -13.91 per year. Identical, as the PDE promised.

For context, that option is worth about $2.29, and it loses 3.8 cents a day to time. Nearly 2 percent of its value, every day, for standing still.

Worked example 2: what the rent buys you

You own that call and hedge it. The stock moves $1.50 tomorrow, up or down, it does not matter which.

  • Gamma pays you 12Γ(ΔS)2=0.5×0.0695×1.502=0.0782\tfrac{1}{2}\Gamma(\Delta S)^{2} = 0.5 \times 0.0695 \times 1.50^{2} = 0.0782.
  • Theta charges you 0.03810.0381.
  • Net: $0.040 on the day, from a position with no directional view.

So what size move makes you break even? Solve 12Γx2=0.0381\tfrac{1}{2}\Gamma x^{2} = 0.0381: x2=0.0762/0.0695=1.096x^{2} = 0.0762 / 0.0695 = 1.096, so x=1.047x = 1.047, a move of about 1.05 percent. Annualise it by multiplying by the square root of 365: 1.047×19.10=20.01.047 \times 19.10 = 20.0 percent.

That is the volatility you paid for, recovered exactly. The PDE is telling you something completely concrete: a hedged option position breaks even if and only if the stock realises the volatility priced into it, makes money if the stock is wilder, and loses if it is calmer. This is the trade behind Gamma Scalping.

Where the drift went

Drag the sliders below. Move the drift and the whole bundle of paths tilts, yet nothing about the option's fair value changes. Move the volatility and the paths thrash, and the value changes a great deal. The PDE contains σ\sigma and not μ\mu; this is the picture of why.

Path explorer
13055time →
end (bold path) 100.38spread of ends 58.966 independent paths, same settings

What this means in practice

Every finite-difference pricer on a derivatives desk is this equation on a grid, marched backwards from the payoff, and most model extensions are the same equation with one coefficient changed: dividends turn rSrS into (rq)S(r - q)S, and Local Volatility and Dupire's Formula replaces the constant σ\sigma with σ(S,t)\sigma(S, t).

More usefully, each assumption in the derivation names a way real hedging loses money. Prices gap rather than glide, so the cancellation in step three is imperfect. Rebalancing is neither continuous nor free. And volatility is not a constant, which is why one σ\sigma cannot fit every strike and the smile exists at all (Black-Scholes Assumptions And Failure Modes).

The drift μ\mu does not disappear because the market is risk-neutral, or because investors expect stocks to return rr. It disappears because the option's exposure to the drift and the hedge's exposure to the drift are equal and opposite, so they subtract to nothing. Risk-neutral pricing is a consequence of that cancellation, not the reason for it. The related slip is thinking the equation is about calls: it holds for any derivative whose value depends on SS and tt, and the payoff enters only as the boundary condition.

Key terms

  • Delta (V/S\partial V/\partial S) — the slope; how many shares to short to cancel the noise.
  • Gamma (2V/S2\partial^{2}V/\partial S^{2}) — the bend; what pays you when the stock shakes.
  • Theta (V/t\partial V/\partial t) — time decay; the rent charged for holding gamma.
  • Hedged portfolio — one option less delta shares, momentarily riskless.
  • Boundary condition — the payoff at expiry, the only thing that says which option this is.

Related concepts

Practice in interviews

Further reading

  • Black & Scholes (1973), The Pricing of Options and Corporate Liabilities
  • Wilmott, Paul Wilmott on Quantitative Finance (Ch. 5-8)
  • Shreve, Stochastic Calculus for Finance II (Ch. 4)
ShareTwitterLinkedIn