Optimal. Leaf size=26 \[ \frac {25}{9 x}-x+x^2-\log \left ((1-x) x^2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {1593, 1620} \begin {gather*} x^2-x+\frac {25}{9 x}-\log (1-x)-2 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 1620
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {25-7 x-18 x^2-27 x^3+18 x^4}{x^2 (-9+9 x)} \, dx\\ &=\int \left (-1+\frac {1}{1-x}-\frac {25}{9 x^2}-\frac {2}{x}+2 x\right ) \, dx\\ &=\frac {25}{9 x}-x+x^2-\log (1-x)-2 \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 30, normalized size = 1.15 \begin {gather*} \frac {1}{9} \left (\frac {25}{x}-9 x+9 x^2-9 \log (1-x)-18 \log (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 29, normalized size = 1.12 \begin {gather*} \frac {9 \, x^{3} - 9 \, x^{2} - 9 \, x \log \left (x - 1\right ) - 18 \, x \log \relax (x) + 25}{9 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 24, normalized size = 0.92 \begin {gather*} x^{2} - x + \frac {25}{9 \, x} - \log \left ({\left | x - 1 \right |}\right ) - 2 \, \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.51, size = 23, normalized size = 0.88
method | result | size |
default | \(x^{2}-x -\ln \left (x -1\right )+\frac {25}{9 x}-2 \ln \relax (x )\) | \(23\) |
risch | \(x^{2}-x -\ln \left (x -1\right )+\frac {25}{9 x}-2 \ln \relax (x )\) | \(23\) |
norman | \(\frac {\frac {25}{9}+x^{3}-x^{2}}{x}-2 \ln \relax (x )-\ln \left (x -1\right )\) | \(26\) |
meijerg | \(\frac {25}{9 x}-2 \ln \relax (x )-2 i \pi -\ln \left (1-x \right )+\frac {x \left (6+3 x \right )}{3}-3 x\) | \(34\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 22, normalized size = 0.85 \begin {gather*} x^{2} - x + \frac {25}{9 \, x} - \log \left (x - 1\right ) - 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 22, normalized size = 0.85 \begin {gather*} \frac {25}{9\,x}-\ln \left (x-1\right )-2\,\ln \relax (x)-x+x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 19, normalized size = 0.73 \begin {gather*} x^{2} - x - 2 \log {\relax (x )} - \log {\left (x - 1 \right )} + \frac {25}{9 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________