Optimal. Leaf size=28 \[ \frac {2 i}{1+i \sinh (x)}+i \log (-\sinh (x)+i) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {4391, 2667, 43} \[ \frac {2 i}{1+i \sinh (x)}+i \log (-\sinh (x)+i) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2667
Rule 4391
Rubi steps
\begin {align*} \int (\text {sech}(x)-i \tanh (x))^3 \, dx &=\int \text {sech}^3(x) (1-i \sinh (x))^3 \, dx\\ &=i \operatorname {Subst}\left (\int \frac {1+x}{(1-x)^2} \, dx,x,-i \sinh (x)\right )\\ &=i \operatorname {Subst}\left (\int \left (\frac {2}{(-1+x)^2}+\frac {1}{-1+x}\right ) \, dx,x,-i \sinh (x)\right )\\ &=i \log (i-\sinh (x))+\frac {2 i}{1+i \sinh (x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 39, normalized size = 1.39 \[ -\frac {1}{2} i \tanh ^2(x)+\frac {3}{2} i \text {sech}^2(x)-\tan ^{-1}(\sinh (x))+i \log (\cosh (x))+2 \tanh (x) \text {sech}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.41, size = 49, normalized size = 1.75 \[ \frac {-i \, x e^{\left (2 \, x\right )} - 2 \, {\left (x - 2\right )} e^{x} + {\left (2 i \, e^{\left (2 \, x\right )} + 4 \, e^{x} - 2 i\right )} \log \left (e^{x} - i\right ) + i \, x}{e^{\left (2 \, x\right )} - 2 i \, e^{x} - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 21, normalized size = 0.75 \[ -i \, x + \frac {4 \, e^{x}}{{\left (e^{x} - i\right )}^{2}} + 2 i \, \log \left (e^{x} - i\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.37, size = 41, normalized size = 1.46 \[ -\mathrm {sech}\relax (x ) \tanh \relax (x )-2 \arctan \left ({\mathrm e}^{x}\right )+\frac {3 i}{2 \cosh \relax (x )^{2}}+\frac {3 \sinh \relax (x )}{\cosh \relax (x )^{2}}+i \ln \left (\cosh \relax (x )\right )-\frac {i \left (\tanh ^{2}\relax (x )\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.86, size = 73, normalized size = 2.61 \[ -\frac {3}{2} i \, \tanh \relax (x)^{2} + i \, x + \frac {4 \, {\left (e^{\left (-x\right )} - e^{\left (-3 \, x\right )}\right )}}{2 \, e^{\left (-2 \, x\right )} + e^{\left (-4 \, x\right )} + 1} + \frac {2 i \, e^{\left (-2 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} + e^{\left (-4 \, x\right )} + 1} + 2 \, \arctan \left (e^{\left (-x\right )}\right ) + i \, \log \left (e^{\left (-2 \, x\right )} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 41, normalized size = 1.46 \[ -x\,1{}\mathrm {i}+\ln \left ({\mathrm {e}}^x-\mathrm {i}\right )\,2{}\mathrm {i}-\frac {4{}\mathrm {i}}{1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,2{}\mathrm {i}}+\frac {4}{{\mathrm {e}}^x-\mathrm {i}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (- i \tanh {\relax (x )} + \operatorname {sech}{\relax (x )}\right )^{3}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________