Optimal. Leaf size=33 \[ \log \left (3 e^{\frac {e^{3 \left (-e^3+\frac {e^x}{3-x}+x\right )}}{x}}+x\right ) \]
________________________________________________________________________________________
Rubi [F] time = 95.64, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {9 x^2-6 x^3+x^4+\exp \left (\frac {\exp \left (\frac {-3 e^x+e^3 (9-3 x)-9 x+3 x^2}{-3+x}\right )}{x}+\frac {-3 e^x+e^3 (9-3 x)-9 x+3 x^2}{-3+x}\right ) \left (-27+99 x-57 x^2+9 x^3+e^x \left (36 x-9 x^2\right )\right )}{9 x^3-6 x^4+x^5+\exp \left (\frac {\exp \left (\frac {-3 e^x+e^3 (9-3 x)-9 x+3 x^2}{-3+x}\right )}{x}\right ) \left (27 x^2-18 x^3+3 x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {9 x^2-6 x^3+x^4+\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x}+3 x\right ) \left (-27+9 \left (11+4 e^x\right ) x-3 \left (19+3 e^x\right ) x^2+9 x^3\right )}{(3-x)^2 x^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\\ &=\int \left (\frac {9}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}-\frac {9 \exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right ) (-4+x)}{(-3+x)^2 x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}-\frac {6 x}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}+\frac {x^2}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}+\frac {3 \exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+3 x\right ) (-1+3 x)}{x^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx\\ &=3 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+3 x\right ) (-1+3 x)}{x^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-6 \int \frac {x}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+9 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-9 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right ) (-4+x)}{(-3+x)^2 x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+\int \frac {x^2}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\\ &=3 \int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )} (-1+3 x)}{x^2 \left (3+e^{-\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x}} x\right )} \, dx-6 \int \left (\frac {3}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}+\frac {1}{(-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx+9 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-9 \int \left (-\frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{3 (-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}+\frac {4 \exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{9 (-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}-\frac {4 \exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{9 x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx+\int \left (\frac {1}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x}+\frac {9}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}+\frac {6}{(-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx\\ &=3 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+3 \int \left (\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )} (-1+3 x)}{3 x^2}-\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )} (-1+3 x)}{3 x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx-4 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+4 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+2 \left (9 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\right )-18 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+\int \frac {1}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x} \, dx\\ &=3 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-4 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+4 \int \frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+4 x}}{x \left (3+e^{-\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x}} x\right )} \, dx+2 \left (9 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\right )-18 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+\int \frac {1}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x} \, dx+\int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )} (-1+3 x)}{x^2} \, dx-\int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )} (-1+3 x)}{x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\\ &=3 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-4 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+4 \int \left (\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+4 x}}{3 x}-\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+4 x}}{3 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx+2 \left (9 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\right )-18 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+\int \left (-\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x^2}+\frac {3 e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x}\right ) \, dx+\int \frac {1}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x} \, dx-\int \left (\frac {3 e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x}-\frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )}\right ) \, dx\\ &=\frac {4}{3} \int \frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+4 x}}{x} \, dx-\frac {4}{3} \int \frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+4 x}}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x} \, dx+3 \int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x} \, dx-3 \int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x} \, dx+3 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-4 \int \frac {\exp \left (-3 e^3-\frac {3 e^x}{-3+x}+\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}+4 x\right )}{(-3+x) \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx+2 \left (9 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\right )-18 \int \frac {1}{(-3+x)^2 \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx-\int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x^2} \, dx+\int \frac {1}{3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x} \, dx+\int \frac {e^{-3 \left (e^3+\frac {e^x}{-3+x}-x\right )}}{x \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right )} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 1.31, size = 32, normalized size = 0.97 \begin {gather*} \log \left (3 e^{\frac {e^{-3 e^3-\frac {3 e^x}{-3+x}+3 x}}{x}}+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.89, size = 36, normalized size = 1.09 \begin {gather*} \log \left (x + 3 \, e^{\left (\frac {e^{\left (\frac {3 \, {\left (x^{2} - {\left (x - 3\right )} e^{3} - 3 \, x - e^{x}\right )}}{x - 3}\right )}}{x}\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [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]
________________________________________________________________________________________
maple [A] time = 0.18, size = 38, normalized size = 1.15
method | result | size |
risch | \(\ln \left (\frac {x}{3}+{\mathrm e}^{\frac {{\mathrm e}^{-\frac {3 \left (x \,{\mathrm e}^{3}-x^{2}+{\mathrm e}^{x}-3 \,{\mathrm e}^{3}+3 x \right )}{x -3}}}{x}}\right )\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.69, size = 28, normalized size = 0.85 \begin {gather*} \log \left (\frac {1}{3} \, x + e^{\left (\frac {e^{\left (3 \, x - \frac {3 \, e^{x}}{x - 3} - 3 \, e^{3}\right )}}{x}\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.72, size = 40, normalized size = 1.21 \begin {gather*} \ln \left (x+3\,{\mathrm {e}}^{\frac {{\mathrm {e}}^{-\frac {9\,x-9\,{\mathrm {e}}^3+3\,{\mathrm {e}}^x+3\,x\,{\mathrm {e}}^3-3\,x^2}{x-3}}}{x}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.01, size = 34, normalized size = 1.03 \begin {gather*} \log {\left (\frac {x}{3} + e^{\frac {e^{\frac {3 x^{2} - 9 x + \left (9 - 3 x\right ) e^{3} - 3 e^{x}}{x - 3}}}{x}} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________