Optimal. Leaf size=20 \[ 2 x+\log \left (5+x+\frac {1}{\left (5-x-x^2\right )^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 39, normalized size of antiderivative = 1.95, number of steps used = 4, number of rules used = 3, integrand size = 71, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {2074, 628, 1587} \begin {gather*} -2 \log \left (-x^2-x+5\right )+\log \left (x^5+7 x^4+x^3-55 x^2-25 x+126\right )+2 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 (2-\frac {2 (1+2 x)}{-5+x+x^2}+\frac {-25-110 x+3 x^2+28 x^3+5 x^4}{126-25 x-55 x^2+x^3+7 x^4+x^5}\right ) \, dx\\ &=2 x-2 \int \frac {1+2 x}{-5+x+x^2} \, dx+\int \frac {-25-110 x+3 x^2+28 x^3+5 x^4}{126-25 x-55 x^2+x^3+7 x^4+x^5} \, dx\\ &=2 x-2 \log \left (5-x-x^2\right )+\log \left (126-25 x-55 x^2+x^3+7 x^4+x^5\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 39, normalized size = 1.95 \begin {gather*} 2 x-2 \log \left (5-x-x^2\right )+\log \left (126-25 x-55 x^2+x^3+7 x^4+x^5\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.90, size = 35, normalized size = 1.75 \begin {gather*} 2 \, x + \log \left (x^{5} + 7 \, x^{4} + x^{3} - 55 \, x^{2} - 25 \, x + 126\right ) - 2 \, \log \left (x^{2} + x - 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 37, normalized size = 1.85 \begin {gather*} 2 \, x + \log \left ({\left | x^{5} + 7 \, x^{4} + x^{3} - 55 \, x^{2} - 25 \, x + 126 \right |}\right ) - 2 \, \log \left ({\left | x^{2} + x - 5 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 36, normalized size = 1.80
method | result | size |
default | \(2 x +\ln \left (x^{5}+7 x^{4}+x^{3}-55 x^{2}-25 x +126\right )-2 \ln \left (x^{2}+x -5\right )\) | \(36\) |
norman | \(2 x +\ln \left (x^{5}+7 x^{4}+x^{3}-55 x^{2}-25 x +126\right )-2 \ln \left (x^{2}+x -5\right )\) | \(36\) |
risch | \(2 x +\ln \left (x^{5}+7 x^{4}+x^{3}-55 x^{2}-25 x +126\right )-2 \ln \left (x^{2}+x -5\right )\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.34, size = 35, normalized size = 1.75 \begin {gather*} 2 \, x + \log \left (x^{5} + 7 \, x^{4} + x^{3} - 55 \, x^{2} - 25 \, x + 126\right ) - 2 \, \log \left (x^{2} + x - 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.59, size = 35, normalized size = 1.75 \begin {gather*} 2\,x-2\,\ln \left (x^2+x-5\right )+\ln \left (x^5+7\,x^4+x^3-55\,x^2-25\,x+126\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.15, size = 36, normalized size = 1.80 \begin {gather*} 2 x - 2 \log {\left (x^{2} + x - 5 \right )} + \log {\left (x^{5} + 7 x^{4} + x^{3} - 55 x^{2} - 25 x + 126 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________