Optimal. Leaf size=16 \[ \log \left (4+x+\frac {-9+\log \left (x^2\right )}{(-3+x)^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.71, antiderivative size = 27, normalized size of antiderivative = 1.69, number of steps used = 4, number of rules used = 3, integrand size = 62, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {6741, 6742, 6684} \begin {gather*} \log \left (x^3-2 x^2+\log \left (x^2\right )-15 x+27\right )-2 \log (3-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6684
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {6+7 x-27 x^2+9 x^3-x^4+2 x \log \left (x^2\right )}{(3-x) x \left (27-15 x-2 x^2+x^3+\log \left (x^2\right )\right )} \, dx\\ &=\int \left (-\frac {2}{-3+x}+\frac {2-15 x-4 x^2+3 x^3}{x \left (27-15 x-2 x^2+x^3+\log \left (x^2\right )\right )}\right ) \, dx\\ &=-2 \log (3-x)+\int \frac {2-15 x-4 x^2+3 x^3}{x \left (27-15 x-2 x^2+x^3+\log \left (x^2\right )\right )} \, dx\\ &=-2 \log (3-x)+\log \left (27-15 x-2 x^2+x^3+\log \left (x^2\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.28, size = 27, normalized size = 1.69 \begin {gather*} -2 \log (3-x)+\log \left (27-15 x-2 x^2+x^3+\log \left (x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.38, size = 25, normalized size = 1.56 \begin {gather*} \log \left (x^{3} - 2 \, x^{2} - 15 \, x + \log \left (x^{2}\right ) + 27\right ) - 2 \, \log \left (x - 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 25, normalized size = 1.56 \begin {gather*} \log \left (x^{3} - 2 \, x^{2} - 15 \, x + \log \left (x^{2}\right ) + 27\right ) - 2 \, \log \left (x - 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 26, normalized size = 1.62
method | result | size |
norman | \(-2 \ln \left (x -3\right )+\ln \left (x^{3}-2 x^{2}-15 x +\ln \left (x^{2}\right )+27\right )\) | \(26\) |
risch | \(-2 \ln \left (x -3\right )+\ln \left (x^{3}-2 x^{2}-15 x +\ln \left (x^{2}\right )+27\right )\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 25, normalized size = 1.56 \begin {gather*} \log \left (\frac {1}{2} \, x^{3} - x^{2} - \frac {15}{2} \, x + \log \relax (x) + \frac {27}{2}\right ) - 2 \, \log \left (x - 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.11, size = 25, normalized size = 1.56 \begin {gather*} \ln \left (\ln \left (x^2\right )-15\,x-2\,x^2+x^3+27\right )-2\,\ln \left (x-3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.19, size = 26, normalized size = 1.62 \begin {gather*} - 2 \log {\left (x - 3 \right )} + \log {\left (x^{3} - 2 x^{2} - 15 x + \log {\left (x^{2} \right )} + 27 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________