Skip to content

Solving Geometric Brownian Motion by Applying Itô’s Lemma to Log Price

Original question

Can you show me how to solve an SDE of the form dX = μXdt + σXdW using Itô's lemma?

For X0=x>0X_0=x>0 and constant coefficients, the solution is

Xt=xexp⁡ ⁣((μ−12σ2)t+σWt).X_t=x\exp\!\left((\mu-\tfrac12\sigma^2)t+\sigma W_t\right).
Apply Itô's lemma to log⁡Xt\log X_t to obtain a constant drift and diffusion, integrate those terms, and exponentiate. Applying Itô's lemma back to the proposed exponential verifies that it solves the original SDE and stays positive.

Why the logarithm removes the level from the SDE

Write dXt=μXt dt+σXt dWtdX_t=\mu X_t\,dt+\sigma X_t\,dW_t. For f(x)=log⁡xf(x)=\log x, the first derivative is 1/x1/x and the second is −1/x2-1/x^2. Apply the Itô formula where Xt>0X_t>0:

dlog⁡Xt=1Xt dXt−12Xt2 d[X]t=(μ−12σ2)dt+σ dWt,d\log X_t=\frac{1}{X_t}\,dX_t-\frac{1}{2X_t^2}\,d[X]_t =\left(\mu-\tfrac12\sigma^2\right)dt+\sigma\,dW_t,

because d[X]t=σ2Xt2 dtd[X]_t=\sigma^2X_t^2\,dt. Integrating with W0=0W_0=0 gives the claimed expression.

To avoid relying on positivity in advance, verify the candidate directly. Let Lt=log⁡x+(μ−σ2/2)t+σWtL_t=\log x+(\mu-\sigma^2/2)t+\sigma W_t and apply Itô's lemma to eLte^{L_t}. The exponential's second derivative adds σ2eLt/2\sigma^2e^{L_t}/2 to the drift and cancels the log correction. The resulting equation is the original one. The drift and diffusion are globally Lipschitz, so the candidate is the unique solution. For x=0x=0 the solution is identically zero. For x<0x<0 the same formula holds by multiplying the positive solution started at ∣x∣|x| by −1-1.
The quadratic variation of XX is the time integral of σ2Xt2\sigma^2X_t^2. Multiplying by f′′(Xt)=−1/Xt2f''(X_t)=-1/X_t^2 cancels the level again and leaves the negative constant drift correction. Once you integrate the log equation, exponentiating gives a positive process for positive initial value. You can verify it without assuming positivity in advance by applying Itô's formula directly to that candidate exponential. This recovers the original coefficients and the initial condition, which identifies the solution by uniqueness for the linear coefficients.

Evaluate the solution on one observed path

For an original exercise, take x=120x=120, μ=0.07\mu=0.07, and σ=0.30\sigma=0.30. Compute the value at t=0.5t=0.5 on a path with W0.5=−0.40W_{0.5}=-0.40. The log change is

(0.07−0.045)(0.5)+0.30(−0.40)=−0.1075.(0.07-0.045)(0.5)+0.30(-0.40)=-0.1075.
Thus X0.5=120e−0.1075≈107.77X_{0.5}=120e^{-0.1075}\approx107.77. You need only the Brownian endpoint for this calculation because the coefficients are constant and the transformed SDE has additive noise. The full path would matter for a payoff depending on the running maximum or minimum. Using μ\mu in the exponential without the adjustment would give 120e−0.085≈110.22120e^{-0.085}\approx110.22 on the same path and fail the verification step.

For another useful check, take two times s<ts<t and divide the exponential at tt by the exponential at ss. The ratio depends on Wt−WsW_t-W_s and t−st-s. This recovers the exact one-step transition and explains how to reuse the solution when simulating on a grid. In the degenerate case σ=0\sigma=0, the ratio reduces to the usual deterministic compound-growth factor.

Interactive example

Change the drift and volatility of geometric Brownian motion

The three paths reuse seeded Gaussian shocks. The orange curve shows the theoretical mean.

Expected terminal price 108.33 · terminal standard deviation 27.51
Three simulated stock price paths and the theoretical mean8010012000.250.50.751YearsPrice
  • Path A
  • Path B
  • Path C
  • Expected price

References and next steps