I'm trying to figure out how to take this indefinite integral:
$$ \int{\frac{\cos x}{\sin x + \cos x}dx}$$
I tried simplifying and rearranging it, and this is the best I got: $$ \int{\frac{1}{\tan x + 1 } } dx$$
But I still can't figure out how to integrate from there. I know that it's integrable, as Wolfram Alpha indicates that the integral is $ \frac{1}{2}(x+\ln{(\sin x + \cos x)})+C$, but I can't figure out the steps to deriving it. Does anyone know how to evaluate this integral?

