Optimal. Leaf size=15 \[ \frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0147158, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {4356, 206} \[ \frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4356
Rule 206
Rubi steps
\begin{align*} \int \cos (x) \sec (2 x) \, dx &=\operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\sin (x)\right )\\ &=\frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [A] time = 0.007397, size = 15, normalized size = 1. \[ \frac{\tanh ^{-1}\left (\sqrt{2} \sin (x)\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.029, size = 13, normalized size = 0.9 \begin{align*}{\frac{{\it Artanh} \left ( \sin \left ( x \right ) \sqrt{2} \right ) \sqrt{2}}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.55053, size = 185, normalized size = 12.33 \begin{align*} \frac{1}{8} \, \sqrt{2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} + 2 \, \sqrt{2} \cos \left (x\right ) + 2 \, \sqrt{2} \sin \left (x\right ) + 2\right ) - \frac{1}{8} \, \sqrt{2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} + 2 \, \sqrt{2} \cos \left (x\right ) - 2 \, \sqrt{2} \sin \left (x\right ) + 2\right ) + \frac{1}{8} \, \sqrt{2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} - 2 \, \sqrt{2} \cos \left (x\right ) + 2 \, \sqrt{2} \sin \left (x\right ) + 2\right ) - \frac{1}{8} \, \sqrt{2} \log \left (2 \, \cos \left (x\right )^{2} + 2 \, \sin \left (x\right )^{2} - 2 \, \sqrt{2} \cos \left (x\right ) - 2 \, \sqrt{2} \sin \left (x\right ) + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.2895, size = 97, normalized size = 6.47 \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left (-\frac{2 \, \cos \left (x\right )^{2} - 2 \, \sqrt{2} \sin \left (x\right ) - 3}{2 \, \cos \left (x\right )^{2} - 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \cos{\left (x \right )} \sec{\left (2 x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.13511, size = 42, normalized size = 2.8 \begin{align*} \frac{1}{4} \, \sqrt{2} \log \left ({\left | \frac{1}{2} \, \sqrt{2} + \sin \left (x\right ) \right |}\right ) - \frac{1}{4} \, \sqrt{2} \log \left ({\left | -\frac{1}{2} \, \sqrt{2} + \sin \left (x\right ) \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]