use dirichlet problem formula