by JARNO ELONEN (elonen@iki.fi), 21.12.2004
The book NUMERICAL RECIPIES IN C, 2ND EDITION (by PRESS, TEUKOLSKY, VETTERLING & FLANNERY) presents a recipe for solving a discretization of 2D Poisson equation numerically by Fourier transform ("rapid solver"). While it shows the explicit solution for the problem with several other boundary conditions, Neumann condition is handled quite briefly. The following demonstrates in detail how to derive an equation for using the definition of the inverse Fourier cosine transform. The solution turns out, perhaps not very surprisingly, to be exacly the same as for the sine transform.
The finite difference equation is: