3.64.86 \(\int \frac {2 x+(5-2 x) \log (3)+e^{2 \log ^2(x)} (\log (3)+4 \log (3) \log (x))}{\log (3)} \, dx\) [6386]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.20, number of steps used = 3, number of rules used = 2, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {12, 2326} \begin {gather*} \frac {x^2}{\log (3)}-\frac {1}{4} (5-2 x)^2+x e^{2 \log ^2(x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2326

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]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 28, normalized size = 1.12 \begin {gather*} 5 x+e^{2 \log ^2(x)} x+\frac {x^2 (1-\log (3))}{\log (3)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.52, size = 33, normalized size = 1.32

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 31, normalized size = 1.24 \begin {gather*} \frac {x e^{\left (2 \, \log \left (x\right )^{2}\right )} \log \left (3\right ) + x^{2} - {\left (x^{2} - 5 \, x\right )} \log \left (3\right )}{\log \left (3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 31, normalized size = 1.24 \begin {gather*} \frac {x e^{\left (2 \, \log \left (x\right )^{2}\right )} \log \left (3\right ) + x^{2} - {\left (x^{2} - 5 \, x\right )} \log \left (3\right )}{\log \left (3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.08, size = 24, normalized size = 0.96 \begin {gather*} \frac {x^{2} \cdot \left (1 - \log {\left (3 \right )}\right )}{\log {\left (3 \right )}} + x e^{2 \log {\left (x \right )}^{2}} + 5 x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [A]
time = 0.38, size = 31, normalized size = 1.24 \begin {gather*} \frac {x e^{\left (2 \, \log \left (x\right )^{2}\right )} \log \left (3\right ) + x^{2} - {\left (x^{2} - 5 \, x\right )} \log \left (3\right )}{\log \left (3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 4.24, size = 26, normalized size = 1.04 \begin {gather*} 5\,x+\frac {x^2}{\ln \left (3\right )}-x^2+x\,{\mathrm {e}}^{2\,{\ln \left (x\right )}^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________