Skip to content
homeaboutworkprojectsthesiswritingresume
Loading
~/blog/the-stochastic-integral0%dark
  1. home/
  2. writing/
  3. The Stochastic Integral

24 May 2026 · 6 min read · updated 13 June 2026

The Stochastic Integral

The stochastic integral pairs a predictable position with the increments of a square-integrable martingale. On simple integrands it is a martingale transform, and the Ito isometry equates its second moment with an ordinary integral against the quadratic variation. Completeness of L^2 extends the construction to every predictable integrand of finite energy, and the integral remains a martingale with a computable quadratic variation.

  • 6 equations
  • 7 results
  • 11 connections
  • stochastic-processes
  • probability
On this page▾
  • The setting and the simple integral
  • The Ito isometry
  • Extension to every integrand of finite energy

6 min left

  • The setting and the simple integral2m
  • The Ito isometry1m
  • Extension to every integrand of finite energy3m

A trading gain is a sum of positions times price increments, and its continuous-time limit is the stochastic integral. The construction rests on a single analytic idea, continuity. Define the integral on simple integrands where it is plainly a martingale, prove that it preserves a norm, and extend by continuity to every integrand of finite energy.

#The setting and the simple integral

Fix a finite horizon TTT and a cadlag (right-continuous with left limits) square-integrable martingale MMM on [0,T][0,T][0,T] with quadratic variation ⟨M⟩\qv⟨M⟩, the predictable increasing process for which M2−⟨M⟩M^2-\qvM2−⟨M⟩ is a martingale, so E[⟨M⟩T]=E[MT2]−E[M02]<∞\E[\qv_T]=\E[M_T^2]-\E[M_0^2]<\inftyE[⟨M⟩T​]=E[MT2​]−E[M02​]<∞. The cadlag hypothesis makes the pathwise supremum measurable and licenses the continuous-time Doob inequality used in the extension. Let H\mathcal HH be the space of predictable processes HHH of finite energy,

∥H∥M2=E ⁣[∫0THs2 d⟨M⟩s]<∞.(1)\norm{H}_M^2=\E\!\left[\int_0^T H_s^2\,d\qv_s\right]<\infty. \tag{1}∥H∥M2​=E[∫0T​Hs2​d⟨M⟩s​]<∞.(1)

For a simple predictable H=∑i=1mhi 1(ti,ti+1]H=\sum_{i=1}^m h_i\,\ind_{(t_i,t_{i+1}]}H=∑i=1m​hi​1(ti​,ti+1​]​ over an ordered partition 0≤t1<t2<⋯<tm+1≤T0\le t_1<t_2<\dots<t_{m+1}\le T0≤t1​<t2​<⋯<tm+1​≤T, with each hih_ihi​ bounded and Fti\F_{t_i}Fti​​-measurable, define

(H⋅M)t=∑i=1mhi (Mti+1∧t−Mti∧t).(2)(H\cdot M)_t=\sum_{i=1}^{m} h_i\,\big(M_{t_{i+1}\wedge t}-M_{t_i\wedge t}\big). \tag{2}(H⋅M)t​=i=1∑m​hi​(Mti+1​∧t​−Mti​∧t​).(2)
Proposition1

For simple predictable HHH, the process H⋅MH\cdot MH⋅M is a square-integrable martingale.

Proof

Square integrability is immediate, since each (H⋅M)t(H\cdot M)_t(H⋅M)t​ is the finite sum ∑ihi(Mti+1∧t−Mti∧t)\sum_i h_i(M_{t_{i+1}\wedge t}-M_{t_i\wedge t})∑i​hi​(Mti+1​∧t​−Mti​∧t​) of L2L^2L2 terms, since hih_ihi​ is bounded and the MMM increments lie in L2L^2L2, so ∥(H⋅M)t∥2≤∑i∥hi∥∞ ∥Mti+1∧t−Mti∧t∥2<∞\norm{(H\cdot M)_t}_2\le\sum_i\norm{h_i}_\infty\,\norm{M_{t_{i+1}\wedge t}-M_{t_i\wedge t}}_2<\infty∥(H⋅M)t​∥2​≤∑i​∥hi​∥∞​∥Mti+1​∧t​−Mti​∧t​∥2​<∞.

It remains to check the martingale property, which is the martingale-transform identity for each summand. Fix s<ts<ts<t. For the iii-th summand and a=ti∧ta=t_i\wedge ta=ti​∧t, b=ti+1∧tb=t_{i+1}\wedge tb=ti+1​∧t, we claim E[hi(Mb−Ma)∣Fs]=hi(Mb∧s−Ma∧s)\E[h_i(M_b-M_a)\mid\F_s]=h_i(M_{b\wedge s}-M_{a\wedge s})E[hi​(Mb​−Ma​)∣Fs​]=hi​(Mb∧s​−Ma∧s​). If s≤tis\le t_is≤ti​ then hih_ihi​ is unknown at time sss, but conditioning first on Fti⊇Fs\F_{t_i}\supseteq\F_sFti​​⊇Fs​ makes hih_ihi​ measurable and leaves hi E[Mb−Ma∣Fti]=0h_i\,\E[M_b-M_a\mid\F_{t_i}]=0hi​E[Mb​−Ma​∣Fti​​]=0, so by the tower property the increment collapses to 000, matching Mb∧s−Ma∧s=0M_{b\wedge s}-M_{a\wedge s}=0Mb∧s​−Ma∧s​=0. If ti<s≤ti+1t_i<s\le t_{i+1}ti​<s≤ti+1​ then hih_ihi​ and Ma∧s=MtiM_{a\wedge s}=M_{t_i}Ma∧s​=Mti​​ are Fs\F_sFs​-measurable, so the elapsed part hi(Ms−Mti)h_i(M_s-M_{t_i})hi​(Ms​−Mti​​) is frozen while E[hi(Mb−Ms)∣Fs]=hi E[Mb−Ms∣Fs]=0\E[h_i(M_b-M_s)\mid\F_s]=h_i\,\E[M_b-M_s\mid\F_s]=0E[hi​(Mb​−Ms​)∣Fs​]=hi​E[Mb​−Ms​∣Fs​]=0 by the martingale property of MMM. If s>ti+1s>t_{i+1}s>ti+1​ the whole summand is Fs\F_sFs​-measurable. Summing the three cases gives E[(H⋅M)t∣Fs]=(H⋅M)s\E[(H\cdot M)_t\mid\F_s]=(H\cdot M)_sE[(H⋅M)t​∣Fs​]=(H⋅M)s​.

#The Ito isometry

Theorem2

For simple predictable HHH,

E[(H⋅M)T2]=E ⁣[∫0THs2 d⟨M⟩s]=∥H∥M2.(3)\E\big[(H\cdot M)_T^2\big]=\E\!\left[\int_0^T H_s^2\,d\qv_s\right]=\norm{H}_M^2. \tag{3}E[(H⋅M)T2​]=E[∫0T​Hs2​d⟨M⟩s​]=∥H∥M2​.(3)
Proof

Expand the square of Equation (2) at t=Tt=Tt=T into diagonal and off-diagonal terms. For i<ji<ji<j the cross term hihj(Mti+1−Mti)(Mtj+1−Mtj)h_i h_j(M_{t_{i+1}}-M_{t_i})(M_{t_{j+1}}-M_{t_j})hi​hj​(Mti+1​​−Mti​​)(Mtj+1​​−Mtj​​) has zero expectation, since conditioning on Ftj\F_{t_j}Ftj​​ leaves the Ftj\F_{t_j}Ftj​​-measurable factors times E[Mtj+1−Mtj∣Ftj]=0\E[M_{t_{j+1}}-M_{t_j}\mid\F_{t_j}]=0E[Mtj+1​​−Mtj​​∣Ftj​​]=0. The diagonal terms give

E[(H⋅M)T2]=∑i=1mE[hi2 (Mti+1−Mti)2]=∑i=1mE[hi2 (⟨M⟩ti+1−⟨M⟩ti)],(4)\E\big[(H\cdot M)_T^2\big]=\sum_{i=1}^m\E\big[h_i^2\,(M_{t_{i+1}}-M_{t_i})^2\big]=\sum_{i=1}^m\E\big[h_i^2\,(\qv_{t_{i+1}}-\qv_{t_i})\big], \tag{4}E[(H⋅M)T2​]=i=1∑m​E[hi2​(Mti+1​​−Mti​​)2]=i=1∑m​E[hi2​(⟨M⟩ti+1​​−⟨M⟩ti​​)],(4)

where the last equality uses that Mt2−⟨M⟩tM_t^2-\qv_tMt2​−⟨M⟩t​ is a martingale, so E[(Mti+1−Mti)2∣Fti]=E[⟨M⟩ti+1−⟨M⟩ti∣Fti]\E[(M_{t_{i+1}}-M_{t_i})^2\mid\F_{t_i}]=\E[\qv_{t_{i+1}}-\qv_{t_i}\mid\F_{t_i}]E[(Mti+1​​−Mti​​)2∣Fti​​]=E[⟨M⟩ti+1​​−⟨M⟩ti​​∣Fti​​]. The final sum is E[∫0THs2 d⟨M⟩s]\E[\int_0^T H_s^2\,d\qv_s]E[∫0T​Hs2​d⟨M⟩s​], which is Equation (3).

#Extension to every integrand of finite energy

Theorem3

The simple predictable processes are dense in H\mathcal HH under ∥⋅∥M\norm{\cdot}_M∥⋅∥M​, and the map H↦H⋅MH\mapsto H\cdot MH↦H⋅M extends uniquely to a linear isometry from H\mathcal HH into the space of square-integrable martingales. The extended integral is a martingale and satisfies ⟨H⋅M⟩t=∫0tHs2 d⟨M⟩s\langle H\cdot M\rangle_t=\int_0^t H_s^2\,d\qv_s⟨H⋅M⟩t​=∫0t​Hs2​d⟨M⟩s​.

Proof

Let μM(dω,ds)=d¶ d⟨M⟩s\mu_M(d\omega,ds)=d\P\,d\qv_sμM​(dω,ds)=d¶d⟨M⟩s​ on (Ω×[0,T],P)(\Omega\times[0,T],\mathcal P)(Ω×[0,T],P), a finite measure since E[⟨M⟩T]<∞\E[\qv_T]<\inftyE[⟨M⟩T​]<∞, so H=L2(μM)\mathcal H=L^2(\mu_M)H=L2(μM​). The indicators 1A×(s,t]\ind_{A\times(s,t]}1A×(s,t]​ with A∈FsA\in\F_sA∈Fs​ are simple predictable, and their linear span is an algebra generating P\mathcal PP. By the functional monotone class theorem this span is dense in L2(μM)L^2(\mu_M)L2(μM​), so bounded predictable HHH are ∥⋅∥M\norm{\cdot}_M∥⋅∥M​-approximable by simple predictable processes, and a general H∈HH\in\mathcal HH∈H follows by truncating to H1∣H∣≤nH\ind_{|H|\le n}H1∣H∣≤n​. Given H∈HH\in\mathcal HH∈H choose simple Hn→HH^n\to HHn→H in ∥⋅∥M\norm{\cdot}_M∥⋅∥M​. The isometry Theorem 2 makes (Hn⋅M)(H^n\cdot M)(Hn⋅M) Cauchy in L2L^2L2, and by Doob's inequality E[sup⁡t≤T((Hn−Hm)⋅M)t2]≤4 ∥Hn−Hm∥M2→0\E[\sup_{t\le T}((H^n-H^m)\cdot M)_t^2]\le 4\,\norm{H^n-H^m}_M^2\to 0E[supt≤T​((Hn−Hm)⋅M)t2​]≤4∥Hn−Hm∥M2​→0, giving a.s. uniform Cauchy convergence, so the limit H⋅MH\cdot MH⋅M exists, is independent of the approximating sequence, and is a square-integrable martingale by closure of the square-integrable martingales under L2L^2L2 limits. For the quadratic variation, apply the computation of Theorem 2 to the simple integrand H1(s,t]H\ind_{(s,t]}H1(s,t]​ under E[⋅∣Fs]\E[\cdot\mid\F_s]E[⋅∣Fs​] rather than full expectation. The cross terms vanish by conditioning on the intermediate breakpoints tj∈(s,t]t_j\in(s,t]tj​∈(s,t], and each diagonal term reduces via E[(Mti+1−Mti)2∣Fti]=E[⟨M⟩ti+1−⟨M⟩ti∣Fti]\E[(M_{t_{i+1}}-M_{t_i})^2\mid\F_{t_i}]=\E[\qv_{t_{i+1}}-\qv_{t_i}\mid\F_{t_i}]E[(Mti+1​​−Mti​​)2∣Fti​​]=E[⟨M⟩ti+1​​−⟨M⟩ti​​∣Fti​​] as before, the truncated endpoint cells handled by the same identity on the partial subintervals. For simple HHH and s<ts<ts<t this gives

E[((H⋅M)t−(H⋅M)s)2∣Fs]=E ⁣[∫stHu2 d⟨M⟩u  ∣  Fs].(5)\E\big[((H\cdot M)_t-(H\cdot M)_s)^2\mid\F_s\big]=\E\!\left[\int_s^t H_u^2\,d\qv_u\;\Big|\;\F_s\right]. \tag{5}E[((H⋅M)t​−(H⋅M)s​)2∣Fs​]=E[∫st​Hu2​d⟨M⟩u​​Fs​].(5)

Since H⋅MH\cdot MH⋅M is a martingale, E[(H⋅M)t2∣Fs]−(H⋅M)s2=E[((H⋅M)t−(H⋅M)s)2∣Fs]\E[(H\cdot M)_t^2\mid\F_s]-(H\cdot M)_s^2=\E[((H\cdot M)_t-(H\cdot M)_s)^2\mid\F_s]E[(H⋅M)t2​∣Fs​]−(H⋅M)s2​=E[((H⋅M)t​−(H⋅M)s​)2∣Fs​], so (H⋅M)t2−∫0tHs2 d⟨M⟩s(H\cdot M)_t^2-\int_0^t H_s^2\,d\qv_s(H⋅M)t2​−∫0t​Hs2​d⟨M⟩s​ is a martingale. The process t↦∫0tHs2 d⟨M⟩st\mapsto\int_0^t H_s^2\,d\qv_st↦∫0t​Hs2​d⟨M⟩s​ is increasing and predictable, the integral of the predictable integrand H2H^2H2 against the predictable finite-variation process ⟨M⟩\qv⟨M⟩, so by the uniqueness of the Doob-Meyer compensator it is ⟨H⋅M⟩t\langle H\cdot M\rangle_t⟨H⋅M⟩t​. The identity extends to general H∈HH\in\mathcal HH∈H by the L2L^2L2 convergence above.

Corollary4

For Brownian motion WWW, where ⟨W⟩t=t\langle W\rangle_t=t⟨W⟩t​=t, and H∈HH\in\mathcal HH∈H, that is E[∫0THs2 ds]<∞\E[\int_0^T H_s^2\,ds]<\inftyE[∫0T​Hs2​ds]<∞, the integral ∫0⋅Hs dWs\int_0^\cdot H_s\,dW_s∫0⋅​Hs​dWs​ is a martingale with

E ⁣[(∫0tHs dWs)2]=E ⁣[∫0tHs2 ds].(6)\E\!\left[\Big(\int_0^t H_s\,dW_s\Big)^2\right]=\E\!\left[\int_0^t H_s^2\,ds\right]. \tag{6}E[(∫0t​Hs​dWs​)2]=E[∫0t​Hs2​ds].(6)

The integral extends from square-integrable martingales to local martingales by localization along stopping times, and to semimartingales by adding an integral against a finite-variation drift [1], [2]. The discounted trading gain that opened the theory of arbitrage is exactly an integral of this kind, a predictable position integrated against a price semimartingale.

[1]
P. E. Protter, Stochastic Integration and Differential Equations, 2nd ed. Springer, 2005.
[2]
J.-F. Le Gall, Brownian Motion, Martingales, and Stochastic Calculus. Springer, 2016.

Part 4 of 8 in Stochastic Calculus

← previousQuadratic Variationnext →Ito's Formula

Explore connections

see in the atlas →

related

  • The Construction of Brownian Motion
  • Martingales
  • L-squared and Completeness

referenced by (4)

  • Ito's Formula
  • Quadratic Variation
  • Stochastic Differential Equations
  • The Construction of Brownian Motion
cite
@misc{the-stochastic-integral,
  author = {Zac Kienzle},
  title  = {The Stochastic Integral},
  year   = {2026},
  month  = {05},
  url    = {https://zackienzle.com/blog/the-stochastic-integral}
}