Add integral and derivative function