Optimal. Leaf size=17 \[ -\frac {a^x}{x}+\text {Ei}(x \log (a)) \log (a) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, 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 = {2208, 2209}
\begin {gather*} \log (a) \text {ExpIntegralEi}(x \log (a))-\frac {a^x}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2208
Rule 2209
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.01, size = 17, normalized size = 1.00 \begin {gather*} -\frac {a^x}{x}+\text {Ei}(x \log (a)) \log (a) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 21, normalized size = 1.24
method | result | size |
risch | \(-\frac {a^{x}}{x}-\ln \left (a \right ) \expIntegral \left (1, -x \ln \left (a \right )\right )\) | \(21\) |
meijerg | \(-\ln \left (a \right ) \left (\frac {1}{x \ln \left (a \right )}+1-\ln \left (x \right )-i \pi -\ln \left (\ln \left (a \right )\right )-\frac {2+2 x \ln \left (a \right )}{2 x \ln \left (a \right )}+\frac {{\mathrm e}^{x \ln \left (a \right )}}{x \ln \left (a \right )}+\ln \left (-x \ln \left (a \right )\right )+\expIntegral \left (1, -x \ln \left (a \right )\right )\right )\) | \(70\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.06, size = 10, normalized size = 0.59 \begin {gather*} \Gamma \left (-1, -x \log \left (a\right )\right ) \log \left (a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.89, size = 19, normalized size = 1.12 \begin {gather*} \frac {x {\rm Ei}\left (x \log \left (a\right )\right ) \log \left (a\right ) - a^{x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a^{x}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 19, normalized size = 1.12 \begin {gather*} -\ln \left (a\right )\,\mathrm {expint}\left (-x\,\ln \left (a\right )\right )-\frac {a^x}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________