Optimal. Leaf size=25 \[ x-\frac{1}{2} \log \left (e^{2 x}+1\right )-e^{-x} \tan ^{-1}\left (e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0211932, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 6, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {2194, 5207, 2282, 36, 29, 31} \[ x-\frac{1}{2} \log \left (e^{2 x}+1\right )-e^{-x} \tan ^{-1}\left (e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2194
Rule 5207
Rule 2282
Rule 36
Rule 29
Rule 31
Rubi steps
\begin{align*} \int e^{-x} \tan ^{-1}\left (e^x\right ) \, dx &=-e^{-x} \tan ^{-1}\left (e^x\right )+\int \frac{1}{1+e^{2 x}} \, dx\\ &=-e^{-x} \tan ^{-1}\left (e^x\right )+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{x (1+x)} \, dx,x,e^{2 x}\right )\\ &=-e^{-x} \tan ^{-1}\left (e^x\right )+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,e^{2 x}\right )-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{1+x} \, dx,x,e^{2 x}\right )\\ &=x-e^{-x} \tan ^{-1}\left (e^x\right )-\frac{1}{2} \log \left (1+e^{2 x}\right )\\ \end{align*}
Mathematica [A] time = 0.0172051, size = 25, normalized size = 1. \[ x-\frac{1}{2} \log \left (e^{2 x}+1\right )-e^{-x} \tan ^{-1}\left (e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 23, normalized size = 0.9 \begin{align*} -{\frac{\arctan \left ({{\rm e}^{x}} \right ) }{{{\rm e}^{x}}}}-{\frac{\ln \left ( \left ({{\rm e}^{x}} \right ) ^{2}+1 \right ) }{2}}+\ln \left ({{\rm e}^{x}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.946223, size = 26, normalized size = 1.04 \begin{align*} -\arctan \left (e^{x}\right ) e^{\left (-x\right )} - \frac{1}{2} \, \log \left (e^{\left (-2 \, x\right )} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.14754, size = 82, normalized size = 3.28 \begin{align*} \frac{1}{2} \,{\left (2 \, x e^{x} - e^{x} \log \left (e^{\left (2 \, x\right )} + 1\right ) - 2 \, \arctan \left (e^{x}\right )\right )} e^{\left (-x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 11.4519, size = 19, normalized size = 0.76 \begin{align*} x - \frac{\log{\left (e^{2 x} + 1 \right )}}{2} - e^{- x} \operatorname{atan}{\left (e^{x} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09933, size = 27, normalized size = 1.08 \begin{align*} -\arctan \left (e^{x}\right ) e^{\left (-x\right )} + x - \frac{1}{2} \, \log \left (e^{\left (2 \, x\right )} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]