Optimal. Leaf size=19 \[ 5 \left (-2+x-\log (x)+x \log \left (\frac {16}{(3+x)^2}\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.43, antiderivative size = 27, normalized size of antiderivative = 1.42, number of steps used = 10, number of rules used = 8, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {1593, 6741, 12, 6688, 6742, 893, 2389, 2295} \begin {gather*} 5 x-5 \log (x)+5 (x+3) \log \left (\frac {16}{(x+3)^2}\right )+30 \log (x+3) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 893
Rule 1593
Rule 2295
Rule 2389
Rule 6688
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-15+10 x-5 x^2+\left (15 x+5 x^2\right ) \log \left (\frac {16}{9+6 x+x^2}\right )}{x (3+x)} \, dx\\ &=\int \frac {5 \left (-3+2 x-x^2+3 x \log \left (\frac {16}{(3+x)^2}\right )+x^2 \log \left (\frac {16}{(3+x)^2}\right )\right )}{x (3+x)} \, dx\\ &=5 \int \frac {-3+2 x-x^2+3 x \log \left (\frac {16}{(3+x)^2}\right )+x^2 \log \left (\frac {16}{(3+x)^2}\right )}{x (3+x)} \, dx\\ &=5 \int \frac {-3+2 x-x^2+x (3+x) \log \left (\frac {16}{(3+x)^2}\right )}{x (3+x)} \, dx\\ &=5 \int \left (\frac {-3+2 x-x^2}{x (3+x)}+\log \left (\frac {16}{(3+x)^2}\right )\right ) \, dx\\ &=5 \int \frac {-3+2 x-x^2}{x (3+x)} \, dx+5 \int \log \left (\frac {16}{(3+x)^2}\right ) \, dx\\ &=5 \int \left (-1-\frac {1}{x}+\frac {6}{3+x}\right ) \, dx+5 \operatorname {Subst}\left (\int \log \left (\frac {16}{x^2}\right ) \, dx,x,3+x\right )\\ &=5 x-5 \log (x)+5 (3+x) \log \left (\frac {16}{(3+x)^2}\right )+30 \log (3+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 26, normalized size = 1.37 \begin {gather*} 5 \left (x-\log (x)+(3+x) \log \left (\frac {16}{(3+x)^2}\right )+6 \log (3+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 24, normalized size = 1.26 \begin {gather*} 5 \, x \log \left (\frac {16}{x^{2} + 6 \, x + 9}\right ) + 5 \, x - 5 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 24, normalized size = 1.26 \begin {gather*} 5 \, x \log \left (\frac {16}{x^{2} + 6 \, x + 9}\right ) + 5 \, x - 5 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 25, normalized size = 1.32
method | result | size |
norman | \(5 x +5 \ln \left (\frac {16}{x^{2}+6 x +9}\right ) x -5 \ln \relax (x )\) | \(25\) |
risch | \(5 x +5 \ln \left (\frac {16}{x^{2}+6 x +9}\right ) x -5 \ln \relax (x )\) | \(25\) |
derivativedivides | \(20 \left (3+x \right ) \ln \relax (2)+5 \left (3+x \right ) \ln \left (\frac {1}{\left (3+x \right )^{2}}\right )+15+5 x -25 \ln \left (\frac {1}{3+x}\right )-5 \ln \left (-1+\frac {3}{3+x}\right )\) | \(44\) |
default | \(20 \left (3+x \right ) \ln \relax (2)+5 \left (3+x \right ) \ln \left (\frac {1}{\left (3+x \right )^{2}}\right )+15+5 x -25 \ln \left (\frac {1}{3+x}\right )-5 \ln \left (-1+\frac {3}{3+x}\right )\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.36, size = 50, normalized size = 2.63 \begin {gather*} 5 \, {\left (x - 3 \, \log \left (x + 3\right )\right )} \log \left (\frac {16}{x^{2} + 6 \, x + 9}\right ) + 15 \, \log \left (x + 3\right ) \log \left (\frac {16}{x^{2} + 6 \, x + 9}\right ) + 5 \, x - 5 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.31, size = 24, normalized size = 1.26 \begin {gather*} 5\,x-5\,\ln \relax (x)+5\,x\,\ln \left (\frac {16}{x^2+6\,x+9}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 22, normalized size = 1.16 \begin {gather*} 5 x \log {\left (\frac {16}{x^{2} + 6 x + 9} \right )} + 5 x - 5 \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________