3.32.58 \(\int \frac {54-18 x+3 x^2+e^{x/3} x^3+18 x \log (2)}{3 x^3} \, dx\) [3158]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 26, normalized size of antiderivative = 1.04, number of steps used = 7, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {6, 12, 14, 2225} \begin {gather*} -\frac {9}{x^2}+e^{x/3}+\log (x)+\frac {6 (1-\log (2))}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(x/3) - 9/x^2 + (6*(1 - Log[2]))/x + Log[x]

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, 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 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 2225

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 24, normalized size = 0.96 \begin {gather*} e^{x/3}-\frac {9}{x^2}-\frac {6 (-1+\log (2))}{x}+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(x/3) - 9/x^2 - (6*(-1 + Log[2]))/x + Log[x]

________________________________________________________________________________________

Maple [A]
time = 0.29, size = 27, normalized size = 1.08

method result size
risch \(\frac {\left (-18 \ln \left (2\right )+18\right ) x -27}{3 x^{2}}+\ln \left (x \right )+{\mathrm e}^{\frac {x}{3}}\) \(23\)
norman \(\frac {-9+x^{2} {\mathrm e}^{\frac {x}{3}}+\left (-6 \ln \left (2\right )+6\right ) x}{x^{2}}+\ln \left (x \right )\) \(26\)
derivativedivides \(\ln \left (\frac {x}{3}\right )-\frac {9}{x^{2}}+\frac {6}{x}-\frac {6 \ln \left (2\right )}{x}+{\mathrm e}^{\frac {x}{3}}\) \(27\)
default \(\ln \left (\frac {x}{3}\right )-\frac {9}{x^{2}}+\frac {6}{x}-\frac {6 \ln \left (2\right )}{x}+{\mathrm e}^{\frac {x}{3}}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

ln(1/3*x)-9/x^2+6/x-6*ln(2)/x+exp(1/3*x)

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 24, normalized size = 0.96 \begin {gather*} -\frac {6 \, \log \left (2\right )}{x} + \frac {6}{x} - \frac {9}{x^{2}} + e^{\left (\frac {1}{3} \, x\right )} + \log \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-6*log(2)/x + 6/x - 9/x^2 + e^(1/3*x) + log(x)

________________________________________________________________________________________

Fricas [A]
time = 0.55, size = 28, normalized size = 1.12 \begin {gather*} \frac {x^{2} e^{\left (\frac {1}{3} \, x\right )} + x^{2} \log \left (x\right ) - 6 \, x \log \left (2\right ) + 6 \, x - 9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2*e^(1/3*x) + x^2*log(x) - 6*x*log(2) + 6*x - 9)/x^2

________________________________________________________________________________________

Sympy [A]
time = 0.10, size = 20, normalized size = 0.80 \begin {gather*} e^{\frac {x}{3}} + \log {\left (x \right )} + \frac {x \left (6 - 6 \log {\left (2 \right )}\right ) - 9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(x/3) + log(x) + (x*(6 - 6*log(2)) - 9)/x**2

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 30, normalized size = 1.20 \begin {gather*} \frac {x^{2} e^{\left (\frac {1}{3} \, x\right )} + x^{2} \log \left (\frac {1}{3} \, x\right ) - 6 \, x \log \left (2\right ) + 6 \, x - 9}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2*e^(1/3*x) + x^2*log(1/3*x) - 6*x*log(2) + 6*x - 9)/x^2

________________________________________________________________________________________

Mupad [B]
time = 1.87, size = 20, normalized size = 0.80 \begin {gather*} {\mathrm {e}}^{x/3}+\ln \left (x\right )-\frac {x\,\left (\ln \left (64\right )-6\right )+9}{x^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(x/3) + log(x) - (x*(log(64) - 6) + 9)/x^2

________________________________________________________________________________________