Optimal. Leaf size=27 \[ 4-\log \left (-1+\frac {1}{x}+\frac {3 x^2}{\left (4-x-2 x^2\right )^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 39, normalized size of antiderivative = 1.44, number of steps used = 4, number of rules used = 3, integrand size = 72, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {2074, 628, 1587} \begin {gather*} 2 \log \left (-2 x^2-x+4\right )-\log \left (-4 x^5+22 x^3-7 x^2-24 x+16\right )+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 628
Rule 1587
Rule 2074
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {1}{x}+\frac {2 (1+4 x)}{-4+x+2 x^2}-\frac {2 \left (12+7 x-33 x^2+10 x^4\right )}{-16+24 x+7 x^2-22 x^3+4 x^5}\right ) \, dx\\ &=\log (x)+2 \int \frac {1+4 x}{-4+x+2 x^2} \, dx-2 \int \frac {12+7 x-33 x^2+10 x^4}{-16+24 x+7 x^2-22 x^3+4 x^5} \, dx\\ &=\log (x)+2 \log \left (4-x-2 x^2\right )-\log \left (16-24 x-7 x^2+22 x^3-4 x^5\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 39, normalized size = 1.44 \begin {gather*} \log (x)+2 \log \left (4-x-2 x^2\right )-\log \left (16-24 x-7 x^2+22 x^3-4 x^5\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.82, size = 37, normalized size = 1.37 \begin {gather*} -\log \left (4 \, x^{5} - 22 \, x^{3} + 7 \, x^{2} + 24 \, x - 16\right ) + 2 \, \log \left (2 \, x^{2} + x - 4\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.25, size = 40, normalized size = 1.48 \begin {gather*} -\log \left ({\left | 4 \, x^{5} - 22 \, x^{3} + 7 \, x^{2} + 24 \, x - 16 \right |}\right ) + 2 \, \log \left ({\left | 2 \, x^{2} + x - 4 \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.05, size = 38, normalized size = 1.41
method | result | size |
default | \(\ln \relax (x )-\ln \left (4 x^{5}-22 x^{3}+7 x^{2}+24 x -16\right )+2 \ln \left (2 x^{2}+x -4\right )\) | \(38\) |
norman | \(\ln \relax (x )-\ln \left (4 x^{5}-22 x^{3}+7 x^{2}+24 x -16\right )+2 \ln \left (2 x^{2}+x -4\right )\) | \(38\) |
risch | \(\ln \relax (x )-\ln \left (4 x^{5}-22 x^{3}+7 x^{2}+24 x -16\right )+2 \ln \left (2 x^{2}+x -4\right )\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 37, normalized size = 1.37 \begin {gather*} -\log \left (4 \, x^{5} - 22 \, x^{3} + 7 \, x^{2} + 24 \, x - 16\right ) + 2 \, \log \left (2 \, x^{2} + x - 4\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 35, normalized size = 1.30 \begin {gather*} 2\,\ln \left (2\,x^2+x-4\right )+\ln \relax (x)-\ln \left (x^5-\frac {11\,x^3}{2}+\frac {7\,x^2}{4}+6\,x-4\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 36, normalized size = 1.33 \begin {gather*} \log {\relax (x )} + 2 \log {\left (2 x^{2} + x - 4 \right )} - \log {\left (4 x^{5} - 22 x^{3} + 7 x^{2} + 24 x - 16 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________