Let $f$, $2\pi$-periodic and intergrable function defined as follows:
$$f(x) = \begin{cases} 1+\sin\frac{\pi^2}{x} & x\in[-\pi,\pi),x\ne 0 \\ 1 & x=0 \end{cases} $$
Does the Fourier series of $f$ converge for $x=0$? If so, is it equal to $f(0)$? Hint: No need to evaluate $\hat{f}(n)$ (the $n$-th Fourier coefficient).
So the exercise suggest not to evaluate the coefficients of the Fourier series. Therefore, I came up with the idea to use convolution with $D_n(x)$ (Dirichlet kernel). I put it to the test:
$$S_n(f,x)=f\star D_n(x) = \frac{1}{2\pi}\int_0^{2\pi}f(x-t)D_n(x) $$
Now, I'm not sure but I think we can use the fact that $D_n(0)=2n+1$. Hence,
$$= (2n+1)\int_0^{2\pi} 1 - \sin\frac{\pi^2}{t} \ dt = \infty ?$$
Since function $\sin(\pi^2/x)$ is odd the coefficients of $\cos(nx)$ are equal to $0$. The series is in the following form $$g(x)=1+a_1\sin(x)+a_2\sin(2x)+...$$
Plugging $x=0$ we get $g(0)=1$.