Optimal. Leaf size=27 \[ -x-e^{-x} \cot ^{-1}\left (e^x\right )+\frac {1}{2} \log \left (1+e^{2 x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {2225, 5316,
2320, 36, 29, 31} \begin {gather*} -x+\frac {1}{2} \log \left (e^{2 x}+1\right )-e^{-x} \cot ^{-1}\left (e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2225
Rule 2320
Rule 5316
Rubi steps
\begin {align*} \int e^{-x} \cot ^{-1}\left (e^x\right ) \, dx &=-e^{-x} \cot ^{-1}\left (e^x\right )-\int \frac {1}{1+e^{2 x}} \, dx\\ &=-e^{-x} \cot ^{-1}\left (e^x\right )-\frac {1}{2} \text {Subst}\left (\int \frac {1}{x (1+x)} \, dx,x,e^{2 x}\right )\\ &=-e^{-x} \cot ^{-1}\left (e^x\right )-\frac {1}{2} \text {Subst}\left (\int \frac {1}{x} \, dx,x,e^{2 x}\right )+\frac {1}{2} \text {Subst}\left (\int \frac {1}{1+x} \, dx,x,e^{2 x}\right )\\ &=-x-e^{-x} \cot ^{-1}\left (e^x\right )+\frac {1}{2} \log \left (1+e^{2 x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 27, normalized size = 1.00 \begin {gather*} -x-e^{-x} \cot ^{-1}\left (e^x\right )+\frac {1}{2} \log \left (1+e^{2 x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 25, normalized size = 0.93
method | result | size |
derivativedivides | \(-\mathrm {arccot}\left ({\mathrm e}^{x}\right ) {\mathrm e}^{-x}+\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{2}-\ln \left ({\mathrm e}^{x}\right )\) | \(25\) |
default | \(-\mathrm {arccot}\left ({\mathrm e}^{x}\right ) {\mathrm e}^{-x}+\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{2}-\ln \left ({\mathrm e}^{x}\right )\) | \(25\) |
risch | \(-\frac {i {\mathrm e}^{-x} \ln \left (1+i {\mathrm e}^{x}\right )}{2}-\frac {\left (-\ln \left (1+{\mathrm e}^{2 x}\right ) {\mathrm e}^{x}-i \ln \left (1-i {\mathrm e}^{x}\right )+2 x \,{\mathrm e}^{x}+\pi \right ) {\mathrm e}^{-x}}{2}\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 19, normalized size = 0.70 \begin {gather*} -\operatorname {arccot}\left (e^{x}\right ) e^{\left (-x\right )} + \frac {1}{2} \, \log \left (e^{\left (-2 \, x\right )} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.40, size = 28, normalized size = 1.04 \begin {gather*} -\frac {1}{2} \, {\left (2 \, x e^{x} - e^{x} \log \left (e^{\left (2 \, x\right )} + 1\right ) + 2 \, \operatorname {arccot}\left (e^{x}\right )\right )} e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.44, size = 19, normalized size = 0.70 \begin {gather*} - x + \frac {\log {\left (e^{2 x} + 1 \right )}}{2} - e^{- x} \operatorname {acot}{\left (e^{x} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.54, size = 21, normalized size = 0.78 \begin {gather*} -\arctan \left (e^{\left (-x\right )}\right ) e^{\left (-x\right )} + \frac {1}{2} \, \log \left (e^{\left (-2 \, x\right )} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 22, normalized size = 0.81 \begin {gather*} \frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )}{2}-x-\mathrm {acot}\left ({\mathrm {e}}^x\right )\,{\mathrm {e}}^{-x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________