Optimal. Leaf size=29 \[ \frac {1}{4} \log \left (\frac {5 (1+x)^2 (-x+3 \log (\log (x \log (3+x))))}{x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 2.46, antiderivative size = 32, normalized size of antiderivative = 1.10, number of steps used = 7, number of rules used = 5, integrand size = 143, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.035, Rules used = {6688, 12, 6728, 72, 6684} \begin {gather*} -\frac {\log (x)}{4}+\frac {1}{2} \log (x+1)+\frac {1}{4} \log (x-3 \log (\log (x \log (x+3)))) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 72
Rule 6684
Rule 6688
Rule 6728
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-3 x (1+x)+(3+x) \log (3+x) \left (-3 (1+x)+\log (x \log (3+x)) \left (2 x^2-3 (-1+x) \log (\log (x \log (3+x)))\right )\right )}{4 x \left (3+4 x+x^2\right ) \log (3+x) \log (x \log (3+x)) (x-3 \log (\log (x \log (3+x))))} \, dx\\ &=\frac {1}{4} \int \frac {-3 x (1+x)+(3+x) \log (3+x) \left (-3 (1+x)+\log (x \log (3+x)) \left (2 x^2-3 (-1+x) \log (\log (x \log (3+x)))\right )\right )}{x \left (3+4 x+x^2\right ) \log (3+x) \log (x \log (3+x)) (x-3 \log (\log (x \log (3+x))))} \, dx\\ &=\frac {1}{4} \int \left (\frac {-1+x}{x (1+x)}+\frac {-3 x-9 \log (3+x)-3 x \log (3+x)+3 x \log (3+x) \log (x \log (3+x))+x^2 \log (3+x) \log (x \log (3+x))}{x (3+x) \log (3+x) \log (x \log (3+x)) (x-3 \log (\log (x \log (3+x))))}\right ) \, dx\\ &=\frac {1}{4} \int \frac {-1+x}{x (1+x)} \, dx+\frac {1}{4} \int \frac {-3 x-9 \log (3+x)-3 x \log (3+x)+3 x \log (3+x) \log (x \log (3+x))+x^2 \log (3+x) \log (x \log (3+x))}{x (3+x) \log (3+x) \log (x \log (3+x)) (x-3 \log (\log (x \log (3+x))))} \, dx\\ &=\frac {1}{4} \log (x-3 \log (\log (x \log (3+x))))+\frac {1}{4} \int \left (-\frac {1}{x}+\frac {2}{1+x}\right ) \, dx\\ &=-\frac {\log (x)}{4}+\frac {1}{2} \log (1+x)+\frac {1}{4} \log (x-3 \log (\log (x \log (3+x))))\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 28, normalized size = 0.97 \begin {gather*} \frac {1}{4} (-\log (x)+2 \log (1+x)+\log (x-3 \log (\log (x \log (3+x))))) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 28, normalized size = 0.97 \begin {gather*} \frac {1}{2} \, \log \left (x + 1\right ) - \frac {1}{4} \, \log \relax (x) + \frac {1}{4} \, \log \left (-x + 3 \, \log \left (\log \left (x \log \left (x + 3\right )\right )\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.25, size = 26, normalized size = 0.90 \begin {gather*} \frac {1}{4} \, \log \left (x - 3 \, \log \left (\log \left (x \log \left (x + 3\right )\right )\right )\right ) + \frac {1}{2} \, \log \left (x + 1\right ) - \frac {1}{4} \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.20, size = 78, normalized size = 2.69
method | result | size |
risch | \(-\frac {\ln \relax (x )}{4}+\frac {\ln \left (x +1\right )}{2}+\frac {\ln \left (-\frac {x}{3}+\ln \left (\ln \relax (x )+\ln \left (\ln \left (3+x \right )\right )-\frac {i \pi \,\mathrm {csgn}\left (i x \ln \left (3+x \right )\right ) \left (-\mathrm {csgn}\left (i x \ln \left (3+x \right )\right )+\mathrm {csgn}\left (i x \right )\right ) \left (-\mathrm {csgn}\left (i x \ln \left (3+x \right )\right )+\mathrm {csgn}\left (i \ln \left (3+x \right )\right )\right )}{2}\right )\right )}{4}\) | \(78\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 27, normalized size = 0.93 \begin {gather*} \frac {1}{2} \, \log \left (x + 1\right ) - \frac {1}{4} \, \log \relax (x) + \frac {1}{4} \, \log \left (-\frac {1}{3} \, x + \log \left (\log \relax (x) + \log \left (\log \left (x + 3\right )\right )\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.78, size = 26, normalized size = 0.90 \begin {gather*} \frac {\ln \left (x+1\right )}{2}+\frac {\ln \left (\ln \left (\ln \left (x\,\ln \left (x+3\right )\right )\right )-\frac {x}{3}\right )}{4}-\frac {\ln \relax (x)}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.65, size = 27, normalized size = 0.93 \begin {gather*} - \frac {\log {\relax (x )}}{4} + \frac {\log {\left (- \frac {x}{3} + \log {\left (\log {\left (x \log {\left (x + 3 \right )} \right )} \right )} \right )}}{4} + \frac {\log {\left (x + 1 \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________