Compute $\int \frac{\sin(x)}{\sin(x)+\cos(x)}\mathrm dx$ I'm having trouble computing the integral:
$$\int \frac{\sin(x)}{\sin(x)+\cos(x)}\mathrm dx.$$
I hope that it can be expressed in terms of elementary functions. I've tried simple substitutions such as $u=\sin(x)$ and $u=\cos(x)$, but it was not very effective.
Any suggestions are welcome. Thanks.

$$= \frac{1}{2} \cdot \int \frac{\sin(x) + \sin(x)}{\sin(x) + \cos(x)} dx = \frac{1}{2} \int \frac{\sin(x) + \cos(x) + \sin(x) - \cos(x) }{\sin(x) + \cos(x)} dx $$ $$= \frac{x}{2} - \frac{1}{2} \int \frac{\cos(x) - \sin(x)}{\sin(x) + \cos(x)} dx$$ Let $u = \sin(x) + \cos(x)$ $$ \implies \frac{x}{2} - \frac{1}{2} \cdot \log \left| \sin(x) + \cos(x) \right| + C$$
