Optimal. Leaf size=29 \[ 4-x \left (x+\frac {3}{e-e^x+x+(4-3 x) x+x^2}\right ) \]
________________________________________________________________________________________
Rubi [F] time = 1.08, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {-2 e^2 x-2 e^{2 x} x-6 x^2-50 x^3+40 x^4-8 x^5+e^x \left (3-3 x+4 e x+20 x^2-8 x^3\right )+e \left (-3-20 x^2+8 x^3\right )}{e^2+e^{2 x}+25 x^2-20 x^3+4 x^4+e \left (10 x-4 x^2\right )+e^x \left (-2 e-10 x+4 x^2\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-2 e^2 x-2 e^{2 x} x+4 e^{1+x} x+e^x \left (3-3 x+20 x^2-8 x^3\right )-2 x^2 \left (3+25 x-20 x^2+4 x^3\right )+e \left (-3-20 x^2+8 x^3\right )}{\left (e-e^x-x (-5+2 x)\right )^2} \, dx\\ &=\int \left (-2 x+\frac {3 x \left (5-e-9 x+2 x^2\right )}{\left (-e+e^x-5 x+2 x^2\right )^2}-\frac {3 (-1+x)}{-e+e^x-5 x+2 x^2}\right ) \, dx\\ &=-x^2+3 \int \frac {x \left (5-e-9 x+2 x^2\right )}{\left (-e+e^x-5 x+2 x^2\right )^2} \, dx-3 \int \frac {-1+x}{-e+e^x-5 x+2 x^2} \, dx\\ &=-x^2+3 \int \left (-\frac {(-5+e) x}{\left (e-e^x+5 x-2 x^2\right )^2}-\frac {9 x^2}{\left (-e+e^x-5 x+2 x^2\right )^2}+\frac {2 x^3}{\left (-e+e^x-5 x+2 x^2\right )^2}\right ) \, dx-3 \int \left (-\frac {1}{-e+e^x-5 x+2 x^2}+\frac {x}{-e+e^x-5 x+2 x^2}\right ) \, dx\\ &=-x^2+3 \int \frac {1}{-e+e^x-5 x+2 x^2} \, dx-3 \int \frac {x}{-e+e^x-5 x+2 x^2} \, dx+6 \int \frac {x^3}{\left (-e+e^x-5 x+2 x^2\right )^2} \, dx-27 \int \frac {x^2}{\left (-e+e^x-5 x+2 x^2\right )^2} \, dx+(3 (5-e)) \int \frac {x}{\left (e-e^x+5 x-2 x^2\right )^2} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 26, normalized size = 0.90 \begin {gather*} -x^2+\frac {3 x}{-e+e^x-5 x+2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 46, normalized size = 1.59 \begin {gather*} -\frac {2 \, x^{4} - 5 \, x^{3} - x^{2} e + x^{2} e^{x} - 3 \, x}{2 \, x^{2} - 5 \, x - e + e^{x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.82, size = 46, normalized size = 1.59 \begin {gather*} -\frac {2 \, x^{4} - 5 \, x^{3} - x^{2} e + x^{2} e^{x} - 3 \, x}{2 \, x^{2} - 5 \, x - e + e^{x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.18, size = 27, normalized size = 0.93
method | result | size |
risch | \(-x^{2}-\frac {3 x}{-2 x^{2}+{\mathrm e}-{\mathrm e}^{x}+5 x}\) | \(27\) |
norman | \(\frac {\frac {{\mathrm e} \,{\mathrm e}^{x}}{2}+\left (-3-\frac {5 \,{\mathrm e}}{2}\right ) x +{\mathrm e}^{x} x^{2}-5 x^{3}+2 x^{4}-\frac {{\mathrm e}^{2}}{2}}{-2 x^{2}+{\mathrm e}-{\mathrm e}^{x}+5 x}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.65, size = 46, normalized size = 1.59 \begin {gather*} -\frac {2 \, x^{4} - 5 \, x^{3} - x^{2} e + x^{2} e^{x} - 3 \, x}{2 \, x^{2} - 5 \, x - e + e^{x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.94, size = 26, normalized size = 0.90 \begin {gather*} -\frac {3\,x}{5\,x+\mathrm {e}-{\mathrm {e}}^x-2\,x^2}-x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 20, normalized size = 0.69 \begin {gather*} - x^{2} + \frac {3 x}{2 x^{2} - 5 x + e^{x} - e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________