\(\int \frac {-15-5 x^2-10 x^3+(3 x+4 x^2-x^3-x^4) \log ^2(\frac {-3-4 x+x^2+x^3}{x})}{(-3 x-4 x^2+x^3+x^4) \log ^2(\frac {-3-4 x+x^2+x^3}{x})} \, dx\) [8164]

   Optimal result
   Rubi [A] (verified)
   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 = 86, antiderivative size = 23 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=\frac {13}{4}-x+\frac {5}{\log \left (-4-\frac {3}{x}+x+x^2\right )} \]

[Out]

13/4-x+5/ln(-4+x^2-3/x+x)

Rubi [A] (verified)

Time = 0.16 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.87, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.023, Rules used = {6820, 6818} \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=\frac {5}{\log \left (x^2+x-\frac {3}{x}-4\right )}-x \]

[In]

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

[Out]

-x + 5/Log[-4 - 3/x + x + x^2]

Rule 6818

Int[(u_)*(y_)^(m_.), x_Symbol] :> With[{q = DerivativeDivides[y, u, x]}, Simp[q*(y^(m + 1)/(m + 1)), x] /;  !F
alseQ[q]] /; FreeQ[m, x] && NeQ[m, -1]

Rule 6820

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

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

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.87 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=-x+\frac {5}{\log \left (-4-\frac {3}{x}+x+x^2\right )} \]

[In]

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

[Out]

-x + 5/Log[-4 - 3/x + x + x^2]

Maple [A] (verified)

Time = 0.07 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.09

method result size
default \(-x +\frac {5}{\ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}\) \(25\)
risch \(-x +\frac {5}{\ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}\) \(25\)
parts \(-x +\frac {5}{\ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}\) \(25\)
norman \(\frac {5-x \ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}{\ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}\) \(41\)
parallelrisch \(-\frac {-5+x \ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )-2 \ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}{\ln \left (\frac {x^{3}+x^{2}-4 x -3}{x}\right )}\) \(59\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.74 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=-\frac {x \log \left (\frac {x^{3} + x^{2} - 4 \, x - 3}{x}\right ) - 5}{\log \left (\frac {x^{3} + x^{2} - 4 \, x - 3}{x}\right )} \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.06 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.74 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=- x + \frac {5}{\log {\left (\frac {x^{3} + x^{2} - 4 x - 3}{x} \right )}} \]

[In]

integrate(((-x**4-x**3+4*x**2+3*x)*ln((x**3+x**2-4*x-3)/x)**2-10*x**3-5*x**2-15)/(x**4+x**3-4*x**2-3*x)/ln((x*
*3+x**2-4*x-3)/x)**2,x)

[Out]

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

Maxima [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.83 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=-\frac {x \log \left (x^{3} + x^{2} - 4 \, x - 3\right ) - x \log \left (x\right ) - 5}{\log \left (x^{3} + x^{2} - 4 \, x - 3\right ) - \log \left (x\right )} \]

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.53 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.04 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=-x + \frac {5}{\log \left (\frac {x^{3} + x^{2} - 4 \, x - 3}{x}\right )} \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 13.34 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.26 \[ \int \frac {-15-5 x^2-10 x^3+\left (3 x+4 x^2-x^3-x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )}{\left (-3 x-4 x^2+x^3+x^4\right ) \log ^2\left (\frac {-3-4 x+x^2+x^3}{x}\right )} \, dx=\frac {5}{\ln \left (-\frac {-x^3-x^2+4\,x+3}{x}\right )}-x \]

[In]

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

[Out]

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