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

   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 = 63, antiderivative size = 28 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=2-x-\log \left (x-x^2 \left (-e^{e^5}+x^2+\log (x)\right )\right ) \]

[Out]

2-x-ln(x-(ln(x)-exp(exp(5))+x^2)*x^2)

Rubi [F]

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

[In]

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

[Out]

-x - 2*Log[x] + Defer[Int][(1 + E^E^5*x - x^3 - x*Log[x])^(-1), x] - Defer[Int][1/(x*(-1 - E^E^5*x + x^3 + x*L
og[x])), x] - 2*Defer[Int][x^2/(-1 - E^E^5*x + x^3 + x*Log[x]), x]

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

Mathematica [A] (verified)

Time = 0.33 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.07 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=-x-\log (x)-\log \left (1+e^{e^5} x-x^3-x \log (x)\right ) \]

[In]

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

[Out]

-x - Log[x] - Log[1 + E^E^5*x - x^3 - x*Log[x]]

Maple [A] (verified)

Time = 0.19 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.96

method result size
parallelrisch \(-\ln \left (x^{3}+x \ln \left (x \right )-x \,{\mathrm e}^{{\mathrm e}^{5}}-1\right )-x -\ln \left (x \right )\) \(27\)
default \(-\ln \left (x \right )-x -\ln \left (-x^{3}+x \,{\mathrm e}^{{\mathrm e}^{5}}-x \ln \left (x \right )+1\right )\) \(29\)
norman \(-\ln \left (x \right )-x -\ln \left (-x^{3}+x \,{\mathrm e}^{{\mathrm e}^{5}}-x \ln \left (x \right )+1\right )\) \(29\)
risch \(-x -2 \ln \left (x \right )-\ln \left (\ln \left (x \right )-\frac {-x^{3}+x \,{\mathrm e}^{{\mathrm e}^{5}}+1}{x}\right )\) \(32\)

[In]

int(((-x^2-2*x)*ln(x)+(x^2+2*x)*exp(exp(5))-x^4-4*x^3+1)/(x^2*ln(x)-x^2*exp(exp(5))+x^4-x),x,method=_RETURNVER
BOSE)

[Out]

-ln(x^3+x*ln(x)-x*exp(exp(5))-1)-x-ln(x)

Fricas [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.07 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=-x - 2 \, \log \left (x\right ) - \log \left (\frac {x^{3} - x e^{\left (e^{5}\right )} + x \log \left (x\right ) - 1}{x}\right ) \]

[In]

integrate(((-x^2-2*x)*log(x)+(x^2+2*x)*exp(exp(5))-x^4-4*x^3+1)/(x^2*log(x)-x^2*exp(exp(5))+x^4-x),x, algorith
m="fricas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.10 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.93 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=- x - 2 \log {\left (x \right )} - \log {\left (\log {\left (x \right )} + \frac {x^{3} - x e^{e^{5}} - 1}{x} \right )} \]

[In]

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

[Out]

-x - 2*log(x) - log(log(x) + (x**3 - x*exp(exp(5)) - 1)/x)

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.07 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=-x - 2 \, \log \left (x\right ) - \log \left (\frac {x^{3} - x e^{\left (e^{5}\right )} + x \log \left (x\right ) - 1}{x}\right ) \]

[In]

integrate(((-x^2-2*x)*log(x)+(x^2+2*x)*exp(exp(5))-x^4-4*x^3+1)/(x^2*log(x)-x^2*exp(exp(5))+x^4-x),x, algorith
m="maxima")

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.93 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=-x - \log \left (x^{3} - x e^{\left (e^{5}\right )} + x \log \left (x\right ) - 1\right ) - \log \left (x\right ) \]

[In]

integrate(((-x^2-2*x)*log(x)+(x^2+2*x)*exp(exp(5))-x^4-4*x^3+1)/(x^2*log(x)-x^2*exp(exp(5))+x^4-x),x, algorith
m="giac")

[Out]

-x - log(x^3 - x*e^(e^5) + x*log(x) - 1) - log(x)

Mupad [B] (verification not implemented)

Time = 8.14 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.21 \[ \int \frac {1-4 x^3-x^4+e^{e^5} \left (2 x+x^2\right )+\left (-2 x-x^2\right ) \log (x)}{-x-e^{e^5} x^2+x^4+x^2 \log (x)} \, dx=-\ln \left (x\,\ln \left (x\right )-x\,{\mathrm {e}}^{{\mathrm {e}}^5}+x^3-1\right )-\frac {x^2\,\ln \left (x\right )+x^3}{x^2} \]

[In]

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

[Out]

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