Optimal. Leaf size=22 \[ -2+2^{2/3}-x-\frac {5 x}{4-x}+\log (3) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 13, normalized size of antiderivative = 0.59, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {27, 683} \begin {gather*} -x-\frac {20}{4-x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 683
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-36+8 x-x^2}{(-4+x)^2} \, dx\\ &=\int \left (-1-\frac {20}{(-4+x)^2}\right ) \, dx\\ &=-\frac {20}{4-x}-x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 11, normalized size = 0.50 \begin {gather*} \frac {20}{-4+x}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 15, normalized size = 0.68 \begin {gather*} -\frac {x^{2} - 4 \, x - 20}{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 11, normalized size = 0.50 \begin {gather*} -x + \frac {20}{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.19, size = 12, normalized size = 0.55
method | result | size |
default | \(-x +\frac {20}{x -4}\) | \(12\) |
risch | \(-x +\frac {20}{x -4}\) | \(12\) |
gosper | \(-\frac {x^{2}-36}{x -4}\) | \(13\) |
meijerg | \(-\frac {x}{4 \left (-\frac {x}{4}+1\right )}-\frac {x \left (-\frac {3 x}{4}+6\right )}{3 \left (-\frac {x}{4}+1\right )}\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 11, normalized size = 0.50 \begin {gather*} -x + \frac {20}{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 11, normalized size = 0.50 \begin {gather*} \frac {20}{x-4}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.07, size = 5, normalized size = 0.23 \begin {gather*} - x + \frac {20}{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________