Optimal. Leaf size=10 \[ x-\log \left (1+e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {2320, 36, 29, 31}
\begin {gather*} x-\log \left (e^x+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{1+e^x} \, dx &=\text {Subst}\left (\int \frac {1}{x (1+x)} \, dx,x,e^x\right )\\ &=\text {Subst}\left (\int \frac {1}{x} \, dx,x,e^x\right )-\text {Subst}\left (\int \frac {1}{1+x} \, dx,x,e^x\right )\\ &=x-\log \left (1+e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 10, normalized size = 1.00 \begin {gather*} -2 \tanh ^{-1}\left (1+2 e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 12, normalized size = 1.20
method | result | size |
norman | \(x -\ln \left (1+{\mathrm e}^{x}\right )\) | \(10\) |
risch | \(x -\ln \left (1+{\mathrm e}^{x}\right )\) | \(10\) |
derivativedivides | \(-\ln \left (1+{\mathrm e}^{x}\right )+\ln \left ({\mathrm e}^{x}\right )\) | \(12\) |
default | \(-\ln \left (1+{\mathrm e}^{x}\right )+\ln \left ({\mathrm e}^{x}\right )\) | \(12\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.47, size = 9, normalized size = 0.90 \begin {gather*} x - \log \left (e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.85, size = 9, normalized size = 0.90 \begin {gather*} x - \log \left (e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 7, normalized size = 0.70 \begin {gather*} x - \log {\left (e^{x} + 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 9, normalized size = 0.90 \begin {gather*} x - \log \left (e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 9, normalized size = 0.90 \begin {gather*} x-\ln \left ({\mathrm {e}}^x+1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________