I am a bit lost how to proceed this integration (I got a recommendation to use substitution here) with goniometric functions in here. I know the correct result, but still can't determine it.

I am a bit lost how to proceed this integration (I got a recommendation to use substitution here) with goniometric functions in here. I know the correct result, but still can't determine it.

Copyright © 2021 JogjaFile Inc.
Simply set $u = \text{tg} x$. Then $du = \sec^2 x \, dx$ and the integral reduces to $\int u \, du$.