Optimal. Leaf size=23 \[ e^{-4 x-(1+x)^2} \left (x+\log \left (\frac {x}{\log (x)}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.04, antiderivative size = 35, normalized size of antiderivative = 1.52, number of steps
used = 21, number of rules used = 8, integrand size = 57, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {6874, 2266,
2236, 2272, 2273, 2268, 2635, 12} \begin {gather*} e^{-x^2-6 x-1} x+e^{-x^2-6 x-1} \log \left (\frac {x}{\log (x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2236
Rule 2266
Rule 2268
Rule 2272
Rule 2273
Rule 2635
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {e^{-1-6 x-x^2} \left (-1+\log (x)+x \log (x)-6 x^2 \log (x)-2 x^3 \log (x)\right )}{x \log (x)}-2 e^{-1-6 x-x^2} (3+x) \log \left (\frac {x}{\log (x)}\right )\right ) \, dx\\ &=-\left (2 \int e^{-1-6 x-x^2} (3+x) \log \left (\frac {x}{\log (x)}\right ) \, dx\right )+\int \frac {e^{-1-6 x-x^2} \left (-1+\log (x)+x \log (x)-6 x^2 \log (x)-2 x^3 \log (x)\right )}{x \log (x)} \, dx\\ &=e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )+2 \int -\frac {e^{-1-6 x-x^2} (-1+\log (x))}{2 x \log (x)} \, dx+\int \left (\frac {e^{-1-6 x-x^2} \left (1+x-6 x^2-2 x^3\right )}{x}-\frac {e^{-1-6 x-x^2}}{x \log (x)}\right ) \, dx\\ &=e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )+\int \frac {e^{-1-6 x-x^2} \left (1+x-6 x^2-2 x^3\right )}{x} \, dx-\int \frac {e^{-1-6 x-x^2}}{x \log (x)} \, dx-\int \frac {e^{-1-6 x-x^2} (-1+\log (x))}{x \log (x)} \, dx\\ &=e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )+\int \left (e^{-1-6 x-x^2}+\frac {e^{-1-6 x-x^2}}{x}-6 e^{-1-6 x-x^2} x-2 e^{-1-6 x-x^2} x^2\right ) \, dx-\int \left (\frac {e^{-1-6 x-x^2}}{x}-\frac {e^{-1-6 x-x^2}}{x \log (x)}\right ) \, dx-\int \frac {e^{-1-6 x-x^2}}{x \log (x)} \, dx\\ &=e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )-2 \int e^{-1-6 x-x^2} x^2 \, dx-6 \int e^{-1-6 x-x^2} x \, dx+\int e^{-1-6 x-x^2} \, dx\\ &=3 e^{-1-6 x-x^2}+e^{-1-6 x-x^2} x+e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )+6 \int e^{-1-6 x-x^2} x \, dx+18 \int e^{-1-6 x-x^2} \, dx+e^8 \int e^{-\frac {1}{4} (-6-2 x)^2} \, dx-\int e^{-1-6 x-x^2} \, dx\\ &=e^{-1-6 x-x^2} x+\frac {1}{2} e^8 \sqrt {\pi } \text {erf}(3+x)+e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )-18 \int e^{-1-6 x-x^2} \, dx-e^8 \int e^{-\frac {1}{4} (-6-2 x)^2} \, dx+\left (18 e^8\right ) \int e^{-\frac {1}{4} (-6-2 x)^2} \, dx\\ &=e^{-1-6 x-x^2} x+9 e^8 \sqrt {\pi } \text {erf}(3+x)+e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )-\left (18 e^8\right ) \int e^{-\frac {1}{4} (-6-2 x)^2} \, dx\\ &=e^{-1-6 x-x^2} x+e^{-1-6 x-x^2} \log \left (\frac {x}{\log (x)}\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 22, normalized size = 0.96 \begin {gather*} e^{-1-6 x-x^2} \left (x+\log \left (\frac {x}{\log (x)}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.22, size = 123, normalized size = 5.35
method | result | size |
risch | \(-{\mathrm e}^{-x^{2}-6 x -1} \ln \left (\ln \left (x \right )\right )+\frac {\left (-i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i}{\ln \left (x \right )}\right ) \mathrm {csgn}\left (\frac {i x}{\ln \left (x \right )}\right )+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i x}{\ln \left (x \right )}\right )^{2}+i \pi \,\mathrm {csgn}\left (\frac {i}{\ln \left (x \right )}\right ) \mathrm {csgn}\left (\frac {i x}{\ln \left (x \right )}\right )^{2}-i \pi \mathrm {csgn}\left (\frac {i x}{\ln \left (x \right )}\right )^{3}+2 x +2 \ln \left (x \right )\right ) {\mathrm e}^{-x^{2}-6 x -1}}{2}\) | \(123\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 33, normalized size = 1.43 \begin {gather*} x e^{\left (-x^{2} - 6 \, x - 1\right )} + e^{\left (-x^{2} - 6 \, x - 1\right )} \log \left (\frac {x}{\log \left (x\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 6.26, size = 19, normalized size = 0.83 \begin {gather*} \left (x + \log {\left (\frac {x}{\log {\left (x \right )}} \right )}\right ) e^{- x^{2} - 6 x - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 60 vs.
\(2 (22) = 44\).
time = 0.40, size = 60, normalized size = 2.61 \begin {gather*} -{\left (x e^{\left (-x^{2} - 6 \, x\right )} \log \left (x\right ) - x e^{\left (-x^{2} - 6 \, x\right )} - e^{\left (-x^{2} - 6 \, x\right )} \log \left (x\right ) + e^{\left (-x^{2} - 6 \, x\right )} \log \left (\log \left (x\right )\right )\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int -\frac {{\mathrm {e}}^{-x^2-6\,x-1}\,\left (\ln \left (\frac {x}{\ln \left (x\right )}\right )\,\ln \left (x\right )\,\left (2\,x^2+6\,x\right )-\ln \left (x\right )\,\left (-2\,x^3-6\,x^2+x+1\right )+1\right )}{x\,\ln \left (x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________