# $f(0)=0,\;\;f(x)=e^{-2/x}\sin\left(e^{1/x}\right)$, is $f$ bounded variation on [0,1]?

Let $$f(0)=0,\;\;f(x)=e^{-2/x}\sin\left(e^{1/x}\right),$$ is $f$ bounded variation on $[0,1]$?

Here is my thinking:

Since $f$ is differentiable on $(0,1]$ and continuous on $[0,1]$

If $f^\prime$ is bounded, we can use mean value theorem to prove it.

-
If it helps, let $y=e^{-1/x}$ to transform the function to $g(y)=y^2\sin(1/y)$ on the interval $[0,1/e]$, which is of bounded variation by essentially what you said using the mean value theorem. – Alex Nov 29 '12 at 2:29
@Alex Is it so obvious that if $g$ has bounded variation then $f$ has bounded variation? I mean, more obvious than the direct approach the OP is advocating? – Did Dec 2 '12 at 12:48

By taking the derivative we have $f'(x)=2y\sin(1/y)-\cos(1/y)$. Since we are over $[0,1]$, this is bounded by $2+1=3$. So we can assert bounded variation via mean value theorem.