Optimal. Leaf size=17 \[ \frac {1}{1+e^x}+x-\log \left (1+e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2320, 46}
\begin {gather*} x+\frac {1}{e^x+1}-\log \left (e^x+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{1+2 e^x+e^{2 x}} \, dx &=\text {Subst}\left (\int \frac {1}{x (1+x)^2} \, dx,x,e^x\right )\\ &=\text {Subst}\left (\int \left (\frac {1}{-1-x}+\frac {1}{x}-\frac {1}{(1+x)^2}\right ) \, dx,x,e^x\right )\\ &=\frac {1}{1+e^x}+x-\log \left (1+e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 18, normalized size = 1.06 \begin {gather*} \frac {1}{1+e^x}-2 \tanh ^{-1}\left (1+2 e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 18, normalized size = 1.06
method | result | size |
risch | \(\frac {1}{1+{\mathrm e}^{x}}+x -\ln \left (1+{\mathrm e}^{x}\right )\) | \(16\) |
default | \(\frac {1}{1+{\mathrm e}^{x}}-\ln \left (1+{\mathrm e}^{x}\right )+\ln \left ({\mathrm e}^{x}\right )\) | \(18\) |
norman | \(\frac {x +{\mathrm e}^{x} x +1}{1+{\mathrm e}^{x}}-\ln \left (1+{\mathrm e}^{x}\right )\) | \(23\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 15, normalized size = 0.88 \begin {gather*} x + \frac {1}{e^{x} + 1} - \log \left (e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 25, normalized size = 1.47 \begin {gather*} \frac {x e^{x} - {\left (e^{x} + 1\right )} \log \left (e^{x} + 1\right ) + x + 1}{e^{x} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 14, normalized size = 0.82 \begin {gather*} x - \log {\left (e^{x} + 1 \right )} + \frac {1}{e^{x} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.32, size = 15, normalized size = 0.88 \begin {gather*} x + \frac {1}{e^{x} + 1} - \log \left (e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.26, size = 15, normalized size = 0.88 \begin {gather*} x-\ln \left ({\mathrm {e}}^x+1\right )+\frac {1}{{\mathrm {e}}^x+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________