Let $f(x)=x^2\sin^2(\pi/x)$ for $x\in (0,1]$ and $f(0)=0$. Show that $f(x)$ is absolutely continuous in $[0,1]$, but $|f|^{1/2}(x)$ is not.
Attempt. Note that $f'(x)=2x\sin^2(\pi/x)-\pi\sin(2\pi/x)$ implies that $|f'(x)|\leq 2x+\pi$ for $x\in (0,1]$. So we have $$\int_0^1|f'(x)|dx\leq \int_0^1 (2x+\pi)dx<\infty$$ Hence, $f$ is absolutely continuous.
For the second part, I claim that $x|\sin(\pi/x)|$ is not of bounded variation to conclude that it is not absolutely continuous. But, I couldn't prove it. In fact, I am able to prove that the function $x\sin(\pi/x)$ is not of bounded variation by using the sequence $x_n=\frac{2}{2n+1}$.
I would be glad if someone could help me and check my attempt. Thanks!