Optimal. Leaf size=17 \[ -\frac {1}{3} \cosh ^3(x)+\frac {\cosh ^5(x)}{5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2645, 14}
\begin {gather*} \frac {\cosh ^5(x)}{5}-\frac {\cosh ^3(x)}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2645
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=-\text {Subst}\left (\int x^2 \left (1-x^2\right ) \, dx,x,\cosh (x)\right )\\ &=-\text {Subst}\left (\int \left (x^2-x^4\right ) \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{3} \cosh ^3(x)+\frac {\cosh ^5(x)}{5}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 23, normalized size = 1.35 \begin {gather*} -\frac {\cosh (x)}{8}-\frac {1}{48} \cosh (3 x)+\frac {1}{80} \cosh (5 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 8.17, size = 14, normalized size = 0.82
method | result | size |
derivativedivides | \(-\frac {\left (\cosh ^{3}\left (x \right )\right )}{3}+\frac {\left (\cosh ^{5}\left (x \right )\right )}{5}\) | \(14\) |
default | \(-\frac {\left (\cosh ^{3}\left (x \right )\right )}{3}+\frac {\left (\cosh ^{5}\left (x \right )\right )}{5}\) | \(14\) |
risch | \(\frac {{\mathrm e}^{5 x}}{160}-\frac {{\mathrm e}^{3 x}}{96}-\frac {{\mathrm e}^{x}}{16}-\frac {{\mathrm e}^{-x}}{16}-\frac {{\mathrm e}^{-3 x}}{96}+\frac {{\mathrm e}^{-5 x}}{160}\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 39 vs.
\(2 (13) = 26\).
time = 0.37, size = 39, normalized size = 2.29 \begin {gather*} -\frac {1}{480} \, {\left (5 \, e^{\left (-2 \, x\right )} + 30 \, e^{\left (-4 \, x\right )} - 3\right )} e^{\left (5 \, x\right )} - \frac {1}{16} \, e^{\left (-x\right )} - \frac {1}{96} \, e^{\left (-3 \, x\right )} + \frac {1}{160} \, e^{\left (-5 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 42 vs.
\(2 (13) = 26\).
time = 0.58, size = 42, normalized size = 2.47 \begin {gather*} \frac {1}{80} \, \cosh \left (x\right )^{5} + \frac {1}{16} \, \cosh \left (x\right ) \sinh \left (x\right )^{4} - \frac {1}{48} \, \cosh \left (x\right )^{3} + \frac {1}{16} \, {\left (2 \, \cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right )^{2} - \frac {1}{8} \, \cosh \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 19, normalized size = 1.12 \begin {gather*} \frac {\sinh ^{2}{\left (x \right )} \cosh ^{3}{\left (x \right )}}{3} - \frac {2 \cosh ^{5}{\left (x \right )}}{15} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 37 vs.
\(2 (13) = 26\).
time = 0.45, size = 37, normalized size = 2.18 \begin {gather*} -\frac {1}{480} \, {\left (30 \, e^{\left (4 \, x\right )} + 5 \, e^{\left (2 \, x\right )} - 3\right )} e^{\left (-5 \, x\right )} + \frac {1}{160} \, e^{\left (5 \, x\right )} - \frac {1}{96} \, e^{\left (3 \, x\right )} - \frac {1}{16} \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 14, normalized size = 0.82 \begin {gather*} \frac {{\mathrm {cosh}\left (x\right )}^3\,\left (3\,{\mathrm {cosh}\left (x\right )}^2-5\right )}{15} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Chatgpt [F] Failed to verify
time = 1.00, size = 22, normalized size = 1.29 \begin {gather*} \frac {\left (\cosh ^{4}\left (x \right )\right )}{4}-\frac {\left (\cosh ^{2}\left (x \right )\right )}{2}+\frac {3 \left (\sinh ^{4}\left (x \right )\right )}{8}+\frac {x}{2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________