\(\int \frac {-4 x+32 x^2+e^x (2 x-16 x^2)+(2-16 x+e^x (-1+8 x)) \log (-2+e^x)+(-4 x+16 x^2+e^x (x-4 x^2)) \log (-x+4 x^2)}{2 x-8 x^2+e^x (-x+4 x^2)} \, dx\) [6551]

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

[Out]

(ln(exp(x)-2)-2*x)*ln(4*x^2-x)

Rubi [F]

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

[In]

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

[Out]

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

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

Mathematica [A] (verified)

Time = 0.63 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.29 \[ \int \frac {-4 x+32 x^2+e^x \left (2 x-16 x^2\right )+\left (2-16 x+e^x (-1+8 x)\right ) \log \left (-2+e^x\right )+\left (-4 x+16 x^2+e^x \left (x-4 x^2\right )\right ) \log \left (-x+4 x^2\right )}{2 x-8 x^2+e^x \left (-x+4 x^2\right )} \, dx=-2 x \log (x (-1+4 x))+\log \left (-2+e^x\right ) \log (x (-1+4 x)) \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 1.12 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.48

method result size
parallelrisch \(-2 \ln \left (4 x^{2}-x \right ) x +\ln \left ({\mathrm e}^{x}-2\right ) \ln \left (4 x^{2}-x \right )\) \(31\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.43 \[ \int \frac {-4 x+32 x^2+e^x \left (2 x-16 x^2\right )+\left (2-16 x+e^x (-1+8 x)\right ) \log \left (-2+e^x\right )+\left (-4 x+16 x^2+e^x \left (x-4 x^2\right )\right ) \log \left (-x+4 x^2\right )}{2 x-8 x^2+e^x \left (-x+4 x^2\right )} \, dx=-2 \, x \log \left (4 \, x^{2} - x\right ) + \log \left (4 \, x^{2} - x\right ) \log \left (e^{x} - 2\right ) \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.33 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.24 \[ \int \frac {-4 x+32 x^2+e^x \left (2 x-16 x^2\right )+\left (2-16 x+e^x (-1+8 x)\right ) \log \left (-2+e^x\right )+\left (-4 x+16 x^2+e^x \left (x-4 x^2\right )\right ) \log \left (-x+4 x^2\right )}{2 x-8 x^2+e^x \left (-x+4 x^2\right )} \, dx=- 2 x \log {\left (4 x^{2} - x \right )} + \log {\left (4 x^{2} - x \right )} \log {\left (e^{x} - 2 \right )} \]

[In]

integrate((((8*x-1)*exp(x)-16*x+2)*ln(exp(x)-2)+((-4*x**2+x)*exp(x)+16*x**2-4*x)*ln(4*x**2-x)+(-16*x**2+2*x)*e
xp(x)+32*x**2-4*x)/((4*x**2-x)*exp(x)-8*x**2+2*x),x)

[Out]

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

Maxima [A] (verification not implemented)

none

Time = 0.22 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.43 \[ \int \frac {-4 x+32 x^2+e^x \left (2 x-16 x^2\right )+\left (2-16 x+e^x (-1+8 x)\right ) \log \left (-2+e^x\right )+\left (-4 x+16 x^2+e^x \left (x-4 x^2\right )\right ) \log \left (-x+4 x^2\right )}{2 x-8 x^2+e^x \left (-x+4 x^2\right )} \, dx=-2 \, x \log \left (4 \, x - 1\right ) - 2 \, x \log \left (x\right ) + {\left (\log \left (4 \, x - 1\right ) + \log \left (x\right )\right )} \log \left (e^{x} - 2\right ) \]

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.30 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.43 \[ \int \frac {-4 x+32 x^2+e^x \left (2 x-16 x^2\right )+\left (2-16 x+e^x (-1+8 x)\right ) \log \left (-2+e^x\right )+\left (-4 x+16 x^2+e^x \left (x-4 x^2\right )\right ) \log \left (-x+4 x^2\right )}{2 x-8 x^2+e^x \left (-x+4 x^2\right )} \, dx=-2 \, x \log \left (4 \, x^{2} - x\right ) + \log \left (4 \, x^{2} - x\right ) \log \left (e^{x} - 2\right ) \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 11.82 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.10 \[ \int \frac {-4 x+32 x^2+e^x \left (2 x-16 x^2\right )+\left (2-16 x+e^x (-1+8 x)\right ) \log \left (-2+e^x\right )+\left (-4 x+16 x^2+e^x \left (x-4 x^2\right )\right ) \log \left (-x+4 x^2\right )}{2 x-8 x^2+e^x \left (-x+4 x^2\right )} \, dx=-\ln \left (4\,x^2-x\right )\,\left (2\,x-\ln \left ({\mathrm {e}}^x-2\right )\right ) \]

[In]

int(-(exp(x)*(2*x - 16*x^2) - 4*x + log(exp(x) - 2)*(exp(x)*(8*x - 1) - 16*x + 2) + 32*x^2 + log(4*x^2 - x)*(e
xp(x)*(x - 4*x^2) - 4*x + 16*x^2))/(exp(x)*(x - 4*x^2) - 2*x + 8*x^2),x)

[Out]

-log(4*x^2 - x)*(2*x - log(exp(x) - 2))