3.9.48 \(\int \frac {e^{e^{-4+4 x^2}} (-8+8 x-2 x^2+e^{-4+4 x^2} (64 x^2-64 x^3+16 x^4))+x^2 \log (3)}{8 x^2-8 x^3+2 x^4} \, dx\)

Optimal. Leaf size=26 \[ \frac {e^{e^{-4+4 x^2}}}{x}+\frac {\log (3)}{4-2 x} \]

________________________________________________________________________________________

Rubi [A]  time = 0.82, antiderivative size = 29, normalized size of antiderivative = 1.12, number of steps used = 6, number of rules used = 5, integrand size = 74, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.068, Rules used = {1594, 27, 12, 6688, 2288} \begin {gather*} \frac {e^{e^{4 x^2-4}}}{x}+\frac {\log (3)}{2 (2-x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 12

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

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 1594

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^
(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] && PosQ[r - p]

Rule 2288

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rule 6688

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.16, size = 39, normalized size = 1.50 \begin {gather*} \frac {\frac {2 e^{4+e^{-4+4 x^2}}}{x}+\frac {e^4 \log (3)}{2-x}}{2 e^4} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.66, size = 31, normalized size = 1.19 \begin {gather*} \frac {2 \, {\left (x - 2\right )} e^{\left (e^{\left (4 \, x^{2} - 4\right )}\right )} - x \log \relax (3)}{2 \, {\left (x^{2} - 2 \, x\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \log \relax (3) - 2 \, {\left (x^{2} - 8 \, {\left (x^{4} - 4 \, x^{3} + 4 \, x^{2}\right )} e^{\left (4 \, x^{2} - 4\right )} - 4 \, x + 4\right )} e^{\left (e^{\left (4 \, x^{2} - 4\right )}\right )}}{2 \, {\left (x^{4} - 4 \, x^{3} + 4 \, x^{2}\right )}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(1/2*(x^2*log(3) - 2*(x^2 - 8*(x^4 - 4*x^3 + 4*x^2)*e^(4*x^2 - 4) - 4*x + 4)*e^(e^(4*x^2 - 4)))/(x^4
- 4*x^3 + 4*x^2), x)

________________________________________________________________________________________

maple [A]  time = 0.09, size = 25, normalized size = 0.96




method result size



risch \(-\frac {\ln \relax (3)}{2 \left (x -2\right )}+\frac {{\mathrm e}^{{\mathrm e}^{4 \left (x -1\right ) \left (x +1\right )}}}{x}\) \(25\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((16*x^4-64*x^3+64*x^2)*exp(x^2-1)^4-2*x^2+8*x-8)*exp(exp(x^2-1)^4)+x^2*ln(3))/(2*x^4-8*x^3+8*x^2),x,meth
od=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.87, size = 23, normalized size = 0.88 \begin {gather*} \frac {e^{\left (e^{\left (4 \, x^{2} - 4\right )}\right )}}{x} - \frac {\log \relax (3)}{2 \, {\left (x - 2\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.19, size = 26, normalized size = 1.00 \begin {gather*} \frac {{\mathrm {e}}^{{\mathrm {e}}^{-4}\,{\mathrm {e}}^{4\,x^2}}}{x}-\frac {\ln \relax (3)}{2\,x-4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(exp(4*x^2 - 4))*(8*x + exp(4*x^2 - 4)*(64*x^2 - 64*x^3 + 16*x^4) - 2*x^2 - 8) + x^2*log(3))/(8*x^2 -
8*x^3 + 2*x^4),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.32, size = 19, normalized size = 0.73 \begin {gather*} - \frac {\log {\relax (3 )}}{2 x - 4} + \frac {e^{e^{4 x^{2} - 4}}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((16*x**4-64*x**3+64*x**2)*exp(x**2-1)**4-2*x**2+8*x-8)*exp(exp(x**2-1)**4)+x**2*ln(3))/(2*x**4-8*x
**3+8*x**2),x)

[Out]

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

________________________________________________________________________________________