The Neumann and Dirichlet problems for elliptic operators