# How can I solve this differential equation? please help

How can I solve this differential equation $$y'= \sin(x+y) ,\ \ y(0) = -\frac{\pi}{2}, -\infty < x < \infty$$

I tried to denote $z=x+y$ And I got unfamiliar integral.

• If $x+y(x)=z(x)$, then $y'=z'-1$, so that $z'-1=\sin z$. Now you should compute $$\int \frac{dr}{1+\sin r}.$$ – Siminore Oct 29 '14 at 13:55
\begin{align} \int \frac{1}{1+\sin x}\, \mathrm{d}x &= \int \frac{1-\sin x}{1-\sin^2 x}\, \mathrm{d}x \\ &= \int \sec^2 x\, \mathrm{d}x + \int \frac{(-\sin x)}{\cos^2x} \mathrm{d}x \end{align}