Optimal. Leaf size=19 \[ \left (-3-\frac {1}{e^{17}}+\frac {1-x}{x^2}+x\right )^2 \]
________________________________________________________________________________________
Rubi [B] time = 0.05, antiderivative size = 42, normalized size of antiderivative = 2.21, number of steps used = 3, number of rules used = 2, integrand size = 52, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.038, Rules used = {12, 14} \begin {gather*} \frac {1}{x^4}-\frac {2}{x^3}+x^2-\frac {5+\frac {2}{e^{17}}}{x^2}-2 \left (3+\frac {1}{e^{17}}\right ) x+\frac {2 \left (4+\frac {1}{e^{17}}\right )}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {\int \frac {4 x^2-2 x^3-2 x^5+e^{17} \left (-4+6 x+10 x^2-8 x^3-6 x^5+2 x^6\right )}{x^5} \, dx}{e^{17}}\\ &=\frac {\int \left (-2 \left (1+3 e^{17}\right )-\frac {4 e^{17}}{x^5}+\frac {6 e^{17}}{x^4}+\frac {2 \left (2+5 e^{17}\right )}{x^3}-\frac {2 \left (1+4 e^{17}\right )}{x^2}+2 e^{17} x\right ) \, dx}{e^{17}}\\ &=\frac {1}{x^4}-\frac {2}{x^3}-\frac {5+\frac {2}{e^{17}}}{x^2}+\frac {2 \left (4+\frac {1}{e^{17}}\right )}{x}-2 \left (3+\frac {1}{e^{17}}\right ) x+x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 43, normalized size = 2.26 \begin {gather*} \frac {1-2 x-5 x^2+8 x^3-6 x^5+x^6-\frac {2 x^2 \left (1-x+x^3\right )}{e^{17}}}{x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.46, size = 50, normalized size = 2.63 \begin {gather*} -\frac {{\left (2 \, x^{5} - 2 \, x^{3} + 2 \, x^{2} - {\left (x^{6} - 6 \, x^{5} + 8 \, x^{3} - 5 \, x^{2} - 2 \, x + 1\right )} e^{17}\right )} e^{\left (-17\right )}}{x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.47, size = 54, normalized size = 2.84 \begin {gather*} {\left (x^{2} e^{17} - 6 \, x e^{17} - 2 \, x + \frac {8 \, x^{3} e^{17} + 2 \, x^{3} - 5 \, x^{2} e^{17} - 2 \, x^{2} - 2 \, x e^{17} + e^{17}}{x^{4}}\right )} e^{\left (-17\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.07, size = 47, normalized size = 2.47
method | result | size |
risch | \(x^{2}-6 x -2 \,{\mathrm e}^{-17} x +\frac {{\mathrm e}^{-17} \left (\left (8 \,{\mathrm e}^{17}+2\right ) x^{3}+\left (-5 \,{\mathrm e}^{17}-2\right ) x^{2}-2 \,{\mathrm e}^{17} x +{\mathrm e}^{17}\right )}{x^{4}}\) | \(47\) |
default | \({\mathrm e}^{-17} \left ({\mathrm e}^{17} x^{2}-6 \,{\mathrm e}^{17} x -2 x +\frac {{\mathrm e}^{17}}{x^{4}}-\frac {5 \,{\mathrm e}^{17}+2}{x^{2}}-\frac {2 \left (-4 \,{\mathrm e}^{17}-1\right )}{x}-\frac {2 \,{\mathrm e}^{17}}{x^{3}}\right )\) | \(56\) |
norman | \(\frac {1+x^{6}-2 x -2 \left (3 \,{\mathrm e}^{17}+1\right ) {\mathrm e}^{-17} x^{5}+2 \left (4 \,{\mathrm e}^{17}+1\right ) {\mathrm e}^{-17} x^{3}-\left (5 \,{\mathrm e}^{17}+2\right ) {\mathrm e}^{-17} x^{2}}{x^{4}}\) | \(58\) |
gosper | \(\frac {\left (x^{6} {\mathrm e}^{17}-6 x^{5} {\mathrm e}^{17}-2 x^{5}+8 \,{\mathrm e}^{17} x^{3}-5 \,{\mathrm e}^{17} x^{2}+2 x^{3}-2 \,{\mathrm e}^{17} x -2 x^{2}+{\mathrm e}^{17}\right ) {\mathrm e}^{-17}}{x^{4}}\) | \(59\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.38, size = 53, normalized size = 2.79 \begin {gather*} {\left (x^{2} e^{17} - 2 \, x {\left (3 \, e^{17} + 1\right )} + \frac {2 \, x^{3} {\left (4 \, e^{17} + 1\right )} - x^{2} {\left (5 \, e^{17} + 2\right )} - 2 \, x e^{17} + e^{17}}{x^{4}}\right )} e^{\left (-17\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 50, normalized size = 2.63 \begin {gather*} x^2+\frac {{\mathrm {e}}^{-17}\,\left (\left (8\,{\mathrm {e}}^{17}+2\right )\,x^3+\left (-5\,{\mathrm {e}}^{17}-2\right )\,x^2-2\,{\mathrm {e}}^{17}\,x+{\mathrm {e}}^{17}\right )}{x^4}-x\,{\mathrm {e}}^{-17}\,\left (6\,{\mathrm {e}}^{17}+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.48, size = 54, normalized size = 2.84 \begin {gather*} \frac {x^{2} e^{17} + x \left (- 6 e^{17} - 2\right ) + \frac {x^{3} \left (2 + 8 e^{17}\right ) + x^{2} \left (- 5 e^{17} - 2\right ) - 2 x e^{17} + e^{17}}{x^{4}}}{e^{17}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________