Optimal. Leaf size=17 \[ -4-3 x-\frac {x}{4+x}-\log (x) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 15, normalized size of antiderivative = 0.88, number of steps used = 4, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {1594, 27, 1620} \begin {gather*} -3 x+\frac {4}{x+4}-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 1594
Rule 1620
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-16-60 x-25 x^2-3 x^3}{x \left (16+8 x+x^2\right )} \, dx\\ &=\int \frac {-16-60 x-25 x^2-3 x^3}{x (4+x)^2} \, dx\\ &=\int \left (-3-\frac {1}{x}-\frac {4}{(4+x)^2}\right ) \, dx\\ &=-3 x+\frac {4}{4+x}-\log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 15, normalized size = 0.88 \begin {gather*} -3 x+\frac {4}{4+x}-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.63, size = 23, normalized size = 1.35 \begin {gather*} -\frac {3 \, x^{2} + {\left (x + 4\right )} \log \relax (x) + 12 \, x - 4}{x + 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.59, size = 16, normalized size = 0.94 \begin {gather*} -3 \, x + \frac {4}{x + 4} - \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 16, normalized size = 0.94
method | result | size |
default | \(-3 x -\ln \relax (x )+\frac {4}{4+x}\) | \(16\) |
risch | \(-3 x -\ln \relax (x )+\frac {4}{4+x}\) | \(16\) |
norman | \(\frac {-3 x^{2}+52}{4+x}-\ln \relax (x )\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.65, size = 15, normalized size = 0.88 \begin {gather*} -3 \, x + \frac {4}{x + 4} - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.39, size = 15, normalized size = 0.88 \begin {gather*} \frac {4}{x+4}-\ln \relax (x)-3\,x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 10, normalized size = 0.59 \begin {gather*} - 3 x - \log {\relax (x )} + \frac {4}{x + 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________