Optimal. Leaf size=24 \[ 1-e^4+\frac {1}{x}+\frac {x}{5-x}+5 x^3 \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 18, normalized size of antiderivative = 0.75, number of steps used = 4, number of rules used = 3, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {1594, 27, 1620} \begin {gather*} 5 x^3+\frac {5}{5-x}+\frac {1}{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 {-25+10 x+4 x^2+375 x^4-150 x^5+15 x^6}{x^2 \left (25-10 x+x^2\right )} \, dx\\ &=\int \frac {-25+10 x+4 x^2+375 x^4-150 x^5+15 x^6}{(-5+x)^2 x^2} \, dx\\ &=\int \left (\frac {5}{(-5+x)^2}-\frac {1}{x^2}+15 x^2\right ) \, dx\\ &=\frac {5}{5-x}+\frac {1}{x}+5 x^3\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 16, normalized size = 0.67 \begin {gather*} -\frac {5}{-5+x}+\frac {1}{x}+5 x^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.84, size = 25, normalized size = 1.04 \begin {gather*} \frac {5 \, x^{5} - 25 \, x^{4} - 4 \, x - 5}{x^{2} - 5 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 22, normalized size = 0.92 \begin {gather*} 5 \, x^{3} - \frac {4 \, x + 5}{x^{2} - 5 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 17, normalized size = 0.71
method | result | size |
default | \(5 x^{3}-\frac {5}{x -5}+\frac {1}{x}\) | \(17\) |
risch | \(5 x^{3}+\frac {-4 x -5}{\left (x -5\right ) x}\) | \(21\) |
gosper | \(\frac {5 x^{5}-25 x^{4}-4 x -5}{x \left (x -5\right )}\) | \(25\) |
norman | \(\frac {5 x^{5}-25 x^{4}-4 x -5}{x \left (x -5\right )}\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 22, normalized size = 0.92 \begin {gather*} 5 \, x^{3} - \frac {4 \, x + 5}{x^{2} - 5 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.85, size = 21, normalized size = 0.88 \begin {gather*} 5\,x^3-\frac {4\,x+5}{x\,\left (x-5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 17, normalized size = 0.71 \begin {gather*} 5 x^{3} + \frac {- 4 x - 5}{x^{2} - 5 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________