3.162 \(\int \frac {a^x}{x^2} \, dx\)

Optimal. Leaf size=17 \[ \log (a) \text {Ei}(x \log (a))-\frac {a^x}{x} \]

[Out]

-a^x/x+Ei(x*ln(a))*ln(a)

________________________________________________________________________________________

Rubi [A]  time = 0.02, 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 = {2177, 2178} \[ \log (a) \text {ExpIntegralEi}(x \log (a))-\frac {a^x}{x} \]

Antiderivative was successfully verified.

[In]

Int[a^x/x^2,x]

[Out]

-(a^x/x) + ExpIntegralEi[x*Log[a]]*Log[a]

Rule 2177

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[((c + d*x)^(m
 + 1)*(b*F^(g*(e + f*x)))^n)/(d*(m + 1)), x] - Dist[(f*g*n*Log[F])/(d*(m + 1)), Int[(c + d*x)^(m + 1)*(b*F^(g*
(e + f*x)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && LtQ[m, -1] && IntegerQ[2*m] &&  !$UseGamma ===
True

Rule 2178

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - (c*f)/d))*ExpIntegral
Ei[(f*g*(c + d*x)*Log[F])/d])/d, x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !$UseGamma === True

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 \[ \log (a) \text {Ei}(x \log (a))-\frac {a^x}{x} \]

Antiderivative was successfully verified.

[In]

Integrate[a^x/x^2,x]

[Out]

-(a^x/x) + ExpIntegralEi[x*Log[a]]*Log[a]

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 19, normalized size = 1.12 \[ \frac {x {\rm Ei}\left (x \log \relax (a)\right ) \log \relax (a) - a^{x}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a^x/x^2,x, algorithm="fricas")

[Out]

(x*Ei(x*log(a))*log(a) - a^x)/x

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a^{x}}{x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a^x/x^2,x, algorithm="giac")

[Out]

integrate(a^x/x^2, x)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 21, normalized size = 1.24 \[ -\Ei \left (1, -x \ln \relax (a )\right ) \ln \relax (a )-\frac {a^{x}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a^x/x^2,x)

[Out]

-a^x/x-ln(a)*Ei(1,-x*ln(a))

________________________________________________________________________________________

maxima [A]  time = 0.59, size = 10, normalized size = 0.59 \[ \Gamma \left (-1, -x \log \relax (a)\right ) \log \relax (a) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a^x/x^2,x, algorithm="maxima")

[Out]

gamma(-1, -x*log(a))*log(a)

________________________________________________________________________________________

mupad [B]  time = 0.13, size = 19, normalized size = 1.12 \[ -\ln \relax (a)\,\mathrm {expint}\left (-x\,\ln \relax (a)\right )-\frac {a^x}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a^x/x^2,x)

[Out]

- log(a)*expint(-x*log(a)) - a^x/x

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a^{x}}{x^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a**x/x**2,x)

[Out]

Integral(a**x/x**2, x)

________________________________________________________________________________________