Optimal. Leaf size=29 \[ 2 i \text {csch}(x)+\frac {\text {csch}^2(x)}{2}+2 \log (\sinh (x))-2 \log (i+\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2786, 78}
\begin {gather*} \frac {\text {csch}^2(x)}{2}+2 i \text {csch}(x)+2 \log (\sinh (x))-2 \log (\sinh (x)+i) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 2786
Rubi steps
\begin {align*} \int \frac {\coth ^3(x)}{(i+\sinh (x))^2} \, dx &=-\text {Subst}\left (\int \frac {i-x}{x^3 (i+x)} \, dx,x,\sinh (x)\right )\\ &=-\text {Subst}\left (\int \left (\frac {1}{x^3}+\frac {2 i}{x^2}-\frac {2}{x}+\frac {2}{i+x}\right ) \, dx,x,\sinh (x)\right )\\ &=2 i \text {csch}(x)+\frac {\text {csch}^2(x)}{2}+2 \log (\sinh (x))-2 \log (i+\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 29, normalized size = 1.00 \begin {gather*} 2 i \text {csch}(x)+\frac {\text {csch}^2(x)}{2}+2 \log (\sinh (x))-2 \log (i+\sinh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.97, size = 51, normalized size = 1.76
method | result | size |
risch | \(\frac {2 i {\mathrm e}^{x} \left (2 \,{\mathrm e}^{2 x}-2-i {\mathrm e}^{x}\right )}{\left ({\mathrm e}^{2 x}-1\right )^{2}}+2 \ln \left ({\mathrm e}^{2 x}-1\right )-4 \ln \left ({\mathrm e}^{x}+i\right )\) | \(45\) |
default | \(-i \tanh \left (\frac {x}{2}\right )+\frac {\left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}-4 \ln \left (\tanh \left (\frac {x}{2}\right )+i\right )+\frac {i}{\tanh \left (\frac {x}{2}\right )}+\frac {1}{8 \tanh \left (\frac {x}{2}\right )^{2}}+2 \ln \left (\tanh \left (\frac {x}{2}\right )\right )\) | \(51\) |
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. 63 vs. \(2 (23) = 46\).
time = 0.29, size = 63, normalized size = 2.17 \begin {gather*} -\frac {2 \, {\left (2 i \, e^{\left (-x\right )} + e^{\left (-2 \, x\right )} - 2 i \, e^{\left (-3 \, x\right )}\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} + 2 \, \log \left (e^{\left (-x\right )} + 1\right ) - 4 \, \log \left (e^{\left (-x\right )} - i\right ) + 2 \, \log \left (e^{\left (-x\right )} - 1\right ) \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. 70 vs. \(2 (23) = 46\).
time = 0.42, size = 70, normalized size = 2.41 \begin {gather*} \frac {2 \, {\left ({\left (e^{\left (4 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + 1\right )} \log \left (e^{\left (2 \, x\right )} - 1\right ) - 2 \, {\left (e^{\left (4 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + 1\right )} \log \left (e^{x} + i\right ) + 2 i \, e^{\left (3 \, x\right )} + e^{\left (2 \, x\right )} - 2 i \, e^{x}\right )}}{e^{\left (4 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 53, normalized size = 1.83 \begin {gather*} \frac {4 i e^{3 x} + 2 e^{2 x} - 4 i e^{x}}{e^{4 x} - 2 e^{2 x} + 1} - 4 \log {\left (e^{x} + i \right )} + 2 \log {\left (e^{2 x} - 1 \right )} \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. 54 vs. \(2 (23) = 46\).
time = 0.41, size = 54, normalized size = 1.86 \begin {gather*} -\frac {2 \, {\left (-2 i \, e^{\left (3 \, x\right )} - e^{\left (2 \, x\right )} + 2 i \, e^{x}\right )}}{{\left (e^{x} + 1\right )}^{2} {\left (e^{x} - 1\right )}^{2}} + 2 \, \log \left (e^{x} + 1\right ) - 4 \, \log \left (e^{x} + i\right ) + 2 \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 56, normalized size = 1.93 \begin {gather*} \frac {2}{{\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1}+2\,\ln \left (-{\mathrm {e}}^{2\,x}\,6{}\mathrm {i}+6{}\mathrm {i}\right )-4\,\ln \left (144\,{\mathrm {e}}^x+144{}\mathrm {i}\right )+\frac {2+{\mathrm {e}}^x\,4{}\mathrm {i}}{{\mathrm {e}}^{2\,x}-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________