Optimal. Leaf size=23 \[ \left (-\frac {5}{2}-4 x+e^{-x} \left (-3 x+x^2\right )\right ) \log (x) \]
________________________________________________________________________________________
Rubi [A] time = 0.59, antiderivative size = 33, normalized size of antiderivative = 1.43, number of steps used = 27, number of rules used = 10, integrand size = 53, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.189, Rules used = {12, 6742, 14, 43, 2295, 2194, 2176, 2554, 2178, 2199} \begin {gather*} e^{-x} x^2 \log (x)-3 e^{-x} x \log (x)-4 x \log (x)-\frac {5 \log (x)}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 43
Rule 2176
Rule 2178
Rule 2194
Rule 2199
Rule 2295
Rule 2554
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {e^{-x} \left (e^x (-5-8 x)-6 x+2 x^2+\left (-6 x-8 e^x x+10 x^2-2 x^3\right ) \log (x)\right )}{x} \, dx\\ &=\frac {1}{2} \int \left (-\frac {5+8 x+8 x \log (x)}{x}-2 e^{-x} \left (3-x+3 \log (x)-5 x \log (x)+x^2 \log (x)\right )\right ) \, dx\\ &=-\left (\frac {1}{2} \int \frac {5+8 x+8 x \log (x)}{x} \, dx\right )-\int e^{-x} \left (3-x+3 \log (x)-5 x \log (x)+x^2 \log (x)\right ) \, dx\\ &=-\left (\frac {1}{2} \int \left (\frac {5+8 x}{x}+8 \log (x)\right ) \, dx\right )-\int \left (3 e^{-x}-e^{-x} x+3 e^{-x} \log (x)-5 e^{-x} x \log (x)+e^{-x} x^2 \log (x)\right ) \, dx\\ &=-\left (\frac {1}{2} \int \frac {5+8 x}{x} \, dx\right )-3 \int e^{-x} \, dx-3 \int e^{-x} \log (x) \, dx-4 \int \log (x) \, dx+5 \int e^{-x} x \log (x) \, dx+\int e^{-x} x \, dx-\int e^{-x} x^2 \log (x) \, dx\\ &=3 e^{-x}+4 x-e^{-x} x-4 x \log (x)-3 e^{-x} x \log (x)+e^{-x} x^2 \log (x)-\frac {1}{2} \int \left (8+\frac {5}{x}\right ) \, dx-3 \int \frac {e^{-x}}{x} \, dx-5 \int \frac {e^{-x} (-1-x)}{x} \, dx+\int e^{-x} \, dx+\int \frac {e^{-x} \left (-2-2 x-x^2\right )}{x} \, dx\\ &=2 e^{-x}-e^{-x} x-3 \text {Ei}(-x)-\frac {5 \log (x)}{2}-4 x \log (x)-3 e^{-x} x \log (x)+e^{-x} x^2 \log (x)-5 \int \left (-e^{-x}-\frac {e^{-x}}{x}\right ) \, dx+\int \left (-2 e^{-x}-\frac {2 e^{-x}}{x}-e^{-x} x\right ) \, dx\\ &=2 e^{-x}-e^{-x} x-3 \text {Ei}(-x)-\frac {5 \log (x)}{2}-4 x \log (x)-3 e^{-x} x \log (x)+e^{-x} x^2 \log (x)-2 \int e^{-x} \, dx-2 \int \frac {e^{-x}}{x} \, dx+5 \int e^{-x} \, dx+5 \int \frac {e^{-x}}{x} \, dx-\int e^{-x} x \, dx\\ &=-e^{-x}-\frac {5 \log (x)}{2}-4 x \log (x)-3 e^{-x} x \log (x)+e^{-x} x^2 \log (x)-\int e^{-x} \, dx\\ &=-\frac {5 \log (x)}{2}-4 x \log (x)-3 e^{-x} x \log (x)+e^{-x} x^2 \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 27, normalized size = 1.17 \begin {gather*} -\frac {5 \log (x)}{2}+x \left (-4-3 e^{-x}+e^{-x} x\right ) \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 26, normalized size = 1.13 \begin {gather*} \frac {1}{2} \, {\left (2 \, x^{2} - {\left (8 \, x + 5\right )} e^{x} - 6 \, x\right )} e^{\left (-x\right )} \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 29, normalized size = 1.26 \begin {gather*} x^{2} e^{\left (-x\right )} \log \relax (x) - 3 \, x e^{\left (-x\right )} \log \relax (x) - 4 \, x \log \relax (x) - \frac {5}{2} \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 21, normalized size = 0.91
method | result | size |
risch | \(x \left (-4 \,{\mathrm e}^{x}+x -3\right ) {\mathrm e}^{-x} \ln \relax (x )-\frac {5 \ln \relax (x )}{2}\) | \(21\) |
default | \(\frac {\left (-6 x \ln \relax (x )+2 x^{2} \ln \relax (x )\right ) {\mathrm e}^{-x}}{2}-\frac {5 \ln \relax (x )}{2}-4 x \ln \relax (x )\) | \(30\) |
norman | \(\left (x^{2} \ln \relax (x )-\frac {5 \,{\mathrm e}^{x} \ln \relax (x )}{2}-3 x \ln \relax (x )-4 x \,{\mathrm e}^{x} \ln \relax (x )\right ) {\mathrm e}^{-x}\) | \(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*} {\left (x^{2} - 3 \, x - 3\right )} e^{\left (-x\right )} \log \relax (x) - {\left (x + 1\right )} e^{\left (-x\right )} - 4 \, x \log \relax (x) + 3 \, e^{\left (-x\right )} \log \relax (x) - 3 \, {\rm Ei}\left (-x\right ) + 3 \, e^{\left (-x\right )} - \frac {1}{2} \, \int \frac {2 \, {\left (x^{2} - 3 \, x - 3\right )} e^{\left (-x\right )}}{x}\,{d x} - \frac {5}{2} \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.52, size = 25, normalized size = 1.09 \begin {gather*} -\frac {\ln \relax (x)\,\left (8\,x+6\,x\,{\mathrm {e}}^{-x}-2\,x^2\,{\mathrm {e}}^{-x}+5\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.35, size = 29, normalized size = 1.26 \begin {gather*} - 4 x \log {\relax (x )} + \left (x^{2} \log {\relax (x )} - 3 x \log {\relax (x )}\right ) e^{- x} - \frac {5 \log {\relax (x )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________