Optimal. Leaf size=18 \[ \log (3+x) \log \left (3 \left (-3-x-x^3\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.27, antiderivative size = 14, normalized size of antiderivative = 0.78, number of steps used = 7, number of rules used = 3, integrand size = 56, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.054, Rules used = {6742, 2418, 2524} \begin {gather*} \log (x+3) \log \left (-3 \left (x^3+x+3\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2524
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {\left (1+3 x^2\right ) \log (3+x)}{3+x+x^3}+\frac {\log \left (-3 \left (3+x+x^3\right )\right )}{3+x}\right ) \, dx\\ &=\int \frac {\left (1+3 x^2\right ) \log (3+x)}{3+x+x^3} \, dx+\int \frac {\log \left (-3 \left (3+x+x^3\right )\right )}{3+x} \, dx\\ &=\log (3+x) \log \left (-3 \left (3+x+x^3\right )\right )-\int \frac {\left (1+3 x^2\right ) \log (3+x)}{3+x+x^3} \, dx+\int \left (\frac {\log (3+x)}{3+x+x^3}+\frac {3 x^2 \log (3+x)}{3+x+x^3}\right ) \, dx\\ &=\log (3+x) \log \left (-3 \left (3+x+x^3\right )\right )+3 \int \frac {x^2 \log (3+x)}{3+x+x^3} \, dx+\int \frac {\log (3+x)}{3+x+x^3} \, dx-\int \left (\frac {\log (3+x)}{3+x+x^3}+\frac {3 x^2 \log (3+x)}{3+x+x^3}\right ) \, dx\\ &=\log (3+x) \log \left (-3 \left (3+x+x^3\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 14, normalized size = 0.78 \begin {gather*} \log (3+x) \log \left (-3 \left (3+x+x^3\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 16, normalized size = 0.89 \begin {gather*} \log \left (-3 \, x^{3} - 3 \, x - 9\right ) \log \left (x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 16, normalized size = 0.89 \begin {gather*} \log \left (-3 \, x^{3} - 3 \, x - 9\right ) \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 = 17, normalized size = 0.94
method | result | size |
risch | \(\ln \left (3+x \right ) \ln \left (-3 x^{3}-3 x -9\right )\) | \(17\) |
default | \(\ln \relax (3) \ln \left (3+x \right )+\ln \left (3+x \right ) \ln \left (-x^{3}-x -3\right )\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.57, size = 24, normalized size = 1.33 \begin {gather*} {\left (i \, \pi + \log \relax (3)\right )} \log \left (x + 3\right ) + \log \left (x^{3} + x + 3\right ) \log \left (x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.67, size = 19, normalized size = 1.06 \begin {gather*} \ln \left (x+3\right )\,\left (\ln \relax (3)+\ln \left (-x^3-x-3\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.33, size = 17, normalized size = 0.94 \begin {gather*} \log {\left (x + 3 \right )} \log {\left (- 3 x^{3} - 3 x - 9 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________