Optimal. Leaf size=24 \[ x+\frac {3+\frac {3}{2 x}-x^2}{x}+\log ^2(x) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 17, normalized size of antiderivative = 0.71, number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {14, 37, 2301} \begin {gather*} \frac {3 (x+1)^2}{2 x^2}+\log ^2(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 37
Rule 2301
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-\frac {3 (1+x)}{x^3}+\frac {2 \log (x)}{x}\right ) \, dx\\ &=2 \int \frac {\log (x)}{x} \, dx-3 \int \frac {1+x}{x^3} \, dx\\ &=\frac {3 (1+x)^2}{2 x^2}+\log ^2(x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 17, normalized size = 0.71 \begin {gather*} \frac {3}{2 x^2}+\frac {3}{x}+\log ^2(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 19, normalized size = 0.79 \begin {gather*} \frac {2 \, x^{2} \log \relax (x)^{2} + 6 \, x + 3}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.30, size = 15, normalized size = 0.62 \begin {gather*} \log \relax (x)^{2} + \frac {3 \, {\left (2 \, x + 1\right )}}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 16, normalized size = 0.67
method | result | size |
default | \(\ln \relax (x )^{2}+\frac {3}{x}+\frac {3}{2 x^{2}}\) | \(16\) |
risch | \(\ln \relax (x )^{2}+\frac {3 x +\frac {3}{2}}{x^{2}}\) | \(16\) |
norman | \(\frac {\frac {3}{2}+x^{2} \ln \relax (x )^{2}+3 x}{x^{2}}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 15, normalized size = 0.62 \begin {gather*} \log \relax (x)^{2} + \frac {3}{x} + \frac {3}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.53, size = 14, normalized size = 0.58 \begin {gather*} {\ln \relax (x)}^2+\frac {3\,x+\frac {3}{2}}{x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 15, normalized size = 0.62 \begin {gather*} \log {\relax (x )}^{2} - \frac {- 6 x - 3}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________