Optimal. Leaf size=26 \[ \frac{35}{8} \tanh ^{-1}(\sin (x))+\frac{1}{4} \tan (x) \sec ^3(x)-\frac{29}{8} \tan (x) \sec (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0300102, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {4364, 1157, 385, 206} \[ \frac{35}{8} \tanh ^{-1}(\sin (x))+\frac{1}{4} \tan (x) \sec ^3(x)-\frac{29}{8} \tan (x) \sec (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4364
Rule 1157
Rule 385
Rule 206
Rubi steps
\begin{align*} \int \cos (4 x) \sec ^5(x) \, dx &=\operatorname{Subst}\left (\int \frac{1-8 x^2+8 x^4}{\left (1-x^2\right )^3} \, dx,x,\sin (x)\right )\\ &=\frac{1}{4} \sec ^3(x) \tan (x)-\frac{1}{4} \operatorname{Subst}\left (\int \frac{-3+32 x^2}{\left (1-x^2\right )^2} \, dx,x,\sin (x)\right )\\ &=-\frac{29}{8} \sec (x) \tan (x)+\frac{1}{4} \sec ^3(x) \tan (x)+\frac{35}{8} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (x)\right )\\ &=\frac{35}{8} \tanh ^{-1}(\sin (x))-\frac{29}{8} \sec (x) \tan (x)+\frac{1}{4} \sec ^3(x) \tan (x)\\ \end{align*}
Mathematica [A] time = 0.0497023, size = 26, normalized size = 1. \[ \frac{1}{8} \left (35 \tanh ^{-1}(\sin (x))-27 \tan (x) \sec ^3(x)+29 \tan ^3(x) \sec (x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 31, normalized size = 1.2 \begin{align*} - \left ( -{\frac{ \left ( \sec \left ( x \right ) \right ) ^{3}}{4}}-{\frac{3\,\sec \left ( x \right ) }{8}} \right ) \tan \left ( x \right ) +{\frac{35\,\ln \left ( \sec \left ( x \right ) +\tan \left ( x \right ) \right ) }{8}}-4\,\sec \left ( x \right ) \tan \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.938973, size = 73, normalized size = 2.81 \begin{align*} \frac{5 \, \sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{8 \,{\left (\sin \left (x\right )^{4} - 2 \, \sin \left (x\right )^{2} + 1\right )}} + \frac{3 \, \sin \left (x\right )}{\sin \left (x\right )^{2} - 1} + \frac{35}{16} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{35}{16} \, \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.45168, size = 142, normalized size = 5.46 \begin{align*} \frac{35 \, \cos \left (x\right )^{4} \log \left (\sin \left (x\right ) + 1\right ) - 35 \, \cos \left (x\right )^{4} \log \left (-\sin \left (x\right ) + 1\right ) - 2 \,{\left (29 \, \cos \left (x\right )^{2} - 2\right )} \sin \left (x\right )}{16 \, \cos \left (x\right )^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 108.838, size = 75, normalized size = 2.88 \begin{align*} - \frac{35 \log{\left (\sin{\left (x \right )} - 1 \right )}}{16} + \frac{35 \log{\left (\sin{\left (x \right )} + 1 \right )}}{16} - \frac{3 \sin ^{3}{\left (x \right )}}{8 \sin ^{4}{\left (x \right )} - 16 \sin ^{2}{\left (x \right )} + 8} + \frac{5 \sin{\left (x \right )}}{8 \sin ^{4}{\left (x \right )} - 16 \sin ^{2}{\left (x \right )} + 8} + \frac{8 \sin{\left (x \right )}}{2 \sin ^{2}{\left (x \right )} - 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.07727, size = 51, normalized size = 1.96 \begin{align*} \frac{29 \, \sin \left (x\right )^{3} - 27 \, \sin \left (x\right )}{8 \,{\left (\sin \left (x\right )^{2} - 1\right )}^{2}} + \frac{35}{16} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac{35}{16} \, \log \left (-\sin \left (x\right ) + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]