Optimal. Leaf size=33 \[ i \tanh ^{-1}(\cosh (x))-\frac{i \tanh ^{-1}\left (\frac{\cosh (x)+i \sinh (x)}{\sqrt{2}}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.102202, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.454, Rules used = {3518, 3110, 3770, 3074, 206} \[ i \tanh ^{-1}(\cosh (x))-\frac{i \tanh ^{-1}\left (\frac{\cosh (x)+i \sinh (x)}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3518
Rule 3110
Rule 3770
Rule 3074
Rule 206
Rubi steps
\begin{align*} \int \frac{\text{csch}(x)}{i+\tanh (x)} \, dx &=\int \frac{\coth (x)}{i \cosh (x)+\sinh (x)} \, dx\\ &=i \int \left (-\text{csch}(x)-\frac{i}{\cosh (x)-i \sinh (x)}\right ) \, dx\\ &=-(i \int \text{csch}(x) \, dx)+\int \frac{1}{\cosh (x)-i \sinh (x)} \, dx\\ &=i \tanh ^{-1}(\cosh (x))+i \operatorname{Subst}\left (\int \frac{1}{2-x^2} \, dx,x,-\cosh (x)-i \sinh (x)\right )\\ &=i \tanh ^{-1}(\cosh (x))-\frac{i \tanh ^{-1}\left (\frac{\cosh (x)+i \sinh (x)}{\sqrt{2}}\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [A] time = 0.0676641, size = 46, normalized size = 1.39 \[ -i \left (\sqrt{2} \tanh ^{-1}\left (\frac{1+i \tanh \left (\frac{x}{2}\right )}{\sqrt{2}}\right )+\log \left (\sinh \left (\frac{x}{2}\right )\right )-\log \left (\cosh \left (\frac{x}{2}\right )\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.036, size = 29, normalized size = 0.9 \begin{align*} \sqrt{2}\arctan \left ({\frac{\sqrt{2}}{4} \left ( 2\,\tanh \left ( x/2 \right ) -2\,i \right ) } \right ) -i\ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.56259, size = 46, normalized size = 1.39 \begin{align*} -\sqrt{2} \arctan \left (\left (\frac{1}{2} i + \frac{1}{2}\right ) \, \sqrt{2} e^{\left (-x\right )}\right ) + i \, \log \left (e^{\left (-x\right )} + 1\right ) - i \, \log \left (e^{\left (-x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.32153, size = 180, normalized size = 5.45 \begin{align*} -\frac{1}{2} i \, \sqrt{2} \log \left (-\left (\frac{1}{2} i - \frac{1}{2}\right ) \, \sqrt{2} + e^{x}\right ) + \frac{1}{2} i \, \sqrt{2} \log \left (\left (\frac{1}{2} i - \frac{1}{2}\right ) \, \sqrt{2} + e^{x}\right ) + i \, \log \left (e^{x} + 1\right ) - i \, \log \left (e^{x} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{csch}{\left (x \right )}}{\tanh{\left (x \right )} + i}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22636, size = 38, normalized size = 1.15 \begin{align*} \sqrt{2} \arctan \left (-\left (\frac{1}{2} i - \frac{1}{2}\right ) \, \sqrt{2} e^{x}\right ) + i \, \log \left (e^{x} + 1\right ) - i \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]