$$\int \frac{\tan x}{x^2+1}\, \mathrm dx$$
I used By-parts method setting $u=\tan x$ and $\, \mathrm dv=\frac{1}{x^2+1}\, \mathrm dx$, but then I got an integral that's more complicated
I also thought of trigonometric substitution, setting $x=\tan\theta$, but how am going to substitute that for the $\tan x$ in numerator?
I tried to use websites like symbolab & wolfram to evaluate the integral but I got no result.
Hope it helps. It also turns into a more complicated as I thought. You might use Matlab to calculate this.