Optimal. Leaf size=20 \[ -\frac{x}{e^x+1}+x-\log \left (e^x+1\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.204094, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5 \[ -\frac{x}{e^x+1}+x-\log \left (e^x+1\right ) \]
Antiderivative was successfully verified.
[In] Int[x/(2 + E^(-x) + E^x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{x e^{x}}{e^{2 x} + 2 e^{x} + 1}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x/(2+exp(-x)+exp(x)),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0184128, size = 20, normalized size = 1. \[ -\frac{x}{e^x+1}+x-\log \left (e^x+1\right ) \]
Antiderivative was successfully verified.
[In] Integrate[x/(2 + E^(-x) + E^x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.012, size = 19, normalized size = 1. \[ -\ln \left ( 1+{{\rm e}^{x}} \right ) +{\frac{x{{\rm e}^{x}}}{1+{{\rm e}^{x}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x/(2+exp(-x)+exp(x)),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.759634, size = 24, normalized size = 1.2 \[ \frac{x e^{x}}{e^{x} + 1} - \log \left (e^{x} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(e^(-x) + e^x + 2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.245383, size = 31, normalized size = 1.55 \[ \frac{x e^{x} -{\left (e^{x} + 1\right )} \log \left (e^{x} + 1\right )}{e^{x} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(e^(-x) + e^x + 2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.076257, size = 14, normalized size = 0.7 \[ x - \frac{x}{e^{x} + 1} - \log{\left (e^{x} + 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(2+exp(-x)+exp(x)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.246447, size = 38, normalized size = 1.9 \[ \frac{x e^{x} - e^{x}{\rm ln}\left (e^{x} + 1\right ) -{\rm ln}\left (e^{x} + 1\right )}{e^{x} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(e^(-x) + e^x + 2),x, algorithm="giac")
[Out]