Optimal. Leaf size=24 \[ -\frac {1}{3 x}+\frac {3 x}{2 (3-x)}-\log (3) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 19, normalized size of antiderivative = 0.79, number of steps used = 5, number of rules used = 4, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {1594, 27, 12, 893} \begin {gather*} \frac {9}{2 (3-x)}-\frac {1}{3 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 27
Rule 893
Rule 1594
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {18-12 x+29 x^2}{x^2 \left (54-36 x+6 x^2\right )} \, dx\\ &=\int \frac {18-12 x+29 x^2}{6 (-3+x)^2 x^2} \, dx\\ &=\frac {1}{6} \int \frac {18-12 x+29 x^2}{(-3+x)^2 x^2} \, dx\\ &=\frac {1}{6} \int \left (\frac {27}{(-3+x)^2}+\frac {2}{x^2}\right ) \, dx\\ &=\frac {9}{2 (3-x)}-\frac {1}{3 x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 17, normalized size = 0.71 \begin {gather*} \frac {1}{6} \left (-\frac {27}{-3+x}-\frac {2}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.12, size = 16, normalized size = 0.67 \begin {gather*} -\frac {29 \, x - 6}{6 \, {\left (x^{2} - 3 \, x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.39, size = 16, normalized size = 0.67 \begin {gather*} -\frac {29 \, x - 6}{6 \, {\left (x^{2} - 3 \, x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 14, normalized size = 0.58
method | result | size |
default | \(-\frac {9}{2 \left (x -3\right )}-\frac {1}{3 x}\) | \(14\) |
norman | \(\frac {1-\frac {29 x}{6}}{x \left (x -3\right )}\) | \(15\) |
risch | \(\frac {1-\frac {29 x}{6}}{x \left (x -3\right )}\) | \(15\) |
gosper | \(-\frac {29 x -6}{6 x \left (x -3\right )}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 16, normalized size = 0.67 \begin {gather*} -\frac {29 \, x - 6}{6 \, {\left (x^{2} - 3 \, x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 15, normalized size = 0.62 \begin {gather*} -\frac {9}{2\,\left (x-3\right )}-\frac {1}{3\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.09, size = 12, normalized size = 0.50 \begin {gather*} \frac {6 - 29 x}{6 x^{2} - 18 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________