The following identities have been suggested based on formulas in a previous question of mine.
If complex $\theta_1=\cos^{-1}(p)$ and $\theta_2=\sec^{-1}(p)$, where $p\in(-1, 0) \cup (1, \infty)$, then the following relation holds:
$$e^{i\theta_1}=\frac{1-\tan\frac{\theta_2}{2} }{1+\tan\frac{\theta_2}{2}}. \tag{1}\label{463459_1}$$
And for $p\in(-\infty, -1)\cup (0, 1)$, we have
$$e^{-i\theta_1}=\frac{1-\tan\frac{\theta_2}{2} }{1+\tan\frac{\theta_2}{2}}. \tag{2}\label{463459_2}$$
If complex $\theta_1=\sin^{-1}(p)$ and $\theta_2=\csc^{-1}(p)$, where $p\in(-\infty, -1)\cup (0, 1)$, then the following relation holds:
$$ie^{i\theta_1}=-\tan\frac{\theta_2}{2}.\tag{3}\label{463459_3}$$
And for $p\in(-1, 0) \cup (1, \infty)$ we have
$$ie^{-i\theta_1}=\tan\frac{\theta_2}{2}.\tag{4}\label{463459_4}$$
There are several variants that we can obtain by equating (and simplifying) the trigonometric formulas for quadratic equations from my previous question.
I have noticed that for certain trigonometric integrals defined over permissible intervals of $p$, the evaluation simplifies considerably. For instance, consider the following definite integral:
$$\int_2^5 \sqrt{\tan\left(\frac{\csc^{-1}(x)}{2}\right)} \,dx.\tag{5}\label{463459_5}$$
This integral calculator returns the following:
No antiderivative could be found within the given time limit, or all supported integration methods were tried unsuccessfully. Note that many functions don't have an elementary antiderivative.
But it gives an approximation of $1.178881841955109.$
Given that the interval $[2, 5]$ is within the permissible values of $p$, I can use $e^{i\cos^{-1}(p)}=\tan\frac{\csc^{-1}(p)}{2}$ (derived from identities \eqref{463459_1} and \eqref{463459_4}), valid for $p\in[-1, 0) \cup [1, \infty)$, to convert \eqref{463459_5} into
$$\int_2^5 \sqrt{e^{i\cos^{-1}(x)}}\,dx.\tag{6}\label{463459_6}$$
The same calculator provides the same answer but now displaying the steps as well. As a second example, compare the solutions of the following definite integrals, coming from identity \eqref{463459_1}:
$$\int_2^3 e^{\frac{i\arccos(x)}{2}} \,dx\tag{8}\label{463459_8}$$
Judge for yourself which one is simpler to solve between \eqref{463459_7} and \eqref{463459_8}.
I have spent quite some time applying these substitutions and have come to the conclusion that these identities make certain trigonometric integrals less tedious. This leads me to the question: Was this trick known in the world of integrals?
EDITED. Not exactly the same technique , but I think this is somehow related to my question. According to Wikipedia, using Euler's formula, any trigonometric function may be written in terms of complex exponential functions, namely $e^{ix}$ and $e^{-ix}$ and then integrated. This technique is often simpler and faster than using trigonometric identities or integration by parts, and is sufficiently powerful to integrate any rational expression involving trigonometric functions.
Crossposted at MO.
This story will continue on my blog.