Green's function of Poisson and Laplace equations with miscellaneous boundary conditions for a rectangle is presented. This makes it possible to determine the distribution of irrotational field potential in a limited rectangular region at properly formulated boundary conditions.