Optimal. Leaf size=18 \[ 1-x+x^2+x \left (x+\log \left (e^x+x\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 17, normalized size of antiderivative = 0.94, number of steps
used = 9, number of rules used = 2, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {6874, 2628}
\begin {gather*} 2 x^2-x+x \log \left (x+e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2628
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-1+5 x-\frac {(-1+x) x}{e^x+x}+\log \left (e^x+x\right )\right ) \, dx\\ &=-x+\frac {5 x^2}{2}-\int \frac {(-1+x) x}{e^x+x} \, dx+\int \log \left (e^x+x\right ) \, dx\\ &=-x+\frac {5 x^2}{2}+x \log \left (e^x+x\right )-\int \frac {\left (1+e^x\right ) x}{e^x+x} \, dx-\int \left (-\frac {x}{e^x+x}+\frac {x^2}{e^x+x}\right ) \, dx\\ &=-x+\frac {5 x^2}{2}+x \log \left (e^x+x\right )+\int \frac {x}{e^x+x} \, dx-\int \frac {x^2}{e^x+x} \, dx-\int \left (x-\frac {(-1+x) x}{e^x+x}\right ) \, dx\\ &=-x+2 x^2+x \log \left (e^x+x\right )+\int \frac {x}{e^x+x} \, dx+\int \frac {(-1+x) x}{e^x+x} \, dx-\int \frac {x^2}{e^x+x} \, dx\\ &=-x+2 x^2+x \log \left (e^x+x\right )+\int \frac {x}{e^x+x} \, dx-\int \frac {x^2}{e^x+x} \, dx+\int \left (-\frac {x}{e^x+x}+\frac {x^2}{e^x+x}\right ) \, dx\\ &=-x+2 x^2+x \log \left (e^x+x\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 17, normalized size = 0.94 \begin {gather*} -x+2 x^2+x \log \left (e^x+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 17, normalized size = 0.94
method | result | size |
norman | \(\ln \left ({\mathrm e}^{x}+x \right ) x -x +2 x^{2}\) | \(17\) |
risch | \(\ln \left ({\mathrm e}^{x}+x \right ) x -x +2 x^{2}\) | \(17\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 16, normalized size = 0.89 \begin {gather*} 2 \, x^{2} + x \log \left (x + e^{x}\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 16, normalized size = 0.89 \begin {gather*} 2 \, x^{2} + x \log \left (x + e^{x}\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 14, normalized size = 0.78 \begin {gather*} 2 x^{2} + x \log {\left (x + e^{x} \right )} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.38, size = 16, normalized size = 0.89 \begin {gather*} 2 \, x^{2} + x \log \left (x + e^{x}\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.02, size = 12, normalized size = 0.67 \begin {gather*} x\,\left (2\,x+\ln \left (x+{\mathrm {e}}^x\right )-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________