solve dx/dt=-cos(t)+sin(t),x(0)=0