JOVANA
Explore Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

Black-Scholes: PDEs in Finance

The price of an option obeys a partial differential equation — and once you change a few variables, it is the heat equation you already know, run backward from the payoff. This is the story of how a stock's random jiggle becomes diffusion, and why a financial price is a temperature in disguise.

A price that diffuses

You have spent this rung watching one master equation after another turn out to be a partial differential equation wearing a costume — Euler and Navier-Stokes for fluids, the Schrodinger equation for a quantum particle. Now comes the one that surprises people most, because its subject is not a fluid or a field but a price. The Black-Scholes equation governs the fair value V of a stock option as a function of the stock price S and the time t, and it reads V_t + (1/2) sigma^2 S^2 V_SS + r S V_S - r V = 0. That middle term, with a second derivative V_SS, is the giveaway: this is a diffusion equation in disguise, and the thing diffusing is uncertainty about where the stock will end up.

Where does a second derivative in price come from? The model assumes a stock price wiggles like a particle being knocked about by molecular collisions — the very Brownian motion you met when the heat equation was reborn as a story about random walkers. Over a tiny time step the price takes a small random kick whose typical size grows like the square root of the elapsed time, and sigma, the volatility, sets how violent those kicks are. When you average over all the random futures, square-root-sized kicks feed into a second derivative in S, exactly as a random walk on a line produces u_xx in the heat equation. The constant in front, (1/2) sigma^2 S^2, is just the local strength of that diffusion, larger where the price is high because a percentage move there is a bigger dollar move.

It is the heat equation in disguise

The cleanest way to feel what Black-Scholes is comes from a chain of substitutions that strips its costume off and reveals the heat equation underneath. The S^2 V_SS term looks awkward only because S lives on (0, infinity) and the diffusion strength depends on S. Switch to the log-price x = ln(S): now a stock's percentage moves become equal-sized steps in x, the variable coefficient flattens to a constant, and the spatial part becomes a plain second derivative. A little more bookkeeping — rescaling time and peeling off a multiplicative factor to kill the r S V_S and r V terms — turns the whole thing into u_tau = u_xx, the bare heat equation you have known since the foundations rung.

Black-Scholes:   V_t + (1/2) sigma^2 S^2 V_SS + r S V_S - r V = 0

   let  x = ln S      (equal log-steps tame the S^2 coefficient)
   let  tau = T - t   (run the clock backward from expiry)
   peel off  V = e^(a x + b tau) u(x, tau)

        ---------------------------------------
   becomes:        u_tau = u_xx
        ---------------------------------------
             the bare heat / diffusion equation
Three substitutions — log-price, reversed time, and an exponential factor — carry Black-Scholes onto the heat equation. Solve diffusion, then undo the changes to read off the option price.

This is worth pausing on, because it is the whole reason a finance equation belongs in a PDE course. Black-Scholes is parabolic — same type as the heat equation, classified by the same test on its principal part you learned to apply. So everything you proved about diffusion transfers for free: the option value spreads its information smoothly, the smoothing effect irons out any kinks in the payoff the instant you step away from expiry, and the solution is built from a heat-kernel-style Gaussian average. The famous Black-Scholes pricing formula, with its cumulative-normal terms, is nothing more exotic than the heat equation's Gaussian solution written back in the original variables.

Backward in time, from the payoff

There is one twist that makes the finance version more than a relabelled heat equation, and it is genuinely interesting. For heat, you know the temperature now and march forward to find it later: an initial condition at t = 0. For an option, the situation is upside down. You know the value at the end — at expiry the option is worth a definite, simple amount set by the contract (a call option is worth whatever the stock exceeds the strike price by, and nothing if it falls short). What you want is the value today, before expiry. So you must solve the equation backward in time, marching from a known final state to an unknown earlier one.

Now alarm bells should be ringing, because you learned a hard rule: the backward heat equation is ill-posed. Running diffusion in reverse tries to un-smooth, amplifying the tiniest wiggle in the data into an explosion — it is the textbook example of a problem with no continuous dependence on its data. So how can Black-Scholes possibly be solved backward and still give a sensible price? The resolution is the reversed-time substitution from the previous section. Setting tau = T - t flips the arrow: as the calendar runs backward toward today, the new clock tau runs forward. In the tau variable the equation is the ordinary, well-posed, forward heat equation, started from the payoff as its initial data.

The bridge: Feynman-Kac

Why should a diffusion equation and a randomly jiggling stock be the same thing at all? The exact dictionary between them is the Feynman-Kac formula, one of the most beautiful bridges in the subject. It says the solution of a parabolic PDE at a point can be computed as an average over random paths: simulate the stock starting from today's price, let it diffuse along countless Brownian trajectories out to expiry, evaluate the contract's payoff at the end of each path, average those payoffs, and discount back at the rate r. That expected, discounted payoff is the solution of the Black-Scholes PDE. The deterministic equation and the random simulation are two faces of one object.

Feynman-Kac is what makes the backward-in-time picture click intuitively. The payoff is genuinely a condition at the end of every random path, so the natural way to value the option is to look forward to expiry along all possible futures and average — which is exactly forward-running diffusion in the tau clock. It also explains the practical workhorse of the industry: when an option is too complicated for a closed formula, you do not discretise the PDE at all, you just run the random paths on a computer and average. That Monte Carlo pricing is Feynman-Kac taken literally, and it is the same equivalence between diffusion and random walks that let you reinterpret the heat equation as the spreading cloud of a Brownian wanderer.

Honest edges of the model

It would be dishonest to leave you thinking the equation is the last word on markets. Black-Scholes rests on assumptions that are clean enough to give a solvable PDE and false enough to matter. It treats volatility sigma as a fixed constant; real volatility breathes, spiking in crashes. It assumes the price diffuses continuously with no jumps; real prices gap. It assumes you can hedge instantly and for free, with no transaction costs and unlimited borrowing. Each idealisation is the price of admission for turning a messy market into the tidy diffusion equation you can actually solve, and traders know exactly which ones to distrust.

The honest way the field copes is revealing, and it loops back to everything in this rung. The market's own quoted prices imply a volatility that is not constant — plot it and you get the famous "volatility smile" — which is the market telling you the constant-sigma model is wrong in a structured way. Fixing it leads to richer PDEs: let sigma depend on price and time and you get a variable-coefficient diffusion; add jumps and the equation grows an integral term, leaving the world of pure PDEs for partial integro-differential equations. Each repair makes the equation more faithful and harder to solve, the same trade you have watched everywhere from simple diffusion up to the open frontier of Navier-Stokes. The lesson of Black-Scholes is not that one tidy equation captures finance, but that the language of parabolic PDEs is the right place to even have the argument.