Ito's lemma is a formula that expresses the small change in a function f(t, X) of a quantity X driven by Brownian motion as the ordinary chain rule plus one second-derivative term. It is used to derive the solution of geometric Brownian motion and the Black-Scholes partial differential equation.
When X follows dXt=μtdt+σtdWt, the change in f is the usual terms in time and X plus the term 21σt2∂2f/∂x2 multiplied by dt. This term arises because the square of a Brownian increment is replaced by dt.
For example, if f=lnS and dSt=μStdt+σStdWt, the drift of lnS is μ−σ2/2. Consider a hypothetical example in which μ=5% and σ=20%. The drift is 0.05−0.04÷2=0.03.
If the function is linear, the extra term is 0 and the result is the same as the ordinary chain rule. The derivation and worked examples are on the related article page.