Integrand size = 13, antiderivative size = 108 \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=-\frac {a \left (2 a^2-b^2\right ) x}{2 b^4}-\frac {2 a^4 \text {arctanh}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{b^4 \sqrt {a^2+b^2}}-\frac {\left (2-\frac {3 a^2}{b^2}\right ) \cosh (x)}{3 b}-\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b} \]
[Out]
Time = 0.23 (sec) , antiderivative size = 108, 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 = {2872, 3128, 3102, 2814, 2739, 632, 212} \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=-\frac {\left (2-\frac {3 a^2}{b^2}\right ) \cosh (x)}{3 b}-\frac {a x \left (2 a^2-b^2\right )}{2 b^4}-\frac {2 a^4 \text {arctanh}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{b^4 \sqrt {a^2+b^2}}-\frac {a \sinh (x) \cosh (x)}{2 b^2}+\frac {\sinh ^2(x) \cosh (x)}{3 b} \]
[In]
[Out]
Rule 212
Rule 632
Rule 2739
Rule 2814
Rule 2872
Rule 3102
Rule 3128
Rubi steps \begin{align*} \text {integral}& = \frac {\cosh (x) \sinh ^2(x)}{3 b}-\frac {\int \frac {\sinh (x) \left (2 a+2 b \sinh (x)+3 a \sinh ^2(x)\right )}{a+b \sinh (x)} \, dx}{3 b} \\ & = -\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b}-\frac {\int \frac {-3 a^2+a b \sinh (x)-2 \left (3 a^2-2 b^2\right ) \sinh ^2(x)}{a+b \sinh (x)} \, dx}{6 b^2} \\ & = \frac {\left (3 a^2-2 b^2\right ) \cosh (x)}{3 b^3}-\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b}-\frac {i \int \frac {3 i a^2 b-3 i a \left (2 a^2-b^2\right ) \sinh (x)}{a+b \sinh (x)} \, dx}{6 b^3} \\ & = -\frac {a \left (2 a^2-b^2\right ) x}{2 b^4}+\frac {\left (3 a^2-2 b^2\right ) \cosh (x)}{3 b^3}-\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b}+\frac {a^4 \int \frac {1}{a+b \sinh (x)} \, dx}{b^4} \\ & = -\frac {a \left (2 a^2-b^2\right ) x}{2 b^4}+\frac {\left (3 a^2-2 b^2\right ) \cosh (x)}{3 b^3}-\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b}+\frac {\left (2 a^4\right ) \text {Subst}\left (\int \frac {1}{a+2 b x-a x^2} \, dx,x,\tanh \left (\frac {x}{2}\right )\right )}{b^4} \\ & = -\frac {a \left (2 a^2-b^2\right ) x}{2 b^4}+\frac {\left (3 a^2-2 b^2\right ) \cosh (x)}{3 b^3}-\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b}-\frac {\left (4 a^4\right ) \text {Subst}\left (\int \frac {1}{4 \left (a^2+b^2\right )-x^2} \, dx,x,2 b-2 a \tanh \left (\frac {x}{2}\right )\right )}{b^4} \\ & = -\frac {a \left (2 a^2-b^2\right ) x}{2 b^4}-\frac {2 a^4 \text {arctanh}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{b^4 \sqrt {a^2+b^2}}+\frac {\left (3 a^2-2 b^2\right ) \cosh (x)}{3 b^3}-\frac {a \cosh (x) \sinh (x)}{2 b^2}+\frac {\cosh (x) \sinh ^2(x)}{3 b} \\ \end{align*}
Time = 1.64 (sec) , antiderivative size = 105, normalized size of antiderivative = 0.97 \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=\frac {3 b \left (4 a^2-3 b^2\right ) \cosh (x)+b^3 \cosh (3 x)+3 a \left (-4 a^2 x+2 b^2 x+\frac {8 a^3 \arctan \left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {-a^2-b^2}}\right )}{\sqrt {-a^2-b^2}}-b^2 \sinh (2 x)\right )}{12 b^4} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(200\) vs. \(2(94)=188\).
Time = 0.67 (sec) , antiderivative size = 201, normalized size of antiderivative = 1.86
method | result | size |
risch | \(-\frac {a^{3} x}{b^{4}}+\frac {a x}{2 b^{2}}+\frac {{\mathrm e}^{3 x}}{24 b}-\frac {a \,{\mathrm e}^{2 x}}{8 b^{2}}+\frac {{\mathrm e}^{x} a^{2}}{2 b^{3}}-\frac {3 \,{\mathrm e}^{x}}{8 b}+\frac {{\mathrm e}^{-x} a^{2}}{2 b^{3}}-\frac {3 \,{\mathrm e}^{-x}}{8 b}+\frac {a \,{\mathrm e}^{-2 x}}{8 b^{2}}+\frac {{\mathrm e}^{-3 x}}{24 b}+\frac {a^{4} \ln \left ({\mathrm e}^{x}+\frac {a \sqrt {a^{2}+b^{2}}-a^{2}-b^{2}}{\sqrt {a^{2}+b^{2}}\, b}\right )}{\sqrt {a^{2}+b^{2}}\, b^{4}}-\frac {a^{4} \ln \left ({\mathrm e}^{x}+\frac {a \sqrt {a^{2}+b^{2}}+a^{2}+b^{2}}{\sqrt {a^{2}+b^{2}}\, b}\right )}{\sqrt {a^{2}+b^{2}}\, b^{4}}\) | \(201\) |
default | \(-\frac {1}{3 b \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}-\frac {a +b}{2 b^{2} \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}-\frac {2 a^{2}+a b -b^{2}}{2 b^{3} \left (\tanh \left (\frac {x}{2}\right )-1\right )}+\frac {a \left (2 a^{2}-b^{2}\right ) \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{2 b^{4}}+\frac {1}{3 b \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}-\frac {b -a}{2 b^{2} \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}-\frac {-2 a^{2}+a b +b^{2}}{2 b^{3} \left (\tanh \left (\frac {x}{2}\right )+1\right )}-\frac {a \left (2 a^{2}-b^{2}\right ) \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{2 b^{4}}+\frac {2 a^{4} \operatorname {arctanh}\left (\frac {2 a \tanh \left (\frac {x}{2}\right )-2 b}{2 \sqrt {a^{2}+b^{2}}}\right )}{b^{4} \sqrt {a^{2}+b^{2}}}\) | \(202\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 799 vs. \(2 (96) = 192\).
Time = 0.30 (sec) , antiderivative size = 799, normalized size of antiderivative = 7.40 \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 158, normalized size of antiderivative = 1.46 \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=\frac {a^{4} \log \left (\frac {b e^{\left (-x\right )} - a - \sqrt {a^{2} + b^{2}}}{b e^{\left (-x\right )} - a + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} b^{4}} - \frac {{\left (3 \, a b e^{\left (-x\right )} - b^{2} - 3 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )} e^{\left (-2 \, x\right )}\right )} e^{\left (3 \, x\right )}}{24 \, b^{3}} + \frac {3 \, a b e^{\left (-2 \, x\right )} + b^{2} e^{\left (-3 \, x\right )} + 3 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )} e^{\left (-x\right )}}{24 \, b^{3}} - \frac {{\left (2 \, a^{3} - a b^{2}\right )} x}{2 \, b^{4}} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 156, normalized size of antiderivative = 1.44 \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=\frac {a^{4} \log \left (\frac {{\left | 2 \, b e^{x} + 2 \, a - 2 \, \sqrt {a^{2} + b^{2}} \right |}}{{\left | 2 \, b e^{x} + 2 \, a + 2 \, \sqrt {a^{2} + b^{2}} \right |}}\right )}{\sqrt {a^{2} + b^{2}} b^{4}} + \frac {b^{2} e^{\left (3 \, x\right )} - 3 \, a b e^{\left (2 \, x\right )} + 12 \, a^{2} e^{x} - 9 \, b^{2} e^{x}}{24 \, b^{3}} - \frac {{\left (2 \, a^{3} - a b^{2}\right )} x}{2 \, b^{4}} + \frac {{\left (3 \, a b^{2} e^{x} + b^{3} + 3 \, {\left (4 \, a^{2} b - 3 \, b^{3}\right )} e^{\left (2 \, x\right )}\right )} e^{\left (-3 \, x\right )}}{24 \, b^{4}} \]
[In]
[Out]
Time = 1.54 (sec) , antiderivative size = 199, normalized size of antiderivative = 1.84 \[ \int \frac {\sinh ^4(x)}{a+b \sinh (x)} \, dx=\frac {{\mathrm {e}}^{-3\,x}}{24\,b}+\frac {{\mathrm {e}}^{3\,x}}{24\,b}+\frac {x\,\left (a\,b^2-2\,a^3\right )}{2\,b^4}+\frac {{\mathrm {e}}^x\,\left (4\,a^2-3\,b^2\right )}{8\,b^3}+\frac {a\,{\mathrm {e}}^{-2\,x}}{8\,b^2}-\frac {a\,{\mathrm {e}}^{2\,x}}{8\,b^2}+\frac {{\mathrm {e}}^{-x}\,\left (4\,a^2-3\,b^2\right )}{8\,b^3}-\frac {a^4\,\ln \left (-\frac {2\,a^4\,{\mathrm {e}}^x}{b^5}-\frac {2\,a^4\,\left (b-a\,{\mathrm {e}}^x\right )}{b^5\,\sqrt {a^2+b^2}}\right )}{b^4\,\sqrt {a^2+b^2}}+\frac {a^4\,\ln \left (\frac {2\,a^4\,\left (b-a\,{\mathrm {e}}^x\right )}{b^5\,\sqrt {a^2+b^2}}-\frac {2\,a^4\,{\mathrm {e}}^x}{b^5}\right )}{b^4\,\sqrt {a^2+b^2}} \]
[In]
[Out]