I solve such a problem.
Lets have a function $Y=\sum_{k=-\infty}^\infty i\hat Y e^{ik\pi y}$ and then I have a function which is defined as $X=\sum_{k=-\infty}^\infty ik^2\hat Y e^{ik\pi y}$.
I know the $Y$. The $i$ is imaginary unit.
How can I compute the $X$? I think I do the FFT on $Y$ and obtain thus the $\hat Y$, right? And then I think I will do the backward FFT of function $f=ik^2\hat Y$. But what have I do with the summation index $k$ here in the $f$?
It is right that $FFT(ik^2\hat Y)=X$ ?
I'm not sure absolutely what to do with $k$ when the FFT sum is summated per $k$.