3.47.63 \(\int \frac {32 x^3-16 x^5+2 x^7+(16 x^2-4 x^4) \log (4)+2 x \log ^2(4)+e^x (4 x^2+2 x^3-x^4+(1+x) \log (4))}{16 x^2-8 x^4+x^6+(8 x-2 x^3) \log (4)+\log ^2(4)} \, dx\) [4663]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.40, antiderivative size = 36, normalized size of antiderivative = 1.38, number of steps used = 3, number of rules used = 2, integrand size = 96, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.021, Rules used = {6820, 2326} \begin {gather*} x^2+\frac {e^x \left (-x^4+4 x^2+x \log (4)\right )}{\left (-x^3+4 x+\log (4)\right )^2} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 2326

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 6820

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 \left (2 x+\frac {e^x \left (4 x^2+2 x^3-x^4+\log (4)+x \log (4)\right )}{\left (4 x-x^3+\log (4)\right )^2}\right ) \, dx\\ &=x^2+\int \frac {e^x \left (4 x^2+2 x^3-x^4+\log (4)+x \log (4)\right )}{\left (4 x-x^3+\log (4)\right )^2} \, dx\\ &=x^2+\frac {e^x \left (4 x^2-x^4+x \log (4)\right )}{\left (4 x-x^3+\log (4)\right )^2}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.11, size = 21, normalized size = 0.81 \begin {gather*} x \left (x+\frac {e^x}{4 x-x^3+\log (4)}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 3.
time = 0.44, size = 1409, normalized size = 54.19

method result size
norman \(\frac {16 x +{\mathrm e}^{x} x -x^{5}+2 x^{2} \ln \left (2\right )+8 \ln \left (2\right )}{-x^{3}+2 \ln \left (2\right )+4 x}\) \(41\)
default \(\text {Expression too large to display}\) \(1409\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-24*ln(2)^2*exp(x)/(27*ln(2)^2-64)/(-x^3+2*ln(2)+4*x)+32*ln(2)*exp(x)/(27*ln(2)^2-64)/(-x^3+2*ln(2)+4*x)-exp(x
)*(9*x^2*ln(2)^2+12*ln(2)^2+8*x*ln(2)-32*x^2)/(27*ln(2)^2-64)/(-x^3+2*ln(2)+4*x)+2*exp(x)*(9*x*ln(2)^2+6*x^2*l
n(2)-16*ln(2)-32*x)/(27*ln(2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_Z))-12*ln(2)*exp(x)/(27*ln(2)^2-64)/(-x^3+2*ln(2)+4*x)*x^2

________________________________________________________________________________________

Maxima [A]
time = 0.51, size = 35, normalized size = 1.35 \begin {gather*} \frac {x^{5} - 4 \, x^{3} - 2 \, x^{2} \log \left (2\right ) - x e^{x}}{x^{3} - 4 \, x - 2 \, \log \left (2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 35, normalized size = 1.35 \begin {gather*} \frac {x^{5} - 4 \, x^{3} - 2 \, x^{2} \log \left (2\right ) - x e^{x}}{x^{3} - 4 \, x - 2 \, \log \left (2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.08, size = 19, normalized size = 0.73 \begin {gather*} x^{2} - \frac {x e^{x}}{x^{3} - 4 x - 2 \log {\left (2 \right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*ln(2)*(1+x)-x**4+2*x**3+4*x**2)*exp(x)+8*x*ln(2)**2+2*(-4*x**4+16*x**2)*ln(2)+2*x**7-16*x**5+32*
x**3)/(4*ln(2)**2+2*(-2*x**3+8*x)*ln(2)+x**6-8*x**4+16*x**2),x)

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.42, size = 35, normalized size = 1.35 \begin {gather*} \frac {x^{5} - 4 \, x^{3} - 2 \, x^{2} \log \left (2\right ) - x e^{x}}{x^{3} - 4 \, x - 2 \, \log \left (2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {2\,\ln \left (2\right )\,\left (16\,x^2-4\,x^4\right )+8\,x\,{\ln \left (2\right )}^2+32\,x^3-16\,x^5+2\,x^7+{\mathrm {e}}^x\,\left (2\,\ln \left (2\right )\,\left (x+1\right )+4\,x^2+2\,x^3-x^4\right )}{2\,\ln \left (2\right )\,\left (8\,x-2\,x^3\right )+4\,{\ln \left (2\right )}^2+16\,x^2-8\,x^4+x^6} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*log(2)*(16*x^2 - 4*x^4) + 8*x*log(2)^2 + 32*x^3 - 16*x^5 + 2*x^7 + exp(x)*(2*log(2)*(x + 1) + 4*x^2 + 2
*x^3 - x^4))/(2*log(2)*(8*x - 2*x^3) + 4*log(2)^2 + 16*x^2 - 8*x^4 + x^6),x)

[Out]

int((2*log(2)*(16*x^2 - 4*x^4) + 8*x*log(2)^2 + 32*x^3 - 16*x^5 + 2*x^7 + exp(x)*(2*log(2)*(x + 1) + 4*x^2 + 2
*x^3 - x^4))/(2*log(2)*(8*x - 2*x^3) + 4*log(2)^2 + 16*x^2 - 8*x^4 + x^6), x)

________________________________________________________________________________________