Using FFT to solve PDEs