Optimal. Leaf size=21 \[ \frac {3 x^2 \left (-3-\frac {4}{x}-\log (4)\right )}{-3+x} \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {27, 1850} \begin {gather*} \frac {9 (13+\log (64))}{3-x}-3 x (3+\log (4)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 1850
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {36+54 x-9 x^2+\left (18 x-3 x^2\right ) \log (4)}{(-3+x)^2} \, dx\\ &=\int \left (-3 (3+\log (4))+\frac {9 (13+\log (64))}{(-3+x)^2}\right ) \, dx\\ &=-3 x (3+\log (4))+\frac {9 (13+\log (64))}{3-x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 28, normalized size = 1.33 \begin {gather*} -\frac {3 \left (66+18 \log (4)-6 x (3+\log (4))+x^2 (3+\log (4))\right )}{-3+x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.65, size = 29, normalized size = 1.38 \begin {gather*} -\frac {3 \, {\left (3 \, x^{2} + 2 \, {\left (x^{2} - 3 \, x + 9\right )} \log \relax (2) - 9 \, x + 39\right )}}{x - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 22, normalized size = 1.05 \begin {gather*} -6 \, x \log \relax (2) - 9 \, x - \frac {9 \, {\left (6 \, \log \relax (2) + 13\right )}}{x - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.17, size = 19, normalized size = 0.90
method | result | size |
norman | \(\frac {\left (-6 \ln \relax (2)-9\right ) x^{2}-36}{x -3}\) | \(19\) |
gosper | \(-\frac {3 \left (2 x^{2} \ln \relax (2)+3 x^{2}+12\right )}{x -3}\) | \(22\) |
default | \(-6 x \ln \relax (2)-9 x -\frac {3 \left (18 \ln \relax (2)+39\right )}{x -3}\) | \(23\) |
risch | \(-6 x \ln \relax (2)-9 x -\frac {117}{x -3}-\frac {54 \ln \relax (2)}{x -3}\) | \(26\) |
meijerg | \(\frac {4 x}{1-\frac {x}{3}}-3 \left (-6 \ln \relax (2)-9\right ) \left (-\frac {x \left (-x +6\right )}{9 \left (1-\frac {x}{3}\right )}-2 \ln \left (1-\frac {x}{3}\right )\right )-3 \left (-12 \ln \relax (2)-18\right ) \left (\frac {x}{3-x}+\ln \left (1-\frac {x}{3}\right )\right )\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 23, normalized size = 1.10 \begin {gather*} -3 \, x {\left (2 \, \log \relax (2) + 3\right )} - \frac {9 \, {\left (6 \, \log \relax (2) + 13\right )}}{x - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.25, size = 21, normalized size = 1.00 \begin {gather*} -x\,\left (\ln \left (64\right )+9\right )-\frac {54\,\ln \relax (2)+117}{x-3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 19, normalized size = 0.90 \begin {gather*} - x \left (6 \log {\relax (2 )} + 9\right ) - \frac {54 \log {\relax (2 )} + 117}{x - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________