Optimal. Leaf size=14 \[ \sin (2 x)-\frac{1}{2} \tanh ^{-1}(\sin (2 x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0199355, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {4364, 388, 206} \[ \sin (2 x)-\frac{1}{2} \tanh ^{-1}(\sin (2 x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4364
Rule 388
Rule 206
Rubi steps
\begin{align*} \int \cos (4 x) \sec (2 x) \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1-2 x^2}{1-x^2} \, dx,x,\sin (2 x)\right )\\ &=\sin (2 x)-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (2 x)\right )\\ &=-\frac{1}{2} \tanh ^{-1}(\sin (2 x))+\sin (2 x)\\ \end{align*}
Mathematica [A] time = 0.008197, size = 14, normalized size = 1. \[ \sin (2 x)-\frac{1}{2} \tanh ^{-1}(\sin (2 x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.034, size = 18, normalized size = 1.3 \begin{align*} -{\frac{\ln \left ( \sec \left ( 2\,x \right ) +\tan \left ( 2\,x \right ) \right ) }{2}}+\sin \left ( 2\,x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.54558, size = 174, normalized size = 12.43 \begin{align*} \frac{1}{4} \, \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}{4} \, \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}{4} \, \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}{4} \, \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 ) + \sin \left (2 \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.31288, size = 81, normalized size = 5.79 \begin{align*} -\frac{1}{4} \, \log \left (\sin \left (2 \, x\right ) + 1\right ) + \frac{1}{4} \, \log \left (-\sin \left (2 \, x\right ) + 1\right ) + \sin \left (2 \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 20.5348, size = 427, normalized size = 30.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.1391, size = 34, normalized size = 2.43 \begin{align*} -\frac{1}{4} \, \log \left (\sin \left (2 \, x\right ) + 1\right ) + \frac{1}{4} \, \log \left (-\sin \left (2 \, x\right ) + 1\right ) + \sin \left (2 \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]