3.53.88 \(\int \frac {25+9 x^3-21 x^4+e^{2 x} (x^2-2 x^3-2 x^4)+(-25+14 x^3+e^{2 x} (x^2+2 x^3)) \log (x)}{x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.10, antiderivative size = 39, normalized size of antiderivative = 1.50, number of steps used = 9, number of rules used = 3, integrand size = 61, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.049, Rules used = {14, 2288, 2334} \begin {gather*} -7 x^3+x^2+\left (7 x^2+\frac {25}{x}\right ) \log (x)-e^{2 x} \left (x^2-x \log (x)\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(25 + 9*x^3 - 21*x^4 + E^(2*x)*(x^2 - 2*x^3 - 2*x^4) + (-25 + 14*x^3 + E^(2*x)*(x^2 + 2*x^3))*Log[x])/x^2,
x]

[Out]

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

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 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 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-e^{2 x} \left (-1+2 x+2 x^2-\log (x)-2 x \log (x)\right )+\frac {25+9 x^3-21 x^4-25 \log (x)+14 x^3 \log (x)}{x^2}\right ) \, dx\\ &=-\int e^{2 x} \left (-1+2 x+2 x^2-\log (x)-2 x \log (x)\right ) \, dx+\int \frac {25+9 x^3-21 x^4-25 \log (x)+14 x^3 \log (x)}{x^2} \, dx\\ &=-e^{2 x} \left (x^2-x \log (x)\right )+\int \left (\frac {25+9 x^3-21 x^4}{x^2}+\frac {\left (-25+14 x^3\right ) \log (x)}{x^2}\right ) \, dx\\ &=-e^{2 x} \left (x^2-x \log (x)\right )+\int \frac {25+9 x^3-21 x^4}{x^2} \, dx+\int \frac {\left (-25+14 x^3\right ) \log (x)}{x^2} \, dx\\ &=\left (\frac {25}{x}+7 x^2\right ) \log (x)-e^{2 x} \left (x^2-x \log (x)\right )-\int \left (\frac {25}{x^2}+7 x\right ) \, dx+\int \left (\frac {25}{x^2}+9 x-21 x^2\right ) \, dx\\ &=x^2-7 x^3+\left (\frac {25}{x}+7 x^2\right ) \log (x)-e^{2 x} \left (x^2-x \log (x)\right )\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.15, size = 37, normalized size = 1.42 \begin {gather*} -x^2 \left (-1+e^{2 x}+7 x\right )+\left (\frac {25}{x}+e^{2 x} x+7 x^2\right ) \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(25 + 9*x^3 - 21*x^4 + E^(2*x)*(x^2 - 2*x^3 - 2*x^4) + (-25 + 14*x^3 + E^(2*x)*(x^2 + 2*x^3))*Log[x]
)/x^2,x]

[Out]

-(x^2*(-1 + E^(2*x) + 7*x)) + (25/x + E^(2*x)*x + 7*x^2)*Log[x]

________________________________________________________________________________________

fricas [A]  time = 0.61, size = 43, normalized size = 1.65 \begin {gather*} -\frac {7 \, x^{4} + x^{3} e^{\left (2 \, x\right )} - x^{3} - {\left (7 \, x^{3} + x^{2} e^{\left (2 \, x\right )} + 25\right )} \log \relax (x)}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((2*x^3+x^2)*exp(x)^2+14*x^3-25)*log(x)+(-2*x^4-2*x^3+x^2)*exp(x)^2-21*x^4+9*x^3+25)/x^2,x, algorit
hm="fricas")

[Out]

-(7*x^4 + x^3*e^(2*x) - x^3 - (7*x^3 + x^2*e^(2*x) + 25)*log(x))/x

________________________________________________________________________________________

giac [A]  time = 0.17, size = 46, normalized size = 1.77 \begin {gather*} -\frac {7 \, x^{4} + x^{3} e^{\left (2 \, x\right )} - 7 \, x^{3} \log \relax (x) - x^{2} e^{\left (2 \, x\right )} \log \relax (x) - x^{3} - 25 \, \log \relax (x)}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((2*x^3+x^2)*exp(x)^2+14*x^3-25)*log(x)+(-2*x^4-2*x^3+x^2)*exp(x)^2-21*x^4+9*x^3+25)/x^2,x, algorit
hm="giac")

[Out]

-(7*x^4 + x^3*e^(2*x) - 7*x^3*log(x) - x^2*e^(2*x)*log(x) - x^3 - 25*log(x))/x

________________________________________________________________________________________

maple [A]  time = 0.05, size = 40, normalized size = 1.54




method result size



risch \(\frac {\left ({\mathrm e}^{2 x} x^{2}+7 x^{3}+25\right ) \ln \relax (x )}{x}-{\mathrm e}^{2 x} x^{2}-7 x^{3}+x^{2}\) \(40\)
default \(x \,{\mathrm e}^{2 x} \ln \relax (x )-{\mathrm e}^{2 x} x^{2}+7 x^{2} \ln \relax (x )+x^{2}+\frac {25 \ln \relax (x )}{x}-7 x^{3}\) \(41\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((2*x^3+x^2)*exp(x)^2+14*x^3-25)*ln(x)+(-2*x^4-2*x^3+x^2)*exp(x)^2-21*x^4+9*x^3+25)/x^2,x,method=_RETURNV
ERBOSE)

[Out]

(exp(2*x)*x^2+7*x^3+25)/x*ln(x)-exp(2*x)*x^2-7*x^3+x^2

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} -7 \, x^{3} + 7 \, x^{2} \log \relax (x) + \frac {1}{2} \, {\left (2 \, x - 1\right )} e^{\left (2 \, x\right )} \log \relax (x) + x^{2} - \frac {1}{2} \, {\left (2 \, x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x\right )} - \frac {1}{2} \, {\left (2 \, x - 1\right )} e^{\left (2 \, x\right )} + \frac {1}{2} \, e^{\left (2 \, x\right )} \log \relax (x) + \frac {25 \, \log \relax (x)}{x} - \frac {1}{2} \, {\rm Ei}\left (2 \, x\right ) + \frac {1}{2} \, e^{\left (2 \, x\right )} - \frac {1}{2} \, \int \frac {{\left (2 \, x - 1\right )} e^{\left (2 \, x\right )}}{x}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((2*x^3+x^2)*exp(x)^2+14*x^3-25)*log(x)+(-2*x^4-2*x^3+x^2)*exp(x)^2-21*x^4+9*x^3+25)/x^2,x, algorit
hm="maxima")

[Out]

-7*x^3 + 7*x^2*log(x) + 1/2*(2*x - 1)*e^(2*x)*log(x) + x^2 - 1/2*(2*x^2 - 2*x + 1)*e^(2*x) - 1/2*(2*x - 1)*e^(
2*x) + 1/2*e^(2*x)*log(x) + 25*log(x)/x - 1/2*Ei(2*x) + 1/2*e^(2*x) - 1/2*integrate((2*x - 1)*e^(2*x)/x, x)

________________________________________________________________________________________

mupad [B]  time = 3.67, size = 37, normalized size = 1.42 \begin {gather*} \frac {25\,\ln \relax (x)}{x}+x^2\,\left (7\,\ln \relax (x)-{\mathrm {e}}^{2\,x}+1\right )-7\,x^3+x\,{\mathrm {e}}^{2\,x}\,\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((9*x^3 - exp(2*x)*(2*x^3 - x^2 + 2*x^4) - 21*x^4 + log(x)*(exp(2*x)*(x^2 + 2*x^3) + 14*x^3 - 25) + 25)/x^2
,x)

[Out]

(25*log(x))/x + x^2*(7*log(x) - exp(2*x) + 1) - 7*x^3 + x*exp(2*x)*log(x)

________________________________________________________________________________________

sympy [A]  time = 0.35, size = 32, normalized size = 1.23 \begin {gather*} - 7 x^{3} + x^{2} + \left (- x^{2} + x \log {\relax (x )}\right ) e^{2 x} + \frac {\left (7 x^{3} + 25\right ) \log {\relax (x )}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((2*x**3+x**2)*exp(x)**2+14*x**3-25)*ln(x)+(-2*x**4-2*x**3+x**2)*exp(x)**2-21*x**4+9*x**3+25)/x**2,
x)

[Out]

-7*x**3 + x**2 + (-x**2 + x*log(x))*exp(2*x) + (7*x**3 + 25)*log(x)/x

________________________________________________________________________________________