Optimal. Leaf size=27 \[ e^x-\frac {e^{\frac {i \pi -\log \left (\frac {16}{3}\right )}{x}}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 26, normalized size of antiderivative = 0.96, number of steps
used = 5, number of rules used = 4, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {14, 2225, 2325,
2326} \begin {gather*} e^x-\frac {\left (\frac {3}{16}\right )^{\frac {1}{x}} e^{\frac {i \pi }{x}}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2225
Rule 2325
Rule 2326
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (e^x+\frac {\left (\frac {3}{16}\right )^{\frac {1}{x}} e^{\frac {i \pi }{x}} \left (i \pi +x-\log \left (\frac {16}{3}\right )\right )}{x^3}\right ) \, dx\\ &=\int e^x \, dx+\int \frac {\left (\frac {3}{16}\right )^{\frac {1}{x}} e^{\frac {i \pi }{x}} \left (i \pi +x-\log \left (\frac {16}{3}\right )\right )}{x^3} \, dx\\ &=e^x+\int \frac {e^{\frac {i \pi -\log \left (\frac {16}{3}\right )}{x}} \left (i \pi +x-\log \left (\frac {16}{3}\right )\right )}{x^3} \, dx\\ &=e^x-\frac {\left (\frac {3}{16}\right )^{\frac {1}{x}} e^{\frac {i \pi }{x}}}{x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 27, normalized size = 1.00 \begin {gather*} e^x-\frac {e^{\frac {i \pi -\log \left (\frac {16}{3}\right )}{x}}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 191 vs. \(2 (20 ) = 40\).
time = 0.62, size = 192, normalized size = 7.11
method | result | size |
norman | \(\frac {{\mathrm e}^{x} x^{2}-{\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}} x}{x^{2}}\) | \(27\) |
risch | \({\mathrm e}^{x}-\frac {3^{\frac {1}{x}} \left (\frac {1}{16}\right )^{\frac {1}{x}} {\mathrm e}^{\frac {i \pi }{x}}}{x}\) | \(27\) |
meijerg | \(-\frac {1-{\mathrm e}^{-\frac {-\ln \left (\frac {3}{16}\right )-i \pi }{x}}}{-\ln \left (\frac {3}{16}\right )-i \pi }-\frac {\left (\ln \left (\frac {3}{16}\right )+i \pi \right ) \left (1-\frac {\left (2+\frac {-2 \ln \left (\frac {3}{16}\right )-2 i \pi }{x}\right ) {\mathrm e}^{-\frac {-\ln \left (\frac {3}{16}\right )-i \pi }{x}}}{2}\right )}{\left (-\ln \left (\frac {3}{16}\right )-i \pi \right )^{2}}-1+{\mathrm e}^{x}\) | \(92\) |
default | \({\mathrm e}^{x}-\frac {{\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}}}{\ln \left (\frac {3}{16}\right )+i \pi }+i \pi \left (-\frac {i {\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}} \pi }{\left (\ln \left (\frac {3}{16}\right )+i \pi \right )^{2} x}-\frac {{\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}} \ln \left (\frac {3}{16}\right )}{\left (\ln \left (\frac {3}{16}\right )+i \pi \right )^{2} x}+\frac {{\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}}}{\left (\ln \left (\frac {3}{16}\right )+i \pi \right )^{2}}\right )+\ln \left (\frac {3}{16}\right ) \left (-\frac {i {\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}} \pi }{\left (\ln \left (\frac {3}{16}\right )+i \pi \right )^{2} x}-\frac {{\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}} \ln \left (\frac {3}{16}\right )}{\left (\ln \left (\frac {3}{16}\right )+i \pi \right )^{2} x}+\frac {{\mathrm e}^{\frac {\ln \left (\frac {3}{16}\right )+i \pi }{x}}}{\left (\ln \left (\frac {3}{16}\right )+i \pi \right )^{2}}\right )\) | \(192\) |
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.39, size = 25, normalized size = 0.93 \begin {gather*} \frac {x e^{x} - e^{\left (\frac {i \, \pi }{x} + \frac {\log \left (\frac {3}{16}\right )}{x}\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1321 vs. \(2 (15) = 30\).
time = 48.01, size = 1321, normalized size = 48.93 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 25, normalized size = 0.93 \begin {gather*} \frac {x e^{x} - e^{\left (\frac {i \, \pi }{x} + \frac {\log \left (\frac {3}{16}\right )}{x}\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.04, size = 30, normalized size = 1.11 \begin {gather*} {\mathrm {e}}^x-\frac {3^{1/x}\,{\mathrm {e}}^{\frac {\Pi \,1{}\mathrm {i}}{x}}}{2^{4/x}\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________