Initial Value Problem: $$\frac {dy}{dx}=\frac {xy\sin x}{y+1}, y(0)=1 $$
I know I'm supposed to separate the values and integrate. this is where I get stuck:
$$y+\ln y = -x\cos x+\sin x+c$$
This is where I get lost. I tried solving by setting $y+\ln y =1$ and trying to find the values. but I don't know if that's the actual way to solve this.
Consider $${dy\over dx}={xy\sin(x)\over y+1}.$$ Using separation of variables we obtain $$\left(1+{1\over y}\right)dy=x\sin(x)dx.$$ Integrating both sides we have $$y+\ln(y)=\sin(x)-x\cos(x)+C$$ where $C\in \mathbb{R}$. Since $y(0)=1$ we can substitute these values into the above equation and find $C=1$. Thus $$y+\ln(y)=\sin(x)-x\cos(x)+1.$$