You can already simulate a stock by chaining random draws — that’s Monte Carlo, and the engine inside it was geometric Brownian motion. But where did that engine come from? Why does the GBM step subtract a mysterious ? Why does the price turn out lognormal rather than normal? This lesson is the conceptual peak of the whole topic: we write down the stochastic differential equation (SDE) that defines how a price moves in continuous time, watch ordinary calculus break the instant it touches a Brownian path, and meet Itô’s lemma — the one tool that repairs it, manufactures the correction, and hands you GBM as a solution rather than a recipe you took on faith.
Before you read — take a guess
A stock's price S is expected to drift upward at 8% per year. At roughly what rate does the LOGARITHM of that price drift?
What a stochastic differential equation says
A stochastic differential equation is a recipe for the next infinitesimally small move. Written out, the SDE for a process is:
Read it left to right as a sentence. Over the next tiny instant , the change is the sum of two pieces:
- The drift term — a predictable pull, proportional to the length of time . This is where the process wants to go: the steady, deterministic lean.
- The diffusion term — a random Brownian kick, proportional to the increment of a Wiener process (the continuous-time random walk from the last lesson). This is the noise: unpredictable, mean-zero, scaling with the volatility .
Analogy. Picture a sailboat crossing a bay. There’s a steady current carrying it in one direction — that’s the drift, smooth and predictable, it acts the same every second. And there are gusty winds shoving it left and right at random — that’s the diffusion, jittery and mean-zero. Where the boat ends up is the current’s steady push plus the accumulated buffeting of a thousand random gusts. The SDE is just that sentence written in math: position next instant = steady push + random shove.
Worked example — arithmetic Brownian motion. The simplest SDE takes constant coefficients:
Read it aloud: “over the next instant, drifts up by (a fixed lean) and gets jostled by (a random kick scaled by volatility).” There’s no on the right-hand side, so the drift and kick don’t depend on the current level — the process wanders the whole real line and can go negative. That’s fine for an interest-rate spread or a temperature, but as you’ll see, it’s wrong for a price, which is why finance reaches for a level-dependent SDE instead.
Match each piece of the SDE dX = μ dt + σ dW to what it does.
Pick a term, then click its definition.
Why ordinary calculus breaks
The chain rule you learned in school — — has a hidden assumption baked in: the path is smooth. Smooth means that over a tiny step, the change is tiny in proportion (), and anything quadratic () is negligibly tinier still, so you throw it away. That’s the whole trick of differential calculus: second-order terms vanish.
Brownian motion shatters that assumption. As you saw last lesson, a Wiener path is continuous but nowhere differentiable — you cannot draw a tangent line to it — and it has the strange property of quadratic variation equal to elapsed time. In the shorthand of stochastic calculus, that’s the box-calculus rule:
That first equation is the entire revolution. On a smooth path, is second-order and dies. On a Brownian path, is first-order — it equals , the same order as the drift — so it refuses to vanish. When you Taylor-expand a function of a Brownian path, the second-order term
does not disappear. It survives, contributing a real -sized drift that ordinary calculus never sees. That surviving term is Itô’s correction. Everything else in this lesson is a consequence of those two characters: .
Why does (dW)² = dt and not 0? (the one insight to keep)
Chop a time interval of length into steps. Each Brownian increment has variance , so a typical squared increment is about . Add up all of them and you get roughly — and crucially, as the random scatter around that total washes out, so the sum of squared increments converges to exactly , not zero. A smooth path’s squared increments would each be of size and sum to ; Brownian increments are so much rougher (each scales like , so its square is ) that their squares add up to a finite, non-zero total. That non-vanishing sum is quadratic variation , and writing it per-step gives . Hold onto this one fact and Itô’s lemma stops being magic — it’s just the second-order term that smooth calculus throws away but Brownian calculus can’t.
Itô’s lemma and the ½σ² correction
Itô’s lemma is the chain rule for stochastic paths. In words: when you transform a process through a smooth function , the change is everything ordinary calculus gives you plus one extra term — the surviving second-order piece . For where :
Compare it to the ordinary chain rule . Identical except for the bonus glued onto the drift — the fingerprint of .
The headline consequence for finance. Suppose a price follows the SDE (drift , volatility , both scaling with the price level). Now ask: how does move? Apply Itô’s lemma with , so and . The drift of becomes . In words:
A price with drift does not give a log-price that drifts at . The log drifts at .
The curvature of the log function (it’s concave — its second derivative is negative) bends the random kicks downward on average, and Itô’s term measures exactly how much: half the variance per unit time. The chart below makes it visible — slide the volatility up and watch the log-price drift sink below the price drift, with the shaded wedge between them growing quadratically as the correction balloons.
The blue line is the price drift μ — flat, it doesn't care about volatility. The orange line is the drift of the LOG price, μ − ½σ². Drag σ rightward and the orange line sinks: the shaded wedge between them is the Itô correction ½σ², and it grows quadratically with volatility. At σ = 0 there's no correction (smooth path, ordinary calculus); the more volatile the price, the harder its log is dragged down.
Worked numeric example. Take and . The correction is . So the log-price drift is . Read that again: the price is expected to grow at 8% a year, yet its log drifts at 0% — the typical (median) path is expected to go nowhere. The price’s average is propped up by a few lucky exponential winners, but the median investor, riding the typical path, treads water. That entire gap is the volatility tax, and Itô’s lemma is what put a number on it.
Why “½σ²” and not “σ”?
The correction is half the variance, not the volatility itself. Variance (), not standard deviation (), is what adds up linearly over time and what the squared Brownian increment delivers. The factor of is the coefficient on the second-order term of a Taylor expansion (). Put together: . This is why doubling volatility quadruples the drag, not doubles it — the wedge in the chart grows as .
Fill in the logic of Itô's correction.
Pick the right option for each blank, then check.
Ordinary calculus throws away (dW) squared because on a smooth path it is . But for Brownian motion (dW) squared equals , so the second-order term survives as an extra . Applied to log of a price, this means the log drifts at instead of μ.
Geometric Brownian motion as the solution
Now everything snaps together. The SDE for a stock price is geometric Brownian motion:
Drift and diffusion both scale with the price — a percentage move, not a fixed-dollar move, which is exactly why prices stay positive and behave the same on a $5 stock and a $5000 stock. Solving this SDE (apply Itô’s lemma to , then integrate the constant-drift result) gives the closed form:
Look at what’s inside the exponential. The log-price is just arithmetic Brownian motion with drift — the same correction the chart showed. And because is normal (a constant plus a scaled Wiener value), the price is lognormal: always positive, right-skewed, with a long upside tail and a floor at zero. That’s precisely the fan of paths you generated in Monte Carlo — now you know it falls straight out of the SDE.
Every thread is one realization of the GBM SDE — the steady drift μ tilts the whole cloud, while the Brownian diffusion σ flares it into a fan. Crank σ up and the spread widens, the right-skew exaggerates, and the typical (median) path sinks below the mean — that gap is the ½σ² drag the previous chart measured. Resimulate to draw a fresh batch of futures from the same SDE.
Worked example — mean versus median. For a lognormal price, the expected price grows like (the average, lifted by the lucky right-tail winners), but the median price grows like (the typical path). With , over one year: the expected price multiplies by (up 8.3%), while the median multiplies by (flat). The mean rises while the median stays put — the unmistakable signature of a right-skewed lognormal, and the reason “expected return” and “what you’ll typically get” are not the same number.
The GBM solution is S_t = S_0 · exp((μ − ½σ²)t + σ W_t). Why is the resulting price lognormal rather than normal?
The volatility drag, restated
Step back from the calculus and the same shows up wearing a different hat: volatility drag, the gap between the arithmetic mean return and the geometric (compounded) growth rate. They are the same number arriving from two directions.
The connection. Your wealth compounds at the geometric mean, not the arithmetic mean — and the geometric mean is lower by approximately . So a stock with an 8% arithmetic average return and 40% volatility compounds at only about . The arithmetic average is the drift ; the rate your money actually grows at is — the log-drift, the median path. This is the exact same ledger you’ll see again in Kelly bet-sizing and CAGR: maximizing long-run growth means maximizing , not .
Pitfall 1 — quoting the arithmetic mean and expecting to compound it. People average a fund’s yearly returns, get (say) 8%, and assume $100 grows to $108-ish a year on average over the long haul. It won’t. Volatility silently skims off every period’s compounding. The more a return series bounces, the wider the gap between the cheerful arithmetic average they quote and the duller geometric rate their account balance actually tracks.
Pitfall 2 — treating Itô’s correction as a “fudge factor.” The is not an arbitrary haircut someone bolted on to make the math work. It is the necessary second-order term that appears whenever you push a random process through a curved (nonlinear) transform — here, the log. On a linear transform () the correction is exactly zero; it only bites on curvature. Far from being a fudge, it’s the part of the answer ordinary calculus is structurally incapable of seeing.
A volatile fund reports an 8% arithmetic-average annual return. An investor expects to compound roughly 8% a year long term. What's the trap?
Putting it together
A stochastic differential equation is a recipe for the next infinitesimal move: a deterministic drift () plus a random diffusion () — a steady current plus gusty wind. Ordinary calculus breaks on a Brownian path because refuses to vanish, so the second-order Taylor term survives. Itô’s lemma is the chain rule that keeps that term, adding to the drift. The headline: a price with drift has a log-price that drifts at . Solving the GBM SDE gives — log-price is arithmetic Brownian motion, so the price is lognormal, with the mean () riding above the median (). And that same is volatility drag: the tax compounding pays for bouncing around.
Big picture
Itô, SDEs & the ½σ² correction — the whole structure
- Ito and SDEs
- What an SDE says
- dX = mu dt + sigma dW
- Drift: predictable pull, proportional to dt
- Diffusion: random Brownian kick, proportional to dW
- Sailboat: steady current plus gusty wind
- Why ordinary calculus breaks
- Brownian paths are nowhere differentiable
- Quadratic variation: (dW) squared = dt, not 0
- Second-order Taylor term survives as dt
- Ito lemma and the correction
- Chain rule plus an extra half sigma squared f double-prime dt
- Log of a price drifts at mu minus half sigma squared
- Correction grows quadratically with volatility
- Only nonzero for curved (nonlinear) transforms
- GBM as the solution
- dS = mu S dt + sigma S dW
- Solution: S0 exp((mu minus half sigma sq) t + sigma W)
- Log-price is arithmetic Brownian motion
- Price is lognormal: positive, right-skewed
- Mean e^(mu t) above median e^((mu minus half sigma sq) t)
- Volatility drag, restated
- Same half sigma squared as variance drag
- Geometric growth below arithmetic average
- Wealth compounds at mu minus half sigma squared
- Forward link: Kelly and CAGR
- What an SDE says
Recap: Itô's lemma & SDEs
A price has drift μ = 12% and volatility σ = 30%. At what rate does its LOG-price drift?
Check your answer to continue.
Next, in mean reversion and jumps, we leave the constant-drift world: the Ornstein–Uhlenbeck SDE adds a pull back toward a long-run level (perfect for interest rates and spreads), and Merton’s jump-diffusion bolts sudden gaps onto smooth GBM to capture crashes and fat tails — both written as SDEs you now know how to read.