Substitute the following definition of $\tan x$ as the quotient of $\sin x$ and $\cos x$ into the integral. $$\tan x=\dfrac{\sin x}{\cos x}\implies I=\int_{0}^{\pi/2} \dfrac{\cos^{2017} x}{\sin^{2017} x + \cos^{2017} x} dx \tag1$$ Now use the reflective property of Integrals stated as follows $$\int_a^b f(x)dx =\int_a^b f(a+b-x) dx \tag2$$ to obtain the equivalent of $I$ as $$I=\int_0^{\pi/2} \dfrac{\sin^{2017} x}{\sin^{2017} x +\cos^{2017} x}dx \tag3$$ Add Equations $(1)$ and $(3)$ to get $2I=\int_{0}^{\pi/2} dx$ which gives you the value of $I$ as $\frac{\pi}{4}$.
My question is if it is possible to always get such a clean solution by modifying the year to the current year (each year) and by changing the limits of integration?
Sure, but here's some more neatness to this integral, you need not even change the limits of integration each year to get the ${\pi}/{4}$. In fact one might as well prove that the integral denoted $I_n=\int_{a}^{b} \frac{1}{1+\tan^n x} dx$ is independent of $n$.
In fact while setting an integral like this you might wanna experiment with the limits of integration to get even more elegant results. But for the reflective property i.e. equation $(2)$ to hold, the following needs to hold true: $a+b=\pi/2$
Exercise
- Evaluate $\int_{a}^{b} \frac{1}{1+\tan^n x} dx$ in terms of $a$ and $b$ where $a+b=\pi/2$.
- (Bonus) Judge whether $\int_{\pi/2-\pi^{e}}^{\pi^e} \frac{1}{1+\tan^n x} dx$ is negative or positive.