3.8.71 \(\int \frac {16-4 e^x+(-8+e^x (2+4 x)) \log (x)+(2+3 x) \log ^2(x)}{(-8 x+2 e^x x) \log (x)+(2 x+x^2) \log ^2(x)} \, dx\)

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

________________________________________________________________________________________

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

Verification is not applicable to the result.

[In]

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

[Out]

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.62, size = 27, normalized size = 1.08 \begin {gather*} \log (x)-2 \log (\log (x))+2 \log \left (8-2 e^x-2 \log (x)-x \log (x)\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

Log[x] - 2*Log[Log[x]] + 2*Log[8 - 2*E^x - 2*Log[x] - x*Log[x]]

________________________________________________________________________________________

fricas [A]  time = 1.02, size = 35, normalized size = 1.40 \begin {gather*} 2 \, \log \left (x + 2\right ) + \log \relax (x) + 2 \, \log \left (\frac {{\left (x + 2\right )} \log \relax (x) + 2 \, e^{x} - 8}{x + 2}\right ) - 2 \, \log \left (\log \relax (x)\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*log(x + 2) + log(x) + 2*log(((x + 2)*log(x) + 2*e^x - 8)/(x + 2)) - 2*log(log(x))

________________________________________________________________________________________

giac [A]  time = 0.56, size = 25, normalized size = 1.00 \begin {gather*} 2 \, \log \left (x \log \relax (x) + 2 \, e^{x} + 2 \, \log \relax (x) - 8\right ) + \log \relax (x) - 2 \, \log \left (\log \relax (x)\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*log(x*log(x) + 2*e^x + 2*log(x) - 8) + log(x) - 2*log(log(x))

________________________________________________________________________________________

maple [A]  time = 0.06, size = 26, normalized size = 1.04




method result size



norman \(\ln \relax (x )-2 \ln \left (\ln \relax (x )\right )+2 \ln \left (x \ln \relax (x )+2 \ln \relax (x )+2 \,{\mathrm e}^{x}-8\right )\) \(26\)
risch \(2 \ln \left (2+x \right )+\ln \relax (x )+2 \ln \left (\ln \relax (x )+\frac {2 \,{\mathrm e}^{x}-8}{2+x}\right )-2 \ln \left (\ln \relax (x )\right )\) \(32\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

ln(x)-2*ln(ln(x))+2*ln(x*ln(x)+2*ln(x)+2*exp(x)-8)

________________________________________________________________________________________

maxima [A]  time = 0.60, size = 22, normalized size = 0.88 \begin {gather*} 2 \, \log \left (\frac {1}{2} \, {\left (x + 2\right )} \log \relax (x) + e^{x} - 4\right ) + \log \relax (x) - 2 \, \log \left (\log \relax (x)\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.96, size = 25, normalized size = 1.00 \begin {gather*} 2\,\ln \left (2\,{\mathrm {e}}^x+2\,\ln \relax (x)+x\,\ln \relax (x)-8\right )-2\,\ln \left (\ln \relax (x)\right )+\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*log(2*exp(x) + 2*log(x) + x*log(x) - 8) - 2*log(log(x)) + log(x)

________________________________________________________________________________________

sympy [A]  time = 0.38, size = 27, normalized size = 1.08 \begin {gather*} \log {\relax (x )} + 2 \log {\left (\frac {x \log {\relax (x )}}{2} + e^{x} + \log {\relax (x )} - 4 \right )} - 2 \log {\left (\log {\relax (x )} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________