Let $f\colon[0,1] \rightarrow \mathbb R$ (all real numbers) be defined by $\displaystyle f(x) = x \sin \left(\frac{\pi}{2x}\right)$ if $0 \lt x \le 1$ and $f(x) = 0$ if $x=0$.
Determine whether $f$ is of bounded variation or not.
I've been struggling with this problem and looking for any help. Thanks!