Optimal. Leaf size=19 \[ -i \log (\sinh (x))+i \log (i+\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2786, 36, 29,
31} \begin {gather*} i \log (\sinh (x)+i)-i \log (\sinh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2786
Rubi steps
\begin {align*} \int \frac {\coth (x)}{i+\sinh (x)} \, dx &=\text {Subst}\left (\int \frac {1}{x (i+x)} \, dx,x,\sinh (x)\right )\\ &=-\left (i \text {Subst}\left (\int \frac {1}{x} \, dx,x,\sinh (x)\right )\right )+i \text {Subst}\left (\int \frac {1}{i+x} \, dx,x,\sinh (x)\right )\\ &=-i \log (\sinh (x))+i \log (i+\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 19, normalized size = 1.00 \begin {gather*} -i \log (\sinh (x))+i \log (i+\sinh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.54, size = 17, normalized size = 0.89
method | result | size |
derivativedivides | \(-i \ln \left (\sinh \left (x \right )\right )+i \ln \left (i+\sinh \left (x \right )\right )\) | \(17\) |
default | \(-i \ln \left (\sinh \left (x \right )\right )+i \ln \left (i+\sinh \left (x \right )\right )\) | \(17\) |
risch | \(2 i \ln \left ({\mathrm e}^{x}+i\right )-i \ln \left ({\mathrm e}^{2 x}-1\right )\) | \(21\) |
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. 28 vs. \(2 (13) = 26\).
time = 0.27, size = 28, normalized size = 1.47 \begin {gather*} -i \, \log \left (e^{\left (-x\right )} + 1\right ) + 2 i \, \log \left (e^{\left (-x\right )} - i\right ) - i \, \log \left (e^{\left (-x\right )} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 17, normalized size = 0.89 \begin {gather*} -i \, \log \left (e^{\left (2 \, x\right )} - 1\right ) + 2 i \, \log \left (e^{x} + i\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 19, normalized size = 1.00 \begin {gather*} 2 i \log {\left (e^{x} + i \right )} - i \log {\left (e^{2 x} - 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 23, normalized size = 1.21 \begin {gather*} -i \, \log \left (e^{x} + 1\right ) + 2 i \, \log \left (e^{x} + i\right ) - i \, \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.15, size = 24, normalized size = 1.26 \begin {gather*} \ln \left (-36\,{\mathrm {e}}^x-36{}\mathrm {i}\right )\,2{}\mathrm {i}-\ln \left (3-3\,{\mathrm {e}}^{2\,x}\right )\,1{}\mathrm {i} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________