so I've just had my first exam (went pretty well) but I ran into this thing as the first part of the last question.
$$\int \frac{\cos x}{\sin x+\cos x}dx$$
I had a look on wolfram after the exam and it advised to multiply top and bottom by $\sec^3x$.
Is there another way to tackle this if you didn't know that trick? I find it hard to believe I was meant to know this and it was disproportionately harder than any type of integration question I've come across when practicing.
I couldn't get anywhere when trying to solve this.
Thanks.