
Inmathematical finance, theBlack–Scholes equation, also called theBlack–Scholes–Merton equation, is apartial differential equation (PDE) governing the price evolution of derivatives under theBlack–Scholes model.[1] Broadly speaking, the term may refer to a similar PDE that can be derived for a variety ofoptions, or more generally,derivatives.

Consider a stock paying no dividends. Now construct any derivative that has a fixed maturation time in the future, and at maturation, it has payoff that depends on the values taken by the stock at that moment (such as European call or put options). Then the price of the derivative satisfies
where is the price of the option as a function of stock priceS and timet,r is the risk-free interest rate, and is thevolatility of the stock.
The key financial insight behind the equation is that, under the model assumption of africtionless market, one can perfectlyhedge the option by buying and selling theunderlying asset in just the right way and consequently “eliminate risk". This hedge, in turn, implies that there is only one right price for the option, as returned by theBlack–Scholes formula.
The equation has a concrete interpretation that is often used by practitioners and is the basis for the common derivation given in the next subsection. The equation can be rewritten in the form:
The left-hand side consists of a "time decay" term, the change in derivative value with respect to time, calledtheta, and a term involving the second spatial derivativegamma, the convexity of the derivative value with respect to the underlying value. The right-hand side is the riskless return from a long position in the derivative and a short position consisting of shares of the underlying asset.
Black and Scholes's insight was that the portfolio represented by the right-hand side is riskless: thus the equation says that the riskless return over any infinitesimal time interval can be expressed as the sum of theta and a term incorporating gamma. For an option, theta is typically negative, reflecting the loss in value due to having less time for exercising the option (for a European call on an underlying without dividends, it is always negative). Gamma is typically positive and so the gamma term reflects the gains in holding the option. The equation states that over any infinitesimal time interval the loss from theta and the gain from the gamma term must offset each other so that the result is a return at the riskless rate.
From the viewpoint of the option issuer, e.g. an investment bank, the gamma term is the cost of hedging the option. (Since gamma is the greatest when the spot price of the underlying is near the strike price of the option, the seller's hedging costs are the greatest in that circumstance.)
Per the model assumptions above, the price of theunderlying asset (typically a stock) follows ageometric Brownian motion.[2] That is
whereW is a stochastic variable (Brownian motion). Note thatW, and consequently its infinitesimal incrementdW, represents the only source of uncertainty in the price history of the stock. Intuitively,W(t) is aprocess that "wiggles up and down" in such a random way that its expected change over any time interval is 0. (In addition, itsvariance over timeT is equal toT; seeWiener process § Basic properties); a good discrete analogue forW is asimple random walk. Thus the above equation states that the infinitesimal rate of return on the stock has an expected value ofμ dt and a variance of.
The payoff of an option (or any derivative contingent to stockS) at maturity is known. To find its value at an earlier time we need to know how evolves as a function of and. ByItô's lemma for two variables we have
Now consider a portfolio consisting of a short option and long shares at time. The value of these holdings is
As changes with time, the position in is continually updated. We implicitly assume that the portfolio contains a cash account to accommodate buying and selling shares, making the portfolioself-financing. Therefore, we only need to consider the total profit or loss from changes in the values of the holdings:
Substituting and into the expression for:
Over a time period, for small enough, we see that
Note that the terms have vanished. Thus uncertainty has been eliminated and the portfolio is effectively riskless, i.e. adelta-hedge. The rate of return on this portfolio must be equal to the rate of return on any other riskless instrument; otherwise, there would be opportunities for arbitrage. Now assuming the risk-free rate of return is we must have over the time period:
If we now substitute our formulas for and we obtain:
Simplifying, we arrive at the Black–Scholes partial differential equation:
With the assumptions of theBlack–Scholes model, this second order partial differential equation holds for any type of option as long as its price function is twice differentiable with respect to and once with respect to.
Here is an alternative derivation that can be utilized in situations where it is initially unclear what the hedging portfolio should be. (For a reference, see 6.4 of Shreve vol II).[3]
In the Black–Scholes model, assuming we have picked the risk-neutral probability measure, the underlying stock priceS(t) is assumed to evolve as a geometric Brownian motion:
Since thisstochastic differential equation (SDE) shows the stock price evolution isMarkovian, any derivative on this underlying is a function of timet and the stock price at the current time,S(t). Then an application of Itô's lemma gives an SDE for the discounted derivative process, which should be a martingale. In order for that to hold, the drift term must be zero, which implies the Black—Scholes PDE.
This derivation is basically an application of theFeynman–Kac formula and can be attempted whenever the underlying asset(s) evolve according to given SDE(s).
Once the Black–Scholes PDE, with boundary and terminal conditions, is derived for a derivative, the PDE can be solved numerically using standard methods ofnumerical analysis, such as a type offinite difference method.[4] In certain cases, it is possible to solve for an exact formula, such as in the case of a European call, which was done by Black and Scholes.
The solution is conceptually simple. Since in the Black–Scholes model, the underlying stock price follows a geometric Brownian motion, the distribution of, conditional on its price at time, is alog-normal distribution. Then the price of the derivative is just discounted expected payoff, which may be computed analytically when the payoff function is analytically tractable, or numerically if not.
To do this for acall option, recall the PDE above hasboundary conditions[5]
The last condition gives the value of the option at the time that the option matures. Other conditions are possible asS goes to 0 or infinity. For example, common conditions utilized in other situations are to choose delta to vanish asS goes to 0 and gamma to vanish asS goes to infinity; these will give the same formula as the conditions above (in general, differing boundary conditions will give different solutions, so some financial insight should be utilized to pick suitable conditions for the situation at hand).
The solution of the PDE gives the value of the option at any earlier time,. To solve the PDE we recognize that it is aCauchy–Euler equation which can be transformed into adiffusion equation by introducing the change-of-variable transformation
Then the Black–Scholes PDE becomes adiffusion equation
The terminal condition now becomes an initial condition
whereH(x) is theHeaviside step function. The Heaviside function corresponds to enforcement of the boundary data in theS,t coordinate system that requires whent =T,
assuming bothS,K > 0. With this assumption, it is equivalent to the max function over allx in the real numbers, with the exception ofx = 0. The equality above between themax function and the Heaviside function is in the sense of distributions because it does not hold forx = 0. Though subtle, this is important because the Heaviside function need not be finite atx = 0, or even defined for that matter. For more on the value of the Heaviside function atx = 0, see the section "Zero Argument" in the articleHeaviside step function.
Using the standardconvolution method for solving adiffusion equation given an initial value function,u(x, 0), we have
which, after some manipulation, yields
where is thestandard normalcumulative distribution function and
These are the same solutions (up to time translation) that were obtained byFischer Black in 1976.[6]
Reverting to the original set of variables yields the above stated solution to the Black–Scholes equation.
which gives simplyS when reverting to the original coordinates.