Interactive model — experiment with these parameters in sItô

The Itô integral $\int_0^T W_t\,dW_t$ equals $\frac{1}{2}(W_T^2 - T)$, rather than the $\frac{1}{2} W_T^2$ of ordinary calculus. The $-\frac{T}{2}$ offset is the quadratic variation of Brownian motion accumulated over $[0, T]$.

Derivation via Itô’s lemma and isometry

Applying Itô’s lemma [1, 2] to $U(W_t) = \frac{1}{2}W_t^2$ gives

$$ d\Bigl(\frac{1}{2}W_t^2\Bigr) = W_t\,dW_t + \frac{1}{2}\,dt, $$

where the $\frac{1}{2}\,dt$ drift comes from $(dW_t)^2 = dt$. Integrating from $0$ to $T$ and rearranging yields $\int_0^T W_t\,dW_t = \frac{1}{2}(W_T^2 - T)$.

Two moments follow directly: the integral is a martingale with mean $\mathbb{E}\bigl[\frac{1}{2}(W_T^2 - T)\bigr] = 0$, and by the Itô isometry its variance is $\int_0^T \mathbb{E}[W_t^2]\,dt = \int_0^T t\,dt = \frac{T^2}{2}$.

Quadratic variance curve t²/2 of the Itô integral ∫W_t dW_t climbing smoothly from 0 to 0.50 at t = 1 Quadratic variance curve t²/2 of the Itô integral ∫W_t dW_t climbing smoothly from 0 to 0.50 at t = 1
Simulated variance curve of $J_t = \int_0^t W_s\,dW_s$: by the Itô isometry, $\operatorname{Var}(J_t) = \int_0^t \mathbb{E}[W_s^2]\,ds = t^2 / 2$, reaching $0.50$ at $t = 1$. Inspect variance & terminal law in sItô ↗
Right-skewed shifted chi-squared terminal density of ∫W_t dW_t bounded left near -0.5 with mean 0.0008 and median -0.264 Right-skewed shifted chi-squared terminal density of ∫W_t dW_t bounded left near -0.5 with mean 0.0008 and median -0.264
Terminal distribution of $J_1 = \frac{1}{2}(W_1^2 - 1)$ ($10^4$ Euler paths): quadratic variation shifts the shifted-$\chi^2$ density left so paths cluster near the hard $-0.5$ lower wall (median $-0.264$) while preserving zero mean ($0.0008$). Open this run in sItô ↗

Run this in sItô

Open sItô with this model pre-loaded to inspect the path distribution, summary statistics, and parameter sensitivities—or change any setting and rerun (two coupled states track $dw_t = dW_t$ and $di_t = w_t\,dW_t$, while the transformation $z_t = i_t - \frac{1}{2}(w_t^2 - t)$ vanishes symbolically under Itô’s lemma so $dz_t = 0\,dt + 0\,dW_t$):

Discrete residual on an $N$-step grid

Although $z_t$ vanishes in continuous time, the Euler sum $\sum_{n=0}^{N-1} W_n\,\Delta W_n$ satisfies the exact algebraic identity

$$ \sum_{n=0}^{N-1} W_n\,\Delta W_n = \frac{1}{2}\Bigl(W_T^2 - \sum_{n=0}^{N-1} \Delta W_n^2\Bigr), $$

so $z_T = \frac{1}{2}\bigl(T - \sum_{n=0}^{N-1} \Delta W_n^2\bigr)$ equals half the discrepancy between $T$ and the realized quadratic variation. Because $\sum_{n=0}^{N-1} \Delta W_n^2$ has standard deviation $T\sqrt{\frac{2}{N}}$, $z_T$ fluctuates with standard deviation $\frac{T}{\sqrt{2N}} = 0.0707$ for $N = 100$, shrinking toward zero as the grid is refined (see Quadratic variation and realized variance and Compiling parametric SDEs into fast Monte Carlo simulations).

Related notes: Stratonovich versus Itô for geometric Brownian motion, The Lamperti transform.