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

   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 = 47, antiderivative size = 24 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=\log \left (2+\frac {1}{2 x}+2 x+\log (4)+\frac {1}{8} x \log \left (x^2\right )\right ) \]

[Out]

ln(2*x+2+2*ln(2)+1/8*x*ln(x^2)+1/2/x)

Rubi [F]

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

[In]

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

[Out]

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

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

Mathematica [A] (verified)

Time = 0.37 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.21 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=-\log (x)+\log \left (4+16 x+16 x^2+8 x \log (4)+x^2 \log \left (x^2\right )\right ) \]

[In]

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

[Out]

-Log[x] + Log[4 + 16*x + 16*x^2 + 8*x*Log[4] + x^2*Log[x^2]]

Maple [A] (verified)

Time = 0.38 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.25

method result size
risch \(\ln \left (x \right )+\ln \left (\ln \left (x^{2}\right )+\frac {16 x \ln \left (2\right )+16 x^{2}+16 x +4}{x^{2}}\right )\) \(30\)
norman \(-\frac {\ln \left (x^{2}\right )}{2}+\ln \left (x^{2} \ln \left (x^{2}\right )+16 x \ln \left (2\right )+16 x^{2}+16 x +4\right )\) \(32\)
parallelrisch \(-\frac {\ln \left (x^{2}\right )}{2}+\ln \left (x^{2} \ln \left (x^{2}\right )+16 x \ln \left (2\right )+16 x^{2}+16 x +4\right )\) \(32\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.46 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=\frac {1}{2} \, \log \left (x^{2}\right ) + \log \left (\frac {x^{2} \log \left (x^{2}\right ) + 16 \, x^{2} + 16 \, x \log \left (2\right ) + 16 \, x + 4}{x^{2}}\right ) \]

[In]

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

[Out]

1/2*log(x^2) + log((x^2*log(x^2) + 16*x^2 + 16*x*log(2) + 16*x + 4)/x^2)

Sympy [A] (verification not implemented)

Time = 0.10 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.21 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=\log {\left (x \right )} + \log {\left (\log {\left (x^{2} \right )} + \frac {16 x^{2} + 16 x \log {\left (2 \right )} + 16 x + 4}{x^{2}} \right )} \]

[In]

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

[Out]

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

Maxima [A] (verification not implemented)

none

Time = 0.31 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.17 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=\log \left (x\right ) + \log \left (\frac {x^{2} \log \left (x\right ) + 8 \, x^{2} + 8 \, x {\left (\log \left (2\right ) + 1\right )} + 2}{x^{2}}\right ) \]

[In]

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

[Out]

log(x) + log((x^2*log(x) + 8*x^2 + 8*x*(log(2) + 1) + 2)/x^2)

Giac [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.21 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=\log \left (x^{2} \log \left (x^{2}\right ) + 16 \, x^{2} + 16 \, x \log \left (2\right ) + 16 \, x + 4\right ) - \log \left (x\right ) \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 8.84 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.29 \[ \int \frac {-4+18 x^2+x^2 \log \left (x^2\right )}{4 x+16 x^2+16 x^3+8 x^2 \log (4)+x^3 \log \left (x^2\right )} \, dx=\ln \left (16\,x+16\,x\,\ln \left (2\right )+x^2\,\ln \left (x^2\right )+16\,x^2+4\right )-\frac {\ln \left (x^2\right )}{2} \]

[In]

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

[Out]

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