Optimal. Leaf size=16 \[ e^x-\tan ^{-1}\left (e^x\right )-\tanh ^{-1}\left (e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0141921, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {2282, 388, 212, 206, 203} \[ e^x-\tan ^{-1}\left (e^x\right )-\tanh ^{-1}\left (e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2282
Rule 388
Rule 212
Rule 206
Rule 203
Rubi steps
\begin{align*} \int e^x \coth (2 x) \, dx &=\operatorname{Subst}\left (\int \frac{-1-x^4}{1-x^4} \, dx,x,e^x\right )\\ &=e^x-2 \operatorname{Subst}\left (\int \frac{1}{1-x^4} \, dx,x,e^x\right )\\ &=e^x-\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,e^x\right )-\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,e^x\right )\\ &=e^x-\tan ^{-1}\left (e^x\right )-\tanh ^{-1}\left (e^x\right )\\ \end{align*}
Mathematica [A] time = 0.0119652, size = 16, normalized size = 1. \[ e^x-\tan ^{-1}\left (e^x\right )-\tanh ^{-1}\left (e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.063, size = 36, normalized size = 2.3 \begin{align*}{{\rm e}^{x}}+{\frac{\ln \left ({{\rm e}^{x}}-1 \right ) }{2}}+{\frac{i}{2}}\ln \left ({{\rm e}^{x}}-i \right ) -{\frac{i}{2}}\ln \left ({{\rm e}^{x}}+i \right ) -{\frac{\ln \left ({{\rm e}^{x}}+1 \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.53196, size = 30, normalized size = 1.88 \begin{align*} -\arctan \left (e^{x}\right ) + e^{x} - \frac{1}{2} \, \log \left (e^{x} + 1\right ) + \frac{1}{2} \, \log \left (e^{x} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.38938, size = 154, normalized size = 9.62 \begin{align*} -\arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) + \cosh \left (x\right ) - \frac{1}{2} \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + \frac{1}{2} \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + \sinh \left (x\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 e^{x} \coth{\left (2 x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28272, size = 31, normalized size = 1.94 \begin{align*} -\arctan \left (e^{x}\right ) + e^{x} - \frac{1}{2} \, \log \left (e^{x} + 1\right ) + \frac{1}{2} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]