Approximate the solution of a boundary-value problem.