Optimal. Leaf size=20 \[ 6-\frac {e^{1+x+x^2} (x+\log (x))}{\log (5)} \]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 32, normalized size of antiderivative = 1.60, number of steps used = 20, number of rules used = 7, integrand size = 53, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {12, 14, 2234, 2204, 2240, 2241, 2554} \begin {gather*} -\frac {e^{x^2+x+1} x}{\log (5)}-\frac {e^{x^2+x+1} \log (x)}{\log (5)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2204
Rule 2234
Rule 2240
Rule 2241
Rule 2554
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {\int \frac {e^{1+x+x^2} \left (-1-x-x^2-2 x^3\right )+e^{1+x+x^2} \left (-x-2 x^2\right ) \log (x)}{x} \, dx}{\log (5)}\\ &=\frac {\int \left (-e^{1+x+x^2}-\frac {e^{1+x+x^2}}{x}-e^{1+x+x^2} x-2 e^{1+x+x^2} x^2-e^{1+x+x^2} \log (x)-2 e^{1+x+x^2} x \log (x)\right ) \, dx}{\log (5)}\\ &=-\frac {\int e^{1+x+x^2} \, dx}{\log (5)}-\frac {\int \frac {e^{1+x+x^2}}{x} \, dx}{\log (5)}-\frac {\int e^{1+x+x^2} x \, dx}{\log (5)}-\frac {\int e^{1+x+x^2} \log (x) \, dx}{\log (5)}-\frac {2 \int e^{1+x+x^2} x^2 \, dx}{\log (5)}-\frac {2 \int e^{1+x+x^2} x \log (x) \, dx}{\log (5)}\\ &=-\frac {e^{1+x+x^2}}{2 \log (5)}-\frac {e^{1+x+x^2} x}{\log (5)}-\frac {e^{1+x+x^2} \log (x)}{\log (5)}+\frac {\int e^{1+x+x^2} \, dx}{2 \log (5)}+\frac {\int e^{1+x+x^2} \, dx}{\log (5)}-\frac {\int \frac {e^{1+x+x^2}}{x} \, dx}{\log (5)}+\frac {\int e^{1+x+x^2} x \, dx}{\log (5)}+\frac {\int \frac {e^{3/4} \sqrt {\pi } \text {erfi}\left (\frac {1}{2}+x\right )}{2 x} \, dx}{\log (5)}+\frac {2 \int \frac {2 e^{1+x+x^2}-e^{3/4} \sqrt {\pi } \text {erfi}\left (\frac {1}{2}+x\right )}{4 x} \, dx}{\log (5)}-\frac {e^{3/4} \int e^{\frac {1}{4} (1+2 x)^2} \, dx}{\log (5)}\\ &=-\frac {e^{1+x+x^2} x}{\log (5)}-\frac {e^{3/4} \sqrt {\pi } \text {erfi}\left (\frac {1}{2} (1+2 x)\right )}{2 \log (5)}-\frac {e^{1+x+x^2} \log (x)}{\log (5)}-\frac {\int e^{1+x+x^2} \, dx}{2 \log (5)}+\frac {\int \frac {2 e^{1+x+x^2}-e^{3/4} \sqrt {\pi } \text {erfi}\left (\frac {1}{2}+x\right )}{x} \, dx}{2 \log (5)}-\frac {\int \frac {e^{1+x+x^2}}{x} \, dx}{\log (5)}+\frac {e^{3/4} \int e^{\frac {1}{4} (1+2 x)^2} \, dx}{2 \log (5)}+\frac {e^{3/4} \int e^{\frac {1}{4} (1+2 x)^2} \, dx}{\log (5)}+\frac {\left (e^{3/4} \sqrt {\pi }\right ) \int \frac {\text {erfi}\left (\frac {1}{2}+x\right )}{x} \, dx}{2 \log (5)}\\ &=-\frac {e^{1+x+x^2} x}{\log (5)}+\frac {e^{3/4} \sqrt {\pi } \text {erfi}\left (\frac {1}{2} (1+2 x)\right )}{4 \log (5)}-\frac {e^{1+x+x^2} \log (x)}{\log (5)}+\frac {\int \left (\frac {2 e^{1+x+x^2}}{x}-\frac {e^{3/4} \sqrt {\pi } \text {erfi}\left (\frac {1}{2}+x\right )}{x}\right ) \, dx}{2 \log (5)}-\frac {\int \frac {e^{1+x+x^2}}{x} \, dx}{\log (5)}-\frac {e^{3/4} \int e^{\frac {1}{4} (1+2 x)^2} \, dx}{2 \log (5)}+\frac {\left (e^{3/4} \sqrt {\pi }\right ) \int \frac {\text {erfi}\left (\frac {1}{2}+x\right )}{x} \, dx}{2 \log (5)}\\ &=-\frac {e^{1+x+x^2} x}{\log (5)}-\frac {e^{1+x+x^2} \log (x)}{\log (5)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 18, normalized size = 0.90 \begin {gather*} -\frac {e^{1+x+x^2} (x+\log (x))}{\log (5)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.54, size = 26, normalized size = 1.30 \begin {gather*} -\frac {x e^{\left (x^{2} + x + 1\right )} + e^{\left (x^{2} + x + 1\right )} \log \relax (x)}{\log \relax (5)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.29, size = 26, normalized size = 1.30 \begin {gather*} -\frac {x e^{\left (x^{2} + x + 1\right )} + e^{\left (x^{2} + x + 1\right )} \log \relax (x)}{\log \relax (5)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 31, normalized size = 1.55
method | result | size |
norman | \(-\frac {x \,{\mathrm e}^{x^{2}+x +1}}{\ln \relax (5)}-\frac {{\mathrm e}^{x^{2}+x +1} \ln \relax (x )}{\ln \relax (5)}\) | \(31\) |
risch | \(-\frac {x \,{\mathrm e}^{x^{2}+x +1}}{\ln \relax (5)}-\frac {{\mathrm e}^{x^{2}+x +1} \ln \relax (x )}{\ln \relax (5)}\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.94, size = 18, normalized size = 0.90 \begin {gather*} -\frac {{\mathrm {e}}^{x^2}\,\mathrm {e}\,{\mathrm {e}}^x\,\left (x+\ln \relax (x)\right )}{\ln \relax (5)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.37, size = 17, normalized size = 0.85 \begin {gather*} \frac {\left (- x - \log {\relax (x )}\right ) e^{x^{2} + x + 1}}{\log {\relax (5 )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________