Integrand size = 23, antiderivative size = 246 \[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\frac {\sqrt {a+b} \coth (c+d x) \operatorname {EllipticF}\left (\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}}}{d}-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {2 \coth (c+d x) \operatorname {EllipticPi}\left (\frac {a}{a+b},\arcsin \left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right ),\frac {a-b}{a+b}\right ) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (1+\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x))}{\sqrt {a+b} d} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 246, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3981, 3865, 3960, 3917} \[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\frac {\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}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{d}+\frac {2 \coth (c+d x) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (\text {sech}(c+d x)+1)}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x)) \operatorname {EllipticPi}\left (\frac {a}{a+b},\arcsin \left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right ),\frac {a-b}{a+b}\right )}{d \sqrt {a+b}}-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d} \]
[In]
[Out]
Rule 3865
Rule 3917
Rule 3960
Rule 3981
Rubi steps \begin{align*} \text {integral}& = -\int \left (-\sqrt {a+b \text {sech}(c+d x)}-\text {csch}^2(c+d x) \sqrt {a+b \text {sech}(c+d x)}\right ) \, dx \\ & = \int \sqrt {a+b \text {sech}(c+d x)} \, dx+\int \text {csch}^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx \\ & = -\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {2 \coth (c+d x) \operatorname {EllipticPi}\left (\frac {a}{a+b},\arcsin \left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right ),\frac {a-b}{a+b}\right ) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (1+\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x))}{\sqrt {a+b} d}-\frac {1}{2} b \int \frac {\text {sech}(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx \\ & = \frac {\sqrt {a+b} \coth (c+d x) \operatorname {EllipticF}\left (\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}}}{d}-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {2 \coth (c+d x) \operatorname {EllipticPi}\left (\frac {a}{a+b},\arcsin \left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right ),\frac {a-b}{a+b}\right ) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (1+\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x))}{\sqrt {a+b} d} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(539\) vs. \(2(246)=492\).
Time = 18.56 (sec) , antiderivative size = 539, normalized size of antiderivative = 2.19 \[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {\sqrt {a+b \text {sech}(c+d x)} \left (\frac {2 \sqrt {b} (a-a \cosh (c+d x))^{3/2} \sqrt {\frac {(a+b) (a+a \cosh (c+d x))}{(a-b) (a-a \cosh (c+d x))}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a} \sqrt {b+a \cosh (c+d x)}}{\sqrt {b} \sqrt {a-a \cosh (c+d x)}}\right ),-\frac {2 b}{a-b}\right ) \sinh (c+d x)}{a^{3/2} \sqrt {-1+\cosh (c+d x)} \sqrt {1+\cosh (c+d x)} \sqrt {-\frac {a (a+b) \cosh (c+d x)}{b (a-a \cosh (c+d x))}} \left (-\frac {a-a \cosh (c+d x)}{a}\right )^{3/2} \sqrt {\frac {a+a \cosh (c+d x)}{a}} \sqrt {\text {sech}(c+d x)}}-\frac {4 b (a-a \cosh (c+d x)) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a} \sqrt {b+a \cosh (c+d x)}}{\sqrt {a+b} \sqrt {a \cosh (c+d x)}}\right ),\frac {a+b}{a-b}\right ) \sqrt {-\frac {b (a+a \cosh (c+d x)) \text {sech}(c+d x)}{a (a-b)}} \sinh (c+d x)}{\sqrt {a} \sqrt {a+b} \sqrt {-1+\cosh (c+d x)} \sqrt {a \cosh (c+d x)} \sqrt {1+\cosh (c+d x)} \sqrt {-\frac {a-a \cosh (c+d x)}{a}} \sqrt {\frac {a+a \cosh (c+d x)}{a}} \sqrt {\text {sech}(c+d x)} \sqrt {-\frac {b (a-a \cosh (c+d x)) \text {sech}(c+d x)}{a (a+b)}}}\right )}{2 d \sqrt {b+a \cosh (c+d x)} \sqrt {\text {sech}(c+d x)}} \]
[In]
[Out]
\[\int \coth \left (d x +c \right )^{2} \sqrt {a +b \,\operatorname {sech}\left (d x +c \right )}d x\]
[In]
[Out]
Timed out. \[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\int \sqrt {a + b \operatorname {sech}{\left (c + d x \right )}} \coth ^{2}{\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\int { \sqrt {b \operatorname {sech}\left (d x + c\right ) + a} \coth \left (d x + c\right )^{2} \,d x } \]
[In]
[Out]
\[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\int { \sqrt {b \operatorname {sech}\left (d x + c\right ) + a} \coth \left (d x + c\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx=\int {\mathrm {coth}\left (c+d\,x\right )}^2\,\sqrt {a+\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}} \,d x \]
[In]
[Out]