I am a newbie in learning topic of integration. My friend asked me to find indefinite integral shown below
$$I=\int \frac{1} {{\sin x+\sec^2x}} \, \mathrm{d}x \tag 1$$
What I tried until now is the substitution $t=\sin x$ and $\frac{\textrm{d}t}{\textrm{d}x}=\cos x$. Now, converting equation $(1)$ in terms of $t$ to get
$$I=\int \frac{(1-t^2)^{1/2}} {{1+t(1-t^2)}} \, \mathrm{d}t$$
But, as you can see, it became more complicated than the original equation $(1)$. So, can anybody help me to integrate this integral?