Optimal. Leaf size=21 \[ \frac {\log \left (\frac {e^{-x}}{x^3}\right )}{2-e-x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 54, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.093, Rules used = {6, 6820, 6874,
78, 2631} \begin {gather*} \frac {\log \left (\frac {e^{-x}}{x^3}\right )}{-x-e+2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 78
Rule 2631
Rule 6820
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-6+x+x^2+e (3+x)+x \log \left (\frac {e^{-x}}{x^3}\right )}{\left (4+e^2\right ) x-4 x^2+x^3+e \left (-4 x+2 x^2\right )} \, dx\\ &=\int \frac {(3+x) (-2+e+x)+x \log \left (\frac {e^{-x}}{x^3}\right )}{(2-e-x)^2 x} \, dx\\ &=\int \left (\frac {3+x}{x (-2+e+x)}+\frac {\log \left (\frac {e^{-x}}{x^3}\right )}{(-2+e+x)^2}\right ) \, dx\\ &=\int \frac {3+x}{x (-2+e+x)} \, dx+\int \frac {\log \left (\frac {e^{-x}}{x^3}\right )}{(-2+e+x)^2} \, dx\\ &=\frac {\log \left (\frac {e^{-x}}{x^3}\right )}{2-e-x}+\int \frac {3+x}{(2-e-x) x} \, dx+\int \left (\frac {3}{(-2+e) x}+\frac {-5+e}{(-2+e) (-2+e+x)}\right ) \, dx\\ &=\frac {(5-e) \log (2-e-x)}{2-e}+\frac {\log \left (\frac {e^{-x}}{x^3}\right )}{2-e-x}-\frac {3 \log (x)}{2-e}+\int \left (-\frac {3}{(-2+e) x}+\frac {5-e}{(-2+e) (-2+e+x)}\right ) \, dx\\ &=\frac {\log \left (\frac {e^{-x}}{x^3}\right )}{2-e-x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 22, normalized size = 1.05 \begin {gather*} -\frac {-2+e+x+\log \left (\frac {e^{-x}}{x^3}\right )}{-2+e+x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 1.96, size = 285, normalized size = 13.57
method | result | size |
norman | \(-\frac {\ln \left (\frac {{\mathrm e}^{-x}}{x^{3}}\right )}{{\mathrm e}-2+x}\) | \(19\) |
risch | \(-\frac {\ln \left ({\mathrm e}^{-x}\right )}{{\mathrm e}-2+x}+\frac {-i \pi \mathrm {csgn}\left (i x^{3}\right )^{3}+i \pi \mathrm {csgn}\left (i x^{3}\right )^{2} \mathrm {csgn}\left (i x \right )+i \pi \mathrm {csgn}\left (i x^{3}\right )^{2} \mathrm {csgn}\left (i x^{2}\right )-i \pi \,\mathrm {csgn}\left (i x^{3}\right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x^{2}\right )-i \pi \mathrm {csgn}\left (i x \right )^{2} \mathrm {csgn}\left (i x^{2}\right )+2 i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x^{2}\right )^{2}-i \pi \mathrm {csgn}\left (i x^{2}\right )^{3}+i \pi \,\mathrm {csgn}\left (\frac {i}{x^{3}}\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (\frac {i {\mathrm e}^{-x}}{x^{3}}\right )-i \pi \,\mathrm {csgn}\left (\frac {i}{x^{3}}\right ) \mathrm {csgn}\left (\frac {i {\mathrm e}^{-x}}{x^{3}}\right )^{2}-i \pi \,\mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (\frac {i {\mathrm e}^{-x}}{x^{3}}\right )^{2}+i \pi \mathrm {csgn}\left (\frac {i {\mathrm e}^{-x}}{x^{3}}\right )^{3}+6 \ln \left (x \right )}{2 \,{\mathrm e}-4+2 x}\) | \(249\) |
default | \(-\frac {{\mathrm e}}{{\mathrm e}-2+x}+\frac {2}{{\mathrm e}-2+x}-\frac {\ln \left (\frac {{\mathrm e}^{-x}}{x^{3}}\right )+x +3 \ln \left (x \right )}{{\mathrm e}-2+x}-\ln \left ({\mathrm e}-2+x \right )-\frac {3 \ln \left (x \right ) \left (\ln \left (\frac {{\mathrm e}-2-\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}+x}{{\mathrm e}-2-\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}\right )-\ln \left (\frac {{\mathrm e}-2+\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}+x}{{\mathrm e}-2+\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}\right )\right )}{2 \sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}-\frac {3 \dilog \left (\frac {{\mathrm e}-2-\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}+x}{{\mathrm e}-2-\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}\right )}{2 \sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}+\frac {3 \dilog \left (\frac {{\mathrm e}-2+\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}+x}{{\mathrm e}-2+\sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}\right )}{2 \sqrt {\left ({\mathrm e}\right )^{2}-{\mathrm e}^{2}}}-\frac {5 \ln \left ({\mathrm e}-2+x \right )}{{\mathrm e}-2}+\frac {\ln \left ({\mathrm e}-2+x \right ) {\mathrm e}}{{\mathrm e}-2}+\frac {3 \ln \left (x \right )}{{\mathrm e}-2}\) | \(285\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 189 vs.
\(2 (18) = 36\).
time = 0.28, size = 189, normalized size = 9.00 \begin {gather*} -3 \, {\left (\frac {\log \left (x + e - 2\right )}{e^{2} - 4 \, e + 4} - \frac {\log \left (x\right )}{e^{2} - 4 \, e + 4} - \frac {1}{x {\left (e - 2\right )} + e^{2} - 4 \, e + 4}\right )} e - \frac {{\left (e - 5\right )} \log \left (x + e - 2\right )}{e - 2} + \frac {e - 2}{x + e - 2} - \frac {e}{x + e - 2} + \frac {6 \, \log \left (x + e - 2\right )}{e^{2} - 4 \, e + 4} - \frac {6 \, \log \left (x\right )}{e^{2} - 4 \, e + 4} - \frac {3 \, \log \left (x\right )}{e - 2} - \frac {\log \left (\frac {e^{\left (-x\right )}}{x^{3}}\right )}{x + e - 2} - \frac {6}{x {\left (e - 2\right )} + e^{2} - 4 \, e + 4} - \frac {1}{x + e - 2} + \log \left (x + e - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 18, normalized size = 0.86 \begin {gather*} -\frac {\log \left (\frac {e^{\left (-x\right )}}{x^{3}}\right )}{x + e - 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 17, normalized size = 0.81 \begin {gather*} - \frac {\log {\left (\frac {e^{- x}}{x^{3}} \right )}}{x - 2 + e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 17, normalized size = 0.81 \begin {gather*} -\frac {e - 3 \, \log \left (x\right ) - 2}{x + e - 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.32, size = 16, normalized size = 0.76 \begin {gather*} \frac {x-\ln \left (\frac {1}{x^3}\right )}{x+\mathrm {e}-2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________