Optimal. Leaf size=21 \[ x \left (-x^2+e^{-x} \log (x-\log (3))\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.81, antiderivative size = 38, normalized size of antiderivative = 1.81, number of steps used = 14, number of rules used = 7, integrand size = 58, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {6742, 6688, 2199, 2194, 2178, 2176, 2554} \begin {gather*} -x^3+e^{-x} \log (x-\log (3))-e^{-x} (1-x) \log (x-\log (3)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2176
Rule 2178
Rule 2194
Rule 2199
Rule 2554
Rule 6688
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-3 x^2+\frac {e^{-x} \left (x-x^2 \log (x-\log (3))-\log (3) \log (x-\log (3))+x (1+\log (3)) \log (x-\log (3))\right )}{x-\log (3)}\right ) \, dx\\ &=-x^3+\int \frac {e^{-x} \left (x-x^2 \log (x-\log (3))-\log (3) \log (x-\log (3))+x (1+\log (3)) \log (x-\log (3))\right )}{x-\log (3)} \, dx\\ &=-x^3+\int e^{-x} \left (\frac {x}{x-\log (3)}-(-1+x) \log (x-\log (3))\right ) \, dx\\ &=-x^3+\int \left (\frac {e^{-x} x}{x-\log (3)}-e^{-x} (-1+x) \log (x-\log (3))\right ) \, dx\\ &=-x^3+\int \frac {e^{-x} x}{x-\log (3)} \, dx-\int e^{-x} (-1+x) \log (x-\log (3)) \, dx\\ &=-x^3+e^{-x} \log (x-\log (3))-e^{-x} (1-x) \log (x-\log (3))+\int \frac {e^{-x} x}{-x+\log (3)} \, dx+\int \left (e^{-x}+\frac {e^{-x} \log (3)}{x-\log (3)}\right ) \, dx\\ &=-x^3+e^{-x} \log (x-\log (3))-e^{-x} (1-x) \log (x-\log (3))+\log (3) \int \frac {e^{-x}}{x-\log (3)} \, dx+\int e^{-x} \, dx+\int \left (-e^{-x}-\frac {e^{-x} \log (3)}{x-\log (3)}\right ) \, dx\\ &=-e^{-x}-x^3+\frac {1}{3} \text {Ei}(-x+\log (3)) \log (3)+e^{-x} \log (x-\log (3))-e^{-x} (1-x) \log (x-\log (3))-\log (3) \int \frac {e^{-x}}{x-\log (3)} \, dx-\int e^{-x} \, dx\\ &=-x^3+e^{-x} \log (x-\log (3))-e^{-x} (1-x) \log (x-\log (3))\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.90, size = 24, normalized size = 1.14 \begin {gather*} -x^3+\log ^3(3)+e^{-x} x \log (x-\log (3)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 23, normalized size = 1.10 \begin {gather*} -{\left (x^{3} e^{x} - x \log \left (x - \log \relax (3)\right )\right )} e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 19, normalized size = 0.90 \begin {gather*} -x^{3} + x e^{\left (-x\right )} \log \left (x - \log \relax (3)\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.16, size = 20, normalized size = 0.95
method | result | size |
default | \(\ln \left (-\ln \relax (3)+x \right ) x \,{\mathrm e}^{-x}-x^{3}\) | \(20\) |
risch | \(\ln \left (-\ln \relax (3)+x \right ) x \,{\mathrm e}^{-x}-x^{3}\) | \(20\) |
norman | \(\left (\ln \left (-\ln \relax (3)+x \right ) x -{\mathrm e}^{x} x^{3}\right ) {\mathrm e}^{-x}\) | \(23\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.87, size = 19, normalized size = 0.90 \begin {gather*} -x^{3} + x e^{\left (-x\right )} \log \left (x - \log \relax (3)\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.05 \begin {gather*} \int \frac {{\mathrm {e}}^{-x}\,\left (x+\ln \left (x-\ln \relax (3)\right )\,\left (x+\ln \relax (3)\,\left (x-1\right )-x^2\right )+{\mathrm {e}}^x\,\left (3\,x^2\,\ln \relax (3)-3\,x^3\right )\right )}{x-\ln \relax (3)} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.42, size = 14, normalized size = 0.67 \begin {gather*} - x^{3} + x e^{- x} \log {\left (x - \log {\relax (3 )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________