Optimal. Leaf size=31 \[ \left (-e^{-1-e^5-e^8+2 x}+x\right ) \log \left (\frac {3 e^x}{x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 40, normalized size of antiderivative = 1.29, number of steps used = 5, number of rules used = 3, integrand size = 66, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {14, 2548, 2288} \begin {gather*} x \log \left (\frac {3 e^x}{x}\right )-e^{2 x-e^8-e^5-1} \log \left (\frac {3 e^x}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2288
Rule 2548
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-1+x+\log \left (\frac {3 e^x}{x}\right )-\frac {e^{-1-e^5-e^8+2 x} \left (-1+x+2 x \log \left (\frac {3 e^x}{x}\right )\right )}{x}\right ) \, dx\\ &=-x+\frac {x^2}{2}+\int \log \left (\frac {3 e^x}{x}\right ) \, dx-\int \frac {e^{-1-e^5-e^8+2 x} \left (-1+x+2 x \log \left (\frac {3 e^x}{x}\right )\right )}{x} \, dx\\ &=-x+\frac {x^2}{2}-e^{-1-e^5-e^8+2 x} \log \left (\frac {3 e^x}{x}\right )+x \log \left (\frac {3 e^x}{x}\right )-\int (-1+x) \, dx\\ &=-e^{-1-e^5-e^8+2 x} \log \left (\frac {3 e^x}{x}\right )+x \log \left (\frac {3 e^x}{x}\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 31, normalized size = 1.00 \begin {gather*} \left (-e^{-1-e^5-e^8+2 x}+x\right ) \log \left (\frac {3 e^x}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.63, size = 69, normalized size = 2.23 \begin {gather*} -{\left (x e^{\left (e^{8} + e^{5} + 1\right )} \log \relax (x) + {\left (x^{3} + x^{2} \log \relax (3) - x^{2} \log \relax (x)\right )} e^{\left (2 \, x - 2 \, \log \relax (x)\right )} - {\left (x^{2} + x \log \relax (3)\right )} e^{\left (e^{8} + e^{5} + 1\right )}\right )} e^{\left (-e^{8} - e^{5} - 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.66, size = 65, normalized size = 2.10 \begin {gather*} x^{2} - x e^{\left (2 \, x - e^{8} - e^{5} - 1\right )} + x \log \relax (3) - e^{\left (2 \, x - e^{8} - e^{5} - 1\right )} \log \relax (3) - x \log \relax (x) + e^{\left (2 \, x - e^{8} - e^{5} - 1\right )} \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.24, size = 76, normalized size = 2.45
method | result | size |
risch | \(\ln \left (\frac {{\mathrm e}^{x}}{x}\right ) \left ({\mathrm e}^{{\mathrm e}^{8}+{\mathrm e}^{5}+1}-\frac {{\mathrm e}^{2 x}}{x}\right ) x \,{\mathrm e}^{-{\mathrm e}^{8}-{\mathrm e}^{5}-1}-\frac {\left (-2 \ln \relax (3) {\mathrm e}^{{\mathrm e}^{8}+{\mathrm e}^{5}+1}+\frac {2 \ln \relax (3) {\mathrm e}^{2 x}}{x}\right ) x \,{\mathrm e}^{-{\mathrm e}^{8}-{\mathrm e}^{5}-1}}{2}\) | \(76\) |
default | \(\ln \relax (x ) {\mathrm e}^{-{\mathrm e}^{8}-{\mathrm e}^{5}+2 x -1}-x \,{\mathrm e}^{-{\mathrm e}^{8}-{\mathrm e}^{5}+2 x -1}-\left (\ln \left (3 \,{\mathrm e}^{x -\ln \relax (x )}\right )-x +\ln \relax (x )\right ) {\mathrm e}^{-{\mathrm e}^{8}-{\mathrm e}^{5}+2 x -1}+\ln \left (3 \,{\mathrm e}^{x -\ln \relax (x )}\right ) x\) | \(80\) |
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*} {\rm Ei}\left (2 \, x\right ) e^{\left (-e^{8} - e^{5} - 1\right )} - e^{\left (-e^{8} - e^{5} - 1\right )} \int \frac {{\left (2 \, x^{2} + 2 \, x \log \relax (3) + 1\right )} e^{\left (2 \, x\right )}}{x}\,{d x} + e^{\left (2 \, x - e^{8} - e^{5} - 1\right )} \log \relax (x) + x \log \left (\frac {3 \, e^{x}}{x}\right ) - \frac {1}{2} \, e^{\left (2 \, x - e^{8} - e^{5} - 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.74, size = 36, normalized size = 1.16 \begin {gather*} -{\mathrm {e}}^{-{\mathrm {e}}^5-{\mathrm {e}}^8-1}\,\left ({\mathrm {e}}^{2\,x}-x\,{\mathrm {e}}^{{\mathrm {e}}^5+{\mathrm {e}}^8+1}\right )\,\left (x+\ln \left (\frac {3}{x}\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [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]
________________________________________________________________________________________