Optimal. Leaf size=610 \[ -\frac {4 (a-b) \sqrt {a+b} \coth (c+d x) E\left (\text {ArcSin}\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 (\text {ArcSin}\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 (\text {ArcSin}\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 (\text {ArcSin}\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};\text {ArcSin}\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} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.56, 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 = {3980, 3869,
3922, 3917, 4089, 3945, 4167, 4090} \begin {gather*} \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 (\text {ArcSin}\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 (\text {ArcSin}\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 {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 (\text {ArcSin}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 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 (\text {ArcSin}\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};\text {ArcSin}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a d}-\frac {8 a \tanh (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{15 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} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3869
Rule 3917
Rule 3922
Rule 3945
Rule 3980
Rule 4089
Rule 4090
Rule 4167
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 \begin {gather*} \text {\$Aborted} \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 3.19, 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 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tanh ^{4}{\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.00 \begin {gather*} \int \frac {{\mathrm {tanh}\left (c+d\,x\right )}^4}{\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]
________________________________________________________________________________________