Trigonometric Integrals $\int \frac{1}{1+\sin^2(x)}\mathrm{d}x$ and $\int \frac{1-\tan(x)}{1+\tan(x)} \mathrm{d}x$ Any idea of calculating this two integrals $\int \frac{1}{1+\sin^2(x)}\,dx$ and $\int \frac{1-\tan(x)}{1+\tan(x)} \mathrm{d}x$?
I found a solution online for the first one but it requires complex numbers which have not been taught by the professor.

For your second integral, expand $\tan{(\frac{\pi}{4}-x)}$, identify and integrate.
