Someone told me there is an equation $$\int_0^{\pi/2}f(sinx)dx=\int_0^{\pi/2}f(cosx)dx$$ With this equation, it's easy to get the answer$\frac{\pi}{4}$. What I want to know is why we have this equation, and if there is an alternative way to integrate it?

- 194,933

- 21
-
https://math.stackexchange.com/questions/439851/evaluate-the-integral-int-frac-pi2-0-frac-sin3x-sin3x-cos3x/439856#439856 – lab bhattacharjee May 18 '19 at 06:51
-
1In case it's still not clear why this equation is true, try substituting $x=\pi/2-t$. – MathIsFun7225 May 18 '19 at 12:00
3 Answers
Because after using substitution $x=\frac{\pi}{2}-t$ we obtain: $$\int\limits_{0}^{\frac{\pi}{2}}\frac{\cos^6x-\sin^6x}{\cos^6x+\sin^6x}dx=\int\limits_{0}^{\frac{\pi}{4}}\frac{\cos^6x-\sin^6x}{\cos^6x+\sin^6x}dx+\int\limits_{\frac{\pi}{4}}^{\frac{\pi}{2}}\frac{\cos^6x-\sin^6x}{\cos^6x+\sin^6x}dx=$$ $$=\int\limits_{0}^{\frac{\pi}{4}}\frac{\cos^6x-\sin^6x}{\cos^6x+\sin^6x}dx+\int\limits_{\frac{\pi}{4}}^{0}\frac{\sin^6t-\cos^6t}{\sin^6t+\cos^6t}(-dt)=0.$$

- 194,933
We have a rule of definite integral
$$\int_0^a f(x) dx = \int _ 0^a f(a-x) dx$$
So by this rule
$\int_0^{\pi/2} f(\sin x) dx = \int_0^{\pi/2} f(\sin ({\pi/2}-x)) dx = \int _ 0^{\pi/2} f(\cos x) dx$
Now come to the answer of your question
$I=\int_0^{\pi/2}\frac{\cos^6x}{\cos^6x+\sin^6x}dx=\int_0^{\pi/2}\frac{\cos^6({\frac{\pi}{2}}-x)}{\cos^6({\frac{\pi}{2}}-x)+\sin^6({\frac{\pi}{2}}-x)x}dx =\int_0^{\pi/2}\frac{\sin^6x}{\sin^6x+\cos^6x}dx$
Then
$2I=I+I=\int_0^{\pi/2}\frac{\cos^6x}{\cos^6x+\sin^6x}dx+\int_0^{\pi/2}\frac{\sin^6x}{\sin^6x+\cos^6x}dx=\int_0^{\pi/2}\frac{\sin^6x+\cos^6x}{\sin^6x+\cos^6x}dx=\frac{\pi}{2}$
$\implies 2I=\frac{\pi}{2}\implies I= \frac{\pi}{4}$
This is the most easiest way to get the value of the integral. So I don't think you have to go any other methods to solve this kind of integral.

- 9,222