\(\int \frac {16+8 x+2 x^4-2 x^5+(16+16 x^3-16 x^4) \log (x)+(32 x^2-32 x^3) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx\) [1332]

   Optimal result
   Rubi [F]
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 69, antiderivative size = 27 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=4+2 x-x^2-\log (4)-\frac {4}{x (x+4 \log (x))} \]

[Out]

2*x-2*ln(2)+4-4/x/(4*ln(x)+x)-x^2

Rubi [F]

\[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=\int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx \]

[In]

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

[Out]

-(1 - x)^2 + 16*Defer[Int][1/(x^2*(x + 4*Log[x])^2), x] + 4*Defer[Int][1/(x*(x + 4*Log[x])^2), x] + 4*Defer[In
t][1/(x^2*(x + 4*Log[x])), x]

Rubi steps \begin{align*} \text {integral}& = \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^2 (x+4 \log (x))^2} \, dx \\ & = \int \left (-2 (-1+x)+\frac {4 (4+x)}{x^2 (x+4 \log (x))^2}+\frac {4}{x^2 (x+4 \log (x))}\right ) \, dx \\ & = -(1-x)^2+4 \int \frac {4+x}{x^2 (x+4 \log (x))^2} \, dx+4 \int \frac {1}{x^2 (x+4 \log (x))} \, dx \\ & = -(1-x)^2+4 \int \frac {1}{x^2 (x+4 \log (x))} \, dx+4 \int \left (\frac {4}{x^2 (x+4 \log (x))^2}+\frac {1}{x (x+4 \log (x))^2}\right ) \, dx \\ & = -(1-x)^2+4 \int \frac {1}{x (x+4 \log (x))^2} \, dx+4 \int \frac {1}{x^2 (x+4 \log (x))} \, dx+16 \int \frac {1}{x^2 (x+4 \log (x))^2} \, dx \\ \end{align*}

Mathematica [A] (verified)

Time = 0.18 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.96 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=-2 \left (-x+\frac {x^2}{2}+\frac {2}{x (x+4 \log (x))}\right ) \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 0.25 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.85

method result size
risch \(-x^{2}+2 x -\frac {4}{x \left (4 \ln \left (x \right )+x \right )}\) \(23\)
norman \(\frac {-4+8 x^{2} \ln \left (x \right )+2 x^{3}-x^{4}-4 x^{3} \ln \left (x \right )}{x \left (4 \ln \left (x \right )+x \right )}\) \(39\)
default \(-\frac {2 \left (2-x^{3}+\frac {x^{4}}{2}-4 x^{2} \ln \left (x \right )+2 x^{3} \ln \left (x \right )\right )}{x \left (4 \ln \left (x \right )+x \right )}\) \(40\)
parallelrisch \(\frac {-4 x^{4}-16 x^{3} \ln \left (x \right )+8 x^{3}+32 x^{2} \ln \left (x \right )-16}{4 x \left (4 \ln \left (x \right )+x \right )}\) \(40\)

[In]

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

[Out]

-x^2+2*x-4/x/(4*ln(x)+x)

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.33 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=-\frac {x^{4} - 2 \, x^{3} + 4 \, {\left (x^{3} - 2 \, x^{2}\right )} \log \left (x\right ) + 4}{x^{2} + 4 \, x \log \left (x\right )} \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.05 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.63 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=- x^{2} + 2 x - \frac {4}{x^{2} + 4 x \log {\left (x \right )}} \]

[In]

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

[Out]

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

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.33 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=-\frac {x^{4} - 2 \, x^{3} + 4 \, {\left (x^{3} - 2 \, x^{2}\right )} \log \left (x\right ) + 4}{x^{2} + 4 \, x \log \left (x\right )} \]

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.81 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=-x^{2} + 2 \, x - \frac {4}{x^{2} + 4 \, x \log \left (x\right )} \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 8.95 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.81 \[ \int \frac {16+8 x+2 x^4-2 x^5+\left (16+16 x^3-16 x^4\right ) \log (x)+\left (32 x^2-32 x^3\right ) \log ^2(x)}{x^4+8 x^3 \log (x)+16 x^2 \log ^2(x)} \, dx=2\,x-\frac {4}{x\,\left (x+4\,\ln \left (x\right )\right )}-x^2 \]

[In]

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

[Out]

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