Optimal. Leaf size=15 \[ 2 x+x \log ^2(x)-2 x \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0033866, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 4, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {2296, 2295} \[ 2 x+x \log ^2(x)-2 x \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2296
Rule 2295
Rubi steps
\begin{align*} \int \log ^2(x) \, dx &=x \log ^2(x)-2 \int \log (x) \, dx\\ &=2 x-2 x \log (x)+x \log ^2(x)\\ \end{align*}
Mathematica [A] time = 0.0009109, size = 15, normalized size = 1. \[ 2 x+x \log ^2(x)-2 x \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0., size = 16, normalized size = 1.1 \begin{align*} 2\,x-2\,x\ln \left ( x \right ) +x \left ( \ln \left ( x \right ) \right ) ^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.936374, size = 16, normalized size = 1.07 \begin{align*}{\left (\log \left (x\right )^{2} - 2 \, \log \left (x\right ) + 2\right )} x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.75099, size = 42, normalized size = 2.8 \begin{align*} x \log \left (x\right )^{2} - 2 \, x \log \left (x\right ) + 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.087332, size = 15, normalized size = 1. \begin{align*} x \log{\left (x \right )}^{2} - 2 x \log{\left (x \right )} + 2 x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.04614, size = 20, normalized size = 1.33 \begin{align*} x \log \left (x\right )^{2} - 2 \, x \log \left (x\right ) + 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]