$$\int_0^\infty \frac{1}{(1+x^2)(1+x^{2018})}\,dx$$
My Calculus professor asked a challenge problem to one of my friends and asked her to evaluate it. I tried partial fractions to no avail and the trig substitution $x = \tan\theta$, but that leaves me with
$$\int_0^{\pi/2} \frac{1}{(1+\tan^{2018}\theta)}\,d\theta$$
which I do not know how to evaluate. Any help would be greatly appreciated!
You are on the right track. You have $$\tag1 I=\int_0^{\pi/2}\frac1{1+\tan^{2018}x}\,dx. $$ Do the substitution $u=\pi/2-x$. Then, after you do your algebra,
$$\tag2 I=\int_0^{\pi/2}\,\frac{\tan^{2018}u}{1+\tan^{2018}u}\,du. $$ Now combine $(1)$ and $(2)$ to get $$ 2I=\int_0^{\pi/2}\frac1{1+\tan^{2018}u}\,du+\int_0^{\pi/2}\,\frac{\tan^{2018}u}{1+\tan^{2018}u}\,du=\int_0^{\pi/2}\,1\,dx=\frac\pi2. $$ So $I=\pi/4$. Of course, the $2018$ is irrelevant, any positive number will give the same value.