Optimal. Leaf size=11 \[ i \log (i+\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {3238, 2746, 31}
\begin {gather*} i \log (\sinh (x)+i) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2746
Rule 3238
Rubi steps
\begin {align*} \int \frac {1}{\text {sech}(x)-i \tanh (x)} \, dx &=\int \frac {\cosh (x)}{1-i \sinh (x)} \, dx\\ &=i \text {Subst}\left (\int \frac {1}{1+x} \, dx,x,-i \sinh (x)\right )\\ &=i \log (i+\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 17, normalized size = 1.55 \begin {gather*} 2 \text {ArcTan}\left (\tanh \left (\frac {x}{2}\right )\right )+i \log (\cosh (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. 32 vs. \(2 (9 ) = 18\).
time = 1.85, size = 33, normalized size = 3.00
method | result | size |
risch | \(-i x +2 i \ln \left ({\mathrm e}^{x}+i\right )\) | \(15\) |
default | \(2 i \ln \left (i+\tanh \left (\frac {x}{2}\right )\right )-i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )-i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )\) | \(33\) |
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. 15 vs. \(2 (7) = 14\).
time = 0.27, size = 15, normalized size = 1.36 \begin {gather*} i \, x + 2 i \, \log \left (i \, e^{\left (-x\right )} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 11, normalized size = 1.00 \begin {gather*} -i \, x + 2 i \, \log \left (e^{x} + i\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. 22 vs. \(2 (7) = 14\).
time = 0.11, size = 22, normalized size = 2.00 \begin {gather*} i x - i \log {\left (\tanh {\left (x \right )} + 1 \right )} + i \log {\left (\tanh {\left (x \right )} + i \operatorname {sech}{\left (x \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 13, normalized size = 1.18 \begin {gather*} -i \, x + 2 i \, \log \left (-i \, e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 14, normalized size = 1.27 \begin {gather*} -x\,1{}\mathrm {i}+\ln \left ({\mathrm {e}}^x+1{}\mathrm {i}\right )\,2{}\mathrm {i} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________