Optimal. Leaf size=29 \[ 4+\left (1+e^4\right )^2-x^2+5 \left (-4+x-\frac {3}{x (1+x)}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 21, normalized size of antiderivative = 0.72, number of steps used = 4, number of rules used = 3, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {1594, 27, 1620} \begin {gather*} -x^2+5 x+\frac {15}{x+1}-\frac {15}{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 {15+30 x+5 x^2+8 x^3+x^4-2 x^5}{x^2 \left (1+2 x+x^2\right )} \, dx\\ &=\int \frac {15+30 x+5 x^2+8 x^3+x^4-2 x^5}{x^2 (1+x)^2} \, dx\\ &=\int \left (5+\frac {15}{x^2}-2 x-\frac {15}{(1+x)^2}\right ) \, dx\\ &=-\frac {15}{x}+5 x-x^2+\frac {15}{1+x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 21, normalized size = 0.72 \begin {gather*} -\frac {15}{x}+5 x-x^2+\frac {15}{1+x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 24, normalized size = 0.83 \begin {gather*} -\frac {x^{4} - 4 \, x^{3} - 5 \, x^{2} + 15}{x^{2} + x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 18, normalized size = 0.62 \begin {gather*} -x^{2} + 5 \, x - \frac {15}{x^{2} + x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 20, normalized size = 0.69
method | result | size |
risch | \(-x^{2}+5 x -\frac {15}{x \left (x +1\right )}\) | \(20\) |
default | \(-x^{2}+5 x +\frac {15}{x +1}-\frac {15}{x}\) | \(22\) |
gosper | \(-\frac {x^{4}-4 x^{3}+5 x +15}{x \left (x +1\right )}\) | \(24\) |
norman | \(\frac {-x^{4}+4 x^{3}-5 x -15}{\left (x +1\right ) x}\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 18, normalized size = 0.62 \begin {gather*} -x^{2} + 5 \, x - \frac {15}{x^{2} + x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 19, normalized size = 0.66 \begin {gather*} 5\,x-\frac {15}{x\,\left (x+1\right )}-x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 12, normalized size = 0.41 \begin {gather*} - x^{2} + 5 x - \frac {15}{x^{2} + x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________