I'm trying to solve: $$\int_0^1\frac{1+x^{2i}}{x^i(1+x^2)}dx $$
I don't know complex analysis so I tried using differentiating under the integral somehow to solve the integral but to no avail. I've tried:
$$I(a)=\int_0^1\frac{1+a^2x^{2i}}{x^i(1+x^2)}dx$$ $$I(a)=\int_0^1\frac{1+e^ax^{2i}}{x^i(1+x^2)}dx$$
Neither of which helped. I've tried setting up some differential equations using like using the second variable insertion, I was able to get:
$$I(a)-I'(a)=\int_0^1\frac{1}{x^i(1+x^2)}dx$$
Which seemed promising, but didn't lead anywhere.
Would be appreciated if someone could solve the integral using differentiating under the integral or other methods (except Complex Analysis I don't know residues and whatnot yet).
$i$ is the imaginary unit