In the stochastic calculus, Tanaka's formula for the Brownian motion states that
|Bt|=∫0tsgn(Bs)dBs+Lt where Bt is the standard Brownian motion, sgn denotes the sign function
sgn(x)={+1,x>0;0,x=0−1,x<0. and Lt is its local time at 0 (the local time spent by B at 0 before time t) given by the L2-limit
Lt=limε↓012ε|{s∈[0,t]|Bs∈(−ε,+ε)}|. One can also extend the formula to semimartingales.
Properties Tanaka's formula is the explicit Doob–Meyer decomposition of the submartingale |Bt| into the martingale part (the integral on the right-hand side, which is a Brownian motion), and a continuous increasing process (local time). It can also be seen as the analogue of Itō's lemma for the (nonsmooth) absolute value function f(x)=|x|, with f′(x)=sgn(x) and f″(x)=2δ(x); see local time for a formal explanation of the Itō term.
Outline of proof The function |x| is not C2 in x at x = 0, so we cannot apply Itō's formula directly. But if we approximate it near zero (i.e. in [−ε, ε]) by parabolas
x22|ε|+|ε|2. and use Itō's formula, we can then take the limit as ε → 0, leading to Tanaka's formula.
References
Øksendal, Bernt K. (2003). Stochastic Differential Equations: An Introduction with Applications (Sixth ed.). Berlin: Springer. ISBN 3-540-04758-1. (Example 5.3.2) Shiryaev, Albert N.; trans. N. Kruzhilin (1999). Essentials of stochastic finance: Facts, models, theory. Advanced Series on Statistical Science & Applied Probability No. 3. River Edge, NJ: World Scientific Publishing Co. Inc. ISBN 981-02-3605-0.