Optimal. Leaf size=88 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (a^2-b^2\right )}{a b^2 d \sqrt {a+b \text {sech}(c+d x)}}+\frac {2 \sqrt {a+b \text {sech}(c+d x)}}{b^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 88, 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,
1275, 212} \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (a^2-b^2\right )}{a b^2 d \sqrt {a+b \text {sech}(c+d x)}}+\frac {2 \sqrt {a+b \text {sech}(c+d x)}}{b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 912
Rule 1275
Rule 3970
Rubi steps
\begin {align*} \int \frac {\tanh ^3(c+d x)}{(a+b \text {sech}(c+d x))^{3/2}} \, dx &=-\frac {\text {Subst}\left (\int \frac {b^2-x^2}{x (a+x)^{3/2}} \, 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}{x^2 \left (-a+x^2\right )} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{b^2 d}\\ &=-\frac {2 \text {Subst}\left (\int \left (-1+\frac {a^2-b^2}{a x^2}-\frac {b^2}{a \left (a-x^2\right )}\right ) \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{b^2 d}\\ &=\frac {2 \left (a^2-b^2\right )}{a b^2 d \sqrt {a+b \text {sech}(c+d x)}}+\frac {2 \sqrt {a+b \text {sech}(c+d x)}}{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 )}{a d}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (a^2-b^2\right )}{a b^2 d \sqrt {a+b \text {sech}(c+d x)}}+\frac {2 \sqrt {a+b \text {sech}(c+d x)}}{b^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.46, size = 103, normalized size = 1.17 \begin {gather*} \frac {2 \left (2 a^2-b^2+\frac {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)\right )}{a b^2 d \sqrt {a+b \text {sech}(c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 2.58, size = 0, normalized size = 0.00 \[\int \frac {\tanh ^{3}\left (d x +c \right )}{\left (a +b \,\mathrm {sech}\left (d x +c \right )\right )^{\frac {3}{2}}}\, 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. 424 vs.
\(2 (78) = 156\).
time = 0.78, size = 1107, normalized size = 12.58 \begin {gather*} \left [\frac {{\left (a b^{2} \cosh \left (d x + c\right )^{2} + a b^{2} \sinh \left (d x + c\right )^{2} + 2 \, b^{3} \cosh \left (d x + c\right ) + a b^{2} + 2 \, {\left (a b^{2} \cosh \left (d x + c\right ) + b^{3}\right )} \sinh \left (d x + c\right )\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 ) + 4 \, {\left (2 \, a^{2} b \cosh \left (d x + c\right ) + 2 \, a^{3} - a b^{2} + {\left (2 \, a^{3} - a b^{2}\right )} \cosh \left (d x + c\right )^{2} + {\left (2 \, a^{3} - a b^{2}\right )} \sinh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} b + {\left (2 \, a^{3} - a b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a \cosh \left (d x + c\right ) + b}{\cosh \left (d x + c\right )}}}{2 \, {\left (a^{3} b^{2} d \cosh \left (d x + c\right )^{2} + a^{3} b^{2} d \sinh \left (d x + c\right )^{2} + 2 \, a^{2} b^{3} d \cosh \left (d x + c\right ) + a^{3} b^{2} d + 2 \, {\left (a^{3} b^{2} d \cosh \left (d x + c\right ) + a^{2} b^{3} d\right )} \sinh \left (d x + c\right )\right )}}, -\frac {{\left (a b^{2} \cosh \left (d x + c\right )^{2} + a b^{2} \sinh \left (d x + c\right )^{2} + 2 \, b^{3} \cosh \left (d x + c\right ) + a b^{2} + 2 \, {\left (a b^{2} \cosh \left (d x + c\right ) + b^{3}\right )} \sinh \left (d x + c\right )\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 ) - 2 \, {\left (2 \, a^{2} b \cosh \left (d x + c\right ) + 2 \, a^{3} - a b^{2} + {\left (2 \, a^{3} - a b^{2}\right )} \cosh \left (d x + c\right )^{2} + {\left (2 \, a^{3} - a b^{2}\right )} \sinh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} b + {\left (2 \, a^{3} - a b^{2}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a \cosh \left (d x + c\right ) + b}{\cosh \left (d x + c\right )}}}{a^{3} b^{2} d \cosh \left (d x + c\right )^{2} + a^{3} b^{2} d \sinh \left (d x + c\right )^{2} + 2 \, a^{2} b^{3} d \cosh \left (d x + c\right ) + a^{3} b^{2} d + 2 \, {\left (a^{3} b^{2} d \cosh \left (d x + c\right ) + a^{2} b^{3} d\right )} \sinh \left (d x + c\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 )}}{\left (a + b \operatorname {sech}{\left (c + d x \right )}\right )^{\frac {3}{2}}}\, 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}{{\left (a+\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________