Optimal. Leaf size=20 \[ 6-\frac {e^{1+x+x^2} (x+\log (x))}{\log (5)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, 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, 2266,
2235, 2272, 2273, 2634} \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 2235
Rule 2266
Rule 2272
Rule 2273
Rule 2634
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.03, 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]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 31, normalized size = 1.55
method | result | size |
norman | \(-\frac {x \,{\mathrm e}^{x^{2}+x +1}}{\ln \left (5\right )}-\frac {{\mathrm e}^{x^{2}+x +1} \ln \left (x \right )}{\ln \left (5\right )}\) | \(31\) |
risch | \(-\frac {x \,{\mathrm e}^{x^{2}+x +1}}{\ln \left (5\right )}-\frac {{\mathrm e}^{x^{2}+x +1} \ln \left (x \right )}{\ln \left (5\right )}\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, 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 \left (x\right )}{\log \left (5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 17, normalized size = 0.85 \begin {gather*} \frac {\left (- x - \log {\left (x \right )}\right ) e^{x^{2} + x + 1}}{\log {\left (5 \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, 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 \left (x\right )}{\log \left (5\right )} \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 \left (x\right )\right )}{\ln \left (5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________