You're on the right path. Integral of cosy would be siny. Integral of -0.5dx would be -0.5x + c. Now, using the initial condition, find the value of c and substitute it into the equation. That'll be the final needed differential equation.
Edit: In general, once you isolate the variables like you did, just go ahead and integrate.