Optimal. Leaf size=13 \[ 4+\frac {1}{3-e+e^x}+x \]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 12, normalized size of antiderivative = 0.92, number of steps used = 3, number of rules used = 2, integrand size = 47, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {2282, 893} \begin {gather*} x+\frac {1}{e^x+3-e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 893
Rule 2282
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\operatorname {Subst}\left (\int \frac {(-3+e)^2+(5-2 e) x+x^2}{x (3-e+x)^2} \, dx,x,e^x\right )\\ &=\operatorname {Subst}\left (\int \left (-\frac {1}{(-3+e-x)^2}+\frac {1}{x}\right ) \, dx,x,e^x\right )\\ &=\frac {1}{3-e+e^x}+x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 12, normalized size = 0.92 \begin {gather*} \frac {1}{3-e+e^x}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.63, size = 25, normalized size = 1.92 \begin {gather*} \frac {x e - x e^{x} - 3 \, x - 1}{e - e^{x} - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.40, size = 15, normalized size = 1.15
method | result | size |
risch | \(x -\frac {1}{-{\mathrm e}^{x}+{\mathrm e}-3}\) | \(15\) |
norman | \(\frac {\left ({\mathrm e}-3\right ) x -{\mathrm e}^{x} x -1}{-{\mathrm e}^{x}+{\mathrm e}-3}\) | \(25\) |
default | \(\frac {\frac {{\mathrm e}^{2} x}{{\mathrm e}-3}+\frac {{\mathrm e}^{2}}{{\mathrm e}-3}-\frac {{\mathrm e}^{2} x \,{\mathrm e}^{x}}{{\mathrm e}^{2}-6 \,{\mathrm e}+9}}{-{\mathrm e}^{x}+{\mathrm e}-3}-\frac {{\mathrm e}^{2} \ln \left (-{\mathrm e}^{x}+{\mathrm e}-3\right )}{{\mathrm e}^{2}-6 \,{\mathrm e}+9}-\frac {{\mathrm e}}{-{\mathrm e}^{x}+{\mathrm e}-3}+\frac {2}{-{\mathrm e}^{x}+{\mathrm e}-3}+\ln \left (-{\mathrm e}^{x}+{\mathrm e}-3\right )+\frac {\frac {9 x}{{\mathrm e}-3}+\frac {9}{{\mathrm e}-3}-\frac {9 x \,{\mathrm e}^{x}}{{\mathrm e}^{2}-6 \,{\mathrm e}+9}}{-{\mathrm e}^{x}+{\mathrm e}-3}-\frac {9 \ln \left (-{\mathrm e}^{x}+{\mathrm e}-3\right )}{{\mathrm e}^{2}-6 \,{\mathrm e}+9}+\frac {-\frac {6 \,{\mathrm e}}{{\mathrm e}-3}-\frac {6 \,{\mathrm e} x}{{\mathrm e}-3}+\frac {6 \,{\mathrm e} x \,{\mathrm e}^{x}}{{\mathrm e}^{2}-6 \,{\mathrm e}+9}}{-{\mathrm e}^{x}+{\mathrm e}-3}+\frac {6 \,{\mathrm e} \ln \left (-{\mathrm e}^{x}+{\mathrm e}-3\right )}{{\mathrm e}^{2}-6 \,{\mathrm e}+9}\) | \(266\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.39, size = 14, normalized size = 1.08 \begin {gather*} x - \frac {1}{e - e^{x} - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.16, size = 28, normalized size = 2.15 \begin {gather*} \frac {1}{{\mathrm {e}}^x-\mathrm {e}+3}-\frac {3\,x-x\,\mathrm {e}}{\mathrm {e}-3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 10, normalized size = 0.77 \begin {gather*} x + \frac {1}{e^{x} - e + 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________