Laplace's equation in two dimensions, Neumann and Dirichlet boundary conditions