original problem with doble integral and adjoint method implemented