Dirichlet and Neumann problem