3.68.72 \(\int \frac {(-3+x) \log (3-x)+\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} (e^3+x)}{\log (3-x)}} (-e^3 x-x^2+(-3 x+x^2) \log (3-x))}{\log (3-x)}}{(-3 x+x^2) \log (3-x)} \, dx\) [6772]

Optimal. Leaf size=27 \[ 2+e^{\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}+\log (x) \]

[Out]

2+exp((exp(3)+x)*exp(-ln(ln(3-x))+exp(exp(5))))+ln(x)

________________________________________________________________________________________

Rubi [F]
time = 5.65, 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 {(-3+x) \log (3-x)+\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (-e^3 x-x^2+\left (-3 x+x^2\right ) \log (3-x)\right )}{\log (3-x)}}{\left (-3 x+x^2\right ) \log (3-x)} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[((-3 + x)*Log[3 - x] + (E^(E^E^5 + (E^E^E^5*(E^3 + x))/Log[3 - x])*(-(E^3*x) - x^2 + (-3*x + x^2)*Log[3 -
x]))/Log[3 - x])/((-3*x + x^2)*Log[3 - x]),x]

[Out]

Log[x] - Defer[Int][E^(E^E^5 + (E^E^E^5*(E^3 + x))/Log[3 - x])/Log[3 - x]^2, x] - (3 + E^3)*Defer[Int][E^(E^E^
5 + (E^E^E^5*(E^3 + x))/Log[3 - x])/((-3 + x)*Log[3 - x]^2), x] + Defer[Int][E^(E^E^5 + (E^E^E^5*(E^3 + x))/Lo
g[3 - x])/Log[3 - x], x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {(-3+x) \log (3-x)+\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (-e^3 x-x^2+\left (-3 x+x^2\right ) \log (3-x)\right )}{\log (3-x)}}{(-3+x) x \log (3-x)} \, dx\\ &=\int \left (\frac {1}{x}-\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (e^3+x-(-3+x) \log (3-x)\right )}{(-3+x) \log ^2(3-x)}\right ) \, dx\\ &=\log (x)-\int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (e^3+x-(-3+x) \log (3-x)\right )}{(-3+x) \log ^2(3-x)} \, dx\\ &=\log (x)-\int \left (\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (e^3+x\right )}{(-3+x) \log ^2(3-x)}-\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{\log (3-x)}\right ) \, dx\\ &=\log (x)-\int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (e^3+x\right )}{(-3+x) \log ^2(3-x)} \, dx+\int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{\log (3-x)} \, dx\\ &=\log (x)-\int \left (\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{\log ^2(3-x)}+\frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}} \left (3+e^3\right )}{(-3+x) \log ^2(3-x)}\right ) \, dx+\int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{\log (3-x)} \, dx\\ &=\log (x)-\left (3+e^3\right ) \int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{(-3+x) \log ^2(3-x)} \, dx-\int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{\log ^2(3-x)} \, dx+\int \frac {e^{e^{e^5}+\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}}{\log (3-x)} \, dx\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.67, size = 26, normalized size = 0.96 \begin {gather*} e^{\frac {e^{e^{e^5}} \left (e^3+x\right )}{\log (3-x)}}+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((-3 + x)*Log[3 - x] + (E^(E^E^5 + (E^E^E^5*(E^3 + x))/Log[3 - x])*(-(E^3*x) - x^2 + (-3*x + x^2)*Lo
g[3 - x]))/Log[3 - x])/((-3*x + x^2)*Log[3 - x]),x]

[Out]

E^((E^E^E^5*(E^3 + x))/Log[3 - x]) + Log[x]

________________________________________________________________________________________

Maple [A]
time = 1.20, size = 22, normalized size = 0.81

method result size
default \(\ln \left (x \right )+{\mathrm e}^{\frac {\left ({\mathrm e}^{3}+x \right ) {\mathrm e}^{{\mathrm e}^{{\mathrm e}^{5}}}}{\ln \left (3-x \right )}}\) \(22\)
norman \(\ln \left (x \right )+{\mathrm e}^{\frac {\left ({\mathrm e}^{3}+x \right ) {\mathrm e}^{{\mathrm e}^{{\mathrm e}^{5}}}}{\ln \left (3-x \right )}}\) \(22\)
risch \(\ln \left (x \right )+{\mathrm e}^{\frac {\left ({\mathrm e}^{3}+x \right ) {\mathrm e}^{{\mathrm e}^{{\mathrm e}^{5}}}}{\ln \left (3-x \right )}}\) \(22\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((x^2-3*x)*ln(3-x)-x*exp(3)-x^2)*exp(-ln(ln(3-x))+exp(exp(5)))*exp((exp(3)+x)*exp(-ln(ln(3-x))+exp(exp(5)
)))+(x-3)*ln(3-x))/(x^2-3*x)/ln(3-x),x,method=_RETURNVERBOSE)

[Out]

ln(x)+exp((exp(3)+x)/ln(3-x)*exp(exp(exp(5))))

________________________________________________________________________________________

Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x^2-3*x)*log(3-x)-x*exp(3)-x^2)*exp(-log(log(3-x))+exp(exp(5)))*exp((exp(3)+x)*exp(-log(log(3-x))
+exp(exp(5))))+(-3+x)*log(3-x))/(x^2-3*x)/log(3-x),x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: In function CAR, the value of the first argument is  0which is not
 of the expected type LIST

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 67 vs. \(2 (24) = 48\).
time = 0.37, size = 67, normalized size = 2.48 \begin {gather*} {\left (e^{\left (e^{\left (e^{5}\right )}\right )} \log \left (x\right ) + e^{\left (\frac {{\left (x + e^{3}\right )} e^{\left (e^{\left (e^{5}\right )}\right )} + e^{\left (e^{5}\right )} \log \left (-x + 3\right ) - \log \left (-x + 3\right ) \log \left (\log \left (-x + 3\right )\right )}{\log \left (-x + 3\right )}\right )} \log \left (-x + 3\right )\right )} e^{\left (-e^{\left (e^{5}\right )}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x^2-3*x)*log(3-x)-x*exp(3)-x^2)*exp(-log(log(3-x))+exp(exp(5)))*exp((exp(3)+x)*exp(-log(log(3-x))
+exp(exp(5))))+(-3+x)*log(3-x))/(x^2-3*x)/log(3-x),x, algorithm="fricas")

[Out]

(e^(e^(e^5))*log(x) + e^(((x + e^3)*e^(e^(e^5)) + e^(e^5)*log(-x + 3) - log(-x + 3)*log(log(-x + 3)))/log(-x +
 3))*log(-x + 3))*e^(-e^(e^5))

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x**2-3*x)*ln(3-x)-x*exp(3)-x**2)*exp(-ln(ln(3-x))+exp(exp(5)))*exp((exp(3)+x)*exp(-ln(ln(3-x))+ex
p(exp(5))))+(-3+x)*ln(3-x))/(x**2-3*x)/ln(3-x),x)

[Out]

Exception raised: TypeError >> '>' not supported between instances of 'Poly' and 'int'

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x^2-3*x)*log(3-x)-x*exp(3)-x^2)*exp(-log(log(3-x))+exp(exp(5)))*exp((exp(3)+x)*exp(-log(log(3-x))
+exp(exp(5))))+(-3+x)*log(3-x))/(x^2-3*x)/log(3-x),x, algorithm="giac")

[Out]

integrate(-((x^2 + x*e^3 - (x^2 - 3*x)*log(-x + 3))*e^((x + e^3)*e^(e^(e^5) - log(log(-x + 3))) + e^(e^5) - lo
g(log(-x + 3))) - (x - 3)*log(-x + 3))/((x^2 - 3*x)*log(-x + 3)), x)

________________________________________________________________________________________

Mupad [B]
time = 4.77, size = 35, normalized size = 1.30 \begin {gather*} \ln \left (x\right )+{\mathrm {e}}^{\frac {{\mathrm {e}}^{{\mathrm {e}}^{{\mathrm {e}}^5}}\,{\mathrm {e}}^3}{\ln \left (3-x\right )}}\,{\mathrm {e}}^{\frac {x\,{\mathrm {e}}^{{\mathrm {e}}^{{\mathrm {e}}^5}}}{\ln \left (3-x\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(log(3 - x)*(x - 3) - exp(exp(exp(exp(5)) - log(log(3 - x)))*(x + exp(3)))*exp(exp(exp(5)) - log(log(3 -
x)))*(x*exp(3) + log(3 - x)*(3*x - x^2) + x^2))/(log(3 - x)*(3*x - x^2)),x)

[Out]

log(x) + exp((exp(exp(exp(5)))*exp(3))/log(3 - x))*exp((x*exp(exp(exp(5))))/log(3 - x))

________________________________________________________________________________________