Integrals which require completing the square