Optimal. Leaf size=19 \[ \sec (x)-\frac {2 \sec ^3(x)}{3}+\frac {\sec ^5(x)}{5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2686, 200}
\begin {gather*} \frac {\sec ^5(x)}{5}-\frac {2 \sec ^3(x)}{3}+\sec (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 200
Rule 2686
Rubi steps
\begin {align*} \int \sec (x) \tan ^5(x) \, dx &=\text {Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,\sec (x)\right )\\ &=\text {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,\sec (x)\right )\\ &=\sec (x)-\frac {2 \sec ^3(x)}{3}+\frac {\sec ^5(x)}{5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 19, normalized size = 1.00 \begin {gather*} \sec (x)-\frac {2 \sec ^3(x)}{3}+\frac {\sec ^5(x)}{5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(47\) vs.
\(2(15)=30\).
time = 0.04, size = 48, normalized size = 2.53
method | result | size |
default | \(\frac {\sin ^{6}\left (x \right )}{5 \cos \left (x \right )^{5}}-\frac {\sin ^{6}\left (x \right )}{15 \cos \left (x \right )^{3}}+\frac {\sin ^{6}\left (x \right )}{5 \cos \left (x \right )}+\frac {\left (\frac {8}{3}+\sin ^{4}\left (x \right )+\frac {4 \left (\sin ^{2}\left (x \right )\right )}{3}\right ) \cos \left (x \right )}{5}\) | \(48\) |
risch | \(\frac {2 \,{\mathrm e}^{9 i x}+\frac {8 \,{\mathrm e}^{7 i x}}{3}+\frac {116 \,{\mathrm e}^{5 i x}}{15}+\frac {8 \,{\mathrm e}^{3 i x}}{3}+2 \,{\mathrm e}^{i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{5}}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.77, size = 20, normalized size = 1.05 \begin {gather*} \frac {15 \, \cos \left (x\right )^{4} - 10 \, \cos \left (x\right )^{2} + 3}{15 \, \cos \left (x\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.72, size = 20, normalized size = 1.05 \begin {gather*} \frac {15 \, \cos \left (x\right )^{4} - 10 \, \cos \left (x\right )^{2} + 3}{15 \, \cos \left (x\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 22, normalized size = 1.16 \begin {gather*} - \frac {- 15 \cos ^{4}{\left (x \right )} + 10 \cos ^{2}{\left (x \right )} - 3}{15 \cos ^{5}{\left (x \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.76, size = 20, normalized size = 1.05 \begin {gather*} \frac {15 \, \cos \left (x\right )^{4} - 10 \, \cos \left (x\right )^{2} + 3}{15 \, \cos \left (x\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.27, size = 17, normalized size = 0.89 \begin {gather*} \frac {{\cos \left (x\right )}^4-\frac {2\,{\cos \left (x\right )}^2}{3}+\frac {1}{5}}{{\cos \left (x\right )}^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________