I\'m looking for a way to implement periodic boundary conditions into my poisson equation, using the finite difference method. The original problem goes as follows: