Optimal. Leaf size=79 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d}-\frac {2 a \sqrt {a+b \text {sech}(c+d x)}}{b^2 d}+\frac {2 (a+b \text {sech}(c+d x))^{3/2}}{3 b^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3970, 912,
1167, 213} \begin {gather*} \frac {2 (a+b \text {sech}(c+d x))^{3/2}}{3 b^2 d}-\frac {2 a \sqrt {a+b \text {sech}(c+d x)}}{b^2 d}+\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 912
Rule 1167
Rule 3970
Rubi steps
\begin {align*} \int \frac {\tanh ^3(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx &=-\frac {\text {Subst}\left (\int \frac {b^2-x^2}{x \sqrt {a+x}} \, dx,x,b \text {sech}(c+d x)\right )}{b^2 d}\\ &=-\frac {2 \text {Subst}\left (\int \frac {-a^2+b^2+2 a x^2-x^4}{-a+x^2} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{b^2 d}\\ &=-\frac {2 \text {Subst}\left (\int \left (a-x^2+\frac {b^2}{-a+x^2}\right ) \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{b^2 d}\\ &=-\frac {2 a \sqrt {a+b \text {sech}(c+d x)}}{b^2 d}+\frac {2 (a+b \text {sech}(c+d x))^{3/2}}{3 b^2 d}-\frac {2 \text {Subst}\left (\int \frac {1}{-a+x^2} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{d}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d}-\frac {2 a \sqrt {a+b \text {sech}(c+d x)}}{b^2 d}+\frac {2 (a+b \text {sech}(c+d x))^{3/2}}{3 b^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.44, size = 111, normalized size = 1.41 \begin {gather*} \frac {2 \left (-2 a^2+\frac {3 b^2 \tanh ^{-1}\left (\frac {\sqrt {b+a \cosh (c+d x)}}{\sqrt {a \cosh (c+d x)}}\right ) \sqrt {b+a \cosh (c+d x)}}{\sqrt {a \cosh (c+d x)}}-a b \text {sech}(c+d x)+b^2 \text {sech}^2(c+d x)\right )}{3 b^2 d \sqrt {a+b \text {sech}(c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 2.67, size = 0, normalized size = 0.00 \[\int \frac {\tanh ^{3}\left (d x +c \right )}{\sqrt {a +b \,\mathrm {sech}\left (d x +c \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] Leaf count of result is larger than twice the leaf count of optimal. 333 vs.
\(2 (67) = 134\).
time = 0.80, size = 925, normalized size = 11.71 \begin {gather*} \left [\frac {3 \, {\left (b^{2} \cosh \left (d x + c\right )^{2} + 2 \, b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b^{2} \sinh \left (d x + c\right )^{2} + b^{2}\right )} \sqrt {a} \log \left (-\frac {2 \, a^{2} \cosh \left (d x + c\right )^{4} + 2 \, a^{2} \sinh \left (d x + c\right )^{4} + 4 \, a b \cosh \left (d x + c\right )^{3} + 4 \, {\left (2 \, a^{2} \cosh \left (d x + c\right ) + a b\right )} \sinh \left (d x + c\right )^{3} + 4 \, a b \cosh \left (d x + c\right ) + {\left (4 \, a^{2} + b^{2}\right )} \cosh \left (d x + c\right )^{2} + {\left (12 \, a^{2} \cosh \left (d x + c\right )^{2} + 12 \, a b \cosh \left (d x + c\right ) + 4 \, a^{2} + b^{2}\right )} \sinh \left (d x + c\right )^{2} + 2 \, a^{2} + 2 \, {\left (a \cosh \left (d x + c\right )^{4} + a \sinh \left (d x + c\right )^{4} + b \cosh \left (d x + c\right )^{3} + {\left (4 \, a \cosh \left (d x + c\right ) + b\right )} \sinh \left (d x + c\right )^{3} + 2 \, a \cosh \left (d x + c\right )^{2} + {\left (6 \, a \cosh \left (d x + c\right )^{2} + 3 \, b \cosh \left (d x + c\right ) + 2 \, a\right )} \sinh \left (d x + c\right )^{2} + b \cosh \left (d x + c\right ) + {\left (4 \, a \cosh \left (d x + c\right )^{3} + 3 \, b \cosh \left (d x + c\right )^{2} + 4 \, a \cosh \left (d x + c\right ) + b\right )} \sinh \left (d x + c\right ) + a\right )} \sqrt {a} \sqrt {\frac {a \cosh \left (d x + c\right ) + b}{\cosh \left (d x + c\right )}} + 2 \, {\left (4 \, a^{2} \cosh \left (d x + c\right )^{3} + 6 \, a b \cosh \left (d x + c\right )^{2} + 2 \, a b + {\left (4 \, a^{2} + b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{\cosh \left (d x + c\right )^{2} + 2 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + \sinh \left (d x + c\right )^{2}}\right ) - 8 \, {\left (a^{2} \cosh \left (d x + c\right )^{2} + a^{2} \sinh \left (d x + c\right )^{2} - a b \cosh \left (d x + c\right ) + a^{2} + {\left (2 \, a^{2} \cosh \left (d x + c\right ) - a b\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a \cosh \left (d x + c\right ) + b}{\cosh \left (d x + c\right )}}}{6 \, {\left (a b^{2} d \cosh \left (d x + c\right )^{2} + 2 \, a b^{2} d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a b^{2} d \sinh \left (d x + c\right )^{2} + a b^{2} d\right )}}, -\frac {3 \, {\left (b^{2} \cosh \left (d x + c\right )^{2} + 2 \, b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b^{2} \sinh \left (d x + c\right )^{2} + b^{2}\right )} \sqrt {-a} \arctan \left (\frac {{\left (a \cosh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{2} + b \cosh \left (d x + c\right ) + {\left (2 \, a \cosh \left (d x + c\right ) + b\right )} \sinh \left (d x + c\right ) + a\right )} \sqrt {-a} \sqrt {\frac {a \cosh \left (d x + c\right ) + b}{\cosh \left (d x + c\right )}}}{a^{2} \cosh \left (d x + c\right )^{2} + a^{2} \sinh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) + a^{2} + 2 \, {\left (a^{2} \cosh \left (d x + c\right ) + a b\right )} \sinh \left (d x + c\right )}\right ) + 4 \, {\left (a^{2} \cosh \left (d x + c\right )^{2} + a^{2} \sinh \left (d x + c\right )^{2} - a b \cosh \left (d x + c\right ) + a^{2} + {\left (2 \, a^{2} \cosh \left (d x + c\right ) - a b\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a \cosh \left (d x + c\right ) + b}{\cosh \left (d x + c\right )}}}{3 \, {\left (a b^{2} d \cosh \left (d x + c\right )^{2} + 2 \, a b^{2} d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a b^{2} d \sinh \left (d x + c\right )^{2} + a b^{2} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tanh ^{3}{\left (c + d x \right )}}{\sqrt {a + b \operatorname {sech}{\left (c + d x \right )}}}\, dx \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 {{\mathrm {tanh}\left (c+d\,x\right )}^3}{\sqrt {a+\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________