3.2.47 \(\int \frac {f^{a+\frac {b}{x^2}}}{x^2} \, dx\) [147]

Optimal. Leaf size=39 \[ -\frac {f^a \sqrt {\pi } \text {erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right )}{2 \sqrt {b} \sqrt {\log (f)}} \]

[Out]

-1/2*f^a*erfi(b^(1/2)*ln(f)^(1/2)/x)*Pi^(1/2)/b^(1/2)/ln(f)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2242, 2235} \begin {gather*} -\frac {\sqrt {\pi } f^a \text {Erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right )}{2 \sqrt {b} \sqrt {\log (f)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[f^(a + b/x^2)/x^2,x]

[Out]

-1/2*(f^a*Sqrt[Pi]*Erfi[(Sqrt[b]*Sqrt[Log[f]])/x])/(Sqrt[b]*Sqrt[Log[f]])

Rule 2235

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erfi[(c + d*x)*Rt[b*Log[F], 2
]]/(2*d*Rt[b*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2242

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Dist[1/(d*(m + 1))
, Subst[Int[F^(a + b*x^2), x], x, (c + d*x)^(m + 1)], x] /; FreeQ[{F, a, b, c, d, m, n}, x] && EqQ[n, 2*(m + 1
)]

Rubi steps

\begin {align*} \int \frac {f^{a+\frac {b}{x^2}}}{x^2} \, dx &=-\text {Subst}\left (\int f^{a+b x^2} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {f^a \sqrt {\pi } \text {erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right )}{2 \sqrt {b} \sqrt {\log (f)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 39, normalized size = 1.00 \begin {gather*} -\frac {f^a \sqrt {\pi } \text {erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right )}{2 \sqrt {b} \sqrt {\log (f)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[f^(a + b/x^2)/x^2,x]

[Out]

-1/2*(f^a*Sqrt[Pi]*Erfi[(Sqrt[b]*Sqrt[Log[f]])/x])/(Sqrt[b]*Sqrt[Log[f]])

________________________________________________________________________________________

Maple [A]
time = 0.02, size = 28, normalized size = 0.72

method result size
meijerg \(-\frac {f^{a} \erfi \left (\frac {\sqrt {b}\, \sqrt {\ln \left (f \right )}}{x}\right ) \sqrt {\pi }}{2 \sqrt {b}\, \sqrt {\ln \left (f \right )}}\) \(28\)
risch \(-\frac {f^{a} \sqrt {\pi }\, \erf \left (\frac {\sqrt {-b \ln \left (f \right )}}{x}\right )}{2 \sqrt {-b \ln \left (f \right )}}\) \(28\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(f^(a+b/x^2)/x^2,x,method=_RETURNVERBOSE)

[Out]

-1/2*f^a*erfi(b^(1/2)*ln(f)^(1/2)/x)*Pi^(1/2)/b^(1/2)/ln(f)^(1/2)

________________________________________________________________________________________

Maxima [A]
time = 0.31, size = 34, normalized size = 0.87 \begin {gather*} -\frac {\sqrt {\pi } f^{a} {\left (\operatorname {erf}\left (\sqrt {-\frac {b \log \left (f\right )}{x^{2}}}\right ) - 1\right )}}{2 \, x \sqrt {-\frac {b \log \left (f\right )}{x^{2}}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*sqrt(pi)*f^a*(erf(sqrt(-b*log(f)/x^2)) - 1)/(x*sqrt(-b*log(f)/x^2))

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 34, normalized size = 0.87 \begin {gather*} \frac {\sqrt {\pi } \sqrt {-b \log \left (f\right )} f^{a} \operatorname {erf}\left (\frac {\sqrt {-b \log \left (f\right )}}{x}\right )}{2 \, b \log \left (f\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*sqrt(pi)*sqrt(-b*log(f))*f^a*erf(sqrt(-b*log(f))/x)/(b*log(f))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {f^{a + \frac {b}{x^{2}}}}{x^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(f**(a+b/x**2)/x**2,x)

[Out]

Integral(f**(a + b/x**2)/x**2, x)

________________________________________________________________________________________

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]

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

[Out]

integrate(f^(a + b/x^2)/x^2, x)

________________________________________________________________________________________

Mupad [B]
time = 3.52, size = 28, normalized size = 0.72 \begin {gather*} -\frac {f^a\,\sqrt {\pi }\,\mathrm {erfi}\left (\frac {b\,\ln \left (f\right )}{x\,\sqrt {b\,\ln \left (f\right )}}\right )}{2\,\sqrt {b\,\ln \left (f\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(f^(a + b/x^2)/x^2,x)

[Out]

-(f^a*pi^(1/2)*erfi((b*log(f))/(x*(b*log(f))^(1/2))))/(2*(b*log(f))^(1/2))

________________________________________________________________________________________