Integrate a function

Input: