Itô's Lemma: The Chain Rule for Random Processes
A working derivation of Itô's lemma from Taylor expansion, why dW² = dt, and what goes wrong with the ordinary chain rule.
If you have ever tried to differentiate a function of a stock price and gotten the wrong answer, you have run into Itô’s lemma. Ordinary calculus is not enough. When the variable you are differentiating is itself a stochastic process with a term, you get an extra piece that the deterministic chain rule misses. That extra piece is the entire reason stochastic calculus exists.
This article walks through the derivation from scratch. We start from a Taylor expansion, drop the small terms, and arrive at Itô’s lemma. Along the way, we will see why , why this is not a careless approximation, and what changes when the underlying process has a drift term.
The Problem with Ordinary Calculus
Suppose is a Brownian motion with drift:
where and are constants. Now suppose for some smooth function . What is ?
If you reach for the chain rule from ordinary calculus, you write . This is wrong. It misses a term. Specifically, for , ordinary calculus gives . But the actual change in over has a piece involving , which is proportional to . Ordinary calculus ignores this because in the deterministic case . In the stochastic case, is not zero.
To get the correct answer, we have to be more careful.
Taylor Expansion to Second Order
Expand around :
The reason we keep the second-order term and drop the third is that is of order , so we need second-order Taylor to capture terms of size . The third-order term is , which is order (because ), which vanishes in the limit.
So we have
Now compute using the multiplication table for stochastic differentials. Recall:
These are formal rules. The justification is that , so , while . For our process,
The drift term squared vanishes, the cross term vanishes, and only the diffusion squared survives. This is the key step.
Substituting back:
That is Itô’s lemma for the case where has constant drift and constant diffusion . The extra term is the Itô correction. It is the price you pay for working in a world where is not zero.
The General Statement
For a process satisfying the SDE
and a twice-differentiable function , Itô’s lemma states:
This is the formula you will see in every stochastic calculus textbook. The five terms are: time derivative, drift contribution, diffusion contribution, second-derivative (Itô correction), and the diffusion noise. Memorize this. Or at least internalize the structure: time, drift, second-order diffusion correction, then the stochastic term.
A common shorthand is to write
where the last term follows the rule . This compact form is what people mean when they say “treat ”.
Worked Example:
Let (so , ). Then . Apply Itô’s lemma with , , , :
Integrating from to :
This is a famous identity. It says that the quadratic variation of Brownian motion over equals — which is exactly what we mean by . The Itô integral is a martingale with mean zero, so , recovering the variance of .
Worked Example: for GBM
For satisfying , take . We have , , no explicit time dependence. Itô’s lemma gives:
This is the clean log-returns result that makes GBM tractable. The Itô correction shifts the drift of down by half the variance. It is the reason that option pricing formulas include the term and not just .
Why the Correction Matters
The Itô correction is not a small effect. For a stock with 30% volatility, it is 4.5% per year. Over a five-year horizon, that compounds to a 25% reduction in the median terminal price. Get this term wrong and your option prices are off by tens of percent.
The intuition for the correction is convexity. The function is concave. A random walk around a concave function has lower average value than the value at the average position. The Itô correction is precisely this convexity adjustment. For a convex function, the correction goes the other way.
The same logic explains the famous Jensen’s inequality for lognormal distributions. The mean of is less than the log of the mean of by exactly . This is not a coincidence. It is the same Itô correction, expressed as an integral.
Multi-Dimensional Itô’s Lemma
When is a vector of processes driven by multiple correlated Brownian motions, Itô’s lemma has a quadratic form. Let satisfy
where is a vector of independent Brownian motions. For a function ,
The trace term is the multi-dimensional Itô correction. Written out, it is the sum over of . The intuition is that you sum second derivatives weighted by the instantaneous covariance matrix of .
For two processes and driven by the same Brownian motion with correlation , the cross-term appears. This is why correlation matters for the Itô correction in multi-asset problems.
The Multiplication Table
The cleanest way to remember stochastic calculus rules is the multiplication table for differentials:
| 0 | 0 | |
| 0 |
All products are evaluated in the sense, and only survives. Equivalently, when computing for , you keep only .
This table is exact in the limit of fine partitions. It is not an approximation. Itô’s integral is defined as the limit of left-endpoint Riemann sums, and in that limit the cross terms vanish and only the piece survives. The proof uses the fact that Brownian motion has independent increments and that in the limit.
Why Not Just Use Stratonovich?
There is an alternative stochastic integral called the Stratonovich integral, denoted , which obeys the ordinary chain rule. Specifically, if you define as the limit of midpoint Riemann sums instead of left-endpoint sums, you get the relation
where the last term is just like ordinary calculus. The Stratonovich calculus is convenient for geometric problems (stochastic differential geometry, mechanics) but has one big drawback: Stratonovich integrals are not martingales.
In financial modeling, we care about martingales because risk-neutral pricing relies on them. The discounted stock price is a martingale under . The discounted wealth of a self-financing trading strategy is a martingale. These facts are essential for pricing and hedging, and they fail under Stratonovich. So we use Itô integrals. We pay the price of the Itô correction in exchange for keeping martingale properties.
This is a real tradeoff. Some authors (especially in physics) prefer Stratonovich. In finance, Itô wins because of the martingale property. If you are doing mathematical finance, use Itô.
Itô’s Lemma vs. the Product Rule
A related formula is the Itô product rule. For two processes and ,
The extra term comes from the product rule in Taylor expansion. If and are both Itô processes, the cross term is the covariance term: where is the instantaneous correlation of the driving Brownian motions.
This is the basis of integration by parts for stochastic integrals. It is also how you derive the dynamics of products like (the discounted stock) when and have correlated dynamics.
A Common Pitfall
Here is a mistake I see often. Someone wants to compute for satisfying . They apply the ordinary rule (since is “small”) and conclude that has the dynamics . This is wrong. The correct answer from Itô’s lemma is
The drift is , not . The extra is the Itô correction. For a high-vol asset, this is not negligible. It is why leveraged ETFs have surprising long-term drift properties.
What to Take Away
Itô’s lemma is the chain rule for stochastic processes. The key extra term is the second-derivative piece , which captures the fact that is of order , not zero. The lemma lets us compute the dynamics of any smooth function of an Itô process.
In practice, you will use Itô’s lemma to:
- Solve SDEs (the GBM log-trick uses it).
- Find the dynamics of derivative prices (Black-Scholes derivation).
- Change variables (volatility transformations, change of numeraire).
- Construct martingales (stochastic exponentials, density processes).
The reference here is Øksendal (2003), Stochastic Differential Equations, Chapter 4; Glasserman (2004), Section 3.3; and Hull (2018), Ch. 14 (Itô’s lemma). Øksendal is the cleaner source for the math. Glasserman writes with finance readers in mind and is more pragmatic. Read all three. The first time through, the multiplication table and the second-derivative term are the only things that should feel new. Everything else is regular calculus plus a small fix.
A Code Illustration: Verifying Itô’s Lemma Numerically
Theory is fine. Let us verify Itô’s lemma with a quick simulation. We test the identity by simulating fine Brownian paths and checking the drift.
import numpy as np
def verify_ito_squared_brownian(n_paths=20000, T=1.0, n_steps=10000, seed=0):
rng = np.random.default_rng(seed)
dt = T / n_steps
dW = rng.standard_normal((n_paths, n_steps)) * np.sqrt(dt)
W = np.concatenate([np.zeros((n_paths, 1)), np.cumsum(dW, axis=1)], axis=1)
X2 = W[:, -1]**2
ito_integral = np.sum(W[:, :-1] * dW, axis=1)
empirical_drift = (X2 - 2 * ito_integral).mean() / T
print(f"Empirical drift of W^2 - 2∫W dW: {empirical_drift:.4f}")
print(f"Theoretical drift: {1.0:.4f}")
verify_ito_squared_brownian()
Running this gives a drift close to 1.0 (within Monte Carlo error), confirming that . The Monte Carlo error scales as , so 20,000 paths is enough to see the result cleanly. This is the kind of sanity check you should run whenever you are unsure about a stochastic identity.
Geometric Brownian Motion via Itô
A more interesting verification is the GBM log-trick. Under , we claimed . The drift should be , not .
def verify_gbm_log_drift(mu=0.08, sigma=0.30, T=1.0, n_paths=20000, n_steps=2000, seed=1):
rng = np.random.default_rng(seed)
dt = T / n_steps
S0 = 100.0
log_S = np.zeros(n_paths)
for _ in range(n_steps):
dW = rng.standard_normal(n_paths) * np.sqrt(dt)
log_S += (mu - 0.5 * sigma**2) * dt + sigma * dW
final_log = log_S
empirical_drift = (final_log / T).mean()
theoretical_drift = mu - 0.5 * sigma**2
print(f"Empirical drift of log(S_T)/T: {empirical_drift:.4f}")
print(f"Theoretical drift: {theoretical_drift:.4f}")
verify_gbm_log_drift()
Output: roughly 0.0350 empirical vs 0.0350 theoretical. The half-vol-squared correction is exactly what makes this work. If you forgot the and used as the log drift, your simulated paths would have the wrong terminal distribution and your option prices would be biased.
A Historical Aside
Kiyosi Itô derived his lemma in the 1940s and 1950s, building on work by Kiyoshi Kunita, Paul Lévy, and Joseph Doob. The original papers were in Japanese and were not widely read in the West until the 1970s. The Black-Scholes paper (1973) does not even mention Itô by name. Scholes later said he and Black re-derived what they needed from scratch, calling it “stochastic calculus” without knowing it had a name.
This is a recurring theme in mathematical finance. People reinvent the math they need. Sometimes they do it well. Often they reinvent it poorly. The advantage of learning Itô properly is that you stop reinventing and start using a well-tested tool. The disadvantage is that you have to learn it once.
The “Predictable” Bit
One last technical point that often confuses people. In the Itô integral , the integrand is evaluated at , and has independent increments. This means the integrand is independent of in the limit. This is what makes the Itô integral a martingale. It is also why we evaluate at the left endpoint of each subinterval — to keep this independence.
Stratonovich integrals evaluate at the midpoint, which gives a non-predictable integrand that depends on . This breaks the martingale property but recovers the ordinary chain rule. The two are related by a correction term. The conversion is
The right-hand side is Stratonovich, the left-hand side is Itô. The correction is exactly half the time integral of the derivative — the same Itô correction as before. So Stratonovich and Itô integrals differ by a deterministic shift.
In finance, we always use Itô. In physics and engineering, Stratonovich is more natural because the chain rule is simpler. The conversion is well-defined. Pick the calculus that suits your problem.