Integrate a function
Input: