Optimal. Leaf size=81 \[ \frac {b \coth (x)}{a^2}+\frac {\left (a^2-2 b^2\right ) \tanh ^{-1}(\cosh (x))}{2 a^3}+\frac {2 b^3 \tanh ^{-1}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2}}-\frac {\coth (x) \text {csch}(x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.32, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used = {2802, 3055, 3001, 3770, 2660, 618, 206} \[ \frac {2 b^3 \tanh ^{-1}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2}}+\frac {\left (a^2-2 b^2\right ) \tanh ^{-1}(\cosh (x))}{2 a^3}+\frac {b \coth (x)}{a^2}-\frac {\coth (x) \text {csch}(x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 618
Rule 2660
Rule 2802
Rule 3001
Rule 3055
Rule 3770
Rubi steps
\begin {align*} \int \frac {\text {csch}^3(x)}{a+b \sinh (x)} \, dx &=-\frac {\coth (x) \text {csch}(x)}{2 a}+\frac {i \int \frac {\text {csch}^2(x) \left (2 i b+i a \sinh (x)+i b \sinh ^2(x)\right )}{a+b \sinh (x)} \, dx}{2 a}\\ &=\frac {b \coth (x)}{a^2}-\frac {\coth (x) \text {csch}(x)}{2 a}-\frac {\int \frac {\text {csch}(x) \left (a^2-2 b^2+a b \sinh (x)\right )}{a+b \sinh (x)} \, dx}{2 a^2}\\ &=\frac {b \coth (x)}{a^2}-\frac {\coth (x) \text {csch}(x)}{2 a}-\frac {b^3 \int \frac {1}{a+b \sinh (x)} \, dx}{a^3}-\frac {\left (a^2-2 b^2\right ) \int \text {csch}(x) \, dx}{2 a^3}\\ &=\frac {\left (a^2-2 b^2\right ) \tanh ^{-1}(\cosh (x))}{2 a^3}+\frac {b \coth (x)}{a^2}-\frac {\coth (x) \text {csch}(x)}{2 a}-\frac {\left (2 b^3\right ) \operatorname {Subst}\left (\int \frac {1}{a+2 b x-a x^2} \, dx,x,\tanh \left (\frac {x}{2}\right )\right )}{a^3}\\ &=\frac {\left (a^2-2 b^2\right ) \tanh ^{-1}(\cosh (x))}{2 a^3}+\frac {b \coth (x)}{a^2}-\frac {\coth (x) \text {csch}(x)}{2 a}+\frac {\left (4 b^3\right ) \operatorname {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 )}{a^3}\\ &=\frac {\left (a^2-2 b^2\right ) \tanh ^{-1}(\cosh (x))}{2 a^3}+\frac {2 b^3 \tanh ^{-1}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {a^2+b^2}}\right )}{a^3 \sqrt {a^2+b^2}}+\frac {b \coth (x)}{a^2}-\frac {\coth (x) \text {csch}(x)}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.54, size = 118, normalized size = 1.46 \[ -\frac {4 \left (a^2-2 b^2\right ) \log \left (\tanh \left (\frac {x}{2}\right )\right )+\frac {16 b^3 \tan ^{-1}\left (\frac {b-a \tanh \left (\frac {x}{2}\right )}{\sqrt {-a^2-b^2}}\right )}{\sqrt {-a^2-b^2}}+a^2 \text {csch}^2\left (\frac {x}{2}\right )+a^2 \text {sech}^2\left (\frac {x}{2}\right )-4 a b \tanh \left (\frac {x}{2}\right )-4 a b \coth \left (\frac {x}{2}\right )}{8 a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.06, size = 929, normalized size = 11.47 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 137, normalized size = 1.69 \[ -\frac {b^{3} \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}} a^{3}} + \frac {{\left (a^{2} - 2 \, b^{2}\right )} \log \left (e^{x} + 1\right )}{2 \, a^{3}} - \frac {{\left (a^{2} - 2 \, b^{2}\right )} \log \left ({\left | e^{x} - 1 \right |}\right )}{2 \, a^{3}} - \frac {a e^{\left (3 \, x\right )} - 2 \, b e^{\left (2 \, x\right )} + a e^{x} + 2 \, b}{a^{2} {\left (e^{\left (2 \, x\right )} - 1\right )}^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 108, normalized size = 1.33 \[ \frac {\tanh ^{2}\left (\frac {x}{2}\right )}{8 a}+\frac {\tanh \left (\frac {x}{2}\right ) b}{2 a^{2}}-\frac {2 b^{3} \arctanh \left (\frac {2 a \tanh \left (\frac {x}{2}\right )-2 b}{2 \sqrt {a^{2}+b^{2}}}\right )}{a^{3} \sqrt {a^{2}+b^{2}}}-\frac {1}{8 a \tanh \left (\frac {x}{2}\right )^{2}}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )\right )}{2 a}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )\right ) b^{2}}{a^{3}}+\frac {b}{2 a^{2} \tanh \left (\frac {x}{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.41, size = 154, normalized size = 1.90 \[ -\frac {b^{3} \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}} a^{3}} + \frac {a e^{\left (-x\right )} + 2 \, b e^{\left (-2 \, x\right )} + a e^{\left (-3 \, x\right )} - 2 \, b}{2 \, a^{2} e^{\left (-2 \, x\right )} - a^{2} e^{\left (-4 \, x\right )} - a^{2}} + \frac {{\left (a^{2} - 2 \, b^{2}\right )} \log \left (e^{\left (-x\right )} + 1\right )}{2 \, a^{3}} - \frac {{\left (a^{2} - 2 \, b^{2}\right )} \log \left (e^{\left (-x\right )} - 1\right )}{2 \, a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.00, size = 617, normalized size = 7.62 \[ \frac {{\mathrm {e}}^x}{a-a\,{\mathrm {e}}^{2\,x}}-\frac {2\,{\mathrm {e}}^x}{a-2\,a\,{\mathrm {e}}^{2\,x}+a\,{\mathrm {e}}^{4\,x}}-\frac {\ln \left (4\,a^4+24\,b^4-20\,a^2\,b^2-4\,a^4\,{\mathrm {e}}^x-24\,b^4\,{\mathrm {e}}^x+20\,a^2\,b^2\,{\mathrm {e}}^x\right )}{2\,a}+\frac {\ln \left (4\,a^4+24\,b^4-20\,a^2\,b^2+4\,a^4\,{\mathrm {e}}^x+24\,b^4\,{\mathrm {e}}^x-20\,a^2\,b^2\,{\mathrm {e}}^x\right )}{2\,a}+\frac {2\,b}{a^2\,{\mathrm {e}}^{2\,x}-a^2}+\frac {b^2\,\ln \left (4\,a^4+24\,b^4-20\,a^2\,b^2-4\,a^4\,{\mathrm {e}}^x-24\,b^4\,{\mathrm {e}}^x+20\,a^2\,b^2\,{\mathrm {e}}^x\right )}{a^3}-\frac {b^2\,\ln \left (4\,a^4+24\,b^4-20\,a^2\,b^2+4\,a^4\,{\mathrm {e}}^x+24\,b^4\,{\mathrm {e}}^x-20\,a^2\,b^2\,{\mathrm {e}}^x\right )}{a^3}-\frac {b^3\,\ln \left (16\,a^5\,b-48\,a\,b^5-24\,b^5\,\sqrt {a^2+b^2}-32\,a^3\,b^3-32\,a^6\,{\mathrm {e}}^x+24\,b^6\,{\mathrm {e}}^x-40\,a^2\,b^3\,\sqrt {a^2+b^2}-32\,a^5\,{\mathrm {e}}^x\,\sqrt {a^2+b^2}+112\,a^2\,b^4\,{\mathrm {e}}^x+56\,a^4\,b^2\,{\mathrm {e}}^x+16\,a^4\,b\,\sqrt {a^2+b^2}+72\,a\,b^4\,{\mathrm {e}}^x\,\sqrt {a^2+b^2}+72\,a^3\,b^2\,{\mathrm {e}}^x\,\sqrt {a^2+b^2}\right )\,\sqrt {a^2+b^2}}{a^5+a^3\,b^2}+\frac {b^3\,\ln \left (24\,b^5\,\sqrt {a^2+b^2}-48\,a\,b^5+16\,a^5\,b-32\,a^3\,b^3-32\,a^6\,{\mathrm {e}}^x+24\,b^6\,{\mathrm {e}}^x+40\,a^2\,b^3\,\sqrt {a^2+b^2}+32\,a^5\,{\mathrm {e}}^x\,\sqrt {a^2+b^2}+112\,a^2\,b^4\,{\mathrm {e}}^x+56\,a^4\,b^2\,{\mathrm {e}}^x-16\,a^4\,b\,\sqrt {a^2+b^2}-72\,a\,b^4\,{\mathrm {e}}^x\,\sqrt {a^2+b^2}-72\,a^3\,b^2\,{\mathrm {e}}^x\,\sqrt {a^2+b^2}\right )\,\sqrt {a^2+b^2}}{a^5+a^3\,b^2} \]
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 {\operatorname {csch}^{3}{\relax (x )}}{a + b \sinh {\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________