C18 Find function given rate of change