Optimal. Leaf size=12 \[ \tanh ^{-1}(\sin (x))-\frac{8 \sin ^3(x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0231566, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {4364, 1153, 206} \[ \tanh ^{-1}(\sin (x))-\frac{8 \sin ^3(x)}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4364
Rule 1153
Rule 206
Rubi steps
\begin{align*} \int \cos (4 x) \sec (x) \, dx &=\operatorname{Subst}\left (\int \frac{1-8 x^2+8 x^4}{1-x^2} \, dx,x,\sin (x)\right )\\ &=\operatorname{Subst}\left (\int \left (-8 x^2+\frac{1}{1-x^2}\right ) \, dx,x,\sin (x)\right )\\ &=-\frac{8}{3} \sin ^3(x)+\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (x)\right )\\ &=\tanh ^{-1}(\sin (x))-\frac{8 \sin ^3(x)}{3}\\ \end{align*}
Mathematica [A] time = 0.0103242, size = 12, normalized size = 1. \[ \tanh ^{-1}(\sin (x))-\frac{8 \sin ^3(x)}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.021, size = 22, normalized size = 1.8 \begin{align*} \ln \left ( \sec \left ( x \right ) +\tan \left ( x \right ) \right ) +{\frac{ \left ( 16+8\, \left ( \cos \left ( x \right ) \right ) ^{2} \right ) \sin \left ( x \right ) }{3}}-8\,\sin \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.930704, size = 28, normalized size = 2.33 \begin{align*} -\frac{8}{3} \, \sin \left (x\right )^{3} + \frac{1}{2} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{1}{2} \, \log \left (\sin \left (x\right ) - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.30134, size = 97, normalized size = 8.08 \begin{align*} \frac{8}{3} \,{\left (\cos \left (x\right )^{2} - 1\right )} \sin \left (x\right ) + \frac{1}{2} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{1}{2} \, \log \left (-\sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.3245, size = 24, normalized size = 2. \begin{align*} - \frac{\log{\left (\sin{\left (x \right )} - 1 \right )}}{2} + \frac{\log{\left (\sin{\left (x \right )} + 1 \right )}}{2} - \frac{8 \sin ^{3}{\left (x \right )}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.06832, size = 31, normalized size = 2.58 \begin{align*} -\frac{8}{3} \, \sin \left (x\right )^{3} + \frac{1}{2} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{1}{2} \, \log \left (-\sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]