Optimal. Leaf size=17 \[ \log (a) \text{ExpIntegralEi}(x \log (a))-\frac{a^x}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0190059, antiderivative size = 17, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {2177, 2178} \[ \log (a) \text{ExpIntegralEi}(x \log (a))-\frac{a^x}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2177
Rule 2178
Rubi steps
\begin{align*} \int \frac{a^x}{x^2} \, dx &=-\frac{a^x}{x}+\log (a) \int \frac{a^x}{x} \, dx\\ &=-\frac{a^x}{x}+\text{Ei}(x \log (a)) \log (a)\\ \end{align*}
Mathematica [A] time = 0.0107686, size = 17, normalized size = 1. \[ \log (a) \text{ExpIntegralEi}(x \log (a))-\frac{a^x}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 21, normalized size = 1.2 \begin{align*} -{\frac{{a}^{x}}{x}}-\ln \left ( a \right ){\it Ei} \left ( 1,-x\ln \left ( a \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03775, size = 14, normalized size = 0.82 \begin{align*} \Gamma \left (-1, -x \log \left (a\right )\right ) \log \left (a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.67461, size = 45, normalized size = 2.65 \begin{align*} \frac{x{\rm Ei}\left (x \log \left (a\right )\right ) \log \left (a\right ) - a^{x}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a^{x}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a^{x}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]