Optimal. Leaf size=26 \[ x+\log \left (\frac {x-(2+x)^2-\frac {x}{5+x}+\log (2)}{x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 38, normalized size of antiderivative = 1.46, number of steps used = 3, number of rules used = 2, integrand size = 83, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.024, Rules used = {2074, 1587} \begin {gather*} \log \left (x^3+8 x^2+x (20-\log (2))+5 (4-\log (2))\right )+x-\log (x)-\log (x+5) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1587
Rule 2074
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (1+\frac {1}{-5-x}-\frac {1}{x}+\frac {20+16 x+3 x^2-\log (2)}{8 x^2+x^3+5 (4-\log (2))+x (20-\log (2))}\right ) \, dx\\ &=x-\log (x)-\log (5+x)+\int \frac {20+16 x+3 x^2-\log (2)}{8 x^2+x^3+5 (4-\log (2))+x (20-\log (2))} \, dx\\ &=x-\log (x)-\log (5+x)+\log \left (8 x^2+x^3+5 (4-\log (2))+x (20-\log (2))\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 35, normalized size = 1.35 \begin {gather*} x-\log (x)-\log (5+x)+\log \left (20+20 x+8 x^2+x^3-5 \log (2)-x \log (2)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.70, size = 33, normalized size = 1.27 \begin {gather*} x + \log \left (x^{3} + 8 \, x^{2} - {\left (x + 5\right )} \log \relax (2) + 20 \, x + 20\right ) - \log \left (x^{2} + 5 \, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 38, normalized size = 1.46 \begin {gather*} x + \log \left ({\left | x^{3} + 8 \, x^{2} - x \log \relax (2) + 20 \, x - 5 \, \log \relax (2) + 20 \right |}\right ) - \log \left ({\left | x + 5 \right |}\right ) - \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 36, normalized size = 1.38
method | result | size |
default | \(x +\ln \left (x^{3}-x \ln \relax (2)+8 x^{2}-5 \ln \relax (2)+20 x +20\right )-\ln \left (5+x \right )-\ln \relax (x )\) | \(36\) |
norman | \(x -\ln \relax (x )-\ln \left (5+x \right )+\ln \left (-x^{3}+x \ln \relax (2)-8 x^{2}+5 \ln \relax (2)-20 x -20\right )\) | \(37\) |
risch | \(x -\ln \left (-x^{2}-5 x \right )+\ln \left (x^{3}+8 x^{2}+\left (-\ln \relax (2)+20\right ) x -5 \ln \relax (2)+20\right )\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.39, size = 34, normalized size = 1.31 \begin {gather*} x + \log \left (x^{3} + 8 \, x^{2} - x {\left (\log \relax (2) - 20\right )} - 5 \, \log \relax (2) + 20\right ) - \log \left (x + 5\right ) - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.16, size = 33, normalized size = 1.27 \begin {gather*} x-\ln \left (x\,\left (x+5\right )\right )+\ln \left (20\,x-\ln \left (32\right )-x\,\ln \relax (2)+8\,x^2+x^3+20\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.67, size = 32, normalized size = 1.23 \begin {gather*} x - \log {\left (x^{2} + 5 x \right )} + \log {\left (x^{3} + 8 x^{2} + x \left (20 - \log {\relax (2 )}\right ) - 5 \log {\relax (2 )} + 20 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________