Name of the rule allowing the exchanging $\sin$ and $\cos$ in integrals with limits $0$ and $\pi/2$

calculusdefinite integralsintegration

As in $0$ to $\frac{\pi}{2}$ limits the area under curve of $\sin \theta$ and $\cos \theta$ are same, so in integration if the limits are from $0$ to $\frac{\pi}{2}$ we can replace $\sin \theta$ with $\cos \theta$ and vice versa. Example-

\begin{align*}
\int\limits_{0}^{\frac{\pi}{2}} \frac{\sin^3x-\cos x}{\cos^3x-\sin x} dx &=\int\limits_{0}^{\frac{\pi}{2}} \frac{\sin^3x-\sin x}{\sin^3x-\sin x} dx\\
&=\int\limits_{0}^{\frac{\pi}{2}}dx\\
&=\frac{\pi}{2}
\end{align*}

I want to know what the name of this rule.

Best Answer

I think you want

$$\int_a^b f(x) dx=\int_a^b f(a+b-x) dx$$

If you input $a=0,b=\pi/2$, using the above property you can "convert" sines to cosines and vice versa due to $\sin x=\cos (\pi/2 -x)$.

But what you have done, as pointed out by others, is not applicable everywhere. If you ''exchange" sines and cosines using the above property, it is totally fine.