\(\int x \log ^2(x) \, dx\) [71]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 6, antiderivative size = 28 \[ \int x \log ^2(x) \, dx=\frac {x^2}{4}-\frac {1}{2} x^2 \log (x)+\frac {1}{2} x^2 \log ^2(x) \]

[Out]

1/4*x^2-1/2*x^2*ln(x)+1/2*x^2*ln(x)^2

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2342, 2341} \[ \int x \log ^2(x) \, dx=\frac {x^2}{4}+\frac {1}{2} x^2 \log ^2(x)-\frac {1}{2} x^2 \log (x) \]

[In]

Int[x*Log[x]^2,x]

[Out]

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

Rule 2341

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log[c*x^
n])/(d*(m + 1))), x] - Simp[b*n*((d*x)^(m + 1)/(d*(m + 1)^2)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2342

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Lo
g[c*x^n])^p/(d*(m + 1))), x] - Dist[b*n*(p/(m + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} x^2 \log ^2(x)-\int x \log (x) \, dx \\ & = \frac {x^2}{4}-\frac {1}{2} x^2 \log (x)+\frac {1}{2} x^2 \log ^2(x) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00 \[ \int x \log ^2(x) \, dx=\frac {x^2}{4}-\frac {1}{2} x^2 \log (x)+\frac {1}{2} x^2 \log ^2(x) \]

[In]

Integrate[x*Log[x]^2,x]

[Out]

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

Maple [A] (verified)

Time = 0.02 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.82

method result size
default \(\frac {x^{2}}{4}-\frac {x^{2} \ln \left (x \right )}{2}+\frac {x^{2} \ln \left (x \right )^{2}}{2}\) \(23\)
norman \(\frac {x^{2}}{4}-\frac {x^{2} \ln \left (x \right )}{2}+\frac {x^{2} \ln \left (x \right )^{2}}{2}\) \(23\)
risch \(\frac {x^{2}}{4}-\frac {x^{2} \ln \left (x \right )}{2}+\frac {x^{2} \ln \left (x \right )^{2}}{2}\) \(23\)
parallelrisch \(\frac {x^{2}}{4}-\frac {x^{2} \ln \left (x \right )}{2}+\frac {x^{2} \ln \left (x \right )^{2}}{2}\) \(23\)
parts \(\frac {x^{2}}{4}-\frac {x^{2} \ln \left (x \right )}{2}+\frac {x^{2} \ln \left (x \right )^{2}}{2}\) \(23\)

[In]

int(x*ln(x)^2,x,method=_RETURNVERBOSE)

[Out]

1/4*x^2-1/2*x^2*ln(x)+1/2*x^2*ln(x)^2

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.79 \[ \int x \log ^2(x) \, dx=\frac {1}{2} \, x^{2} \log \left (x\right )^{2} - \frac {1}{2} \, x^{2} \log \left (x\right ) + \frac {1}{4} \, x^{2} \]

[In]

integrate(x*log(x)^2,x, algorithm="fricas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.04 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.79 \[ \int x \log ^2(x) \, dx=\frac {x^{2} \log {\left (x \right )}^{2}}{2} - \frac {x^{2} \log {\left (x \right )}}{2} + \frac {x^{2}}{4} \]

[In]

integrate(x*ln(x)**2,x)

[Out]

x**2*log(x)**2/2 - x**2*log(x)/2 + x**2/4

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.61 \[ \int x \log ^2(x) \, dx=\frac {1}{4} \, {\left (2 \, \log \left (x\right )^{2} - 2 \, \log \left (x\right ) + 1\right )} x^{2} \]

[In]

integrate(x*log(x)^2,x, algorithm="maxima")

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.79 \[ \int x \log ^2(x) \, dx=\frac {1}{2} \, x^{2} \log \left (x\right )^{2} - \frac {1}{2} \, x^{2} \log \left (x\right ) + \frac {1}{4} \, x^{2} \]

[In]

integrate(x*log(x)^2,x, algorithm="giac")

[Out]

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

Mupad [B] (verification not implemented)

Time = 0.03 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.61 \[ \int x \log ^2(x) \, dx=\frac {x^2\,\left (2\,{\ln \left (x\right )}^2-2\,\ln \left (x\right )+1\right )}{4} \]

[In]

int(x*log(x)^2,x)

[Out]

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