3.1.31 \(\int \frac {-18+3 x^3+2 e^x x^2 \log (5 x)+e^x x^3 \log ^2(5 x)}{x^3} \, dx\)

Optimal. Leaf size=19 \[ \frac {9}{x^2}+3 x+e^x \log ^2(5 x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 2, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {14, 2202} \begin {gather*} \frac {9}{x^2}+3 x+e^x \log ^2(5 x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-18 + 3*x^3 + 2*E^x*x^2*Log[5*x] + E^x*x^3*Log[5*x]^2)/x^3,x]

[Out]

9/x^2 + 3*x + E^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 2202

Int[Log[(d_.)*(x_)]^(n_.)*(F_)^((c_.)*((a_.) + (b_.)*(x_)))*(x_)^(m_.)*((e_) + Log[(d_.)*(x_)]*(h_.)*((f_.) +
(g_.)*(x_))), x_Symbol] :> Simp[(e*x^(m + 1)*F^(c*(a + b*x))*Log[d*x]^(n + 1))/(n + 1), x] /; FreeQ[{F, a, b,
c, d, e, f, g, h, m, n}, x] && EqQ[e*(m + 1) - f*h*(n + 1), 0] && EqQ[g*h*(n + 1) - b*c*e*Log[F], 0] && NeQ[n,
 -1]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.08, size = 19, normalized size = 1.00 \begin {gather*} \frac {9}{x^2}+3 x+e^x \log ^2(5 x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-18 + 3*x^3 + 2*E^x*x^2*Log[5*x] + E^x*x^3*Log[5*x]^2)/x^3,x]

[Out]

9/x^2 + 3*x + E^x*Log[5*x]^2

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 23, normalized size = 1.21 \begin {gather*} \frac {x^{2} e^{x} \log \left (5 \, x\right )^{2} + 3 \, x^{3} + 9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3*exp(x)*log(5*x)^2+2*x^2*exp(x)*log(5*x)+3*x^3-18)/x^3,x, algorithm="fricas")

[Out]

(x^2*e^x*log(5*x)^2 + 3*x^3 + 9)/x^2

________________________________________________________________________________________

giac [A]  time = 0.42, size = 23, normalized size = 1.21 \begin {gather*} \frac {x^{2} e^{x} \log \left (5 \, x\right )^{2} + 3 \, x^{3} + 9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3*exp(x)*log(5*x)^2+2*x^2*exp(x)*log(5*x)+3*x^3-18)/x^3,x, algorithm="giac")

[Out]

(x^2*e^x*log(5*x)^2 + 3*x^3 + 9)/x^2

________________________________________________________________________________________

maple [A]  time = 0.04, size = 19, normalized size = 1.00




method result size



default \(3 x +\ln \left (5 x \right )^{2} {\mathrm e}^{x}+\frac {9}{x^{2}}\) \(19\)
risch \(\ln \left (5 x \right )^{2} {\mathrm e}^{x}+\frac {3 x^{3}+9}{x^{2}}\) \(21\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3*exp(x)*ln(5*x)^2+2*x^2*exp(x)*ln(5*x)+3*x^3-18)/x^3,x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.64, size = 27, normalized size = 1.42 \begin {gather*} {\left (\log \relax (5)^{2} + 2 \, \log \relax (5) \log \relax (x) + \log \relax (x)^{2}\right )} e^{x} + 3 \, x + \frac {9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3*exp(x)*log(5*x)^2+2*x^2*exp(x)*log(5*x)+3*x^3-18)/x^3,x, algorithm="maxima")

[Out]

(log(5)^2 + 2*log(5)*log(x) + log(x)^2)*e^x + 3*x + 9/x^2

________________________________________________________________________________________

mupad [B]  time = 0.24, size = 18, normalized size = 0.95 \begin {gather*} 3\,x+\frac {9}{x^2}+{\ln \left (5\,x\right )}^2\,{\mathrm {e}}^x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3*x^3 + 2*x^2*log(5*x)*exp(x) + x^3*log(5*x)^2*exp(x) - 18)/x^3,x)

[Out]

3*x + 9/x^2 + log(5*x)^2*exp(x)

________________________________________________________________________________________

sympy [A]  time = 0.29, size = 17, normalized size = 0.89 \begin {gather*} 3 x + e^{x} \log {\left (5 x \right )}^{2} + \frac {9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**3*exp(x)*ln(5*x)**2+2*x**2*exp(x)*ln(5*x)+3*x**3-18)/x**3,x)

[Out]

3*x + exp(x)*log(5*x)**2 + 9/x**2

________________________________________________________________________________________