IB hl math tricky integration problem