Optimal. Leaf size=21 \[ -2+2 x-\log ^2(4)+x \log (3 (3-x)) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 25, normalized size of antiderivative = 1.19, number of steps used = 6, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {6742, 43, 2389, 2295} \begin {gather*} 2 x-(3-x) \log (9-3 x)+3 \log (3-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2295
Rule 2389
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {3 (-2+x)}{-3+x}+\log (9-3 x)\right ) \, dx\\ &=3 \int \frac {-2+x}{-3+x} \, dx+\int \log (9-3 x) \, dx\\ &=-\left (\frac {1}{3} \operatorname {Subst}(\int \log (x) \, dx,x,9-3 x)\right )+3 \int \left (1+\frac {1}{-3+x}\right ) \, dx\\ &=2 x-(3-x) \log (9-3 x)+3 \log (3-x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 19, normalized size = 0.90 \begin {gather*} x (2+\log (3))-\log (27)+x \log (3-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 12, normalized size = 0.57 \begin {gather*} x \log \left (-3 \, x + 9\right ) + 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 12, normalized size = 0.57 \begin {gather*} x \log \left (-3 \, x + 9\right ) + 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.29, size = 13, normalized size = 0.62
method | result | size |
norman | \(\ln \left (-3 x +9\right ) x +2 x\) | \(13\) |
risch | \(\ln \left (-3 x +9\right ) x +2 x\) | \(13\) |
derivativedivides | \(-\frac {\left (-3 x +9\right ) \ln \left (-3 x +9\right )}{3}+2 x -6+3 \ln \left (-3 x +9\right )\) | \(27\) |
default | \(-\frac {\left (-3 x +9\right ) \ln \left (-3 x +9\right )}{3}+2 x -6+3 \ln \left (-3 x +9\right )\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.46, size = 41, normalized size = 1.95 \begin {gather*} 3 \, {\left (-i \, \pi - \log \relax (3)\right )} \log \left (x - 3\right ) - 3 \, \log \left (x - 3\right )^{2} + {\left (x + 3 \, \log \left (x - 3\right )\right )} \log \left (-3 \, x + 9\right ) + 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 10, normalized size = 0.48 \begin {gather*} x\,\left (\ln \left (9-3\,x\right )+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.09, size = 10, normalized size = 0.48 \begin {gather*} x \log {\left (9 - 3 x \right )} + 2 x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________