3.83.71 \(\int \frac {8 x^2-16 x^4+e^{16+2 x} (-8 x+8 x^2-16 x^4)+e^{32+4 x} (2 x^2-4 x^4)+(-8+16 x^2+e^{32+4 x} (-2+4 x^2)+e^{16+2 x} (-8+16 x^2)) \log (5 x)}{4 x+4 e^{16+2 x} x+e^{32+4 x} x} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.48, antiderivative size = 36, normalized size of antiderivative = 1.29, number of steps used = 17, number of rules used = 11, integrand size = 120, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.092, Rules used = {6688, 6742, 2282, 44, 36, 29, 31, 14, 2351, 2301, 2304} \begin {gather*} -x^4+2 x^2 \log (5 x)+\frac {4}{e^{2 x+16}+2}-\log ^2(5 x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2351

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> Wit
h[{u = ExpandIntegrand[a + b*Log[c*x^n], (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c,
d, e, f, m, n, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[m] && IntegerQ[r]))

Rule 6688

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

Rule 6742

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.19, size = 36, normalized size = 1.29 \begin {gather*} \frac {4}{2+e^{16+2 x}}-x^4+2 x^2 \log (5 x)-\log ^2(5 x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [B]  time = 0.92, size = 66, normalized size = 2.36 \begin {gather*} -\frac {x^{4} e^{\left (2 \, x + 16\right )} + 2 \, x^{4} + {\left (e^{\left (2 \, x + 16\right )} + 2\right )} \log \left (5 \, x\right )^{2} - 2 \, {\left (x^{2} e^{\left (2 \, x + 16\right )} + 2 \, x^{2}\right )} \log \left (5 \, x\right ) - 4}{e^{\left (2 \, x + 16\right )} + 2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [B]  time = 0.26, size = 104, normalized size = 3.71 \begin {gather*} -\frac {x^{4} e^{\left (2 \, x + 16\right )} + 2 \, x^{4} - 2 \, x^{2} e^{\left (2 \, x + 16\right )} \log \relax (5) - 2 \, x^{2} e^{\left (2 \, x + 16\right )} \log \relax (x) - 4 \, x^{2} \log \relax (5) - 4 \, x^{2} \log \relax (x) + 2 \, e^{\left (2 \, x + 16\right )} \log \relax (5) \log \relax (x) + e^{\left (2 \, x + 16\right )} \log \relax (x)^{2} + 4 \, \log \relax (5) \log \relax (x) + 2 \, \log \relax (x)^{2} - 4}{e^{\left (2 \, x + 16\right )} + 2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.05, size = 48, normalized size = 1.71




method result size



risch \(-\ln \left (5 x \right )^{2}+2 x^{2} \ln \left (5 x \right )-\frac {{\mathrm e}^{2 x +16} x^{4}+2 x^{4}-4}{{\mathrm e}^{2 x +16}+2}\) \(48\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [B]  time = 0.61, size = 89, normalized size = 3.18 \begin {gather*} -\frac {2 \, x^{4} - 4 \, x^{2} \log \relax (5) + {\left (x^{4} e^{16} - 2 \, x^{2} e^{16} \log \relax (5) + e^{16} \log \relax (x)^{2} - 2 \, {\left (x^{2} e^{16} - e^{16} \log \relax (5)\right )} \log \relax (x)\right )} e^{\left (2 \, x\right )} - 4 \, {\left (x^{2} - \log \relax (5)\right )} \log \relax (x) + 2 \, \log \relax (x)^{2} - 4}{e^{\left (2 \, x + 16\right )} + 2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 5.61, size = 38, normalized size = 1.36 \begin {gather*} 2\,x^2\,\ln \left (5\,x\right )+\frac {4\,{\mathrm {e}}^{-16}}{{\mathrm {e}}^{2\,x}+2\,{\mathrm {e}}^{-16}}-{\ln \left (5\,x\right )}^2-x^4 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.35, size = 31, normalized size = 1.11 \begin {gather*} - x^{4} + 2 x^{2} \log {\left (5 x \right )} - \log {\left (5 x \right )}^{2} + \frac {4}{e^{16} e^{2 x} + 2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((4*x**2-2)*exp(4)**8*exp(x)**4+(16*x**2-8)*exp(4)**4*exp(x)**2+16*x**2-8)*ln(5*x)+(-4*x**4+2*x**2)
*exp(4)**8*exp(x)**4+(-16*x**4+8*x**2-8*x)*exp(4)**4*exp(x)**2-16*x**4+8*x**2)/(x*exp(4)**8*exp(x)**4+4*x*exp(
4)**4*exp(x)**2+4*x),x)

[Out]

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

________________________________________________________________________________________