Optimal. Leaf size=24 \[ -4+x+\log \left (\frac {x}{3 (-3+(5-x) (-3+2 x))}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 20, normalized size of antiderivative = 0.83, number of steps used = 3, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {1594, 1628} \begin {gather*} x-\log (9-2 x)-\log (2-x)+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1594
Rule 1628
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {18+18 x-15 x^2+2 x^3}{x \left (18-13 x+2 x^2\right )} \, dx\\ &=\int \left (1+\frac {1}{2-x}+\frac {1}{x}-\frac {2}{-9+2 x}\right ) \, dx\\ &=x-\log (9-2 x)-\log (2-x)+\log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 17, normalized size = 0.71 \begin {gather*} x+\log (x)-\log \left (18-13 x+2 x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.64, size = 17, normalized size = 0.71 \begin {gather*} x - \log \left (2 \, x^{2} - 13 \, x + 18\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 21, normalized size = 0.88 \begin {gather*} x - \log \left ({\left | 2 \, x - 9 \right |}\right ) - \log \left ({\left | x - 2 \right |}\right ) + \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 18, normalized size = 0.75
method | result | size |
risch | \(x +\ln \relax (x )-\ln \left (2 x^{2}-13 x +18\right )\) | \(18\) |
default | \(x -\ln \left (2 x -9\right )+\ln \relax (x )-\ln \left (x -2\right )\) | \(19\) |
norman | \(x -\ln \left (2 x -9\right )+\ln \relax (x )-\ln \left (x -2\right )\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 18, normalized size = 0.75 \begin {gather*} x - \log \left (2 \, x - 9\right ) - \log \left (x - 2\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 15, normalized size = 0.62 \begin {gather*} x-\ln \left (x^2-\frac {13\,x}{2}+9\right )+\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 15, normalized size = 0.62 \begin {gather*} x + \log {\relax (x )} - \log {\left (2 x^{2} - 13 x + 18 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________