Integrand size = 13, antiderivative size = 88 \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\frac {x}{a}-\frac {\left (2 a^2+3 b^2\right ) \text {arctanh}(\cosh (x))}{2 b^3}+\frac {2 \left (a^2+b^2\right )^{3/2} \text {arctanh}\left (\frac {a-b \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{a b^3}+\frac {a \coth (x)}{b^2}-\frac {\coth (x) \text {csch}(x)}{2 b} \]
[Out]
Time = 0.23 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used = {3983, 2972, 3136, 2739, 632, 210, 3855} \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=-\frac {\left (2 a^2+3 b^2\right ) \text {arctanh}(\cosh (x))}{2 b^3}+\frac {2 \left (a^2+b^2\right )^{3/2} \text {arctanh}\left (\frac {a-b \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{a b^3}+\frac {a \coth (x)}{b^2}+\frac {x}{a}-\frac {\coth (x) \text {csch}(x)}{2 b} \]
[In]
[Out]
Rule 210
Rule 632
Rule 2739
Rule 2972
Rule 3136
Rule 3855
Rule 3983
Rubi steps \begin{align*} \text {integral}& = i \int \frac {\cosh (x) \coth ^3(x)}{i b+i a \sinh (x)} \, dx \\ & = \frac {a \coth (x)}{b^2}-\frac {\coth (x) \text {csch}(x)}{2 b}-\frac {i \int \frac {\text {csch}(x) \left (-2 a^2-3 b^2+a b \sinh (x)-2 b^2 \sinh ^2(x)\right )}{i b+i a \sinh (x)} \, dx}{2 b^2} \\ & = \frac {x}{a}+\frac {a \coth (x)}{b^2}-\frac {\coth (x) \text {csch}(x)}{2 b}-\frac {\left (i \left (a^2+b^2\right )^2\right ) \int \frac {1}{i b+i a \sinh (x)} \, dx}{a b^3}+\frac {\left (2 a^2+3 b^2\right ) \int \text {csch}(x) \, dx}{2 b^3} \\ & = \frac {x}{a}-\frac {\left (2 a^2+3 b^2\right ) \text {arctanh}(\cosh (x))}{2 b^3}+\frac {a \coth (x)}{b^2}-\frac {\coth (x) \text {csch}(x)}{2 b}-\frac {\left (2 i \left (a^2+b^2\right )^2\right ) \text {Subst}\left (\int \frac {1}{i b+2 i a x-i b x^2} \, dx,x,\tanh \left (\frac {x}{2}\right )\right )}{a b^3} \\ & = \frac {x}{a}-\frac {\left (2 a^2+3 b^2\right ) \text {arctanh}(\cosh (x))}{2 b^3}+\frac {a \coth (x)}{b^2}-\frac {\coth (x) \text {csch}(x)}{2 b}+\frac {\left (4 i \left (a^2+b^2\right )^2\right ) \text {Subst}\left (\int \frac {1}{-4 \left (a^2+b^2\right )-x^2} \, dx,x,2 i a-2 i b \tanh \left (\frac {x}{2}\right )\right )}{a b^3} \\ & = \frac {x}{a}-\frac {\left (2 a^2+3 b^2\right ) \text {arctanh}(\cosh (x))}{2 b^3}+\frac {2 \left (a^2+b^2\right )^{3/2} \text {arctanh}\left (\frac {a-b \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{a b^3}+\frac {a \coth (x)}{b^2}-\frac {\coth (x) \text {csch}(x)}{2 b} \\ \end{align*}
Time = 0.55 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.95 \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\frac {\text {csch}(x) (b+a \sinh (x)) \left (8 b^3 x-16 \left (-a^2-b^2\right )^{3/2} \arctan \left (\frac {a-b \tanh \left (\frac {x}{2}\right )}{\sqrt {-a^2-b^2}}\right )+4 a^2 b \coth \left (\frac {x}{2}\right )-a b^2 \text {csch}^2\left (\frac {x}{2}\right )-4 a \left (2 a^2+3 b^2\right ) \log \left (\cosh \left (\frac {x}{2}\right )\right )+4 a \left (2 a^2+3 b^2\right ) \log \left (\sinh \left (\frac {x}{2}\right )\right )-a b^2 \text {sech}^2\left (\frac {x}{2}\right )+4 a^2 b \tanh \left (\frac {x}{2}\right )\right )}{8 a b^3 (a+b \text {csch}(x))} \]
[In]
[Out]
Time = 1.13 (sec) , antiderivative size = 150, normalized size of antiderivative = 1.70
method | result | size |
default | \(\frac {\frac {\tanh \left (\frac {x}{2}\right )^{2} b}{2}+2 a \tanh \left (\frac {x}{2}\right )}{4 b^{2}}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{a}+\frac {\left (8 a^{4}+16 a^{2} b^{2}+8 b^{4}\right ) \operatorname {arctanh}\left (\frac {-2 b \tanh \left (\frac {x}{2}\right )+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{4 a \,b^{3} \sqrt {a^{2}+b^{2}}}-\frac {1}{8 b \tanh \left (\frac {x}{2}\right )^{2}}+\frac {\left (4 a^{2}+6 b^{2}\right ) \ln \left (\tanh \left (\frac {x}{2}\right )\right )}{4 b^{3}}+\frac {a}{2 b^{2} \tanh \left (\frac {x}{2}\right )}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{a}\) | \(150\) |
risch | \(\frac {x}{a}+\frac {-{\mathrm e}^{3 x} b +2 a \,{\mathrm e}^{2 x}-{\mathrm e}^{x} b -2 a}{\left ({\mathrm e}^{2 x}-1\right )^{2} b^{2}}-\frac {\ln \left ({\mathrm e}^{x}+1\right ) a^{2}}{b^{3}}-\frac {3 \ln \left ({\mathrm e}^{x}+1\right )}{2 b}+\frac {\ln \left ({\mathrm e}^{x}-1\right ) a^{2}}{b^{3}}+\frac {3 \ln \left ({\mathrm e}^{x}-1\right )}{2 b}+\frac {\left (a^{2}+b^{2}\right )^{\frac {3}{2}} \ln \left ({\mathrm e}^{x}+\frac {\left (a^{2}+b^{2}\right )^{\frac {3}{2}}+a^{2} b +b^{3}}{\left (a^{2}+b^{2}\right ) a}\right )}{b^{3} a}-\frac {\left (a^{2}+b^{2}\right )^{\frac {3}{2}} \ln \left ({\mathrm e}^{x}-\frac {\left (a^{2}+b^{2}\right )^{\frac {3}{2}}-a^{2} b -b^{3}}{\left (a^{2}+b^{2}\right ) a}\right )}{b^{3} a}\) | \(194\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 831 vs. \(2 (80) = 160\).
Time = 0.34 (sec) , antiderivative size = 831, normalized size of antiderivative = 9.44 \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\int \frac {\coth ^{4}{\left (x \right )}}{a + b \operatorname {csch}{\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 178 vs. \(2 (80) = 160\).
Time = 0.28 (sec) , antiderivative size = 178, normalized size of antiderivative = 2.02 \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\frac {b e^{\left (-x\right )} + 2 \, a e^{\left (-2 \, x\right )} + b e^{\left (-3 \, x\right )} - 2 \, a}{2 \, b^{2} e^{\left (-2 \, x\right )} - b^{2} e^{\left (-4 \, x\right )} - b^{2}} + \frac {x}{a} - \frac {{\left (2 \, a^{2} + 3 \, b^{2}\right )} \log \left (e^{\left (-x\right )} + 1\right )}{2 \, b^{3}} + \frac {{\left (2 \, a^{2} + 3 \, b^{2}\right )} \log \left (e^{\left (-x\right )} - 1\right )}{2 \, b^{3}} - \frac {{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \log \left (\frac {a e^{\left (-x\right )} - b - \sqrt {a^{2} + b^{2}}}{a e^{\left (-x\right )} - b + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} a b^{3}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 161 vs. \(2 (80) = 160\).
Time = 0.29 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.83 \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\frac {x}{a} - \frac {{\left (2 \, a^{2} + 3 \, b^{2}\right )} \log \left (e^{x} + 1\right )}{2 \, b^{3}} + \frac {{\left (2 \, a^{2} + 3 \, b^{2}\right )} \log \left ({\left | e^{x} - 1 \right |}\right )}{2 \, b^{3}} - \frac {{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} \log \left (\frac {{\left | 2 \, a e^{x} + 2 \, b - 2 \, \sqrt {a^{2} + b^{2}} \right |}}{{\left | 2 \, a e^{x} + 2 \, b + 2 \, \sqrt {a^{2} + b^{2}} \right |}}\right )}{\sqrt {a^{2} + b^{2}} a b^{3}} - \frac {b e^{\left (3 \, x\right )} - 2 \, a e^{\left (2 \, x\right )} + b e^{x} + 2 \, a}{b^{2} {\left (e^{\left (2 \, x\right )} - 1\right )}^{2}} \]
[In]
[Out]
Time = 3.19 (sec) , antiderivative size = 378, normalized size of antiderivative = 4.30 \[ \int \frac {\coth ^4(x)}{a+b \text {csch}(x)} \, dx=\frac {\frac {2\,a}{b^2}-\frac {{\mathrm {e}}^x}{b}}{{\mathrm {e}}^{2\,x}-1}+\frac {x}{a}+\frac {\ln \left ({\mathrm {e}}^x-1\right )\,\left (2\,a^2+3\,b^2\right )}{2\,b^3}-\frac {\ln \left ({\mathrm {e}}^x+1\right )\,\left (2\,a^2+3\,b^2\right )}{2\,b^3}-\frac {2\,{\mathrm {e}}^x}{b\,\left ({\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1\right )}+\frac {\ln \left (a^3\,\sqrt {{\left (a^2+b^2\right )}^3}-2\,a^5\,b-2\,a\,b^5-4\,a^3\,b^3+a^6\,{\mathrm {e}}^x+4\,b^6\,{\mathrm {e}}^x+2\,a\,b^2\,\sqrt {{\left (a^2+b^2\right )}^3}-4\,b^3\,{\mathrm {e}}^x\,\sqrt {{\left (a^2+b^2\right )}^3}+9\,a^2\,b^4\,{\mathrm {e}}^x+6\,a^4\,b^2\,{\mathrm {e}}^x-3\,a^2\,b\,{\mathrm {e}}^x\,\sqrt {{\left (a^2+b^2\right )}^3}\right )\,\sqrt {{\left (a^2+b^2\right )}^3}}{a\,b^3}-\frac {\ln \left (a^6\,{\mathrm {e}}^x-2\,a^5\,b-a^3\,\sqrt {{\left (a^2+b^2\right )}^3}-4\,a^3\,b^3-2\,a\,b^5+4\,b^6\,{\mathrm {e}}^x-2\,a\,b^2\,\sqrt {{\left (a^2+b^2\right )}^3}+4\,b^3\,{\mathrm {e}}^x\,\sqrt {{\left (a^2+b^2\right )}^3}+9\,a^2\,b^4\,{\mathrm {e}}^x+6\,a^4\,b^2\,{\mathrm {e}}^x+3\,a^2\,b\,{\mathrm {e}}^x\,\sqrt {{\left (a^2+b^2\right )}^3}\right )\,\sqrt {{\left (a^2+b^2\right )}^3}}{a\,b^3} \]
[In]
[Out]