Optimal. Leaf size=73 \[ \frac {1}{3} f^{a+\frac {b}{x^2}} x^3+\frac {2}{3} b f^{a+\frac {b}{x^2}} x \log (f)-\frac {2}{3} b^{3/2} f^a \sqrt {\pi } \text {erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right ) \log ^{\frac {3}{2}}(f) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2245, 2237,
2242, 2235} \begin {gather*} -\frac {2}{3} \sqrt {\pi } b^{3/2} f^a \log ^{\frac {3}{2}}(f) \text {Erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right )+\frac {2}{3} b x \log (f) f^{a+\frac {b}{x^2}}+\frac {1}{3} x^3 f^{a+\frac {b}{x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2237
Rule 2242
Rule 2245
Rubi steps
\begin {align*} \int f^{a+\frac {b}{x^2}} x^2 \, dx &=\frac {1}{3} f^{a+\frac {b}{x^2}} x^3+\frac {1}{3} (2 b \log (f)) \int f^{a+\frac {b}{x^2}} \, dx\\ &=\frac {1}{3} f^{a+\frac {b}{x^2}} x^3+\frac {2}{3} b f^{a+\frac {b}{x^2}} x \log (f)+\frac {1}{3} \left (4 b^2 \log ^2(f)\right ) \int \frac {f^{a+\frac {b}{x^2}}}{x^2} \, dx\\ &=\frac {1}{3} f^{a+\frac {b}{x^2}} x^3+\frac {2}{3} b f^{a+\frac {b}{x^2}} x \log (f)-\frac {1}{3} \left (4 b^2 \log ^2(f)\right ) \text {Subst}\left (\int f^{a+b x^2} \, dx,x,\frac {1}{x}\right )\\ &=\frac {1}{3} f^{a+\frac {b}{x^2}} x^3+\frac {2}{3} b f^{a+\frac {b}{x^2}} x \log (f)-\frac {2}{3} b^{3/2} f^a \sqrt {\pi } \text {erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right ) \log ^{\frac {3}{2}}(f)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 60, normalized size = 0.82 \begin {gather*} \frac {1}{3} f^a \left (-2 b^{3/2} \sqrt {\pi } \text {erfi}\left (\frac {\sqrt {b} \sqrt {\log (f)}}{x}\right ) \log ^{\frac {3}{2}}(f)+f^{\frac {b}{x^2}} x \left (x^2+2 b \log (f)\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 67, normalized size = 0.92
method | result | size |
risch | \(\frac {f^{a} x^{3} f^{\frac {b}{x^{2}}}}{3}+\frac {2 f^{a} \ln \left (f \right ) b x \,f^{\frac {b}{x^{2}}}}{3}-\frac {2 f^{a} \ln \left (f \right )^{2} b^{2} \sqrt {\pi }\, \erf \left (\frac {\sqrt {-b \ln \left (f \right )}}{x}\right )}{3 \sqrt {-b \ln \left (f \right )}}\) | \(67\) |
meijerg | \(\frac {f^{a} b \ln \left (f \right )^{\frac {3}{2}} \sqrt {-b}\, \left (-\frac {2 x^{3} \left (\frac {2 b \ln \left (f \right )}{x^{2}}+1\right ) {\mathrm e}^{\frac {b \ln \left (f \right )}{x^{2}}}}{3 \left (-b \right )^{\frac {3}{2}} \ln \left (f \right )^{\frac {3}{2}}}+\frac {4 b^{\frac {3}{2}} \sqrt {\pi }\, \erfi \left (\frac {\sqrt {b}\, \sqrt {\ln \left (f \right )}}{x}\right )}{3 \left (-b \right )^{\frac {3}{2}}}\right )}{2}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 28, normalized size = 0.38 \begin {gather*} \frac {1}{2} \, f^{a} x^{3} \left (-\frac {b \log \left (f\right )}{x^{2}}\right )^{\frac {3}{2}} \Gamma \left (-\frac {3}{2}, -\frac {b \log \left (f\right )}{x^{2}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 56, normalized size = 0.77 \begin {gather*} \frac {2}{3} \, \sqrt {\pi } \sqrt {-b \log \left (f\right )} b f^{a} \operatorname {erf}\left (\frac {\sqrt {-b \log \left (f\right )}}{x}\right ) \log \left (f\right ) + \frac {1}{3} \, {\left (x^{3} + 2 \, b x \log \left (f\right )\right )} f^{\frac {a x^{2} + b}{x^{2}}} \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 f^{a + \frac {b}{x^{2}}} 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 = 3.61, size = 71, normalized size = 0.97 \begin {gather*} x^3\,\left (\frac {f^a\,f^{\frac {b}{x^2}}}{3}+\frac {2\,b\,f^a\,f^{\frac {b}{x^2}}\,\ln \left (f\right )}{3\,x^2}\right )-\frac {2\,b^2\,f^a\,\sqrt {\pi }\,\mathrm {erfi}\left (\frac {b\,\ln \left (f\right )}{x\,\sqrt {b\,\ln \left (f\right )}}\right )\,{\ln \left (f\right )}^2}{3\,\sqrt {b\,\ln \left (f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________