Optimal. Leaf size=19 \[ -3-\frac {5}{e^2}+e^{(-1+x)^2}+2 x+\log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 13, normalized size of antiderivative = 0.68, number of steps
used = 6, number of rules used = 4, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {14, 2259, 2240,
45} \begin {gather*} 2 x+e^{(x-1)^2}+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 45
Rule 2240
Rule 2259
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (2 e^{1-2 x+x^2} (-1+x)+\frac {1+2 x}{x}\right ) \, dx\\ &=2 \int e^{1-2 x+x^2} (-1+x) \, dx+\int \frac {1+2 x}{x} \, dx\\ &=2 \int e^{(-1+x)^2} (-1+x) \, dx+\int \left (2+\frac {1}{x}\right ) \, dx\\ &=e^{(-1+x)^2}+2 x+\log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 13, normalized size = 0.68 \begin {gather*} e^{(-1+x)^2}+2 x+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 16, normalized size = 0.84
method | result | size |
risch | \(2 x +\ln \left (x \right )+{\mathrm e}^{\left (x -1\right )^{2}}\) | \(13\) |
default | \(2 x +\ln \left (x \right )+{\mathrm e}^{x^{2}-2 x +1}\) | \(16\) |
norman | \(2 x +\ln \left (x \right )+{\mathrm e}^{x^{2}-2 x +1}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.31, size = 51, normalized size = 2.68 \begin {gather*} \frac {\sqrt {\pi } {\left (x - 1\right )} {\left (\operatorname {erf}\left (\sqrt {-{\left (x - 1\right )}^{2}}\right ) - 1\right )}}{\sqrt {-{\left (x - 1\right )}^{2}}} + i \, \sqrt {\pi } \operatorname {erf}\left (i \, x - i\right ) + 2 \, x + e^{\left ({\left (x - 1\right )}^{2}\right )} + \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 15, normalized size = 0.79 \begin {gather*} 2 \, x + e^{\left (x^{2} - 2 \, x + 1\right )} + \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 15, normalized size = 0.79 \begin {gather*} 2 x + e^{x^{2} - 2 x + 1} + \log {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 15, normalized size = 0.79 \begin {gather*} 2 \, x + e^{\left (x^{2} - 2 \, x + 1\right )} + \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 17, normalized size = 0.89 \begin {gather*} 2\,x+\ln \left (x\right )+{\mathrm {e}}^{-2\,x}\,{\mathrm {e}}^{x^2}\,\mathrm {e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________