Optimal. Leaf size=162 \[ -\frac {6 x^2 \text {ArcTan}\left (e^{a+b x}\right )}{b^2}+\frac {6 x \cosh (a+b x)}{b^3}+\frac {x^3 \cosh (a+b x)}{b}+\frac {6 i x \text {PolyLog}\left (2,-i e^{a+b x}\right )}{b^3}-\frac {6 i x \text {PolyLog}\left (2,i e^{a+b x}\right )}{b^3}-\frac {6 i \text {PolyLog}\left (3,-i e^{a+b x}\right )}{b^4}+\frac {6 i \text {PolyLog}\left (3,i e^{a+b x}\right )}{b^4}+\frac {x^3 \text {sech}(a+b x)}{b}-\frac {6 \sinh (a+b x)}{b^4}-\frac {3 x^2 \sinh (a+b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 162, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 8, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {5557, 3377,
2717, 5526, 4265, 2611, 2320, 6724} \begin {gather*} -\frac {6 x^2 \text {ArcTan}\left (e^{a+b x}\right )}{b^2}-\frac {6 i \text {Li}_3\left (-i e^{a+b x}\right )}{b^4}+\frac {6 i \text {Li}_3\left (i e^{a+b x}\right )}{b^4}-\frac {6 \sinh (a+b x)}{b^4}+\frac {6 i x \text {Li}_2\left (-i e^{a+b x}\right )}{b^3}-\frac {6 i x \text {Li}_2\left (i e^{a+b x}\right )}{b^3}+\frac {6 x \cosh (a+b x)}{b^3}-\frac {3 x^2 \sinh (a+b x)}{b^2}+\frac {x^3 \cosh (a+b x)}{b}+\frac {x^3 \text {sech}(a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2320
Rule 2611
Rule 2717
Rule 3377
Rule 4265
Rule 5526
Rule 5557
Rule 6724
Rubi steps
\begin {align*} \int x^3 \sinh (a+b x) \tanh ^2(a+b x) \, dx &=\int x^3 \sinh (a+b x) \, dx-\int x^3 \text {sech}(a+b x) \tanh (a+b x) \, dx\\ &=\frac {x^3 \cosh (a+b x)}{b}+\frac {x^3 \text {sech}(a+b x)}{b}-\frac {3 \int x^2 \cosh (a+b x) \, dx}{b}-\frac {3 \int x^2 \text {sech}(a+b x) \, dx}{b}\\ &=-\frac {6 x^2 \tan ^{-1}\left (e^{a+b x}\right )}{b^2}+\frac {x^3 \cosh (a+b x)}{b}+\frac {x^3 \text {sech}(a+b x)}{b}-\frac {3 x^2 \sinh (a+b x)}{b^2}+\frac {(6 i) \int x \log \left (1-i e^{a+b x}\right ) \, dx}{b^2}-\frac {(6 i) \int x \log \left (1+i e^{a+b x}\right ) \, dx}{b^2}+\frac {6 \int x \sinh (a+b x) \, dx}{b^2}\\ &=-\frac {6 x^2 \tan ^{-1}\left (e^{a+b x}\right )}{b^2}+\frac {6 x \cosh (a+b x)}{b^3}+\frac {x^3 \cosh (a+b x)}{b}+\frac {6 i x \text {Li}_2\left (-i e^{a+b x}\right )}{b^3}-\frac {6 i x \text {Li}_2\left (i e^{a+b x}\right )}{b^3}+\frac {x^3 \text {sech}(a+b x)}{b}-\frac {3 x^2 \sinh (a+b x)}{b^2}-\frac {(6 i) \int \text {Li}_2\left (-i e^{a+b x}\right ) \, dx}{b^3}+\frac {(6 i) \int \text {Li}_2\left (i e^{a+b x}\right ) \, dx}{b^3}-\frac {6 \int \cosh (a+b x) \, dx}{b^3}\\ &=-\frac {6 x^2 \tan ^{-1}\left (e^{a+b x}\right )}{b^2}+\frac {6 x \cosh (a+b x)}{b^3}+\frac {x^3 \cosh (a+b x)}{b}+\frac {6 i x \text {Li}_2\left (-i e^{a+b x}\right )}{b^3}-\frac {6 i x \text {Li}_2\left (i e^{a+b x}\right )}{b^3}+\frac {x^3 \text {sech}(a+b x)}{b}-\frac {6 \sinh (a+b x)}{b^4}-\frac {3 x^2 \sinh (a+b x)}{b^2}-\frac {(6 i) \text {Subst}\left (\int \frac {\text {Li}_2(-i x)}{x} \, dx,x,e^{a+b x}\right )}{b^4}+\frac {(6 i) \text {Subst}\left (\int \frac {\text {Li}_2(i x)}{x} \, dx,x,e^{a+b x}\right )}{b^4}\\ &=-\frac {6 x^2 \tan ^{-1}\left (e^{a+b x}\right )}{b^2}+\frac {6 x \cosh (a+b x)}{b^3}+\frac {x^3 \cosh (a+b x)}{b}+\frac {6 i x \text {Li}_2\left (-i e^{a+b x}\right )}{b^3}-\frac {6 i x \text {Li}_2\left (i e^{a+b x}\right )}{b^3}-\frac {6 i \text {Li}_3\left (-i e^{a+b x}\right )}{b^4}+\frac {6 i \text {Li}_3\left (i e^{a+b x}\right )}{b^4}+\frac {x^3 \text {sech}(a+b x)}{b}-\frac {6 \sinh (a+b x)}{b^4}-\frac {3 x^2 \sinh (a+b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.28, size = 196, normalized size = 1.21 \begin {gather*} \frac {-3 i \left (b^2 x^2 \log \left (1-i e^{a+b x}\right )-b^2 x^2 \log \left (1+i e^{a+b x}\right )-2 b x \text {PolyLog}\left (2,-i e^{a+b x}\right )+2 b x \text {PolyLog}\left (2,i e^{a+b x}\right )+2 \text {PolyLog}\left (3,-i e^{a+b x}\right )-2 \text {PolyLog}\left (3,i e^{a+b x}\right )\right )+b^3 x^3 \text {sech}(a+b x)+\cosh (b x) \left (b x \left (6+b^2 x^2\right ) \cosh (a)-3 \left (2+b^2 x^2\right ) \sinh (a)\right )+\left (-3 \left (2+b^2 x^2\right ) \cosh (a)+b x \left (6+b^2 x^2\right ) \sinh (a)\right ) \sinh (b x)}{b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.60, size = 0, normalized size = 0.00 \[\int x^{3} \mathrm {sech}\left (b x +a \right )^{2} \left (\sinh ^{3}\left (b x +a \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1225 vs. \(2 (139) = 278\).
time = 0.41, size = 1225, normalized size = 7.56 \begin {gather*} \frac {b^{3} x^{3} + {\left (b^{3} x^{3} - 3 \, b^{2} x^{2} + 6 \, b x - 6\right )} \cosh \left (b x + a\right )^{4} + 4 \, {\left (b^{3} x^{3} - 3 \, b^{2} x^{2} + 6 \, b x - 6\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + {\left (b^{3} x^{3} - 3 \, b^{2} x^{2} + 6 \, b x - 6\right )} \sinh \left (b x + a\right )^{4} + 3 \, b^{2} x^{2} + 6 \, {\left (b^{3} x^{3} + 2 \, b x\right )} \cosh \left (b x + a\right )^{2} + 6 \, {\left (b^{3} x^{3} + {\left (b^{3} x^{3} - 3 \, b^{2} x^{2} + 6 \, b x - 6\right )} \cosh \left (b x + a\right )^{2} + 2 \, b x\right )} \sinh \left (b x + a\right )^{2} + 6 \, b x - 12 \, {\left (i \, b x \cosh \left (b x + a\right )^{3} + 3 i \, b x \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + i \, b x \sinh \left (b x + a\right )^{3} + i \, b x \cosh \left (b x + a\right ) + {\left (3 i \, b x \cosh \left (b x + a\right )^{2} + i \, b x\right )} \sinh \left (b x + a\right )\right )} {\rm Li}_2\left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 12 \, {\left (-i \, b x \cosh \left (b x + a\right )^{3} - 3 i \, b x \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} - i \, b x \sinh \left (b x + a\right )^{3} - i \, b x \cosh \left (b x + a\right ) + {\left (-3 i \, b x \cosh \left (b x + a\right )^{2} - i \, b x\right )} \sinh \left (b x + a\right )\right )} {\rm Li}_2\left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) - 6 \, {\left (i \, a^{2} \cosh \left (b x + a\right )^{3} + 3 i \, a^{2} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + i \, a^{2} \sinh \left (b x + a\right )^{3} + i \, a^{2} \cosh \left (b x + a\right ) + {\left (3 i \, a^{2} \cosh \left (b x + a\right )^{2} + i \, a^{2}\right )} \sinh \left (b x + a\right )\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) + i\right ) - 6 \, {\left (-i \, a^{2} \cosh \left (b x + a\right )^{3} - 3 i \, a^{2} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} - i \, a^{2} \sinh \left (b x + a\right )^{3} - i \, a^{2} \cosh \left (b x + a\right ) + {\left (-3 i \, a^{2} \cosh \left (b x + a\right )^{2} - i \, a^{2}\right )} \sinh \left (b x + a\right )\right )} \log \left (\cosh \left (b x + a\right ) + \sinh \left (b x + a\right ) - i\right ) - 6 \, {\left ({\left (-i \, b^{2} x^{2} + i \, a^{2}\right )} \cosh \left (b x + a\right )^{3} + 3 \, {\left (-i \, b^{2} x^{2} + i \, a^{2}\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + {\left (-i \, b^{2} x^{2} + i \, a^{2}\right )} \sinh \left (b x + a\right )^{3} + {\left (-i \, b^{2} x^{2} + i \, a^{2}\right )} \cosh \left (b x + a\right ) + {\left (-i \, b^{2} x^{2} + 3 \, {\left (-i \, b^{2} x^{2} + i \, a^{2}\right )} \cosh \left (b x + a\right )^{2} + i \, a^{2}\right )} \sinh \left (b x + a\right )\right )} \log \left (i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right ) + 1\right ) - 6 \, {\left ({\left (i \, b^{2} x^{2} - i \, a^{2}\right )} \cosh \left (b x + a\right )^{3} + 3 \, {\left (i \, b^{2} x^{2} - i \, a^{2}\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + {\left (i \, b^{2} x^{2} - i \, a^{2}\right )} \sinh \left (b x + a\right )^{3} + {\left (i \, b^{2} x^{2} - i \, a^{2}\right )} \cosh \left (b x + a\right ) + {\left (i \, b^{2} x^{2} + 3 \, {\left (i \, b^{2} x^{2} - i \, a^{2}\right )} \cosh \left (b x + a\right )^{2} - i \, a^{2}\right )} \sinh \left (b x + a\right )\right )} \log \left (-i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right ) + 1\right ) - 12 \, {\left (-i \, \cosh \left (b x + a\right )^{3} - 3 i \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} - i \, \sinh \left (b x + a\right )^{3} + {\left (-3 i \, \cosh \left (b x + a\right )^{2} - i\right )} \sinh \left (b x + a\right ) - i \, \cosh \left (b x + a\right )\right )} {\rm polylog}\left (3, i \, \cosh \left (b x + a\right ) + i \, \sinh \left (b x + a\right )\right ) - 12 \, {\left (i \, \cosh \left (b x + a\right )^{3} + 3 i \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + i \, \sinh \left (b x + a\right )^{3} + {\left (3 i \, \cosh \left (b x + a\right )^{2} + i\right )} \sinh \left (b x + a\right ) + i \, \cosh \left (b x + a\right )\right )} {\rm polylog}\left (3, -i \, \cosh \left (b x + a\right ) - i \, \sinh \left (b x + a\right )\right ) + 4 \, {\left ({\left (b^{3} x^{3} - 3 \, b^{2} x^{2} + 6 \, b x - 6\right )} \cosh \left (b x + a\right )^{3} + 3 \, {\left (b^{3} x^{3} + 2 \, b x\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right ) + 6}{2 \, {\left (b^{4} \cosh \left (b x + a\right )^{3} + 3 \, b^{4} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + b^{4} \sinh \left (b x + a\right )^{3} + b^{4} \cosh \left (b x + a\right ) + {\left (3 \, b^{4} \cosh \left (b x + a\right )^{2} + b^{4}\right )} \sinh \left (b x + a\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^3\,{\mathrm {sinh}\left (a+b\,x\right )}^3}{{\mathrm {cosh}\left (a+b\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________