Integrate A*t-B*(dy/dt*cos(y)) + C with respect to t