Optimal. Leaf size=23 \[ \frac {1}{4} i \coth ^4(x)-\text {csch}(x)-\frac {\text {csch}^3(x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2785, 2687, 30,
2686} \begin {gather*} \frac {1}{4} i \coth ^4(x)-\frac {\text {csch}^3(x)}{3}-\text {csch}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2686
Rule 2687
Rule 2785
Rubi steps
\begin {align*} \int \frac {\coth ^5(x)}{i+\sinh (x)} \, dx &=-\left (i \int \coth ^3(x) \text {csch}^2(x) \, dx\right )+\int \coth ^3(x) \text {csch}(x) \, dx\\ &=i \text {Subst}\left (\int x^3 \, dx,x,i \coth (x)\right )+i \text {Subst}\left (\int \left (-1+x^2\right ) \, dx,x,-i \text {csch}(x)\right )\\ &=\frac {1}{4} i \coth ^4(x)-\text {csch}(x)-\frac {\text {csch}^3(x)}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 33, normalized size = 1.43 \begin {gather*} -\text {csch}(x)+\frac {1}{2} i \text {csch}^2(x)-\frac {\text {csch}^3(x)}{3}+\frac {1}{4} i \text {csch}^4(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 67 vs. \(2 (18 ) = 36\).
time = 0.69, size = 68, normalized size = 2.96
method | result | size |
risch | \(-\frac {2 \,{\mathrm e}^{x} \left (-3 i {\mathrm e}^{5 x}+3 \,{\mathrm e}^{6 x}-5 \,{\mathrm e}^{4 x}-3 i {\mathrm e}^{x}+5 \,{\mathrm e}^{2 x}-3\right )}{3 \left ({\mathrm e}^{2 x}-1\right )^{4}}\) | \(45\) |
default | \(\frac {3 \tanh \left (\frac {x}{2}\right )}{8}+\frac {i \left (\tanh ^{4}\left (\frac {x}{2}\right )\right )}{64}+\frac {\left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{24}+\frac {i \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{16}-\frac {1}{24 \tanh \left (\frac {x}{2}\right )^{3}}+\frac {i}{16 \tanh \left (\frac {x}{2}\right )^{2}}-\frac {3}{8 \tanh \left (\frac {x}{2}\right )}+\frac {i}{64 \tanh \left (\frac {x}{2}\right )^{4}}\) | \(68\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 205 vs. \(2 (17) = 34\).
time = 0.26, size = 205, normalized size = 8.91 \begin {gather*} \frac {2 \, e^{\left (-x\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} - \frac {2 i \, e^{\left (-2 \, x\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} - \frac {10 \, e^{\left (-3 \, x\right )}}{3 \, {\left (4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1\right )}} + \frac {10 \, e^{\left (-5 \, x\right )}}{3 \, {\left (4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1\right )}} - \frac {2 i \, e^{\left (-6 \, x\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} - \frac {2 \, e^{\left (-7 \, x\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 63 vs. \(2 (17) = 34\).
time = 0.44, size = 63, normalized size = 2.74 \begin {gather*} -\frac {2 \, {\left (3 \, e^{\left (7 \, x\right )} - 3 i \, e^{\left (6 \, x\right )} - 5 \, e^{\left (5 \, x\right )} + 5 \, e^{\left (3 \, x\right )} - 3 i \, e^{\left (2 \, x\right )} - 3 \, e^{x}\right )}}{3 \, {\left (e^{\left (8 \, x\right )} - 4 \, e^{\left (6 \, x\right )} + 6 \, e^{\left (4 \, x\right )} - 4 \, e^{\left (2 \, x\right )} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 70 vs. \(2 (17) = 34\).
time = 0.09, size = 70, normalized size = 3.04 \begin {gather*} \frac {- 6 e^{7 x} + 6 i e^{6 x} + 10 e^{5 x} - 10 e^{3 x} + 6 i e^{2 x} + 6 e^{x}}{3 e^{8 x} - 12 e^{6 x} + 18 e^{4 x} - 12 e^{2 x} + 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 51 vs. \(2 (17) = 34\).
time = 0.41, size = 51, normalized size = 2.22 \begin {gather*} \frac {2 \, {\left (3 \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{3} + 3 i \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{2} + 4 \, e^{\left (-x\right )} - 4 \, e^{x} + 6 i\right )}}{3 \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.61, size = 44, normalized size = 1.91 \begin {gather*} \frac {2\,{\mathrm {e}}^x\,\left (5\,{\mathrm {e}}^{4\,x}-5\,{\mathrm {e}}^{2\,x}-3\,{\mathrm {e}}^{6\,x}+3+{\mathrm {e}}^{5\,x}\,3{}\mathrm {i}+{\mathrm {e}}^x\,3{}\mathrm {i}\right )}{3\,{\left ({\mathrm {e}}^{2\,x}-1\right )}^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________