Optimal. Leaf size=25 \[ -\frac {\sinh ^5(x)}{5}+\frac {\cosh ^5(x)}{5}-\frac {\cosh ^3(x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.636, Rules used = {3518, 3108, 3107, 2565, 14, 2564, 30} \[ -\frac {\sinh ^5(x)}{5}+\frac {\cosh ^5(x)}{5}-\frac {\cosh ^3(x)}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2564
Rule 2565
Rule 3107
Rule 3108
Rule 3518
Rubi steps
\begin {align*} \int \frac {\sinh ^3(x)}{1+\tanh (x)} \, dx &=\int \frac {\cosh (x) \sinh ^3(x)}{\cosh (x)+\sinh (x)} \, dx\\ &=i \int \cosh (x) (-i \cosh (x)+i \sinh (x)) \sinh ^3(x) \, dx\\ &=-\int \left (-\cosh ^2(x) \sinh ^3(x)+\cosh (x) \sinh ^4(x)\right ) \, dx\\ &=\int \cosh ^2(x) \sinh ^3(x) \, dx-\int \cosh (x) \sinh ^4(x) \, dx\\ &=i \operatorname {Subst}\left (\int x^4 \, dx,x,i \sinh (x)\right )-\operatorname {Subst}\left (\int x^2 \left (1-x^2\right ) \, dx,x,\cosh (x)\right )\\ &=-\frac {1}{5} \sinh ^5(x)-\operatorname {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}-\frac {\sinh ^5(x)}{5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 34, normalized size = 1.36 \[ \frac {1}{120} (\cosh (x)-\sinh (x)) (-10 \sinh (2 x)+\sinh (4 x)-20 \cosh (2 x)+4 \cosh (4 x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.76, size = 56, normalized size = 2.24 \[ \frac {\cosh \relax (x)^{4} + \cosh \relax (x) \sinh \relax (x)^{3} + \sinh \relax (x)^{4} + {\left (6 \, \cosh \relax (x)^{2} - 5\right )} \sinh \relax (x)^{2} - 5 \, \cosh \relax (x)^{2} + {\left (\cosh \relax (x)^{3} - 5 \, \cosh \relax (x)\right )} \sinh \relax (x)}{30 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 25, normalized size = 1.00 \[ -\frac {1}{240} \, {\left (10 \, e^{\left (2 \, x\right )} - 3\right )} e^{\left (-5 \, x\right )} + \frac {1}{48} \, e^{\left (3 \, x\right )} - \frac {1}{8} \, e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.07, size = 72, normalized size = 2.88 \[ -\frac {1}{6 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}-\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {1}{8 \tanh \left (\frac {x}{2}\right )-8}+\frac {2}{5 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{5}}-\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {2}{3 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}-\frac {1}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 27, normalized size = 1.08 \[ -\frac {1}{48} \, {\left (6 \, e^{\left (-2 \, x\right )} - 1\right )} e^{\left (3 \, x\right )} - \frac {1}{24} \, e^{\left (-3 \, x\right )} + \frac {1}{80} \, e^{\left (-5 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.18, size = 23, normalized size = 0.92 \[ \frac {{\mathrm {e}}^{3\,x}}{48}-\frac {{\mathrm {e}}^{-3\,x}}{24}+\frac {{\mathrm {e}}^{-5\,x}}{80}-\frac {{\mathrm {e}}^x}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.10, size = 134, normalized size = 5.36 \[ \frac {3 \sinh ^{3}{\relax (x )} \tanh {\relax (x )}}{15 \tanh {\relax (x )} + 15} - \frac {3 \sinh ^{3}{\relax (x )}}{15 \tanh {\relax (x )} + 15} + \frac {6 \sinh ^{2}{\relax (x )} \cosh {\relax (x )} \tanh {\relax (x )}}{15 \tanh {\relax (x )} + 15} + \frac {9 \sinh ^{2}{\relax (x )} \cosh {\relax (x )}}{15 \tanh {\relax (x )} + 15} - \frac {6 \sinh {\relax (x )} \cosh ^{2}{\relax (x )} \tanh {\relax (x )}}{15 \tanh {\relax (x )} + 15} + \frac {6 \sinh {\relax (x )} \cosh ^{2}{\relax (x )}}{15 \tanh {\relax (x )} + 15} - \frac {8 \cosh ^{3}{\relax (x )} \tanh {\relax (x )}}{15 \tanh {\relax (x )} + 15} - \frac {2 \cosh ^{3}{\relax (x )}}{15 \tanh {\relax (x )} + 15} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________