\(\int \frac {-8+16 x+e^{\frac {1}{16} (36-36 x+9 x^2)} (-72+306 x-81 x^2)}{8 x+72 e^{\frac {1}{16} (36-36 x+9 x^2)} x} \, dx\) [8719]

   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 = 58, antiderivative size = 27 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=2 x+\log (5)-\log \left (x+9 e^{\frac {9}{16} (2-x)^2} x\right ) \]

[Out]

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

Rubi [F]

\[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=\int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx \]

[In]

Int[(-8 + 16*x + E^((36 - 36*x + 9*x^2)/16)*(-72 + 306*x - 81*x^2))/(8*x + 72*E^((36 - 36*x + 9*x^2)/16)*x),x]

[Out]

(17*x)/4 - Defer[Int][1/((1 + 9*E^((9*(-2 + x)^2)/16))*x), x] - 9*Defer[Int][E^((9*(-2 + x)^2)/16)/((1 + 9*E^(
(9*(-2 + x)^2)/16))*x), x] - (81*Defer[Int][(E^((9*(-2 + x)^2)/16)*x)/(1 + 9*E^((9*(-2 + x)^2)/16)), x])/8 - (
9*Defer[Subst][Defer[Int][(1 + 9*E^((9*x^2)/16))^(-1), x], x, -2 + x])/4

Rubi steps \begin{align*} \text {integral}& = \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 \left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ & = \frac {1}{8} \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ & = \frac {1}{8} \int \left (\frac {8 (-1+2 x)}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x}-\frac {9 e^{\frac {9}{16} (-2+x)^2} \left (8-34 x+9 x^2\right )}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x}\right ) \, dx \\ & = -\left (\frac {9}{8} \int \frac {e^{\frac {9}{16} (-2+x)^2} \left (8-34 x+9 x^2\right )}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx\right )+\int \frac {-1+2 x}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ & = -\left (\frac {9}{8} \int \left (-\frac {34 e^{\frac {9}{16} (-2+x)^2}}{1+9 e^{\frac {9}{16} (-2+x)^2}}+\frac {8 e^{\frac {9}{16} (-2+x)^2}}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x}+\frac {9 e^{\frac {9}{16} (-2+x)^2} x}{1+9 e^{\frac {9}{16} (-2+x)^2}}\right ) \, dx\right )+\int \left (\frac {2}{1+9 e^{\frac {9}{16} (-2+x)^2}}-\frac {1}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x}\right ) \, dx \\ & = 2 \int \frac {1}{1+9 e^{\frac {9}{16} (-2+x)^2}} \, dx-9 \int \frac {e^{\frac {9}{16} (-2+x)^2}}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx-\frac {81}{8} \int \frac {e^{\frac {9}{16} (-2+x)^2} x}{1+9 e^{\frac {9}{16} (-2+x)^2}} \, dx+\frac {153}{4} \int \frac {e^{\frac {9}{16} (-2+x)^2}}{1+9 e^{\frac {9}{16} (-2+x)^2}} \, dx-\int \frac {1}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ & = 2 \text {Subst}\left (\int \frac {1}{1+9 e^{\frac {9 x^2}{16}}} \, dx,x,-2+x\right )-9 \int \frac {e^{\frac {9}{16} (-2+x)^2}}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx-\frac {81}{8} \int \frac {e^{\frac {9}{16} (-2+x)^2} x}{1+9 e^{\frac {9}{16} (-2+x)^2}} \, dx+\frac {153}{4} \text {Subst}\left (\int \frac {e^{\frac {9 x^2}{16}}}{1+9 e^{\frac {9 x^2}{16}}} \, dx,x,-2+x\right )-\int \frac {1}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ & = 2 \text {Subst}\left (\int \frac {1}{1+9 e^{\frac {9 x^2}{16}}} \, dx,x,-2+x\right )-9 \int \frac {e^{\frac {9}{16} (-2+x)^2}}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx-\frac {81}{8} \int \frac {e^{\frac {9}{16} (-2+x)^2} x}{1+9 e^{\frac {9}{16} (-2+x)^2}} \, dx+\frac {153}{4} \text {Subst}\left (\int \left (\frac {1}{9}-\frac {1}{9 \left (1+9 e^{\frac {9 x^2}{16}}\right )}\right ) \, dx,x,-2+x\right )-\int \frac {1}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ & = \frac {17 x}{4}+2 \text {Subst}\left (\int \frac {1}{1+9 e^{\frac {9 x^2}{16}}} \, dx,x,-2+x\right )-\frac {17}{4} \text {Subst}\left (\int \frac {1}{1+9 e^{\frac {9 x^2}{16}}} \, dx,x,-2+x\right )-9 \int \frac {e^{\frac {9}{16} (-2+x)^2}}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx-\frac {81}{8} \int \frac {e^{\frac {9}{16} (-2+x)^2} x}{1+9 e^{\frac {9}{16} (-2+x)^2}} \, dx-\int \frac {1}{\left (1+9 e^{\frac {9}{16} (-2+x)^2}\right ) x} \, dx \\ \end{align*}

Mathematica [A] (verified)

Time = 1.80 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.89 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=\frac {1}{8} \left (34 x-\frac {9 x^2}{2}+8 \log \left (e^{\frac {9}{16} (-2+x)^2}\right )-8 \log \left (1+9 e^{\frac {9}{16} (-2+x)^2}\right )-8 \log (x)\right ) \]

[In]

Integrate[(-8 + 16*x + E^((36 - 36*x + 9*x^2)/16)*(-72 + 306*x - 81*x^2))/(8*x + 72*E^((36 - 36*x + 9*x^2)/16)
*x),x]

[Out]

(34*x - (9*x^2)/2 + 8*Log[E^((9*(-2 + x)^2)/16)] - 8*Log[1 + 9*E^((9*(-2 + x)^2)/16)] - 8*Log[x])/8

Maple [A] (verified)

Time = 0.11 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.85

method result size
risch \(2 x -\ln \left (x \right )+\frac {9}{4}-\ln \left ({\mathrm e}^{\frac {9 \left (-2+x \right )^{2}}{16}}+\frac {1}{9}\right )\) \(23\)
parallelrisch \(2 x -\ln \left (x \right )-\ln \left ({\mathrm e}^{\frac {9}{16} x^{2}-\frac {9}{4} x +\frac {9}{4}}+\frac {1}{9}\right )\) \(25\)
norman \(2 x -\ln \left (x \right )-\ln \left (9 \,{\mathrm e}^{\frac {9}{16} x^{2}-\frac {9}{4} x +\frac {9}{4}}+1\right )\) \(27\)

[In]

int(((-81*x^2+306*x-72)*exp(9/16*x^2-9/4*x+9/4)+16*x-8)/(72*x*exp(9/16*x^2-9/4*x+9/4)+8*x),x,method=_RETURNVER
BOSE)

[Out]

2*x-ln(x)+9/4-ln(exp(9/16*(-2+x)^2)+1/9)

Fricas [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.96 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=2 \, x - \log \left (x\right ) - \log \left (9 \, e^{\left (\frac {9}{16} \, x^{2} - \frac {9}{4} \, x + \frac {9}{4}\right )} + 1\right ) \]

[In]

integrate(((-81*x^2+306*x-72)*exp(9/16*x^2-9/4*x+9/4)+16*x-8)/(72*x*exp(9/16*x^2-9/4*x+9/4)+8*x),x, algorithm=
"fricas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.00 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=2 x - \log {\left (x \right )} - \log {\left (e^{\frac {9 x^{2}}{16} - \frac {9 x}{4} + \frac {9}{4}} + \frac {1}{9} \right )} \]

[In]

integrate(((-81*x**2+306*x-72)*exp(9/16*x**2-9/4*x+9/4)+16*x-8)/(72*x*exp(9/16*x**2-9/4*x+9/4)+8*x),x)

[Out]

2*x - log(x) - log(exp(9*x**2/16 - 9*x/4 + 9/4) + 1/9)

Maxima [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.11 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=\frac {17}{4} \, x - \log \left (\frac {1}{9} \, {\left (9 \, e^{\left (\frac {9}{16} \, x^{2} + \frac {9}{4}\right )} + e^{\left (\frac {9}{4} \, x\right )}\right )} e^{\left (-\frac {9}{4}\right )}\right ) - \log \left (x\right ) \]

[In]

integrate(((-81*x^2+306*x-72)*exp(9/16*x^2-9/4*x+9/4)+16*x-8)/(72*x*exp(9/16*x^2-9/4*x+9/4)+8*x),x, algorithm=
"maxima")

[Out]

17/4*x - log(1/9*(9*e^(9/16*x^2 + 9/4) + e^(9/4*x))*e^(-9/4)) - log(x)

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.96 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=2 \, x - \log \left (x\right ) - \log \left (9 \, e^{\left (\frac {9}{16} \, x^{2} - \frac {9}{4} \, x + \frac {9}{4}\right )} + 1\right ) \]

[In]

integrate(((-81*x^2+306*x-72)*exp(9/16*x^2-9/4*x+9/4)+16*x-8)/(72*x*exp(9/16*x^2-9/4*x+9/4)+8*x),x, algorithm=
"giac")

[Out]

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

Mupad [B] (verification not implemented)

Time = 14.12 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.93 \[ \int \frac {-8+16 x+e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} \left (-72+306 x-81 x^2\right )}{8 x+72 e^{\frac {1}{16} \left (36-36 x+9 x^2\right )} x} \, dx=\frac {17\,x}{4}-\ln \left (x\,{\left ({\mathrm {e}}^x\right )}^{9/4}+9\,x\,{\left ({\mathrm {e}}^{x^2}\right )}^{9/16}\,{\mathrm {e}}^{9/4}\right ) \]

[In]

int(-(exp((9*x^2)/16 - (9*x)/4 + 9/4)*(81*x^2 - 306*x + 72) - 16*x + 8)/(8*x + 72*x*exp((9*x^2)/16 - (9*x)/4 +
 9/4)),x)

[Out]

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