Optimal. Leaf size=27 \[ -3+\frac {x^3}{25 (-3+x)}+\frac {1}{5} (-1-x-\log (2)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 24, normalized size of antiderivative = 0.89, number of steps
used = 4, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {27, 12, 1864}
\begin {gather*} \frac {x^2}{25}-\frac {2 x}{25}-\frac {27}{25 (3-x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 27
Rule 1864
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-45+30 x-14 x^2+2 x^3}{25 (-3+x)^2} \, dx\\ &=\frac {1}{25} \int \frac {-45+30 x-14 x^2+2 x^3}{(-3+x)^2} \, dx\\ &=\frac {1}{25} \int \left (-2-\frac {27}{(-3+x)^2}+2 x\right ) \, dx\\ &=-\frac {27}{25 (3-x)}-\frac {2 x}{25}+\frac {x^2}{25}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 19, normalized size = 0.70 \begin {gather*} \frac {1}{25} \left (-3+\frac {27}{-3+x}-2 x+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.74, size = 17, normalized size = 0.63
method | result | size |
default | \(\frac {x^{2}}{25}-\frac {2 x}{25}+\frac {27}{25 \left (x -3\right )}\) | \(17\) |
risch | \(\frac {x^{2}}{25}-\frac {2 x}{25}+\frac {27}{25 \left (x -3\right )}\) | \(17\) |
gosper | \(\frac {x^{3}-5 x^{2}+45}{25 x -75}\) | \(18\) |
norman | \(\frac {-\frac {1}{5} x^{2}+\frac {1}{25} x^{3}+\frac {9}{5}}{x -3}\) | \(19\) |
meijerg | \(\frac {x}{5-\frac {5 x}{3}}+\frac {3 x \left (-\frac {2}{9} x^{2}-2 x +12\right )}{50 \left (1-\frac {x}{3}\right )}-\frac {14 x \left (-x +6\right )}{75 \left (1-\frac {x}{3}\right )}\) | \(47\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 16, normalized size = 0.59 \begin {gather*} \frac {1}{25} \, x^{2} - \frac {2}{25} \, x + \frac {27}{25 \, {\left (x - 3\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 20, normalized size = 0.74 \begin {gather*} \frac {x^{3} - 5 \, x^{2} + 6 \, x + 27}{25 \, {\left (x - 3\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 15, normalized size = 0.56 \begin {gather*} \frac {x^{2}}{25} - \frac {2 x}{25} + \frac {27}{25 x - 75} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 16, normalized size = 0.59 \begin {gather*} \frac {1}{25} \, x^{2} - \frac {2}{25} \, x + \frac {27}{25 \, {\left (x - 3\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.79, size = 18, normalized size = 0.67 \begin {gather*} \frac {27}{25\,\left (x-3\right )}-\frac {2\,x}{25}+\frac {x^2}{25} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________