Optimal. Leaf size=316 \[ \frac{i \text{PolyLog}\left (3,-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^3(f)}-\frac{i \text{PolyLog}\left (3,\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^3(f)}-\frac{i x \text{PolyLog}\left (2,-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^2(f)}+\frac{i x \text{PolyLog}\left (2,\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^2(f)}+\frac{x^2 \tan ^{-1}\left (\frac{\sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log (f)}-\frac{\tan ^{-1}\left (\frac{\sqrt{a} f^x}{\sqrt{b}}\right )}{4 a^{3/2} b^{3/2} \log ^3(f)}+\frac{x^2 f^x}{8 a b \log (f) \left (a f^{2 x}+b\right )}-\frac{x^2 f^x}{4 a \log (f) \left (a f^{2 x}+b\right )^2}+\frac{x f^x}{4 a b \log ^2(f) \left (a f^{2 x}+b\right )} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.91856, antiderivative size = 316, normalized size of antiderivative = 1., number of steps used = 43, number of rules used = 14, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.737 \[ \frac{i \text{PolyLog}\left (3,-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^3(f)}-\frac{i \text{PolyLog}\left (3,\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^3(f)}-\frac{i x \text{PolyLog}\left (2,-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^2(f)}+\frac{i x \text{PolyLog}\left (2,\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log ^2(f)}+\frac{x^2 \tan ^{-1}\left (\frac{\sqrt{a} f^x}{\sqrt{b}}\right )}{8 a^{3/2} b^{3/2} \log (f)}-\frac{\tan ^{-1}\left (\frac{\sqrt{a} f^x}{\sqrt{b}}\right )}{4 a^{3/2} b^{3/2} \log ^3(f)}+\frac{x^2 f^x}{8 a b \log (f) \left (a f^{2 x}+b\right )}-\frac{x^2 f^x}{4 a \log (f) \left (a f^{2 x}+b\right )^2}+\frac{x f^x}{4 a b \log ^2(f) \left (a f^{2 x}+b\right )} \]
Antiderivative was successfully verified.
[In] Int[x^2/(b/f^x + a*f^x)^3,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2/(b/(f**x)+a*f**x)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.747463, size = 254, normalized size = 0.8 \[ \frac{\frac{3 i \left (2 \text{PolyLog}\left (3,-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )-2 \text{PolyLog}\left (3,\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )-2 x \log (f) \text{PolyLog}\left (2,-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )+2 x \log (f) \text{PolyLog}\left (2,\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )+x^2 \log ^2(f) \log \left (1-\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )-x^2 \log ^2(f) \log \left (1+\frac{i \sqrt{a} f^x}{\sqrt{b}}\right )\right )}{b^{3/2}}-\frac{12 \tan ^{-1}\left (\frac{\sqrt{a} f^x}{\sqrt{b}}\right )}{b^{3/2}}-\frac{12 \sqrt{a} x^2 f^x \log ^2(f)}{\left (a f^{2 x}+b\right )^2}+\frac{6 \sqrt{a} x f^x \log (f) (x \log (f)+2)}{b \left (a f^{2 x}+b\right )}}{48 a^{3/2} \log ^3(f)} \]
Antiderivative was successfully verified.
[In] Integrate[x^2/(b/f^x + a*f^x)^3,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.116, size = 0, normalized size = 0. \[ \int{{x}^{2} \left ({\frac{b}{{f}^{x}}}+a{f}^{x} \right ) ^{-3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2/(b/(f^x)+a*f^x)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2/(a*f^x + b/f^x)^3,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.316012, size = 1010, normalized size = 3.2 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2/(a*f^x + b/f^x)^3,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{f^{- x} \left (a x^{2} \log{\left (f \right )} + 2 a x\right ) + f^{- 3 x} \left (- b x^{2} \log{\left (f \right )} + 2 b x\right )}{8 a^{3} b \log{\left (f \right )}^{2} + 16 a^{2} b^{2} f^{- 2 x} \log{\left (f \right )}^{2} + 8 a b^{3} f^{- 4 x} \log{\left (f \right )}^{2}} + \frac{\int \left (- \frac{2 f^{x}}{a f^{2 x} + b}\right )\, dx + \int \frac{f^{x} x^{2} \log{\left (f \right )}^{2}}{a f^{2 x} + b}\, dx}{8 a b \log{\left (f \right )}^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2/(b/(f**x)+a*f**x)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{2}}{{\left (a f^{x} + \frac{b}{f^{x}}\right )}^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2/(a*f^x + b/f^x)^3,x, algorithm="giac")
[Out]