Optimal. Leaf size=19 \[ 4+3 x+x^2-(3-x) \log \left (x^2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 17, normalized size of antiderivative = 0.89, number of steps used = 5, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {14, 2295} \begin {gather*} x^2+x \log \left (x^2\right )+3 x-6 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2295
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {-6+5 x+2 x^2}{x}+\log \left (x^2\right )\right ) \, dx\\ &=\int \frac {-6+5 x+2 x^2}{x} \, dx+\int \log \left (x^2\right ) \, dx\\ &=-2 x+x \log \left (x^2\right )+\int \left (5-\frac {6}{x}+2 x\right ) \, dx\\ &=3 x+x^2-6 \log (x)+x \log \left (x^2\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 17, normalized size = 0.89 \begin {gather*} 3 x+x^2-6 \log (x)+x \log \left (x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.98, size = 15, normalized size = 0.79 \begin {gather*} x^{2} + {\left (x - 3\right )} \log \left (x^{2}\right ) + 3 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 17, normalized size = 0.89 \begin {gather*} x^{2} + x \log \left (x^{2}\right ) + 3 \, x - 6 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 18, normalized size = 0.95
method | result | size |
default | \(3 x +x^{2}-6 \ln \relax (x )+x \ln \left (x^{2}\right )\) | \(18\) |
norman | \(3 x +x^{2}-6 \ln \relax (x )+x \ln \left (x^{2}\right )\) | \(18\) |
risch | \(3 x +x^{2}-6 \ln \relax (x )+x \ln \left (x^{2}\right )\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 17, normalized size = 0.89 \begin {gather*} x^{2} + x \log \left (x^{2}\right ) + 3 \, x - 6 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.01, size = 19, normalized size = 1.00 \begin {gather*} 3\,x-3\,\ln \left (x^2\right )+x\,\ln \left (x^2\right )+x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 17, normalized size = 0.89 \begin {gather*} x^{2} + x \log {\left (x^{2} \right )} + 3 x - 6 \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________