Showing that $f'(x)$ exists:
If $x\in (0,1]$ then $f'(x)=2x\sin\left(\frac{\pi}{x^2}\right)-\frac{2\pi}{x}\cos\left(\frac{\pi}{x^2}\right)$
For $x=0$, $f'(x)=\lim\limits_{d\to 0^{+}}\frac{f(d)-f(0)}{d}=0$
So finally:$$f'(x)=
\left\{
\begin{array}{ll}
2x\sin\left(\frac{\pi}{x^2}\right)-\frac{2\pi}{x}\cos\left(\frac{\pi}{x^2}\right) & 0<x\leqslant 1\\
0 & x=0
\end{array}
\right.$$
What proves its existence.By the triangle inequality we obtain:
$$\left|-\frac{2\pi}{x}\cos\left(\frac{\pi}{x^2}\right)\right|\leqslant\left|2x\sin\left(\frac{\pi}{x^2}\right)-\frac{2\pi}{x}\cos\left(\frac{\pi}{x^2}\right)\right|+\left|-2x\sin\left(\frac{\pi}{x^2}\right)\right|$$
$2x\sin\left(\frac{\pi}{x^2}\right)$ is bounded and continuous in the interval $(0,1]$ besides $\lim\limits_{x\to 0^{+}}2x\sin\left(\frac{\pi}{x^2}\right)=0=f(0)$ what means that if $\frac{2\pi}{x}\cos\left(\frac{\pi}{x^2}\right)$ is not L-integrable in the interval $(0,1]$ then $f'(x)$ is also not L-integrable.
$$\int\limits_{(0,1]}\frac{2\pi}{x}\cos\left(\frac{\pi}{x^2}\right)dx=\frac{1}{\pi}\int\limits_{[\pi,+\infty)}\frac{\cos(v)}{v}dv$$
where $v(x)=\frac{\pi}{x^2}$. According to definitions presented here or here function is L-integrable if and only if is absolutely integrable. So the only thing we have to show is that $\int\limits_{[\pi,+\infty)}\left|\frac{\cos(v)}{v}\right|dv=+\infty$.
$$\int\limits_{[\pi,+\infty)}\left|\frac{\cos(v)}{v}\right|dv\geqslant \int\limits_{[\pi,+\infty)}\frac{\cos(v)^2}{v}dv=\frac{1}{2}\int\limits_{[\pi,+\infty)}\frac{1+\cos(2v)}{v}dv$$
$\int\limits_{[\pi,+\infty)}\frac{\cos(2v)}{v}dv$ is convergent by Dirichlet's test for integrals and $\int\limits_{[\pi,+\infty)}\frac{1}{v}dv$ of course diverges what completes the proof.
Note: $f'(x)$ is R-integrable for any interval $[\varepsilon,1]$ where $0<\varepsilon\leqslant 1$. R-integrability implies L-integrability. Quoting from * : "If a real-valued function on [a, b] is Riemann-integrable, it is Lebesgue-integrable".