3.16.73 \(\int \frac {12 e^2+6 e x}{(3 e^2 x+3 e x^2-x^3) \log ^3(\frac {3 e^2+3 e x-x^2}{3 x^2})} \, dx\) [1573]

Optimal. Leaf size=21 \[ \frac {1}{\log ^2\left (\frac {e+\frac {e^2}{x}-\frac {x}{3}}{x}\right )} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.12, antiderivative size = 25, normalized size of antiderivative = 1.19, number of steps used = 2, number of rules used = 2, integrand size = 56, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.036, Rules used = {1608, 6818} \begin {gather*} \frac {1}{\log ^2\left (\frac {-x^2+3 e x+3 e^2}{3 x^2}\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 1608

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^
(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] && PosQ[r - p]

Rule 6818

Int[(u_)*(y_)^(m_.), x_Symbol] :> With[{q = DerivativeDivides[y, u, x]}, Simp[q*(y^(m + 1)/(m + 1)), x] /;  !F
alseQ[q]] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 19, normalized size = 0.90 \begin {gather*} \frac {1}{\log ^2\left (-\frac {1}{3}+\frac {e^2}{x^2}+\frac {e}{x}\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.24, size = 25, normalized size = 1.19

method result size
norman \(\frac {1}{\ln \left (\frac {3 \,{\mathrm e}^{2}+3 x \,{\mathrm e}-x^{2}}{3 x^{2}}\right )^{2}}\) \(24\)
risch \(\frac {1}{\ln \left (\frac {3 \,{\mathrm e}^{2}+3 x \,{\mathrm e}-x^{2}}{3 x^{2}}\right )^{2}}\) \(24\)
derivativedivides \(\frac {1}{\left (\ln \left (3\right )-\ln \left (\frac {3 \,{\mathrm e}^{2}}{x^{2}}+\frac {3 \,{\mathrm e}}{x}-1\right )\right )^{2}}\) \(25\)
default \(\frac {1}{\left (\ln \left (3\right )-\ln \left (\frac {3 \,{\mathrm e}^{2}}{x^{2}}+\frac {3 \,{\mathrm e}}{x}-1\right )\right )^{2}}\) \(25\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((12*exp(2)+6*x*exp(1))/(3*exp(2)*x+3*x^2*exp(1)-x^3)/ln(1/3*(3*exp(2)+3*x*exp(1)-x^2)/x^2)^3,x,method=_RET
URNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 62 vs. \(2 (21) = 42\).
time = 0.50, size = 62, normalized size = 2.95 \begin {gather*} \frac {1}{\log \left (3\right )^{2} - 2 \, {\left (\log \left (3\right ) + 2 \, \log \left (x\right )\right )} \log \left (-x^{2} + 3 \, x e + 3 \, e^{2}\right ) + \log \left (-x^{2} + 3 \, x e + 3 \, e^{2}\right )^{2} + 4 \, \log \left (3\right ) \log \left (x\right ) + 4 \, \log \left (x\right )^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((12*exp(2)+6*x*exp(1))/(3*exp(2)*x+3*x^2*exp(1)-x^3)/log(1/3*(3*exp(2)+3*x*exp(1)-x^2)/x^2)^3,x, alg
orithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 21, normalized size = 1.00 \begin {gather*} \frac {1}{\log \left (-\frac {x^{2} - 3 \, x e - 3 \, e^{2}}{3 \, x^{2}}\right )^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((12*exp(2)+6*x*exp(1))/(3*exp(2)*x+3*x^2*exp(1)-x^3)/log(1/3*(3*exp(2)+3*x*exp(1)-x^2)/x^2)^3,x, alg
orithm="fricas")

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((12*exp(2)+6*x*exp(1))/(3*exp(2)*x+3*x**2*exp(1)-x**3)/ln(1/3*(3*exp(2)+3*x*exp(1)-x**2)/x**2)**3,x)

[Out]

log((-x**2/3 + E*x + exp(2))/x**2)**(-2)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((12*exp(2)+6*x*exp(1))/(3*exp(2)*x+3*x^2*exp(1)-x^3)/log(1/3*(3*exp(2)+3*x*exp(1)-x^2)/x^2)^3,x, alg
orithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 1.92, size = 23, normalized size = 1.10 \begin {gather*} \frac {1}{{\ln \left (\frac {-x^2+3\,\mathrm {e}\,x+3\,{\mathrm {e}}^2}{3\,x^2}\right )}^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________