Optimal. Leaf size=21 \[ x-x^2-\log \left (\frac {5+(-25+x)^2}{x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 20, normalized size of antiderivative = 0.95, number of steps used = 4, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {1594, 1628, 628} \begin {gather*} -x^2-\log \left (x^2-50 x+630\right )+x+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 628
Rule 1594
Rule 1628
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {630+630 x-1311 x^2+101 x^3-2 x^4}{x \left (630-50 x+x^2\right )} \, dx\\ &=\int \left (1+\frac {1}{x}-2 x-\frac {2 (-25+x)}{630-50 x+x^2}\right ) \, dx\\ &=x-x^2+\log (x)-2 \int \frac {-25+x}{630-50 x+x^2} \, dx\\ &=x-x^2+\log (x)-\log \left (630-50 x+x^2\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 20, normalized size = 0.95 \begin {gather*} x-x^2+\log (x)-\log \left (630-50 x+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 20, normalized size = 0.95 \begin {gather*} -x^{2} + x - \log \left (x^{2} - 50 \, x + 630\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 21, normalized size = 1.00 \begin {gather*} -x^{2} + x - \log \left (x^{2} - 50 \, x + 630\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.02, size = 21, normalized size = 1.00
method | result | size |
default | \(x -x^{2}+\ln \relax (x )-\ln \left (x^{2}-50 x +630\right )\) | \(21\) |
norman | \(x -x^{2}+\ln \relax (x )-\ln \left (x^{2}-50 x +630\right )\) | \(21\) |
risch | \(x -x^{2}+\ln \relax (x )-\ln \left (x^{2}-50 x +630\right )\) | \(21\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 20, normalized size = 0.95 \begin {gather*} -x^{2} + x - \log \left (x^{2} - 50 \, x + 630\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.23, size = 20, normalized size = 0.95 \begin {gather*} x-\ln \left (x^2-50\,x+630\right )+\ln \relax (x)-x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 17, normalized size = 0.81 \begin {gather*} - x^{2} + x + \log {\relax (x )} - \log {\left (x^{2} - 50 x + 630 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________