spectral method for generegulation and diffusion