Answer
$\dfrac{dy}{dx}=-(1+y) \sin x$ and $y(0)=2$
Work Step by Step
Take derivative of the given differential equation.
This implies that
$\dfrac{dy}{dx}=-[1+y(x)] \sin x$
or, $\dfrac{dy}{dx}=-(1+y) \sin x$
Now, apply the initial conditions,
Thus, we get $y(0)=2$