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

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

[Out]

1/2*x+1/4*exp(3)*ln(2/exp(x)^2)/(exp(2)-ln(x)^2)+2

________________________________________________________________________________________

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

Verification is not applicable to the result.

[In]

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

[Out]

x/2 + (E^(2 + E)*ExpIntegralEi[-E + Log[x]])/4 - (E^(2 - E)*ExpIntegralEi[E + Log[x]])/4 + (E^2*Defer[Int][Log
[2/E^(2*x)]/(x*(E - Log[x])^2), x])/8 - (E^2*Defer[Int][Log[2/E^(2*x)]/(x*(E + Log[x])^2), x])/8

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.07, size = 33, normalized size = 0.97 \begin {gather*} \frac {1}{2} \left (x+\frac {e^3 \log \left (2 e^{-2 x}\right )}{2 \left (e^2-\log ^2(x)\right )}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 4 vs. order 3.
time = 0.23, size = 423, normalized size = 12.44

method result size
risch \(-\frac {{\mathrm e}^{3} \ln \left ({\mathrm e}^{x}\right )}{2 \left ({\mathrm e}^{2}-\ln \left (x \right )^{2}\right )}+\frac {-i \pi \,{\mathrm e}^{3} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{2 x}\right )+2 i \pi \,{\mathrm e}^{3} \mathrm {csgn}\left (i {\mathrm e}^{x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{2 x}\right )^{2}-i \pi \,{\mathrm e}^{3} \mathrm {csgn}\left (i {\mathrm e}^{2 x}\right )^{3}-2 \,{\mathrm e}^{3} \ln \left (2\right )-4 \,{\mathrm e}^{2} x +4 x \ln \left (x \right )^{2}}{-8 \,{\mathrm e}^{2}+8 \ln \left (x \right )^{2}}\) \(112\)
default \(-\frac {{\mathrm e}^{3} x}{2 \left ({\mathrm e}^{2}-\ln \left (x \right )^{2}\right )}-\frac {{\mathrm e}^{3} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{3} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{2} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{2} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}+\frac {x}{2}+\frac {{\mathrm e}^{3} {\mathrm e}^{-1} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{3} {\mathrm e}^{-1} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{4} {\mathrm e}^{-2} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{4} {\mathrm e}^{-2} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{2} {\mathrm e}^{-1} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{2} {\mathrm e}^{-1} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{2} {\mathrm e}^{3} {\mathrm e}^{-2} {\mathrm e}^{-1} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{2} {\mathrm e}^{3} {\mathrm e}^{-2} {\mathrm e}^{-1} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{2} {\mathrm e}^{3} {\mathrm e}^{-2} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{2} {\mathrm e}^{3} {\mathrm e}^{-2} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{4} {\mathrm e}^{-2} {\mathrm e}^{-1} {\mathrm e}^{{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )+{\mathrm e}\right )}{8}-\frac {{\mathrm e}^{4} {\mathrm e}^{-2} {\mathrm e}^{-1} {\mathrm e}^{-{\mathrm e}} \expIntegral \left (1, -\ln \left (x \right )-{\mathrm e}\right )}{8}+\frac {{\mathrm e}^{3} \left (\ln \left (2 \,{\mathrm e}^{-2 x}\right )+2 \ln \left ({\mathrm e}^{x}\right )\right )}{4 \,{\mathrm e}^{2}-4 \ln \left (x \right )^{2}}-\frac {{\mathrm e}^{3} \left (\ln \left ({\mathrm e}^{x}\right )-x \right )}{2 \left ({\mathrm e}^{2}-\ln \left (x \right )^{2}\right )}\) \(423\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*exp(3)*x/(exp(2)-ln(x)^2)-1/8*exp(3)*exp(exp(1))*Ei(1,-ln(x)+exp(1))-1/8*exp(3)*exp(-exp(1))*Ei(1,-ln(x)-
exp(1))+1/8*exp(2)*exp(exp(1))*Ei(1,-ln(x)+exp(1))+1/8*exp(2)*exp(-exp(1))*Ei(1,-ln(x)-exp(1))+1/2*x+1/8*exp(3
)/exp(1)*exp(exp(1))*Ei(1,-ln(x)+exp(1))-1/8*exp(3)/exp(1)*exp(-exp(1))*Ei(1,-ln(x)-exp(1))-1/8*exp(2)^2*exp(-
2)*exp(exp(1))*Ei(1,-ln(x)+exp(1))-1/8*exp(2)^2*exp(-2)*exp(-exp(1))*Ei(1,-ln(x)-exp(1))-1/8*exp(2)/exp(1)*exp
(exp(1))*Ei(1,-ln(x)+exp(1))+1/8*exp(2)/exp(1)*exp(-exp(1))*Ei(1,-ln(x)-exp(1))+1/8*exp(2)*exp(3)*exp(-2)/exp(
1)*exp(-exp(1))*Ei(1,-ln(x)-exp(1))-1/8*exp(2)*exp(3)*exp(-2)/exp(1)*exp(exp(1))*Ei(1,-ln(x)+exp(1))+1/8*exp(2
)*exp(3)*exp(-2)*exp(exp(1))*Ei(1,-ln(x)+exp(1))+1/8*exp(2)*exp(3)*exp(-2)*exp(-exp(1))*Ei(1,-ln(x)-exp(1))+1/
8*exp(2)^2*exp(-2)/exp(1)*exp(exp(1))*Ei(1,-ln(x)+exp(1))-1/8*exp(2)^2*exp(-2)/exp(1)*exp(-exp(1))*Ei(1,-ln(x)
-exp(1))+1/4*exp(3)*(ln(2/exp(x)^2)+2*ln(exp(x)))/(exp(2)-ln(x)^2)-1/2*exp(3)*(ln(exp(x))-x)/(exp(2)-ln(x)^2)

________________________________________________________________________________________

Maxima [A]
time = 0.49, size = 37, normalized size = 1.09 \begin {gather*} \frac {2 \, x \log \left (x\right )^{2} + 2 \, x {\left (e^{3} - e^{2}\right )} - e^{3} \log \left (2\right )}{4 \, {\left (\log \left (x\right )^{2} - e^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/4*(2*x*log(x)^2 + 2*x*(e^3 - e^2) - e^3*log(2))/(log(x)^2 - e^2)

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 37, normalized size = 1.09 \begin {gather*} \frac {2 \, x \log \left (x\right )^{2} + 2 \, x e^{3} - 2 \, x e^{2} - e^{3} \log \left (2\right )}{4 \, {\left (\log \left (x\right )^{2} - e^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/4*(2*x*log(x)^2 + 2*x*e^3 - 2*x*e^2 - e^3*log(2))/(log(x)^2 - e^2)

________________________________________________________________________________________

Sympy [A]
time = 0.07, size = 27, normalized size = 0.79 \begin {gather*} \frac {x}{2} + \frac {2 x e^{3} - e^{3} \log {\left (2 \right )}}{4 \log {\left (x \right )}^{2} - 4 e^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((exp(3)*ln(x)*ln(2/exp(x)**2)+x*ln(x)**4+(x*exp(3)-2*exp(2)*x)*ln(x)**2-x*exp(2)*exp(3)+x*exp(2)**2)
/(2*x*ln(x)**4-4*x*exp(2)*ln(x)**2+2*x*exp(2)**2),x)

[Out]

x/2 + (2*x*exp(3) - exp(3)*log(2))/(4*log(x)**2 - 4*exp(2))

________________________________________________________________________________________

Giac [A]
time = 0.43, size = 37, normalized size = 1.09 \begin {gather*} \frac {2 \, x \log \left (x\right )^{2} + 2 \, x e^{3} - 2 \, x e^{2} - e^{3} \log \left (2\right )}{4 \, {\left (\log \left (x\right )^{2} - e^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/4*(2*x*log(x)^2 + 2*x*e^3 - 2*x*e^2 - e^3*log(2))/(log(x)^2 - e^2)

________________________________________________________________________________________

Mupad [B]
time = 8.07, size = 29, normalized size = 0.85 \begin {gather*} \frac {x}{2}-\frac {{\mathrm {e}}^3\,\left (2\,x-\ln \left (2\right )\right )}{4\,\left ({\mathrm {e}}^2-{\ln \left (x\right )}^2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x/2 - (exp(3)*(2*x - log(2)))/(4*(exp(2) - log(x)^2))

________________________________________________________________________________________