Optimal. Leaf size=22 \[ \log \left (\frac {\left (x+(x-4 (6+x+\log (4+x)))^2\right )^2}{x^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.85, antiderivative size = 39, normalized size of antiderivative = 1.77, number of steps used = 4, number of rules used = 3, integrand size = 94, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.032, Rules used = {6741, 6742, 6684} \begin {gather*} 2 \log \left (9 x^2+145 x+16 \log ^2(x+4)+24 x \log (x+4)+192 \log (x+4)+576\right )-2 \log (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 {-4608-768 x+120 x^2+18 x^3+(-1536-320 x) \log (4+x)+(-128-32 x) \log ^2(4+x)}{x (4+x) \left (576+145 x+9 x^2+192 \log (4+x)+24 x \log (4+x)+16 \log ^2(4+x)\right )} \, dx\\ &=\int \left (-\frac {2}{x}+\frac {2 \left (772+241 x+18 x^2+128 \log (4+x)+24 x \log (4+x)\right )}{(4+x) \left (576+145 x+9 x^2+192 \log (4+x)+24 x \log (4+x)+16 \log ^2(4+x)\right )}\right ) \, dx\\ &=-2 \log (x)+2 \int \frac {772+241 x+18 x^2+128 \log (4+x)+24 x \log (4+x)}{(4+x) \left (576+145 x+9 x^2+192 \log (4+x)+24 x \log (4+x)+16 \log ^2(4+x)\right )} \, dx\\ &=-2 \log (x)+2 \log \left (576+145 x+9 x^2+192 \log (4+x)+24 x \log (4+x)+16 \log ^2(4+x)\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.56, size = 39, normalized size = 1.77 \begin {gather*} 2 \left (-\log (x)+\log \left (576+145 x+9 x^2+192 \log (4+x)+24 x \log (4+x)+16 \log ^2(4+x)\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.97, size = 35, normalized size = 1.59 \begin {gather*} 2 \, \log \left (9 \, x^{2} + 24 \, {\left (x + 8\right )} \log \left (x + 4\right ) + 16 \, \log \left (x + 4\right )^{2} + 145 \, x + 576\right ) - 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.27, size = 39, normalized size = 1.77 \begin {gather*} 2 \, \log \left (9 \, x^{2} + 24 \, x \log \left (x + 4\right ) + 16 \, \log \left (x + 4\right )^{2} + 145 \, x + 192 \, \log \left (x + 4\right ) + 576\right ) - 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 35, normalized size = 1.59
method | result | size |
risch | \(-2 \ln \relax (x )+2 \ln \left (\ln \left (4+x \right )^{2}+\left (\frac {3 x}{2}+12\right ) \ln \left (4+x \right )+\frac {9 x^{2}}{16}+\frac {145 x}{16}+36\right )\) | \(35\) |
norman | \(-2 \ln \relax (x )+2 \ln \left (16 \ln \left (4+x \right )^{2}+24 \ln \left (4+x \right ) x +9 x^{2}+192 \ln \left (4+x \right )+145 x +576\right )\) | \(40\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.59, size = 33, normalized size = 1.50 \begin {gather*} 2 \, \log \left (\frac {9}{16} \, x^{2} + \frac {3}{2} \, {\left (x + 8\right )} \log \left (x + 4\right ) + \log \left (x + 4\right )^{2} + \frac {145}{16} \, x + 36\right ) - 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.69, size = 37, normalized size = 1.68 \begin {gather*} 2\,\ln \left (\frac {9\,x^2}{16}+\frac {3\,x\,\ln \left (x+4\right )}{2}+\frac {145\,x}{16}+{\ln \left (x+4\right )}^2+12\,\ln \left (x+4\right )+36\right )-2\,\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.34, size = 39, normalized size = 1.77 \begin {gather*} - 2 \log {\relax (x )} + 2 \log {\left (\frac {9 x^{2}}{16} + \frac {145 x}{16} + \left (\frac {3 x}{2} + 12\right ) \log {\left (x + 4 \right )} + \log {\left (x + 4 \right )}^{2} + 36 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________