Skip to content
homeaboutworkprojectsthesiswritingresume
Loading
~/blog/black-scholes-pde0%dark
  1. home/
  2. writing/
  3. The Black-Scholes Equation

30 June 2026 · 7 min read · updated 09 June 2026

The Black-Scholes Equation

An option on a stock can be replicated by continuously trading the stock and a bond, and the cost of replication is the option's price. We model the stock as a geometric Brownian motion, apply Ito's formula to a portfolio that is delta hedged against the stock, and find that eliminating the risk forces the option value to satisfy the Black-Scholes partial differential equation. We then solve it by the risk-neutral representation as a discounted expected payoff and evaluate the lognormal integral to the closed-form Black-Scholes formula. This is where the stochastic calculus of the foundations becomes the pricing of derivatives.

  • 8 equations
  • 6 results
  • 7 connections
  • quantitative-finance
  • stochastic-calculus
  • derivatives
On this page▾
  • The hedging argument
  • Risk-neutral pricing
  • The Black-Scholes formula

7 min left

  • The hedging argument2m
  • Risk-neutral pricing2m
  • The Black-Scholes formula2m

An option is a contract whose payoff depends on a stock, and the insight that priced it is that the payoff can be manufactured by trading the stock and a bond in the right proportions. If a portfolio of stock and bond reproduces the option's value at every instant, then by absence of arbitrage the option must cost what the portfolio costs, and the proportions are dictated by Ito's formula. Eliminating the randomness from the hedged portfolio leaves a partial differential equation for the option value, the Black-Scholes equation, whose solution is the price. This post derives the equation and solves it [1], [2]. The stock follows the geometric Brownian motion dSt=μSt dt+σSt dWtdS_t=\mu S_t\,dt+\sigma S_t\,dW_tdSt​=μSt​dt+σSt​dWt​, and a riskless bond grows at rate rrr, dBt=rBt dtdB_t=rB_t\,dtdBt​=rBt​dt.

#The hedging argument

Throughout we assume rrr and σ\sigmaσ are constant, the stock pays no dividends, and the market is frictionless with continuous trading and unrestricted shorting. A European option pays a function h(ST)h(S_T)h(ST​) of the terminal price at a fixed expiry TTT, and under the Markov dynamics of the geometric Brownian motion its no-arbitrage value before then is a function V(t,S)V(t,S)V(t,S) of time and the current stock price. Apply Ito's formula to track how VVV evolves.

Theorem1

If V(t,S)V(t,S)V(t,S) is the value of an option on the stock and is twice differentiable, then absence of arbitrage forces the Black-Scholes equation

∂tV+rS ∂SV+12σ2S2 ∂SSV−rV=0,(1)\partial_t V+rS\,\partial_S V+\tfrac12\sigma^2 S^2\,\partial_{SS}V-rV=0, \tag{1}∂t​V+rS∂S​V+21​σ2S2∂SS​V−rV=0,(1)

with the terminal condition V(T,S)V(T,S)V(T,S) equal to the option's payoff. Among solutions of linear growth, ∣V(t,S)∣≤C(1+S)\abs{V(t,S)}\le C(1+S)∣V(t,S)∣≤C(1+S), the price is the unique one, which is what makes the risk-neutral representation of Theorem 2 the solution rather than merely a solution.

Proof

By the Ito formula applied to V(t,St)V(t,S_t)V(t,St​) with dSt=μSt dt+σSt dWtdS_t=\mu S_t\,dt+\sigma S_t\,dW_tdSt​=μSt​dt+σSt​dWt​ and quadratic variation dSt2=σ2St2 dtdS_t^2=\sigma^2 S_t^2\,dtdSt2​=σ2St2​dt,

dVt=(∂tV+μSt ∂SV+12σ2St2 ∂SSV)dt+σSt ∂SV dWt.(2)dV_t=\Big(\partial_t V+\mu S_t\,\partial_S V+\tfrac12\sigma^2 S_t^2\,\partial_{SS}V\Big)dt+\sigma S_t\, \partial_S V\,dW_t. \tag{2}dVt​=(∂t​V+μSt​∂S​V+21​σ2St2​∂SS​V)dt+σSt​∂S​VdWt​.(2)

Form the delta-hedged portfolio Πt=Vt−ΔtSt\Pi_t=V_t-\Delta_t S_tΠt​=Vt​−Δt​St​ holding one option short one Δt\Delta_tΔt​ of stock, and choose Δt=∂SV\Delta_t=\partial_S VΔt​=∂S​V. Read it as an admissible self-financing strategy in stock and bond, so the cost of rebalancing Δt\Delta_tΔt​ is borne by the bond holding and the cross terms St dΔt+d⟨Δ,S⟩tS_t\,d\Delta_t+d\langle\Delta,S\rangle_tSt​dΔt​+d⟨Δ,S⟩t​ are absorbed there rather than entering dΠtd\Pi_tdΠt​. Its increment is then dΠt=dVt−∂SV dStd\Pi_t=dV_t-\partial_S V\,dS_tdΠt​=dVt​−∂S​VdSt​, and substituting Equation (2) the stochastic terms cancel,

dΠt=(∂tV+12σ2St2 ∂SSV)dt,(3)d\Pi_t=\Big(\partial_t V+\tfrac12\sigma^2 S_t^2\,\partial_{SS}V\Big)dt, \tag{3}dΠt​=(∂t​V+21​σ2St2​∂SS​V)dt,(3)

a purely deterministic increment. A self-financing portfolio whose instantaneous return is deterministic must, on pain of arbitrage against the bond, earn the riskless rate, dΠt=rΠt dt=r(Vt−∂SV St) dtd\Pi_t=r\Pi_t\,dt=r(V_t-\partial_S V\, S_t)\,dtdΠt​=rΠt​dt=r(Vt​−∂S​VSt​)dt. Equating the two expressions for dΠtd\Pi_tdΠt​ and cancelling dtdtdt,

∂tV+12σ2S2 ∂SSV=r(V−S ∂SV),(4)\partial_t V+\tfrac12\sigma^2 S^2\,\partial_{SS}V=r\big(V-S\,\partial_S V\big), \tag{4}∂t​V+21​σ2S2∂SS​V=r(V−S∂S​V),(4)

which rearranges to Equation (1). At expiry the option is worth its payoff, the terminal condition.

The drift μ\muμ has vanished from Equation (1), replaced everywhere by rrr. The hedge removes not only the risk but the expected return, so the price depends only on volatility, the one feature it cannot cancel.

#Risk-neutral pricing

The disappearance of μ\muμ is the analytic face of a change of probability. Under the risk-neutral measure obtained by the Girsanov theorem, the stock drifts at rrr rather than μ\muμ, and the solution of the Black-Scholes equation is a discounted expectation.

Theorem2

The solution of Equation (1) with terminal payoff h(ST)h(S_T)h(ST​) is V(t,St)=e−r(T−t)EQ[h(ST)∣St]V(t,S_t)=e^{-r(T-t)}\E^{\mathbb Q} [h(S_T)\mid S_t]V(t,St​)=e−r(T−t)EQ[h(ST​)∣St​], the expectation taken under the measure Q\mathbb QQ where dSt=rSt dt+σSt dWtQdS_t=rS_t\,dt+\sigma S_t\,dW_t ^{\mathbb Q}dSt​=rSt​dt+σSt​dWtQ​.

Proof

The change of measure that turns μ\muμ into rrr is the Girsanov transformation with the constant market price of risk θ=(μ−r)/σ\theta=(\mu-r)/\sigmaθ=(μ−r)/σ. Since θ\thetaθ is constant, EP[e12θ2T]=e12θ2T<∞\E^{\mathbb P}[e^{\frac12\theta^2T}]=e^{\frac12\theta^2T}<\inftyEP[e21​θ2T]=e21​θ2T<∞, so Novikov's condition holds, the density Zt=exp⁡(−θWt−12θ2t)Z_t=\exp(-\theta W_t-\tfrac12\theta^2t)Zt​=exp(−θWt​−21​θ2t) is a true martingale, dQ=ZT dPd\mathbb Q=Z_T\,d\mathbb PdQ=ZT​dP defines an equivalent measure, and WtQ=Wt+θtW^{\mathbb Q}_t=W_t+\theta tWtQ​=Wt​+θt is a Q\mathbb QQ-Brownian motion under which dSt=rSt dt+σSt dWtQdS_t= rS_t\,dt+\sigma S_t\,dW^{\mathbb Q}_tdSt​=rSt​dt+σSt​dWtQ​. Applying Ito and Equation (1) to the discounted value,

d(e−rtV(t,St))=e−rt(∂tV+rS ∂SV+12σ2S2 ∂SSV−rV)dt+e−rtσSt ∂SV dWtQ=e−rtσSt ∂SV dWtQ,(5)d\big(e^{-rt}V(t,S_t)\big)=e^{-rt}\big(\partial_tV+rS\,\partial_SV+\tfrac12\sigma^2S^2\,\partial_{SS}V-rV\big) dt+e^{-rt}\sigma S_t\,\partial_S V\,dW^{\mathbb Q}_t=e^{-rt}\sigma S_t\,\partial_S V\,dW^{\mathbb Q}_t, \tag{5}d(e−rtV(t,St​))=e−rt(∂t​V+rS∂S​V+21​σ2S2∂SS​V−rV)dt+e−rtσSt​∂S​VdWtQ​=e−rtσSt​∂S​VdWtQ​,(5)

the drift killed by the Black-Scholes equation. This is a priori only a local martingale; it is a true martingale once the integrand is square-integrable, EQ ⁣∫0Te−2rtσ2St2(∂SV)2 dt<∞\E^{\mathbb Q}\!\int_0^T e^{-2rt}\sigma^2S_t^2 (\partial_SV)^2\,dt<\inftyEQ∫0T​e−2rtσ2St2​(∂S​V)2dt<∞, which holds under the linear-growth bound on ∂SV\partial_S V∂S​V (for the call ∂SV=Φ(d1)∈[0,1]\partial_SV=\Phi(d_1)\in[0,1]∂S​V=Φ(d1​)∈[0,1]). A true martingale equals the conditional expectation of its terminal value on the filtration, e−rtV(t,St)=EQ[e−rTV(T,ST)∣Ft]e^{-rt}V(t,S_t)=\E^{\mathbb Q}[e^{-rT}V(T,S_T)\mid\mathcal F_t]e−rtV(t,St​)=EQ[e−rTV(T,ST​)∣Ft​]. Since (St)(S_t)(St​) is a time-homogeneous Markov process under Q\mathbb QQ, the expectation of a function of STS_TST​ depends on Ft\mathcal F_tFt​ only through StS_tSt​, so EQ[e−rTh(ST)∣Ft]=e−rTEQ[h(ST)∣St]\E^{\mathbb Q}[e^{-rT}h(S_T)\mid\mathcal F_t]=e^{-rT}\E^{\mathbb Q} [h(S_T)\mid S_t]EQ[e−rTh(ST​)∣Ft​]=e−rTEQ[h(ST​)∣St​], and multiplying by erte^{rt}ert gives the discounted expectation.

#The Black-Scholes formula

For a call the payoff is h(ST)=(ST−K)+h(S_T)=(S_T-K)^+h(ST​)=(ST​−K)+, and the expectation is a lognormal integral with a closed form.

Theorem3

The value of a European call with strike KKK and expiry TTT is, writing τ=T−t\tau=T-tτ=T−t,

V=S Φ(d1)−Ke−rτΦ(d2),d1,2=ln⁡(S/K)+(r±12σ2)τστ,(6)V=S\,\Phi(d_1)-Ke^{-r\tau}\Phi(d_2),\qquad d_{1,2}=\frac{\ln(S/K)+(r\pm\tfrac12\sigma^2)\tau}{\sigma\sqrt \tau}, \tag{6}V=SΦ(d1​)−Ke−rτΦ(d2​),d1,2​=στ​ln(S/K)+(r±21​σ2)τ​,(6)

where Φ\PhiΦ is the standard normal distribution function.

Proof

Under Q\mathbb QQ the solution of the stock equation is ST=Sexp⁡((r−12σ2)τ+στ Z)S_T=S\exp\big((r- \tfrac12\sigma^2)\tau+\sigma\sqrt\tau\,Z\big)ST​=Sexp((r−21​σ2)τ+στ​Z) with ZZZ a standard normal, so ST>KS_T>KST​>K exactly when Z>−d2Z>-d_2Z>−d2​. By Theorem 2,

V=e−rτEQ[(ST−K)+]=e−rτ∫−d2∞(S e(r−12σ2)τ+στz−K)φ(z) dz,(7)V=e^{-r\tau}\E^{\mathbb Q}\big[(S_T-K)^+\big]=e^{-r\tau}\int_{-d_2}^\infty\Big(S\,e^{(r-\frac12\sigma^2)\tau +\sigma\sqrt\tau z}-K\Big)\varphi(z)\,dz, \tag{7}V=e−rτEQ[(ST​−K)+]=e−rτ∫−d2​∞​(Se(r−21​σ2)τ+στ​z−K)φ(z)dz,(7)

where φ\varphiφ is the standard normal density. Since EQ[ST]=Serτ<∞\E^{\mathbb Q}[S_T]=Se^{r\tau}<\inftyEQ[ST​]=Serτ<∞ (the lognormal first moment), ST1{Z>−d2}S_T\mathbf 1_{\{Z>-d_2\}}ST​1{Z>−d2​}​ is integrable and the integral splits into two finite pieces. The KKK term integrates to Ke−rτ∫−d2∞φ=Ke−rτΦ(d2)Ke^{-r\tau}\int_{-d_2}^\infty\varphi=Ke^{-r\tau}\Phi(d_2)Ke−rτ∫−d2​∞​φ=Ke−rτΦ(d2​) by ∫−a∞φ=Φ(a)\int_{-a}^\infty \varphi=\Phi(a)∫−a∞​φ=Φ(a). For the SSS term, completing the square turns eστzφ(z)=eσ2τ/2φ(z−στ)e^{\sigma\sqrt\tau z}\varphi(z)=e^{\sigma^2\tau/2}\varphi(z-\sigma\sqrt\tau)eστ​zφ(z)=eσ2τ/2φ(z−στ​), so

e−rτS e(r−12σ2)τ∫−d2∞φ(z−στ) dz=S∫−d2−στ∞φ(u) du=S Φ(d2+στ)=S Φ(d1),(8)e^{-r\tau}S\,e^{(r-\frac12\sigma^2)\tau}\int_{-d_2}^\infty\varphi(z-\sigma\sqrt\tau)\,dz=S\int_{-d_2-\sigma \sqrt\tau}^\infty\varphi(u)\,du=S\,\Phi(d_2+\sigma\sqrt\tau)=S\,\Phi(d_1), \tag{8}e−rτSe(r−21​σ2)τ∫−d2​∞​φ(z−στ​)dz=S∫−d2​−στ​∞​φ(u)du=SΦ(d2​+στ​)=SΦ(d1​),(8)

the exponential prefactors collapsing to 111 and d2+στ=d1d_2+\sigma\sqrt\tau=d_1d2​+στ​=d1​. Subtracting gives Equation (6).

The call value (solid) sits above its intrinsic payoff (dashed) by the time value, which the time slider decays toward expiry and the volatility slider inflates.

The formula prices the call from five inputs, the stock price, the strike, the time, the rate, and the volatility, of which only volatility is unobserved, so option markets quote volatility. The hedge ratio is ∂SV=Φ(d1)\partial_S V=\Phi(d_1)∂S​V=Φ(d1​), the delta, the amount of stock the replicating portfolio holds, and following it continuously is the trading strategy that manufactures the option. The Black-Scholes equation is the meeting point of the whole curriculum, the Ito formula supplying the dynamics, the change of measure supplying the risk-neutral expectation, the Gaussian supplying the lognormal integral, and the absence of arbitrage supplying the principle, the abstract machinery of stochastic analysis resolving into a formula a trader can evaluate.

[1]
F. Black and M. Scholes, “The Pricing of Options and Corporate Liabilities,” Journal of Political Economy, vol. 81, no. 3, pp. 637–654, 1973.
[2]
S. E. Shreve, Stochastic Calculus for Finance II: Continuous-Time Models. Springer, 2004.

Part 2 of 2 in Quantitative Finance

← previousThe Mean-Variance Portfolio

Explore connections

see in the atlas →

related

  • Ito's Formula
  • Change of Measure and Girsanov's Theorem
  • Price Formation in the Order Book
cite
@misc{black-scholes-pde,
  author = {Zac Kienzle},
  title  = {The Black-Scholes Equation},
  year   = {2026},
  month  = {06},
  url    = {https://zackienzle.com/blog/black-scholes-pde}
}