\(\int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 (-25 x-85 x^2+35 x^3+40 x^4)+(100-120 x-60 x^2+80 x^3+e^3 (-25+5 x+20 x^2)) \log (\frac {4-e^3-4 x}{-1+x})}{4+e^3 (-1+x)-8 x+4 x^2} \, dx\) [677]

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

Optimal result

Integrand size = 111, antiderivative size = 26 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=5 x (5+2 x) \left (x^2+\log \left (-4+\frac {e^3}{1-x}\right )\right ) \]

[Out]

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

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(101\) vs. \(2(26)=52\).

Time = 1.22 (sec) , antiderivative size = 101, normalized size of antiderivative = 3.88, number of steps used = 9, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.054, Rules used = {6820, 12, 6874, 1626, 2548, 84} \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=10 x^4+25 x^3+\frac {5}{8} \left (56-18 e^3+e^6\right ) \log \left (-4 x-e^3+4\right )-\frac {5}{8} \left (9-e^3\right )^2 \log \left (-4 x-e^3+4\right )+\frac {5}{8} (4 x+5)^2 \log \left (-\frac {-4 x-e^3+4}{1-x}\right )+\frac {125}{8} \log (1-x) \]

[In]

Int[(300*x^2 - 440*x^3 - 20*x^4 + 160*x^5 + E^3*(-25*x - 85*x^2 + 35*x^3 + 40*x^4) + (100 - 120*x - 60*x^2 + 8
0*x^3 + E^3*(-25 + 5*x + 20*x^2))*Log[(4 - E^3 - 4*x)/(-1 + x)])/(4 + E^3*(-1 + x) - 8*x + 4*x^2),x]

[Out]

25*x^3 + 10*x^4 - (5*(9 - E^3)^2*Log[4 - E^3 - 4*x])/8 + (5*(56 - 18*E^3 + E^6)*Log[4 - E^3 - 4*x])/8 + (5*(5
+ 4*x)^2*Log[-((4 - E^3 - 4*x)/(1 - x))])/8 + (125*Log[1 - x])/8

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 84

Int[((e_.) + (f_.)*(x_))^(p_.)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Int[ExpandIntegrand[(
e + f*x)^p/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IntegerQ[p]

Rule 1626

Int[(Px_)*((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[E
xpandIntegrand[Px*(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && Poly
Q[Px, x] && IntegersQ[m, n]

Rule 2548

Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_)]*(B_.))*((f_.) + (g_.)*(x_))^(m_.
), x_Symbol] :> Simp[(f + g*x)^(m + 1)*((A + B*Log[e*((a + b*x)^n/(c + d*x)^n)])/(g*(m + 1))), x] - Dist[B*n*(
(b*c - a*d)/(g*(m + 1))), Int[(f + g*x)^(m + 1)/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f, g, A
, B, m, n}, x] && EqQ[n + mn, 0] && NeQ[b*c - a*d, 0] && NeQ[m, -1] &&  !(EqQ[m, -2] && IntegerQ[n])

Rule 6820

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

Rule 6874

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

Rubi steps \begin{align*} \text {integral}& = \int \frac {5 \left (-\frac {x \left (4 (-1+x)^2 x (15+8 x)+e^3 \left (-5-17 x+7 x^2+8 x^3\right )\right )}{-4+e^3+4 x}-\left (-5+x+4 x^2\right ) \log \left (-\frac {-4+e^3+4 x}{-1+x}\right )\right )}{1-x} \, dx \\ & = 5 \int \frac {-\frac {x \left (4 (-1+x)^2 x (15+8 x)+e^3 \left (-5-17 x+7 x^2+8 x^3\right )\right )}{-4+e^3+4 x}-\left (-5+x+4 x^2\right ) \log \left (-\frac {-4+e^3+4 x}{-1+x}\right )}{1-x} \, dx \\ & = 5 \int \left (\frac {x \left (-5 e^3+\left (60-17 e^3\right ) x-\left (88-7 e^3\right ) x^2-4 \left (1-2 e^3\right ) x^3+32 x^4\right )}{\left (4-e^3-4 x\right ) (1-x)}+(5+4 x) \log \left (-\frac {-4+e^3+4 x}{-1+x}\right )\right ) \, dx \\ & = 5 \int \frac {x \left (-5 e^3+\left (60-17 e^3\right ) x-\left (88-7 e^3\right ) x^2-4 \left (1-2 e^3\right ) x^3+32 x^4\right )}{\left (4-e^3-4 x\right ) (1-x)} \, dx+5 \int (5+4 x) \log \left (-\frac {-4+e^3+4 x}{-1+x}\right ) \, dx \\ & = \frac {5}{8} (5+4 x)^2 \log \left (-\frac {4-e^3-4 x}{1-x}\right )+5 \int \left (-\frac {e^3}{2}-\frac {7}{-1+x}+15 x^2+8 x^3+\frac {56-18 e^3+e^6}{2 \left (-4+e^3+4 x\right )}\right ) \, dx+\frac {1}{8} \left (5 e^3\right ) \int \frac {(5+4 x)^2}{(-1+x) \left (-4+e^3+4 x\right )} \, dx \\ & = -\frac {5 e^3 x}{2}+25 x^3+10 x^4+\frac {5}{8} \left (56-18 e^3+e^6\right ) \log \left (4-e^3-4 x\right )+\frac {5}{8} (5+4 x)^2 \log \left (-\frac {4-e^3-4 x}{1-x}\right )-35 \log (1-x)+\frac {1}{8} \left (5 e^3\right ) \int \left (4+\frac {81}{e^3 (-1+x)}-\frac {4 \left (-9+e^3\right )^2}{e^3 \left (-4+e^3+4 x\right )}\right ) \, dx \\ & = 25 x^3+10 x^4-\frac {5}{8} \left (9-e^3\right )^2 \log \left (4-e^3-4 x\right )+\frac {5}{8} \left (56-18 e^3+e^6\right ) \log \left (4-e^3-4 x\right )+\frac {5}{8} (5+4 x)^2 \log \left (-\frac {4-e^3-4 x}{1-x}\right )+\frac {125}{8} \log (1-x) \\ \end{align*}

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(162\) vs. \(2(26)=52\).

Time = 0.14 (sec) , antiderivative size = 162, normalized size of antiderivative = 6.23 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=5 \left (5 x^3+2 x^4+5 \log \left (4-e^3-4 x\right )-\frac {5}{4} e^3 \log \left (4-e^3-4 x\right )-5 \log \left (-\frac {4-e^3-4 x}{1-x}\right )+\frac {5}{4} e^3 \log \left (-\frac {4-e^3-4 x}{1-x}\right )+5 x \log \left (-\frac {4-e^3-4 x}{1-x}\right )+2 x^2 \log \left (-\frac {4-e^3-4 x}{1-x}\right )-5 \log (1-x)+\frac {5}{4} e^3 \log (1-x)\right ) \]

[In]

Integrate[(300*x^2 - 440*x^3 - 20*x^4 + 160*x^5 + E^3*(-25*x - 85*x^2 + 35*x^3 + 40*x^4) + (100 - 120*x - 60*x
^2 + 80*x^3 + E^3*(-25 + 5*x + 20*x^2))*Log[(4 - E^3 - 4*x)/(-1 + x)])/(4 + E^3*(-1 + x) - 8*x + 4*x^2),x]

[Out]

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

Maple [A] (verified)

Time = 0.32 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.46

method result size
risch \(\left (10 x^{2}+25 x \right ) \ln \left (\frac {-{\mathrm e}^{3}-4 x +4}{-1+x}\right )+10 x^{4}+25 x^{3}\) \(38\)
norman \(25 x^{3}+10 x^{4}+25 x \ln \left (\frac {-{\mathrm e}^{3}-4 x +4}{-1+x}\right )+10 x^{2} \ln \left (\frac {-{\mathrm e}^{3}-4 x +4}{-1+x}\right )\) \(52\)
parallelrisch \(10 x^{4}-\frac {5 \,{\mathrm e}^{6} \ln \left (-1+x \right )}{8}+\frac {5 \,{\mathrm e}^{6} \ln \left (x +\frac {{\mathrm e}^{3}}{4}-1\right )}{8}-\frac {5 \,{\mathrm e}^{6} \ln \left (-\frac {{\mathrm e}^{3}+4 x -4}{-1+x}\right )}{8}+25 x^{3}+10 \ln \left (-\frac {{\mathrm e}^{3}+4 x -4}{-1+x}\right ) x^{2}+\frac {5 \,{\mathrm e}^{6}}{2}+\frac {5 \,{\mathrm e}^{3} \ln \left (-1+x \right )}{2}-\frac {5 \,{\mathrm e}^{3} \ln \left (x +\frac {{\mathrm e}^{3}}{4}-1\right )}{2}+\frac {5 \,{\mathrm e}^{3} \ln \left (-\frac {{\mathrm e}^{3}+4 x -4}{-1+x}\right )}{2}+90+25 \ln \left (-\frac {{\mathrm e}^{3}+4 x -4}{-1+x}\right ) x -\frac {65 \,{\mathrm e}^{3}}{2}+40 \ln \left (-1+x \right )-40 \ln \left (x +\frac {{\mathrm e}^{3}}{4}-1\right )+40 \ln \left (-\frac {{\mathrm e}^{3}+4 x -4}{-1+x}\right )\) \(178\)
parts \(5 \,{\mathrm e}^{3} \left (-4 \,{\mathrm e}^{3} \left (-\frac {\left (-1+x \right ) {\mathrm e}^{-3}}{8}-\frac {\ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )}{32}+\frac {\ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-\frac {{\mathrm e}^{3}}{-1+x}+4\right ) \left (-1+x \right )^{2} {\mathrm e}^{-6}}{32}\right )-\frac {9 \ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )}{4}-\frac {9 \ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-1+x \right ) {\mathrm e}^{-3}}{4}\right )+10 x^{4}+25 x^{3}-\frac {5 x \,{\mathrm e}^{3}}{2}-35 \,{\mathrm e}^{3} {\mathrm e}^{-3} \ln \left (-1+x \right )+\frac {5 \left (-18 \,{\mathrm e}^{6}+{\mathrm e}^{6} {\mathrm e}^{3}+56 \,{\mathrm e}^{3}\right ) {\mathrm e}^{-3} \ln \left ({\mathrm e}^{3}+4 x -4\right )}{8}\) \(194\)
derivativedivides \({\mathrm e}^{3} \left (-\frac {45 \ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )}{4}-\frac {45 \ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-1+x \right ) {\mathrm e}^{-3}}{4}-20 \,{\mathrm e}^{3} \left (-\frac {\left (-1+x \right ) {\mathrm e}^{-3}}{8}-\frac {\ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )}{32}+\frac {\ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-\frac {{\mathrm e}^{3}}{-1+x}+4\right ) \left (-1+x \right )^{2} {\mathrm e}^{-6}}{32}\right )-5 \,{\mathrm e}^{-3} \left (\left (-\frac {9 \,{\mathrm e}^{3}}{4}+\frac {{\mathrm e}^{6}}{8}\right ) \ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )+\left (\frac {{\mathrm e}^{6}}{2}-23 \,{\mathrm e}^{3}\right ) \left (-1+x \right ) {\mathrm e}^{-3}-27 \,{\mathrm e}^{6} \left (-1+x \right )^{2} {\mathrm e}^{-6}-13 \,{\mathrm e}^{9} \left (-1+x \right )^{3} {\mathrm e}^{-9}-2 \,{\mathrm e}^{12} \left (-1+x \right )^{4} {\mathrm e}^{-12}+\left (\frac {9 \,{\mathrm e}^{3}}{4}-\frac {{\mathrm e}^{6}}{8}-7\right ) \ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right )\right )\right )\) \(226\)
default \({\mathrm e}^{3} \left (-\frac {45 \ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )}{4}-\frac {45 \ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-1+x \right ) {\mathrm e}^{-3}}{4}-20 \,{\mathrm e}^{3} \left (-\frac {\left (-1+x \right ) {\mathrm e}^{-3}}{8}-\frac {\ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )}{32}+\frac {\ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right ) \left (-\frac {{\mathrm e}^{3}}{-1+x}+4\right ) \left (-1+x \right )^{2} {\mathrm e}^{-6}}{32}\right )-5 \,{\mathrm e}^{-3} \left (\left (-\frac {9 \,{\mathrm e}^{3}}{4}+\frac {{\mathrm e}^{6}}{8}\right ) \ln \left (-\frac {{\mathrm e}^{3}}{-1+x}\right )+\left (\frac {{\mathrm e}^{6}}{2}-23 \,{\mathrm e}^{3}\right ) \left (-1+x \right ) {\mathrm e}^{-3}-27 \,{\mathrm e}^{6} \left (-1+x \right )^{2} {\mathrm e}^{-6}-13 \,{\mathrm e}^{9} \left (-1+x \right )^{3} {\mathrm e}^{-9}-2 \,{\mathrm e}^{12} \left (-1+x \right )^{4} {\mathrm e}^{-12}+\left (\frac {9 \,{\mathrm e}^{3}}{4}-\frac {{\mathrm e}^{6}}{8}-7\right ) \ln \left (-4-\frac {{\mathrm e}^{3}}{-1+x}\right )\right )\right )\) \(226\)

[In]

int((((20*x^2+5*x-25)*exp(3)+80*x^3-60*x^2-120*x+100)*ln((-exp(3)-4*x+4)/(-1+x))+(40*x^4+35*x^3-85*x^2-25*x)*e
xp(3)+160*x^5-20*x^4-440*x^3+300*x^2)/((-1+x)*exp(3)+4*x^2-8*x+4),x,method=_RETURNVERBOSE)

[Out]

(10*x^2+25*x)*ln((-exp(3)-4*x+4)/(-1+x))+10*x^4+25*x^3

Fricas [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.42 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=10 \, x^{4} + 25 \, x^{3} + 5 \, {\left (2 \, x^{2} + 5 \, x\right )} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right ) \]

[In]

integrate((((20*x^2+5*x-25)*exp(3)+80*x^3-60*x^2-120*x+100)*log((-exp(3)-4*x+4)/(-1+x))+(40*x^4+35*x^3-85*x^2-
25*x)*exp(3)+160*x^5-20*x^4-440*x^3+300*x^2)/((-1+x)*exp(3)+4*x^2-8*x+4),x, algorithm="fricas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.12 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.19 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=10 x^{4} + 25 x^{3} + \left (10 x^{2} + 25 x\right ) \log {\left (\frac {- 4 x - e^{3} + 4}{x - 1} \right )} \]

[In]

integrate((((20*x**2+5*x-25)*exp(3)+80*x**3-60*x**2-120*x+100)*ln((-exp(3)-4*x+4)/(-1+x))+(40*x**4+35*x**3-85*
x**2-25*x)*exp(3)+160*x**5-20*x**4-440*x**3+300*x**2)/((-1+x)*exp(3)+4*x**2-8*x+4),x)

[Out]

10*x**4 + 25*x**3 + (10*x**2 + 25*x)*log((-4*x - exp(3) + 4)/(x - 1))

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 641 vs. \(2 (24) = 48\).

Time = 0.26 (sec) , antiderivative size = 641, normalized size of antiderivative = 24.65 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=\text {Too large to display} \]

[In]

integrate((((20*x^2+5*x-25)*exp(3)+80*x^3-60*x^2-120*x+100)*log((-exp(3)-4*x+4)/(-1+x))+(40*x^4+35*x^3-85*x^2-
25*x)*exp(3)+160*x^5-20*x^4-440*x^3+300*x^2)/((-1+x)*exp(3)+4*x^2-8*x+4),x, algorithm="maxima")

[Out]

10*x^4 - 10/3*x^3*(e^3 - 8) - 5/3*x^3 + 5/4*x^2*(e^6 - 12*e^3 + 48) + 5/8*x^2*(e^3 - 8) + 5/32*(e^15 - 20*e^12
 + 160*e^9 - 640*e^6 + 1280*e^3 - 1024)*e^(-3)*log(4*x + e^3 - 4) + 5/64*(e^12 - 16*e^9 + 96*e^6 - 256*e^3 + 2
56)*e^(-3)*log(4*x + e^3 - 4) - 55/8*(e^9 - 12*e^6 + 48*e^3 - 64)*e^(-3)*log(4*x + e^3 - 4) - 75/4*(e^6 - 8*e^
3 + 16)*e^(-3)*log(4*x + e^3 - 4) + 25*(e^(-3)*log(4*x + e^3 - 4) - e^(-3)*log(x - 1))*e^3*log(-4*x/(x - 1) -
e^3/(x - 1) + 4/(x - 1)) - 55*x^2 - 5/8*x*(e^9 - 16*e^6 + 96*e^3 - 256) - 5/16*x*(e^6 - 12*e^3 + 48) + 55/2*x*
(e^3 - 8) + 5/96*(64*x^3 - 24*x^2*(e^3 - 8) - 3*(e^12 - 16*e^9 + 96*e^6 - 256*e^3 + 256)*e^(-3)*log(4*x + e^3
- 4) + 12*x*(e^6 - 12*e^3 + 48) + 768*e^(-3)*log(x - 1))*e^3 + 35/64*((e^9 - 12*e^6 + 48*e^3 - 64)*e^(-3)*log(
4*x + e^3 - 4) + 8*x^2 - 4*x*(e^3 - 8) + 64*e^(-3)*log(x - 1))*e^3 + 85/16*((e^6 - 8*e^3 + 16)*e^(-3)*log(4*x
+ e^3 - 4) - 16*e^(-3)*log(x - 1) - 4*x)*e^3 - 25/4*((e^3 - 4)*e^(-3)*log(4*x + e^3 - 4) + 4*e^(-3)*log(x - 1)
)*e^3 - 5/8*(20*(e^3 - 4)*log(x - 1)^2 + 20*(e^3 - 4)*log(-4*x - e^3 + 4)^2 - 4*x*e^6 + 8*(2*x^2*e^3 + 5*x*e^3
 - 7*e^3)*log(x - 1) - (16*x^2*e^3 + 40*x*e^3 + 40*(e^3 - 4)*log(x - 1) - e^9 + 18*e^6 - 56*e^3)*log(-4*x - e^
3 + 4))*e^(-3) + 50*(log(4*x + e^3 - 4)^2 - 2*log(4*x + e^3 - 4)*log(x - 1) + log(x - 1)^2)*e^(-3) - 25/2*log(
4*x + e^3 - 4)^2 + 25*log(4*x + e^3 - 4)*log(x - 1) - 25/2*log(x - 1)^2 - 100*(e^(-3)*log(4*x + e^3 - 4) - e^(
-3)*log(x - 1))*log(-4*x/(x - 1) - e^3/(x - 1) + 4/(x - 1)) + 75*x

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 546 vs. \(2 (24) = 48\).

Time = 0.39 (sec) , antiderivative size = 546, normalized size of antiderivative = 21.00 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=\frac {5 \, {\left ({\left (e^{3} - 4\right )} e^{\left (-6\right )} + 4 \, e^{\left (-6\right )}\right )} {\left (\frac {2 \, {\left (4 \, x + e^{3} - 4\right )}^{2} e^{9} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{{\left (x - 1\right )}^{2}} - \frac {16 \, {\left (4 \, x + e^{3} - 4\right )} e^{9} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{x - 1} + 32 \, e^{9} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right ) + \frac {9 \, {\left (4 \, x + e^{3} - 4\right )}^{3} e^{6} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{{\left (x - 1\right )}^{3}} - \frac {108 \, {\left (4 \, x + e^{3} - 4\right )}^{2} e^{6} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{{\left (x - 1\right )}^{2}} + \frac {432 \, {\left (4 \, x + e^{3} - 4\right )} e^{6} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{x - 1} - 576 \, e^{6} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right ) + \frac {7 \, {\left (4 \, x + e^{3} - 4\right )}^{4} e^{3} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{{\left (x - 1\right )}^{4}} - \frac {112 \, {\left (4 \, x + e^{3} - 4\right )}^{3} e^{3} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{{\left (x - 1\right )}^{3}} + \frac {672 \, {\left (4 \, x + e^{3} - 4\right )}^{2} e^{3} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{{\left (x - 1\right )}^{2}} - \frac {1792 \, {\left (4 \, x + e^{3} - 4\right )} e^{3} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right )}{x - 1} + 1792 \, e^{3} \log \left (-\frac {4 \, x + e^{3} - 4}{x - 1}\right ) + \frac {13 \, {\left (4 \, x + e^{3} - 4\right )} e^{12}}{x - 1} + \frac {27 \, {\left (4 \, x + e^{3} - 4\right )}^{2} e^{9}}{{\left (x - 1\right )}^{2}} - \frac {216 \, {\left (4 \, x + e^{3} - 4\right )} e^{9}}{x - 1} + \frac {23 \, {\left (4 \, x + e^{3} - 4\right )}^{3} e^{6}}{{\left (x - 1\right )}^{3}} - \frac {276 \, {\left (4 \, x + e^{3} - 4\right )}^{2} e^{6}}{{\left (x - 1\right )}^{2}} + \frac {1104 \, {\left (4 \, x + e^{3} - 4\right )} e^{6}}{x - 1} + 2 \, e^{15} - 52 \, e^{12} + 432 \, e^{9} - 1472 \, e^{6}\right )}}{\frac {{\left (4 \, x + e^{3} - 4\right )}^{4}}{{\left (x - 1\right )}^{4}} - \frac {16 \, {\left (4 \, x + e^{3} - 4\right )}^{3}}{{\left (x - 1\right )}^{3}} + \frac {96 \, {\left (4 \, x + e^{3} - 4\right )}^{2}}{{\left (x - 1\right )}^{2}} - \frac {256 \, {\left (4 \, x + e^{3} - 4\right )}}{x - 1} + 256} \]

[In]

integrate((((20*x^2+5*x-25)*exp(3)+80*x^3-60*x^2-120*x+100)*log((-exp(3)-4*x+4)/(-1+x))+(40*x^4+35*x^3-85*x^2-
25*x)*exp(3)+160*x^5-20*x^4-440*x^3+300*x^2)/((-1+x)*exp(3)+4*x^2-8*x+4),x, algorithm="giac")

[Out]

5*((e^3 - 4)*e^(-6) + 4*e^(-6))*(2*(4*x + e^3 - 4)^2*e^9*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1)^2 - 16*(4*x + e
^3 - 4)*e^9*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1) + 32*e^9*log(-(4*x + e^3 - 4)/(x - 1)) + 9*(4*x + e^3 - 4)^3
*e^6*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1)^3 - 108*(4*x + e^3 - 4)^2*e^6*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1)
^2 + 432*(4*x + e^3 - 4)*e^6*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1) - 576*e^6*log(-(4*x + e^3 - 4)/(x - 1)) + 7
*(4*x + e^3 - 4)^4*e^3*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1)^4 - 112*(4*x + e^3 - 4)^3*e^3*log(-(4*x + e^3 - 4
)/(x - 1))/(x - 1)^3 + 672*(4*x + e^3 - 4)^2*e^3*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1)^2 - 1792*(4*x + e^3 - 4
)*e^3*log(-(4*x + e^3 - 4)/(x - 1))/(x - 1) + 1792*e^3*log(-(4*x + e^3 - 4)/(x - 1)) + 13*(4*x + e^3 - 4)*e^12
/(x - 1) + 27*(4*x + e^3 - 4)^2*e^9/(x - 1)^2 - 216*(4*x + e^3 - 4)*e^9/(x - 1) + 23*(4*x + e^3 - 4)^3*e^6/(x
- 1)^3 - 276*(4*x + e^3 - 4)^2*e^6/(x - 1)^2 + 1104*(4*x + e^3 - 4)*e^6/(x - 1) + 2*e^15 - 52*e^12 + 432*e^9 -
 1472*e^6)/((4*x + e^3 - 4)^4/(x - 1)^4 - 16*(4*x + e^3 - 4)^3/(x - 1)^3 + 96*(4*x + e^3 - 4)^2/(x - 1)^2 - 25
6*(4*x + e^3 - 4)/(x - 1) + 256)

Mupad [B] (verification not implemented)

Time = 1.37 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.04 \[ \int \frac {300 x^2-440 x^3-20 x^4+160 x^5+e^3 \left (-25 x-85 x^2+35 x^3+40 x^4\right )+\left (100-120 x-60 x^2+80 x^3+e^3 \left (-25+5 x+20 x^2\right )\right ) \log \left (\frac {4-e^3-4 x}{-1+x}\right )}{4+e^3 (-1+x)-8 x+4 x^2} \, dx=5\,x\,\left (2\,x+5\right )\,\left (\ln \left (-\frac {4\,x+{\mathrm {e}}^3-4}{x-1}\right )+x^2\right ) \]

[In]

int(-(exp(3)*(25*x + 85*x^2 - 35*x^3 - 40*x^4) - log(-(4*x + exp(3) - 4)/(x - 1))*(exp(3)*(5*x + 20*x^2 - 25)
- 120*x - 60*x^2 + 80*x^3 + 100) - 300*x^2 + 440*x^3 + 20*x^4 - 160*x^5)/(exp(3)*(x - 1) - 8*x + 4*x^2 + 4),x)

[Out]

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