Optimal. Leaf size=610 \[ \frac {2 (a-b) \sqrt {a+b} \left (8 a^2+9 b^2\right ) \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 b^4 d}+\frac {2 \sqrt {a+b} \left (8 a^2-2 a b+9 b^2\right ) \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 b^3 d}-\frac {8 a \tanh (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{15 b^2 d}-\frac {4 (a-b) \sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 d}+\frac {2 \tanh (c+d x) \text {sech}(c+d x) \sqrt {a+b \text {sech}(c+d x)}}{5 b d}-\frac {4 \sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b d}+\frac {2 \sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.79, antiderivative size = 610, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 8, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {3895, 3784, 3837, 3832, 4004, 3860, 4082, 4005} \[ \frac {2 \sqrt {a+b} \left (8 a^2-2 a b+9 b^2\right ) \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 b^3 d}+\frac {2 (a-b) \sqrt {a+b} \left (8 a^2+9 b^2\right ) \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 b^4 d}-\frac {8 a \tanh (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{15 b^2 d}-\frac {4 (a-b) \sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 d}+\frac {2 \tanh (c+d x) \text {sech}(c+d x) \sqrt {a+b \text {sech}(c+d x)}}{5 b d}-\frac {4 \sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b d}+\frac {2 \sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3784
Rule 3832
Rule 3837
Rule 3860
Rule 3895
Rule 4004
Rule 4005
Rule 4082
Rubi steps
\begin {align*} \int \frac {\tanh ^4(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx &=\int \left (\frac {1}{\sqrt {a+b \text {sech}(c+d x)}}-\frac {2 \text {sech}^2(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}}+\frac {\text {sech}^4(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}}\right ) \, dx\\ &=-\left (2 \int \frac {\text {sech}^2(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\right )+\int \frac {1}{\sqrt {a+b \text {sech}(c+d x)}} \, dx+\int \frac {\text {sech}^4(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\\ &=\frac {2 \sqrt {a+b} \coth (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{a d}+\frac {2 \text {sech}(c+d x) \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{5 b d}+2 \int \frac {\text {sech}(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx-2 \int \frac {\text {sech}(c+d x) (1+\text {sech}(c+d x))}{\sqrt {a+b \text {sech}(c+d x)}} \, dx+\frac {\int \frac {\text {sech}(c+d x) \left (2 a+3 b \text {sech}(c+d x)-4 a \text {sech}^2(c+d x)\right )}{\sqrt {a+b \text {sech}(c+d x)}} \, dx}{5 b}\\ &=-\frac {4 (a-b) \sqrt {a+b} \coth (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{b^2 d}-\frac {4 \sqrt {a+b} \coth (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{b d}+\frac {2 \sqrt {a+b} \coth (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{a d}-\frac {8 a \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{15 b^2 d}+\frac {2 \text {sech}(c+d x) \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{5 b d}+\frac {2 \int \frac {\text {sech}(c+d x) \left (a b+\frac {1}{2} \left (8 a^2+9 b^2\right ) \text {sech}(c+d x)\right )}{\sqrt {a+b \text {sech}(c+d x)}} \, dx}{15 b^2}\\ &=-\frac {4 (a-b) \sqrt {a+b} \coth (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{b^2 d}-\frac {4 \sqrt {a+b} \coth (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{b d}+\frac {2 \sqrt {a+b} \coth (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{a d}-\frac {8 a \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{15 b^2 d}+\frac {2 \text {sech}(c+d x) \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{5 b d}+\frac {1}{15} \left (9+\frac {8 a^2}{b^2}\right ) \int \frac {\text {sech}(c+d x) (1+\text {sech}(c+d x))}{\sqrt {a+b \text {sech}(c+d x)}} \, dx-\frac {\left (8 a^2-2 a b+9 b^2\right ) \int \frac {\text {sech}(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx}{15 b^2}\\ &=-\frac {4 (a-b) \sqrt {a+b} \coth (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{b^2 d}+\frac {2 (a-b) \sqrt {a+b} \left (8 a^2+9 b^2\right ) \coth (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{15 b^4 d}-\frac {4 \sqrt {a+b} \coth (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{b d}+\frac {2 \sqrt {a+b} \left (8 a^2-2 a b+9 b^2\right ) \coth (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{15 b^3 d}+\frac {2 \sqrt {a+b} \coth (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{a d}-\frac {8 a \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{15 b^2 d}+\frac {2 \text {sech}(c+d x) \sqrt {a+b \text {sech}(c+d x)} \tanh (c+d x)}{5 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 180.00, size = 0, normalized size = 0.00 \[ \text {\$Aborted} \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.67, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\tanh \left (d x + c\right )^{4}}{\sqrt {b \operatorname {sech}\left (d x + c\right ) + a}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tanh \left (d x + c\right )^{4}}{\sqrt {b \operatorname {sech}\left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.64, size = 0, normalized size = 0.00 \[ \int \frac {\tanh ^{4}\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 \[ \int \frac {\tanh \left (d x + c\right )^{4}}{\sqrt {b \operatorname {sech}\left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {tanh}\left (c+d\,x\right )}^4}{\sqrt {a+\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tanh ^{4}{\left (c + d x \right )}}{\sqrt {a + b \operatorname {sech}{\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________