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.07, antiderivative size = 33, normalized size of antiderivative = 1.00, 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 = {3599, 3189,
3855, 3153, 212} \begin {gather*} i \tanh ^{-1}(\cosh (x))-\frac {i \tanh ^{-1}\left (\frac {\cosh (x)+i \sinh (x)}{\sqrt {2}}\right )}{\sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3153
Rule 3189
Rule 3599
Rule 3855
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 \text {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.05, size = 46, normalized size = 1.39 \begin {gather*} -i \left (\sqrt {2} \tanh ^{-1}\left (\frac {1+i \tanh \left (\frac {x}{2}\right )}{\sqrt {2}}\right )-\log \left (\cosh \left (\frac {x}{2}\right )\right )+\log \left (\sinh \left (\frac {x}{2}\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.93, size = 29, normalized size = 0.88
method | result | size |
default | \(\sqrt {2}\, \arctan \left (\frac {\left (2 \tanh \left (\frac {x}{2}\right )-2 i\right ) \sqrt {2}}{4}\right )-i \ln \left (\tanh \left (\frac {x}{2}\right )\right )\) | \(29\) |
risch | \(i \ln \left ({\mathrm e}^{x}+1\right )+\frac {i \sqrt {2}\, \ln \left ({\mathrm e}^{x}-\frac {\sqrt {2}}{2}+\frac {i \sqrt {2}}{2}\right )}{2}-\frac {i \sqrt {2}\, \ln \left ({\mathrm e}^{x}+\frac {\sqrt {2}}{2}-\frac {i \sqrt {2}}{2}\right )}{2}-i \ln \left ({\mathrm e}^{x}-1\right )\) | \(60\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.53, size = 34, normalized size = 1.03 \begin {gather*} -\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 43, normalized size = 1.30 \begin {gather*} -\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {csch}{\left (x \right )}}{\tanh {\left (x \right )} + i}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 28, normalized size = 0.85 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.46, size = 61, normalized size = 1.85 \begin {gather*} \ln \left (-8\,{\mathrm {e}}^x-8\right )\,1{}\mathrm {i}-\ln \left (8-8\,{\mathrm {e}}^x\right )\,1{}\mathrm {i}-\frac {\sqrt {2}\,\ln \left ({\mathrm {e}}^x\,\left (4-4{}\mathrm {i}\right )-\sqrt {2}\,4{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}+\frac {\sqrt {2}\,\ln \left ({\mathrm {e}}^x\,\left (4-4{}\mathrm {i}\right )+\sqrt {2}\,4{}\mathrm {i}\right )\,1{}\mathrm {i}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________