I have tried a lot of trig substitutions for this question and it's supposed to equal $\frac{\pi}{4}$ using King's method. Could someone give me some pointers on how to go about this?
$$\int_0^{\pi/2} \frac{1}{1+(\tan{x})^{\pi}}dx$$
I have tried a lot of trig substitutions for this question and it's supposed to equal $\frac{\pi}{4}$ using King's method. Could someone give me some pointers on how to go about this?
$$\int_0^{\pi/2} \frac{1}{1+(\tan{x})^{\pi}}dx$$
King's property of integration says that $$\int_a^b f(x)\,dx=\int_a^bf(a+b-x)\,dx$$ We can apply this property to the given problem.
Let $$I=\int_0^{\pi/2}\frac{1}{1+(\tan x)^\pi}\,dx$$ Then, by King's property of integration, we can also say \begin{align*} I&=\int_0^{\pi/2}\frac{1}{1+(\tan(0+\frac{\pi}{2}-x))^\pi}\,dx\\ &=\int_0^{\pi/2}\frac{1}{1+(\tan(\frac{\pi}{2}-x))^\pi}\,dx\\ &=\int_0^{\pi/2}\frac{1}{1+(\cot x)^\pi}\,dx\tag{since $\tan(\pi/2-x)=\cot x$} \end{align*} Now, since the two integrals are equal, let's add them together to see if we can get a simpler integration in the equation in $I$. In general, often with definite integrals it can be useful to represent an integral in multiple forms and then add or subtract them to simplify the resulting equation in $I$ and by solving for $I$ solve the initial integral. \begin{align*} 2I&=\int_0^{\pi/2}\frac{1}{1+(\tan x)^\pi}\,dx+\int_0^{\pi/2}\frac{1}{1+(\cot x)^\pi}\,dx\\ &=\int_0^{\pi/2}\frac{1}{1+(\tan x)^\pi}+\frac{1}{1+(\cot x)^\pi}\,dx\\ &=\int_0^{\pi/2}\frac{1+(\cot x)^\pi+1+(\tan x)^\pi}{(1+(\tan x)^\pi)(1+(\cot x)^\pi)}\,dx\\ &=\int_0^{\pi/2}\frac{2+(\tan x)^\pi+(\cot x)^\pi}{1+(\cot x)^\pi+(\tan x)^\pi+(\tan x)^\pi\cdot(\cot x)^\pi}\,dx\\ &=\int_0^{\pi/2}\frac{2+(\tan x)^\pi+(\cot x)^\pi}{2+(\tan x)^\pi+(\cot x)^\pi}\,dx\tag{since $(\tan x)^\pi\cdot (\cot x)^\pi=1$}\\ &=\int_0^{\pi/2}\,dx\\ &=\Big[x\Big]_0^{\pi/2}\\ &=\frac{\pi}{2} \end{align*} Because we wanted to find $I$ at the beginning, not $2I$, we divide the result by $2$. Hence, $$I=\frac{\pi}{4}$$
Hope this helps and please feel free to ask further questions, if this answer is a bit unclear! :)