Optimal. Leaf size=8 \[ \cosh (x)-i x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0312799, antiderivative size = 8, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2682, 8} \[ \cosh (x)-i x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \frac{\cosh ^2(x)}{i+\sinh (x)} \, dx &=\cosh (x)-i \int 1 \, dx\\ &=-i x+\cosh (x)\\ \end{align*}
Mathematica [B] time = 0.0463424, size = 34, normalized size = 4.25 \[ \cosh (x)+2 \sqrt{\cosh ^2(x)} \text{sech}(x) \sin ^{-1}\left (\frac{\sqrt{1-i \sinh (x)}}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.028, size = 40, normalized size = 5. \begin{align*} -i\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) + \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}+i\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) - \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.25592, size = 19, normalized size = 2.38 \begin{align*} -i \, x + \frac{1}{2} \, e^{\left (-x\right )} + \frac{1}{2} \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.69833, size = 53, normalized size = 6.62 \begin{align*} \frac{1}{2} \,{\left (-2 i \, x e^{x} + e^{\left (2 \, x\right )} + 1\right )} e^{\left (-x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.144915, size = 14, normalized size = 1.75 \begin{align*} - i x + \frac{e^{x}}{2} + \frac{e^{- x}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.23315, size = 19, normalized size = 2.38 \begin{align*} -i \, x + \frac{1}{2} \, e^{\left (-x\right )} + \frac{1}{2} \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]