3.59.7 \(\int \frac {x^{x+x^2} (-x^2+(1+x-2 x^2) \log (x))}{\log (5)} \, dx\) [5807]

Optimal. Leaf size=17 \[ \frac {(1-x) x^{x+x^2}}{\log (5)} \]

[Out]

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

________________________________________________________________________________________

Rubi [F]
time = 0.19, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {x^{x+x^2} \left (-x^2+\left (1+x-2 x^2\right ) \log (x)\right )}{\log (5)} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(x^(x + x^2)*(-x^2 + (1 + x - 2*x^2)*Log[x]))/Log[5],x]

[Out]

(Log[x]*Defer[Int][x^(x*(1 + x)), x])/Log[5] + (Log[x]*Defer[Int][x^(1 + x + x^2), x])/Log[5] - Defer[Int][x^(
2 + x + x^2), x]/Log[5] - (2*Log[x]*Defer[Int][x^(2 + x + x^2), x])/Log[5] - Defer[Int][Defer[Int][x^(x*(1 + x
)), x]/x, x]/Log[5] - Defer[Int][Defer[Int][x^(1 + x + x^2), x]/x, x]/Log[5] + (2*Defer[Int][Defer[Int][x^(2 +
 x + x^2), x]/x, x])/Log[5]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 16, normalized size = 0.94 \begin {gather*} -\frac {(-1+x) x^{x (1+x)}}{\log (5)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x^(x + x^2)*(-x^2 + (1 + x - 2*x^2)*Log[x]))/Log[5],x]

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.26, size = 18, normalized size = 1.06

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(1-x)*x^((x+1)*x)/ln(5)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x - 1)*x^(x^2 + x)/log(5)

________________________________________________________________________________________

Sympy [A]
time = 0.12, size = 15, normalized size = 0.88 \begin {gather*} \frac {\left (1 - x\right ) e^{\left (x^{2} + x\right ) \log {\left (x \right )}}}{\log {\left (5 \right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (16) = 32\).
time = 0.52, size = 35, normalized size = 2.06 \begin {gather*} -\frac {x e^{\left (x^{2} \log \left (x\right ) + x \log \left (x\right )\right )} - e^{\left (x^{2} \log \left (x\right ) + x \log \left (x\right )\right )}}{\log \left (5\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 4.16, size = 16, normalized size = 0.94 \begin {gather*} -\frac {x^{x^2+x}\,\left (x-1\right )}{\ln \left (5\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x^(x + x^2)*(x - 1))/log(5)

________________________________________________________________________________________