Book 6D

© 2026 NeckPinch · www.neckpinch.com · All rights reserved.

Course 6Book 6D: Diffusions, Finance and ComputationChapter 2

Martingales and the Itô Integral

Conditional expectation, martingales and optional stopping, the Itô integral and Itô’s formula.

43 min read · Updated Oct 20, 2026

Read with Øksendal, Stochastic Differential Equations, chapters 3 (the Itô integral) and 4 (Itô's formula and the martingale representation theorem); Shreve, Stochastic Calculus for Finance II, chapters 2 (information and conditioning) and 4 (stochastic calculus); and Taylor II, chapter 11 (the stochastic integral and Itô's formula in the setting of Wiener measure). Karatzas and Shreve, Brownian Motion and Stochastic Calculus, is the thorough reference. This chapter proves the properties of conditional expectation, optional stopping for bounded stopping times and Doob's L2L^2 maximal inequality in discrete time, the Itô isometry, the computation of ∫B dB\int B\,dB, and Itô's formula for f(Bt)f(B_t) with f∈Cb3f \in C^3_b; the density of simple processes, Lévy's characterisation and Girsanov's theorem are stated.

In this chapter · 8 sections
  1. 2.1You cannot beat a fair game
  2. 2.2Conditional expectation
  3. 2.3Martingales and stopping times
  4. 2.4The Itô integral
  5. 2.5Itô's formula
  6. 2.6Changing the measure
  7. 2.7History
  8. 2.8Exercises
  9. ↗Free resources

Brownian paths have infinite length (6D.1 Brownian Motion), so the integral ∫0tf(s) dBs\int_0^tf(s)\,dB_s cannot be defined path by path, as a Riemann–Stieltjes integral. Kiyosi Itô's idea (1944) was to define it as a limit in L2(P)L^2(\mathbb{P}), using the independence of Brownian increments from the past, and to evaluate the integrand at the left endpoint of each time step: you choose how much to bet before you see the outcome. The resulting integral is a martingale, a fair game, and it obeys a new chain rule, Itô's formula, with an extra second-order term coming from (dB)2=dt(dB)^2 = dt:

df(Bt)=f′(Bt) dBt+12f′′(Bt) dt.df(B_t) = f'(B_t)\,dB_t + \frac12f''(B_t)\,dt.

That extra term is where the Laplacian enters probability, and through it the heat equation. It is also the term that makes the Black–Scholes equation (6D.6 Black–Scholes) a heat equation rather than a transport equation.

By the end of this chapter you will be able to:

  • define conditional expectation, as an L2L^2 projection and in general, and compute with it;
  • define martingales and stopping times, prove optional stopping for bounded stopping times, and explain why the doubling strategy fails;
  • prove Doob's L2L^2 maximal inequality;
  • define the Itô integral, prove the Itô isometry, and compute ∫0tB dB=12(Bt2−t)\int_0^tB\,dB = \frac12(B_t^2 - t);
  • prove Itô's formula for f(Bt)f(B_t), and use its multidimensional form for Itô processes;
  • state Girsanov's theorem and verify it for the one-dimensional marginal.

You cannot beat a fair game

In the world Model The martingale betting system

In eighteenth-century France a "martingale" was a betting system: bet one unit on a fair coin; after each loss, double the bet; stop at the first win. Whenever you win, you recover all previous losses plus one unit, so the strategy seems to guarantee a profit of 11. The catch is that the losing streak before the first win can be long, and with kk losses in a row you have lost 2k−12^k - 1 units. Your expected capital at the stopping time is 11, but your expected maximum loss along the way is infinite, and with any finite bankroll or table limit the strategy has expected gain exactly zero (Exercise 2.15).

Jean Ville borrowed the word in 1939 for the mathematical notion of a fair game, and Joseph Doob built the theory of martingales in the 1940s, culminating in his 1953 book Stochastic Processes. The optional stopping theorem of this chapter is the precise statement that no strategy of stopping a fair game, using only past information and within bounded time, changes its expected value. In finance this is the absence of arbitrage: under the right probability measure, discounted prices are martingales, and no trading strategy makes money from nothing (6D.6 Black–Scholes).

Conditional expectation

Let (Ω,F,P)(\Omega, \mathcal F, \mathbb{P}) be a probability space and G⊆F\mathcal G \subseteq \mathcal F a sub-σ\sigma-algebra, representing partial information: an event in G\mathcal G is one whose occurrence we know.

Definition 2.1 Conditional expectation

For X∈L1(P)X \in L^1(\mathbb{P}), the conditional expectation E[X∣G]\mathbb{E}[X\mid\mathcal G] is the (almost surely unique) G\mathcal G-measurable integrable random variable YY with

E[Y1A]=E[X1A]for every A∈G.\mathbb{E}[Y\mathbf 1_A] = \mathbb{E}[X\mathbf 1_A] \quad\text{for every } A \in \mathcal G.

Existence. For X∈L2X \in L^2, L2(Ω,G,P)L^2(\Omega, \mathcal G, \mathbb{P}) is a closed subspace of L2(Ω,F,P)L^2(\Omega, \mathcal F, \mathbb{P}), and the orthogonal projection YY of XX onto it (4A.5 Hilbert Spaces and Lax–Milgram) satisfies E[(X−Y)Z]=0\mathbb{E}[(X - Y)Z] = 0 for every G\mathcal G-measurable Z∈L2Z \in L^2, in particular Z=1AZ = \mathbf 1_A. So E[X∣G]\mathbb{E}[X\mid\mathcal G] is the best prediction of XX in mean square given the information G\mathcal G. For X≥0X \geq 0 in L1L^1, the measure ν(A)=E[X1A]\nu(A) = \mathbb{E}[X\mathbf 1_A] on G\mathcal G is absolutely continuous with respect to P\mathbb{P}, and Y=dν/dPY = d\nu/d\mathbb{P} (Radon–Nikodym, 3A.4 Measures, Probability and Weights); split a general XX into positive and negative parts. Uniqueness: if Y,Y′Y, Y' both qualify, E[(Y−Y′)1A]=0\mathbb{E}[(Y - Y')\mathbf 1_A] = 0 for A={Y>Y′}∈GA = \{Y > Y'\} \in \mathcal G, so Y≤Y′Y \leq Y' almost surely, and symmetrically.

Proposition 2.2 Properties of conditional expectation

For integrable XX, YY and sub-σ\sigma-algebras H⊆G\mathcal H \subseteq \mathcal G:

  1. (linearity and positivity) E[aX+bY∣G]=aE[X∣G]+bE[Y∣G]\mathbb{E}[aX + bY\mid\mathcal G] = a\mathbb{E}[X\mid\mathcal G] + b\mathbb{E}[Y\mid\mathcal G]; if X≥0X \geq 0 then E[X∣G]≥0\mathbb{E}[X\mid\mathcal G] \geq 0;
  2. (tower) E[E[X∣G]∣H]=E[X∣H]\mathbb{E}\big[\mathbb{E}[X\mid\mathcal G]\mid\mathcal H\big] = \mathbb{E}[X\mid\mathcal H], and E[E[X∣G]]=EX\mathbb{E}\big[\mathbb{E}[X\mid\mathcal G]\big] = \mathbb{E}X;
  3. (taking out what is known) if ZZ is G\mathcal G-measurable and ZXZX integrable, E[ZX∣G]=Z E[X∣G]\mathbb{E}[ZX\mid\mathcal G] = Z\,\mathbb{E}[X\mid\mathcal G];
  4. (independence) if XX is independent of G\mathcal G, E[X∣G]=EX\mathbb{E}[X\mid\mathcal G] = \mathbb{E}X;
  5. (Jensen) for convex φ\varphi with φ(X)\varphi(X) integrable, φ(E[X∣G])≤E[φ(X)∣G]\varphi\big(\mathbb{E}[X\mid\mathcal G]\big) \leq \mathbb{E}[\varphi(X)\mid\mathcal G].

Proof. Each is checked against the definition. (1) Both sides are G\mathcal G-measurable with the same integrals over A∈GA \in \mathcal G; positivity is the uniqueness argument. (2) For A∈H⊆GA \in \mathcal H \subseteq \mathcal G, E[E[X∣G]1A]=E[X1A]\mathbb{E}\big[\mathbb{E}[X\mid\mathcal G]\mathbf 1_A\big] = \mathbb{E}[X\mathbf 1_A]; take H\mathcal H trivial for the second statement. (3) For Z=1BZ = \mathbf 1_B with B∈GB \in \mathcal G, E[1BE[X∣G]1A]=E[X1A∩B]=E[1BX1A]\mathbb{E}[\mathbf 1_B\mathbb{E}[X\mid\mathcal G]\mathbf 1_A] = \mathbb{E}[X\mathbf 1_{A\cap B}] = \mathbb{E}[\mathbf 1_BX\mathbf 1_A]; extend to simple ZZ by linearity and to general ZZ by monotone or dominated convergence. (4) E[X1A]=EX⋅P(A)\mathbb{E}[X\mathbf 1_A] = \mathbb{E}X\cdot\mathbb{P}(A) by independence, which is the integral of the constant EX\mathbb{E}X over AA. (5) A convex φ\varphi is the supremum of countably many affine functions ℓk(x)=akx+bk\ell_k(x) = a_kx + b_k; by (1), ℓk(E[X∣G])=E[ℓk(X)∣G]≤E[φ(X)∣G]\ell_k(\mathbb{E}[X\mid\mathcal G]) = \mathbb{E}[\ell_k(X)\mid\mathcal G] \leq \mathbb{E}[\varphi(X)\mid\mathcal G] almost surely, for all kk simultaneously; take the supremum.

Martingales and stopping times

A filtration is an increasing family of σ\sigma-algebras (Ft)t≥0(\mathcal F_t)_{t\geq0}, the information available at time tt. For Brownian motion we use Ft=σ(Bs:s≤t)\mathcal F_t = \sigma(B_s : s \leq t) (completed by the null sets). A process XtX_t is adapted if each XtX_t is Ft\mathcal F_t-measurable: its value at time tt is known at time tt.

Definition 2.3 Martingales

An adapted process XX with E∣Xt∣<∞\mathbb{E}|X_t| < \infty is a martingale if E[Xt∣Fs]=Xs\mathbb{E}[X_t\mid\mathcal F_s] = X_s for all s≤ts \leq t; a submartingale if E[Xt∣Fs]≥Xs\mathbb{E}[X_t\mid\mathcal F_s] \geq X_s; a supermartingale if ≤\leq. The same definitions apply in discrete time, t∈{0,1,2,…}t \in \{0, 1, 2, \ldots\}.

Example 2.4 Brownian martingales

The processes BtB_t, Bt2−tB_t^2 - t and exp⁡(θBt−θ22t)\exp\big(\theta B_t - \frac{\theta^2}{2}t\big) (θ∈R\theta \in \mathbb{R}) are martingales. For s<ts < t, write Bt=Bs+ΔB_t = B_s + \Delta with Δ=Bt−Bs∼N(0,t−s)\Delta = B_t - B_s \sim N(0, t - s) independent of Fs\mathcal F_s. Then E[Bt∣Fs]=Bs+EΔ=Bs\mathbb{E}[B_t\mid\mathcal F_s] = B_s + \mathbb{E}\Delta = B_s; E[Bt2∣Fs]=Bs2+2BsEΔ+EΔ2=Bs2+t−s\mathbb{E}[B_t^2\mid\mathcal F_s] = B_s^2 + 2B_s\mathbb{E}\Delta + \mathbb{E}\Delta^2 = B_s^2 + t - s; and E[eθBt∣Fs]=eθBsEeθΔ=eθBseθ2(t−s)/2\mathbb{E}[e^{\theta B_t}\mid\mathcal F_s] = e^{\theta B_s}\mathbb{E}e^{\theta\Delta} = e^{\theta B_s}e^{\theta^2(t-s)/2}, using properties 3 and 4 and the Gaussian moment generating function. The third is the exponential martingale; its expectation is 11, and it will be the density in Girsanov's theorem.

A stopping time is a random time τ\tau with {τ≤t}∈Ft\{\tau \leq t\} \in \mathcal F_t for all tt: whether you have stopped by time tt is decided by what you have seen by time tt. Hitting times of closed sets by continuous adapted processes are stopping times; "the last time BB is at 00 before time 11" is not.

Theorem 2.5 Optional stopping for bounded stopping times

Let (Xn)(X_n) be a discrete-time martingale and τ\tau a stopping time with τ≤N\tau \leq N. Then EXτ=EX0\mathbb{E}X_\tau = \mathbb{E}X_0. For a submartingale, EXτ≥EX0\mathbb{E}X_\tau \geq \mathbb{E}X_0.

Proof. Write Xτ=X0+∑k=0N−11{τ>k}(Xk+1−Xk)X_\tau = X_0 + \sum_{k=0}^{N-1}\mathbf 1_{\{\tau > k\}}(X_{k+1} - X_k) (the increments are counted while you are still playing). The event {τ>k}={τ≤k}c\{\tau > k\} = \{\tau \leq k\}^c is in Fk\mathcal F_k, so by the tower property and taking out what is known,

E[1{τ>k}(Xk+1−Xk)]=E[1{τ>k} E[Xk+1−Xk∣Fk]]=0,\mathbb{E}\big[\mathbf 1_{\{\tau>k\}}(X_{k+1} - X_k)\big] = \mathbb{E}\big[\mathbf 1_{\{\tau>k\}}\,\mathbb{E}[X_{k+1} - X_k\mid\mathcal F_k]\big] = 0,

or ≥0\geq 0 for a submartingale.

The proof is a theorem about betting: 1{τ>k}\mathbf 1_{\{\tau > k\}} is a strategy (play or not) decided with the information at time kk, and a strategy applied to a fair game gives a fair game. The same proof shows that ∑kHk(Xk+1−Xk)\sum_kH_k(X_{k+1} - X_k) is a martingale for every bounded adapted "betting strategy" HH: the martingale transform, the discrete Itô integral. For continuous-time martingales with continuous paths and bounded stopping times, optional stopping follows by approximating τ\tau from above by stopping times with values in a finite grid (statement; Karatzas and Shreve, section 1.3). For unbounded τ\tau it can fail (Exercise 2.15); one usually applies it to τ∧n\tau\wedge n and lets n→∞n \to \infty with a convergence theorem.

Theorem 2.6 Doob's L2L^2 maximal inequality

For a discrete-time martingale (Xk)(X_k) with EXn2<∞\mathbb{E}X_n^2 < \infty,

E[max⁡k≤nXk2]≤4 E[Xn2].\mathbb{E}\Big[\max_{k\leq n}X_k^2\Big] \leq 4\,\mathbb{E}\big[X_n^2\big].

The same holds for continuous-time martingales with continuous paths, with sup⁡t≤T\sup_{t\leq T} in place of max⁡k≤n\max_{k\leq n}.

Proof. Let M=max⁡k≤n∣Xk∣M = \max_{k\leq n}|X_k| and, for λ>0\lambda > 0, τ=min⁡{k:∣Xk∣≥λ}\tau = \min\{k : |X_k| \geq \lambda\}. By Jensen's inequality (property 5), ∣Xk∣≤E[∣Xn∣∣Fk]|X_k| \leq \mathbb{E}[|X_n|\mid\mathcal F_k], and {τ=k}∈Fk\{\tau = k\} \in \mathcal F_k, so

λ P(M≥λ)=∑k≤nλ P(τ=k)≤∑k≤nE[∣Xk∣1{τ=k}]≤∑k≤nE[∣Xn∣1{τ=k}]=E[∣Xn∣1{M≥λ}].\lambda\,\mathbb{P}(M \geq \lambda) = \sum_{k\leq n}\lambda\,\mathbb{P}(\tau = k) \leq \sum_{k\leq n}\mathbb{E}\big[|X_k|\mathbf 1_{\{\tau=k\}}\big] \leq \sum_{k\leq n}\mathbb{E}\big[|X_n|\mathbf 1_{\{\tau=k\}}\big] = \mathbb{E}\big[|X_n|\mathbf 1_{\{M\geq\lambda\}}\big].

Multiply by 22, integrate in λ\lambda from 00 to ∞\infty, and use EM2=∫0∞2λP(M≥λ) dλ\mathbb{E}M^2 = \int_0^\infty2\lambda\mathbb{P}(M \geq \lambda)\,d\lambda and Fubini: EM2≤2E[∣Xn∣M]≤2(EXn2)1/2(EM2)1/2\mathbb{E}M^2 \leq 2\mathbb{E}\big[|X_n|M\big] \leq 2\big(\mathbb{E}X_n^2\big)^{1/2}\big(\mathbb{E}M^2\big)^{1/2}. Since EM2≤∑kEXk2<∞\mathbb{E}M^2 \leq \sum_k\mathbb{E}X_k^2 < \infty, divide. For continuous paths, apply the discrete inequality on finite subsets of [0,T][0, T] increasing to a dense set, and use monotone convergence.

The Itô integral

Fix T>0T > 0. Let Lad2\mathcal L^2_{ad} be the space of processes f(t,ω)f(t, \omega), 0≤t≤T0 \leq t \leq T, that are adapted (and jointly measurable in (t,ω)(t, \omega), more precisely progressively measurable) with E∫0Tf(t)2 dt<∞\mathbb{E}\int_0^Tf(t)^2\,dt < \infty. A simple process has the form

ϕ(t)=∑j=0k−1ej 1(tj,tj+1](t),0=t0<t1<⋯<tk=T,\phi(t) = \sum_{j=0}^{k-1}e_j\,\mathbf 1_{(t_j, t_{j+1}]}(t), \qquad 0 = t_0 < t_1 < \cdots < t_k = T,

with each eje_j an Ftj\mathcal F_{t_j}-measurable random variable in L2L^2. Its Itô integral is the obvious sum, with the integrand frozen at the left endpoint:

∫0Tϕ dB=∑jej(Btj+1−Btj).\int_0^T\phi\,dB = \sum_je_j\big(B_{t_{j+1}} - B_{t_j}\big).
Theorem 2.7 The Itô isometry

For simple ϕ\phi, E∫0Tϕ dB=0\mathbb{E}\int_0^T\phi\,dB = 0 and

E[(∫0Tϕ dB)2]=E∫0Tϕ(t)2 dt.\mathbb{E}\Big[\Big(\int_0^T\phi\,dB\Big)^2\Big] = \mathbb{E}\int_0^T\phi(t)^2\,dt.

Proof. Let Δj=Btj+1−Btj\Delta_j = B_{t_{j+1}} - B_{t_j}, independent of Ftj\mathcal F_{t_j}, with mean 00 and variance tj+1−tjt_{j+1} - t_j. Then E[ejΔj]=E[ejE[Δj∣Ftj]]=0\mathbb{E}[e_j\Delta_j] = \mathbb{E}\big[e_j\mathbb{E}[\Delta_j\mid\mathcal F_{t_j}]\big] = 0. For the square, expand (∑jejΔj)2\big(\sum_je_j\Delta_j\big)^2. Diagonal terms: E[ej2Δj2]=E[ej2E[Δj2∣Ftj]]=E[ej2](tj+1−tj)\mathbb{E}[e_j^2\Delta_j^2] = \mathbb{E}\big[e_j^2\mathbb{E}[\Delta_j^2\mid\mathcal F_{t_j}]\big] = \mathbb{E}[e_j^2](t_{j+1} - t_j). Cross terms with i<ji < j: eiejΔie_ie_j\Delta_i is Ftj\mathcal F_{t_j}-measurable, so E[eiejΔiΔj]=E[eiejΔi E[Δj∣Ftj]]=0\mathbb{E}[e_ie_j\Delta_i\Delta_j] = \mathbb{E}\big[e_ie_j\Delta_i\,\mathbb{E}[\Delta_j\mid\mathcal F_{t_j}]\big] = 0. Summing, E(∫ϕ dB)2=∑jE[ej2](tj+1−tj)=E∫0Tϕ2 dt\mathbb{E}\big(\int\phi\,dB\big)^2 = \sum_j\mathbb{E}[e_j^2](t_{j+1} - t_j) = \mathbb{E}\int_0^T\phi^2\,dt.

The left-endpoint rule is what makes the cross terms vanish: each bet eje_j is placed before the increment Δj\Delta_j it multiplies is revealed. So the Itô integral is a linear isometry from simple processes, with the norm of L2(Ω×[0,T])L^2(\Omega\times[0, T]), into L2(Ω)L^2(\Omega).

Extension. Simple processes are dense in Lad2\mathcal L^2_{ad} (statement; Øksendal, Lemma 3.1.5. For ff adapted with continuous bounded paths it is elementary: ϕn=∑jf(tj)1(tj,tj+1]\phi_n = \sum_jf(t_j)\mathbf 1_{(t_j, t_{j+1}]} on finer and finer partitions converges to ff in L2(Ω×[0,T])L^2(\Omega\times[0, T]) by dominated convergence.) A linear isometry extends uniquely to the closure (4A.1 Banach Spaces and Bounded Operators), so for f∈Lad2f \in \mathcal L^2_{ad}

∫0Tf dB=lim⁡n→∞∫0Tϕn dBin L2(P),\int_0^Tf\,dB = \lim_{n\to\infty}\int_0^T\phi_n\,dB \quad\text{in } L^2(\mathbb{P}),

for any simple ϕn→f\phi_n \to f in Lad2\mathcal L^2_{ad}, and the isometry E(∫f dB)2=E∫f2 dt\mathbb{E}\big(\int f\,dB\big)^2 = \mathbb{E}\int f^2\,dt and E∫f dB=0\mathbb{E}\int f\,dB = 0 persist.

Proposition 2.8 The Itô integral is a continuous martingale

For f∈Lad2f \in \mathcal L^2_{ad}, the process It=∫0tf dBI_t = \int_0^tf\,dB (that is, ∫0Tf1[0,t] dB\int_0^Tf\mathbf 1_{[0,t]}\,dB) has a version with continuous paths, and it is a martingale with EIt2=E∫0tf2 ds\mathbb{E}I_t^2 = \mathbb{E}\int_0^tf^2\,ds.

Proof. For simple ϕ\phi, ItI_t is a finite sum of terms ej(Btj+1∧t−Btj∧t)e_j(B_{t_{j+1}\wedge t} - B_{t_j\wedge t}), continuous in tt, and the martingale property follows from the computation in the proof of Theorem 2.7 (conditioning on Fs\mathcal F_s kills the increments after ss). For general ff, choose simple ϕn\phi_n with E∫0T(ϕn−f)2≤8−n\mathbb{E}\int_0^T(\phi_n - f)^2 \leq 8^{-n}. Then I(n)−I(n+1)I^{(n)} - I^{(n+1)} is a continuous martingale, and by Doob's inequality and the isometry,

P(sup⁡t≤T∣It(n)−It(n+1)∣>2−n)≤4n⋅4 E∫0T(ϕn−ϕn+1)2≤C2−n.\mathbb{P}\Big(\sup_{t\leq T}|I^{(n)}_t - I^{(n+1)}_t| > 2^{-n}\Big) \leq 4^n\cdot4\,\mathbb{E}\int_0^T(\phi_n - \phi_{n+1})^2 \leq C2^{-n}.

By Borel–Cantelli the I(n)I^{(n)} converge uniformly on [0,T][0, T] almost surely, to a continuous process which equals ItI_t almost surely for each tt. Martingale properties pass to L2L^2 limits.

Example 2.9 ∫B dB\int B\,dB

Let Π\Pi be a partition of [0,t][0, t] and ϕ=∑iBti1(ti,ti+1]\phi = \sum_iB_{t_i}\mathbf 1_{(t_i, t_{i+1}]}, which converges to BB in Lad2\mathcal L^2_{ad} as ∣Π∣→0|\Pi| \to 0. Using a(b−a)=12(b2−a2)−12(b−a)2a(b - a) = \frac12(b^2 - a^2) - \frac12(b - a)^2,

∑iBti(Bti+1−Bti)=12∑i(Bti+12−Bti2)−12∑i(Bti+1−Bti)2=12Bt2−12QΠ.\sum_iB_{t_i}(B_{t_{i+1}} - B_{t_i}) = \frac12\sum_i\big(B_{t_{i+1}}^2 - B_{t_i}^2\big) - \frac12\sum_i(B_{t_{i+1}} - B_{t_i})^2 = \frac12B_t^2 - \frac12Q_\Pi.

By 6D.1 Brownian Motion, QΠ→tQ_\Pi \to t in L2L^2. So

∫0tBs dBs=12Bt2−12t.\int_0^tB_s\,dB_s = \frac12B_t^2 - \frac12t.

Ordinary calculus would give 12Bt2\frac12B_t^2. The correction −12t-\frac12t is the quadratic variation, and it is needed: the left side is a martingale with mean zero, and E12Bt2=t2\mathbb{E}\frac12B_t^2 = \frac t2. Evaluating at midpoints instead gives 12Bt2\frac12B_t^2 (Exercise 2.17): that is the Stratonovich integral, which obeys the ordinary chain rule but is not a martingale.

Itô's formula

Theorem 2.10 Itô's formula

For f∈C3(R)f \in C^3(\mathbb{R}) with f′f', f′′f'', f′′′f''' bounded, almost surely for all t≥0t \geq 0,

f(Bt)=f(B0)+∫0tf′(Bs) dBs+12∫0tf′′(Bs) ds.f(B_t) = f(B_0) + \int_0^tf'(B_s)\,dB_s + \frac12\int_0^tf''(B_s)\,ds.

Proof. Fix tt and a partition Π\Pi of [0,t][0, t], write Δi=Bti+1−Bti\Delta_i = B_{t_{i+1}} - B_{t_i}, δi=ti+1−ti\delta_i = t_{i+1} - t_i. By Taylor's theorem,

f(Bt)−f(B0)=∑if′(Bti)Δi+12∑if′′(Bti)Δi2+∑iRi,∣Ri∣≤∥f′′′∥∞6∣Δi∣3.f(B_t) - f(B_0) = \sum_if'(B_{t_i})\Delta_i + \frac12\sum_if''(B_{t_i})\Delta_i^2 + \sum_iR_i, \qquad |R_i| \leq \frac{\|f'''\|_\infty}{6}|\Delta_i|^3.

First sum. It is the Itô integral of the simple process ∑if′(Bti)1(ti,ti+1]\sum_if'(B_{t_i})\mathbf 1_{(t_i, t_{i+1}]}, which converges to f′(Bs)f'(B_s) in Lad2\mathcal L^2_{ad} as ∣Π∣→0|\Pi| \to 0 (by continuity of paths and dominated convergence, as f′f' is bounded). By the isometry, the first sum converges in L2L^2 to ∫0tf′(Bs) dBs\int_0^tf'(B_s)\,dB_s.

Second sum. Write Δi2=δi+(Δi2−δi)\Delta_i^2 = \delta_i + (\Delta_i^2 - \delta_i). The part with δi\delta_i is a Riemann sum of the continuous function s↦f′′(Bs)s \mapsto f''(B_s) and converges to ∫0tf′′(Bs) ds\int_0^tf''(B_s)\,ds for every path. For the rest, let gi=f′′(Bti)g_i = f''(B_{t_i}), bounded and Fti\mathcal F_{t_i}-measurable. The terms gi(Δi2−δi)g_i(\Delta_i^2 - \delta_i) have mean zero and are uncorrelated (for i<ji < j, condition on Ftj\mathcal F_{t_j}: E[Δj2−δj∣Ftj]=0\mathbb{E}[\Delta_j^2 - \delta_j\mid\mathcal F_{t_j}] = 0), so

E[(∑igi(Δi2−δi))2]=∑iE[gi2] E[(Δi2−δi)2]≤∥f′′∥∞2∑i2δi2≤2∥f′′∥∞2 t∣Π∣→0.\mathbb{E}\Big[\Big(\sum_ig_i(\Delta_i^2 - \delta_i)\Big)^2\Big] = \sum_i\mathbb{E}\big[g_i^2\big]\,\mathbb{E}\big[(\Delta_i^2 - \delta_i)^2\big] \leq \|f''\|_\infty^2\sum_i2\delta_i^2 \leq 2\|f''\|_\infty^2\,t|\Pi| \to 0.

Remainder. E∑i∣Ri∣≤∥f′′′∥∞6∑iE∣Δi∣3=C∑iδi3/2≤Ct∣Π∣1/2→0\mathbb{E}\sum_i|R_i| \leq \frac{\|f'''\|_\infty}{6}\sum_i\mathbb{E}|\Delta_i|^3 = C\sum_i\delta_i^{3/2} \leq Ct|\Pi|^{1/2} \to 0.

So, along a sequence of partitions with mesh tending to zero, the right side converges in L1L^1 to ∫0tf′(B) dB+12∫0tf′′(B) ds\int_0^tf'(B)\,dB + \frac12\int_0^tf''(B)\,ds, while the left side does not depend on Π\Pi. This proves the formula almost surely for each fixed tt; both sides are continuous in tt (the stochastic integral by Proposition 2.8), so it holds for all tt simultaneously, almost surely.

The formula holds for all f∈C2f \in C^2 (approximate ff by functions in Cb3C^3_b, and localise with stopping times to handle growth; Øksendal, section 4.1). Note the structure: f(Bt)−12∫0tf′′(Bs) dsf(B_t) - \frac12\int_0^tf''(B_s)\,ds is a martingale. The operator 12d2dx2\frac12\frac{d^2}{dx^2} appearing here is the generator of Brownian motion, and this martingale property is the bridge from probability to PDE that 6D.3 Stochastic Differential Equations and Feynman–Kac exploits.

Itô processes and the general formula. An Itô process is

Xt=X0+∫0tμs ds+∫0tσs dBs,in shorthanddXt=μt dt+σt dBt,X_t = X_0 + \int_0^t\mu_s\,ds + \int_0^t\sigma_s\,dB_s, \qquad\text{in shorthand}\quad dX_t = \mu_t\,dt + \sigma_t\,dB_t,

with adapted μ\mu, σ\sigma (integrable and square-integrable in time). For several Brownian motions B1,…,BmB^1, \ldots, B^m and XX with values in Rn\mathbb{R}^n, dXi=μi dt+σαi dBαdX^i = \mu^i\,dt + \sigma^i_\alpha\,dB^\alpha. The general Itô formula (statement; Øksendal, Theorem 4.2.1) says that for f(t,x)f(t, x) of class C1,2C^{1,2},

df(t,Xt)=∂tf dt+∂if dXi+12∂ijf dXi dXj,df(t, X_t) = \partial_tf\,dt + \partial_if\,dX^i + \frac12\partial_{ij}f\,dX^i\,dX^j,

where the products are computed by the rules dt⋅dt=dt⋅dBα=0dt\cdot dt = dt\cdot dB^\alpha = 0 and dBα dBβ=δαβdtdB^\alpha\,dB^\beta = \delta^{\alpha\beta}dt, so dXi dXj=(σσT)ij dtdX^i\,dX^j = (\sigma\sigma^T)^{ij}\,dt. The multiplication table is the quadratic variation theorem in shorthand, extended to independent Brownian motions (whose cross variation vanishes). A useful special case is the product rule d(XY)=X dY+Y dX+dX dYd(XY) = X\,dY + Y\,dX + dX\,dY.

Example 2.11 Geometric Brownian motion

Let St=S0exp⁡(σBt+(μ−12σ2)t)S_t = S_0\exp\big(\sigma B_t + (\mu - \frac12\sigma^2)t\big), so St=f(t,Bt)S_t = f(t, B_t) with f(t,x)=S0eσx+(μ−σ2/2)tf(t, x) = S_0e^{\sigma x + (\mu - \sigma^2/2)t}. Then ∂tf=(μ−12σ2)f\partial_tf = (\mu - \frac12\sigma^2)f, ∂xf=σf\partial_xf = \sigma f, ∂xxf=σ2f\partial_{xx}f = \sigma^2f, and Itô's formula gives

dSt=(μ−12σ2)St dt+σSt dBt+12σ2St dt=μSt dt+σSt dBt.dS_t = \Big(\mu - \frac12\sigma^2\Big)S_t\,dt + \sigma S_t\,dB_t + \frac12\sigma^2S_t\,dt = \mu S_t\,dt + \sigma S_t\,dB_t.

This is the model of a stock price with expected return μ\mu and volatility σ\sigma used in 6D.6 Black–Scholes. The −12σ2-\frac12\sigma^2 in the exponent is the Itô correction: the median of StS_t grows at rate μ−12σ2\mu - \frac12\sigma^2, while its mean grows at rate μ\mu (ESt=S0eμt\mathbb{E}S_t = S_0e^{\mu t}, by the exponential martingale). With σ=0.2\sigma = 0.2 and μ=0.05\mu = 0.05, the typical path grows at 3%3\% a year while the average grows at 5%5\%, the difference being made up by rare large outcomes.

Changing the measure

Two more theorems complete the toolkit; we state them.

Theorem 2.12 Lévy's characterisation (statement)

A continuous martingale MtM_t with M0=0M_0 = 0 such that Mt2−tM_t^2 - t is also a martingale is a Brownian motion.

Theorem 2.13 Girsanov's theorem (statement)

Let θ\theta be a constant (or a bounded adapted process), and

ZT=exp⁡(−θBT−12θ2T),dQ=ZT dP on FT.Z_T = \exp\Big(-\theta B_T - \frac12\theta^2T\Big), \qquad d\mathbb{Q} = Z_T\,d\mathbb{P} \text{ on } \mathcal F_T.

Then Q\mathbb{Q} is a probability measure, and under Q\mathbb{Q} the process B~t=Bt+θt\tilde B_t = B_t + \theta t, 0≤t≤T0 \leq t \leq T, is a Brownian motion.

Under P\mathbb{P}, B~\tilde B is a Brownian motion with drift θ\theta. Girsanov's theorem says a drift can be removed by re-weighting the paths, with the exponential martingale as weight. For the one-dimensional marginal this is a completion of the square (Exercise 2.19); for the whole path it follows from Lévy's characterisation. In finance this is the passage from the real-world measure, under which stocks drift at their expected return μ\mu, to the risk-neutral measure, under which they drift at the interest rate rr (6D.6 Black–Scholes). Robert Cameron and William Martin found the deterministic-drift case in 1944, and Igor Girsanov the general one in 1960.

Where this goes Itô calculus in the rest of Course 6

6D.3 Stochastic Differential Equations and Feynman–Kac uses Itô's formula to solve stochastic differential equations and to prove the Feynman–Kac formula; 6D.6 Black–Scholes uses the product rule, Girsanov and the martingale property to price options; 6D.8 Stochastic Control and the HJB Equation uses Itô's formula for controlled processes to derive the Hamilton–Jacobi–Bellman equation. On a Riemannian manifold, Brownian motion is characterised by the martingale property of f(Xt)−12∫0tΔgf(Xs) dsf(X_t) - \frac12\int_0^t\Delta_gf(X_s)\,ds (Exercise 2.21), which is how probabilists build it and how heat kernel estimates on manifolds (9B.7 The Heat Equation on a Manifold) acquire probabilistic proofs.

History

Jean Ville introduced martingales into probability in 1939, and Joseph Doob developed their theory, with the maximal inequality and the stopping theorems, in the 1940s and in his 1953 book. Kiyosi Itô defined the stochastic integral in 1944 and proved his formula in 1951. In 2000, a sealed envelope that the young mathematician Wolfgang Doeblin had deposited with the Paris Academy of Sciences in 1940, shortly before his death as a soldier, was opened; it contained a version of the change of variables formula for diffusions, which is why some authors (Shreve among them) speak of the Itô–Doeblin formula. Ruslan Stratonovich introduced his integral in the 1960s. Cameron and Martin (1944) and Girsanov (1960) proved the change of measure theorems.

Recall Where we stand

Conditional expectation E[X∣G]\mathbb{E}[X\mid\mathcal G] is the G\mathcal G-measurable variable with the same integrals over G\mathcal G-sets: an L2L^2 projection, with the tower, known-factor, independence and Jensen properties. Martingales are fair games; bounded stopping cannot change their expectation (optional stopping), and Emax⁡Xk2≤4EXn2\mathbb{E}\max X_k^2 \leq 4\mathbb{E}X_n^2 (Doob). The Itô integral, built from left-endpoint sums, is an isometry E(∫f dB)2=E∫f2 dt\mathbb{E}(\int f\,dB)^2 = \mathbb{E}\int f^2\,dt and a continuous martingale; ∫0tB dB=12(Bt2−t)\int_0^tB\,dB = \frac12(B_t^2 - t). Itô's formula df(B)=f′(B) dB+12f′′(B) dtdf(B) = f'(B)\,dB + \frac12f''(B)\,dt follows from Taylor's theorem and (dB)2=dt(dB)^2 = dt, and in general df=∂tf dt+∂if dXi+12∂ijf dXidXjdf = \partial_tf\,dt + \partial_if\,dX^i + \frac12\partial_{ij}f\,dX^idX^j. Geometric Brownian motion solves dS=μS dt+σS dBdS = \mu S\,dt + \sigma S\,dB. Girsanov's theorem removes a drift by the density e−θBT−θ2T/2e^{-\theta B_T - \theta^2T/2}. 6D.3 Stochastic Differential Equations and Feynman–Kac solves stochastic differential equations and connects their expectations to parabolic PDE.

Exercises

Exercise 2.14 Conditioning Brownian motion

For s<ts < t, compute E[Bt3∣Fs]\mathbb{E}[B_t^3\mid\mathcal F_s], and deduce that Bt3−3tBtB_t^3 - 3tB_t is a martingale.

Solution

With Bt=Bs+ΔB_t = B_s + \Delta: E[(Bs+Δ)3∣Fs]=Bs3+3Bs2EΔ+3BsEΔ2+EΔ3=Bs3+3(t−s)Bs\mathbb{E}[(B_s + \Delta)^3\mid\mathcal F_s] = B_s^3 + 3B_s^2\mathbb{E}\Delta + 3B_s\mathbb{E}\Delta^2 + \mathbb{E}\Delta^3 = B_s^3 + 3(t - s)B_s. So E[Bt3−3tBt∣Fs]=Bs3+3(t−s)Bs−3tBs=Bs3−3sBs\mathbb{E}[B_t^3 - 3tB_t\mid\mathcal F_s] = B_s^3 + 3(t - s)B_s - 3tB_s = B_s^3 - 3sB_s.

Exercise 2.15 Why doubling fails

In the doubling strategy on a fair coin, let XnX_n be the gambler's net gain after nn tosses (with play stopped at the first win), and τ\tau the time of the first win. (a) Show that (Xn)(X_n) is a martingale and Xτ=1X_\tau = 1 almost surely, so EXτ≠EX0\mathbb{E}X_\tau \neq \mathbb{E}X_0. Which hypothesis of Theorem 2.5 fails? (b) If the gambler must stop after NN tosses whatever happens, compute EXτ∧N\mathbb{E}X_{\tau\wedge N} directly.

Solution

(a) The bet at time kk is Hk=2kH_k = 2^k if no win yet (decided at time kk), so XX is a martingale transform of a fair game, hence a martingale. At the first win at toss τ\tau, the net is 2τ−1−(1+2+⋯+2τ−2)=12^{\tau-1} - (1 + 2 + \cdots + 2^{\tau-2}) = 1. τ\tau is finite but unbounded. (b) Xτ∧N=1X_{\tau\wedge N} = 1 with probability 1−2−N1 - 2^{-N}, and −(2N−1)-(2^N - 1) with probability 2−N2^{-N} (all NN tosses lost). So EXτ∧N=1−2−N−(1−2−N)=0\mathbb{E}X_{\tau\wedge N} = 1 - 2^{-N} - (1 - 2^{-N}) = 0, as optional stopping says.

Exercise 2.16 The Laplace transform of a hitting time

For a>0a > 0 and λ>0\lambda > 0, apply optional stopping to the martingale eθBt−θ2t/2e^{\theta B_t - \theta^2t/2} with θ=2λ\theta = \sqrt{2\lambda} at the bounded times τa∧n\tau_a\wedge n, and let n→∞n \to \infty to show Ee−λτa=e−a2λ\mathbb{E}e^{-\lambda\tau_a} = e^{-a\sqrt{2\lambda}}.

Solution

Eexp⁡(θBτa∧n−λ(τa∧n))=1\mathbb{E}\exp(\theta B_{\tau_a\wedge n} - \lambda(\tau_a\wedge n)) = 1. Up to τa\tau_a, B≤aB \leq a, so the integrand is at most eθae^{\theta a}; as n→∞n \to \infty it tends to eθa−λτae^{\theta a - \lambda\tau_a} on {τa<∞}\{\tau_a < \infty\} (probability 11, 6D.1 Brownian Motion). By dominated convergence, eθaEe−λτa=1e^{\theta a}\mathbb{E}e^{-\lambda\tau_a} = 1.

Exercise 2.17 The midpoint rule

For a partition of [0,t][0, t] with midpoints mi=ti+ti+12m_i = \frac{t_i + t_{i+1}}{2}, show that ∑iBmi(Bti+1−Bti)→12Bt2\sum_iB_{m_i}(B_{t_{i+1}} - B_{t_i}) \to \frac12B_t^2 in L2L^2. (Write Bmi=Bti+(Bmi−Bti)B_{m_i} = B_{t_i} + (B_{m_i} - B_{t_i}) and use Example 2.9.)

Solution

The sum is ∑BtiΔi+∑(Bmi−Bti)Δi\sum B_{t_i}\Delta_i + \sum(B_{m_i} - B_{t_i})\Delta_i. The first part tends to 12(Bt2−t)\frac12(B_t^2 - t). Write Δi=(Bmi−Bti)+(Bti+1−Bmi)\Delta_i = (B_{m_i} - B_{t_i}) + (B_{t_{i+1}} - B_{m_i}); the second part is ∑(Bmi−Bti)2+∑(Bmi−Bti)(Bti+1−Bmi)\sum(B_{m_i} - B_{t_i})^2 + \sum(B_{m_i} - B_{t_i})(B_{t_{i+1}} - B_{m_i}). The first of these is a quadratic variation over half-intervals, tending to t2\frac t2; the second has mean zero and variance ∑δi2⋅δi2→0\sum\frac{\delta_i}{2}\cdot\frac{\delta_i}{2} \to 0. Total: 12Bt2\frac12B_t^2.

Exercise 2.18 Moments from Itô's formula

Use Itô's formula for f(x)=x4f(x) = x^4 (justified by localisation) and take expectations to show EBt4=3t2\mathbb{E}B_t^4 = 3t^2. Then show Var⁡(∫0tBs dBs)=t22\operatorname{Var}\big(\int_0^tB_s\,dB_s\big) = \frac{t^2}{2} in two ways: from the isometry and from Example 2.9.

Solution

d(B4)=4B3 dB+6B2 dtd(B^4) = 4B^3\,dB + 6B^2\,dt; the stochastic integral has mean zero, so EBt4=6∫0tEBs2 ds=6∫0ts ds=3t2\mathbb{E}B_t^4 = 6\int_0^t\mathbb{E}B_s^2\,ds = 6\int_0^ts\,ds = 3t^2. Isometry: E∫0tBs2 ds=t22\mathbb{E}\int_0^tB_s^2\,ds = \frac{t^2}{2}. Directly: Var⁡(12(Bt2−t))=14Var⁡(Bt2)=14(3t2−t2)=t22\operatorname{Var}\big(\frac12(B_t^2 - t)\big) = \frac14\operatorname{Var}(B_t^2) = \frac14(3t^2 - t^2) = \frac{t^2}{2}.

Exercise 2.19 Girsanov for one time

With ZT=e−θBT−θ2T/2Z_T = e^{-\theta B_T - \theta^2T/2}, show that EP[ZT]=1\mathbb{E}_{\mathbb{P}}[Z_T] = 1 and that for bounded gg, EP[ZTg(BT+θT)]=E[g(T N)]\mathbb{E}_{\mathbb{P}}\big[Z_Tg(B_T + \theta T)\big] = \mathbb{E}\big[g(\sqrt T\,N)\big] with N∼N(0,1)N \sim N(0, 1): under Q\mathbb{Q}, BT+θT∼N(0,T)B_T + \theta T \sim N(0, T).

Solution

EP[ZTg(BT+θT)]=∫g(x+θT)e−θx−θ2T/2e−x2/(2T)2πTdx\mathbb{E}_{\mathbb{P}}[Z_Tg(B_T + \theta T)] = \int g(x + \theta T)e^{-\theta x - \theta^2T/2}\frac{e^{-x^2/(2T)}}{\sqrt{2\pi T}}dx, and −θx−θ2T2−x22T=−(x+θT)22T-\theta x - \frac{\theta^2T}{2} - \frac{x^2}{2T} = -\frac{(x + \theta T)^2}{2T}. Substitute y=x+θTy = x + \theta T: ∫g(y)e−y2/(2T)2πTdy\int g(y)\frac{e^{-y^2/(2T)}}{\sqrt{2\pi T}}dy. With g=1g = 1, EZT=1\mathbb{E}Z_T = 1.

Exercise 2.20 The exit time from a ball, rigorously

For Brownian motion in Rn\mathbb{R}^n started at xx with ∣x∣<R|x| < R, use Itô's formula to show that ∣Bt∣2−nt|B_t|^2 - nt is a martingale, apply optional stopping at τ∧k\tau\wedge k, and let k→∞k \to \infty to prove Exτ=R2−∣x∣2n\mathbb{E}_x\tau = \frac{R^2 - |x|^2}{n} (completing 6D.1 Brownian Motion).

Solution

d∣B∣2=∑i(2Bi dBi+dt)=2B⋅dB+n dtd|B|^2 = \sum_i(2B^i\,dB^i + dt) = 2B\cdot dB + n\,dt, so ∣Bt∣2−nt−∣x∣2|B_t|^2 - nt - |x|^2 is a stochastic integral, a martingale. Optional stopping at the bounded time τ∧k\tau\wedge k: Ex∣Bτ∧k∣2−nEx(τ∧k)=∣x∣2\mathbb{E}_x|B_{\tau\wedge k}|^2 - n\mathbb{E}_x(\tau\wedge k) = |x|^2. As k→∞k \to \infty, E(τ∧k)→Eτ\mathbb{E}(\tau\wedge k) \to \mathbb{E}\tau (monotone convergence) and ∣Bτ∧k∣2→R2|B_{\tau\wedge k}|^2 \to R^2 boundedly (τ<∞\tau < \infty and ∣B∣≤R|B| \leq R before τ\tau). So R2−nExτ=∣x∣2R^2 - n\mathbb{E}_x\tau = |x|^2.

Exercise 2.21 Rehearsal: Brownian motion on a Riemannian manifold

In local coordinates on (M,g)(M, g), let σ(x)\sigma(x) be a matrix with σσT=(gij)\sigma\sigma^T = (g^{ij}), and let XtX_t solve dXi=σαi(X) dBα−12gjk(X)Γjki(X) dtdX^i = \sigma^i_\alpha(X)\,dB^\alpha - \frac12g^{jk}(X)\Gamma^i_{jk}(X)\,dt. (a) Use the general Itô formula to show that for smooth ff,

df(Xt)=∂if σαi dBα+12Δgf(Xt) dt,Δgf=gij(∂ijf−Γijk∂kf).df(X_t) = \partial_if\,\sigma^i_\alpha\,dB^\alpha + \frac12\Delta_gf(X_t)\,dt, \qquad \Delta_gf = g^{ij}\big(\partial_{ij}f - \Gamma^k_{ij}\partial_kf\big).

So f(Xt)−12∫0tΔgf(Xs) dsf(X_t) - \frac12\int_0^t\Delta_gf(X_s)\,ds is a (local) martingale: XX is Brownian motion on MM, whose transition density is the heat kernel of ∂t−12Δg\partial_t - \frac12\Delta_g (9B.7 The Heat Equation on a Manifold). (b) Why is the drift term −12gjkΓjki-\frac12g^{jk}\Gamma^i_{jk} needed? (Compare with 6C.7 Harmonic Maps and Their Heat Flow, where Δgxk=−gijΓijk\Delta_gx^k = -g^{ij}\Gamma^k_{ij}.)

Solution

(a) df=∂if dXi+12∂ijf dXidXjdf = \partial_if\,dX^i + \frac12\partial_{ij}f\,dX^idX^j, with dXidXj=σαiσαj dt=gij dtdX^idX^j = \sigma^i_\alpha\sigma^j_\alpha\,dt = g^{ij}\,dt. So df=∂ifσαi dBα−12∂ifgjkΓjki dt+12gij∂ijf dtdf = \partial_if\sigma^i_\alpha\,dB^\alpha - \frac12\partial_ifg^{jk}\Gamma^i_{jk}\,dt + \frac12g^{ij}\partial_{ij}f\,dt, and the dtdt terms are 12gij(∂ijf−Γijk∂kf)\frac12g^{ij}(\partial_{ij}f - \Gamma^k_{ij}\partial_kf) after renaming indices. (b) Without it the generator would be 12gij∂ij\frac12g^{ij}\partial_{ij}, which is not coordinate-invariant. The drift makes the generator the invariant operator 12Δg\frac12\Delta_g; it is 12Δg\frac12\Delta_g of the coordinate functions, the tension field of the coordinate chart.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read. Links checked Oct 20, 2026.

© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.