Optimal. Leaf size=87 \[ -\frac {f^x}{4 a \left (b+a f^{2 x}\right )^2 \log (f)}+\frac {f^x}{8 a b \left (b+a f^{2 x}\right ) \log (f)}+\frac {\tan ^{-1}\left (\frac {\sqrt {a} f^x}{\sqrt {b}}\right )}{8 a^{3/2} b^{3/2} \log (f)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {2320, 294, 205,
211} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt {a} f^x}{\sqrt {b}}\right )}{8 a^{3/2} b^{3/2} \log (f)}+\frac {f^x}{8 a b \log (f) \left (a f^{2 x}+b\right )}-\frac {f^x}{4 a \log (f) \left (a f^{2 x}+b\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 211
Rule 294
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{\left (b f^{-x}+a f^x\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {x^2}{\left (b+a x^2\right )^3} \, dx,x,f^x\right )}{\log (f)}\\ &=-\frac {f^x}{4 a \left (b+a f^{2 x}\right )^2 \log (f)}+\frac {\text {Subst}\left (\int \frac {1}{\left (b+a x^2\right )^2} \, dx,x,f^x\right )}{4 a \log (f)}\\ &=-\frac {f^x}{4 a \left (b+a f^{2 x}\right )^2 \log (f)}+\frac {f^x}{8 a b \left (b+a f^{2 x}\right ) \log (f)}+\frac {\text {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,f^x\right )}{8 a b \log (f)}\\ &=-\frac {f^x}{4 a \left (b+a f^{2 x}\right )^2 \log (f)}+\frac {f^x}{8 a b \left (b+a f^{2 x}\right ) \log (f)}+\frac {\tan ^{-1}\left (\frac {\sqrt {a} f^x}{\sqrt {b}}\right )}{8 a^{3/2} b^{3/2} \log (f)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.59, size = 70, normalized size = 0.80 \begin {gather*} \frac {\frac {\sqrt {a} \sqrt {b} f^x \left (-b+a f^{2 x}\right )}{\left (b+a f^{2 x}\right )^2}+\tan ^{-1}\left (\frac {\sqrt {a} f^x}{\sqrt {b}}\right )}{8 a^{3/2} b^{3/2} \log (f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 62, normalized size = 0.71
method | result | size |
derivativedivides | \(\frac {\frac {\frac {f^{3 x}}{8 b}-\frac {f^{x}}{8 a}}{\left (b +a \,f^{2 x}\right )^{2}}+\frac {\arctan \left (\frac {a \,f^{x}}{\sqrt {b a}}\right )}{8 b a \sqrt {b a}}}{\ln \left (f \right )}\) | \(62\) |
default | \(\frac {\frac {\frac {f^{3 x}}{8 b}-\frac {f^{x}}{8 a}}{\left (b +a \,f^{2 x}\right )^{2}}+\frac {\arctan \left (\frac {a \,f^{x}}{\sqrt {b a}}\right )}{8 b a \sqrt {b a}}}{\ln \left (f \right )}\) | \(62\) |
risch | \(\frac {f^{x} \left (a \,f^{2 x}-b \right )}{8 \ln \left (f \right ) b a \left (b +a \,f^{2 x}\right )^{2}}-\frac {\ln \left (f^{x}-\frac {b}{\sqrt {-b a}}\right )}{16 \sqrt {-b a}\, b a \ln \left (f \right )}+\frac {\ln \left (f^{x}+\frac {b}{\sqrt {-b a}}\right )}{16 \sqrt {-b a}\, b a \ln \left (f \right )}\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 90, normalized size = 1.03 \begin {gather*} -\frac {\frac {b}{f^{3 \, x}} - \frac {a}{f^{x}}}{8 \, {\left (a^{3} b + \frac {a b^{3}}{f^{4 \, x}} + \frac {2 \, a^{2} b^{2}}{f^{2 \, x}}\right )} \log \left (f\right )} - \frac {\arctan \left (\frac {b}{\sqrt {a b} f^{x}}\right )}{8 \, \sqrt {a b} a b \log \left (f\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 261, normalized size = 3.00 \begin {gather*} \left [\frac {2 \, a^{2} b f^{3 \, x} - 2 \, a b^{2} f^{x} - {\left (\sqrt {-a b} a^{2} f^{4 \, x} + 2 \, \sqrt {-a b} a b f^{2 \, x} + \sqrt {-a b} b^{2}\right )} \log \left (\frac {a f^{2 \, x} - 2 \, \sqrt {-a b} f^{x} - b}{a f^{2 \, x} + b}\right )}{16 \, {\left (a^{4} b^{2} f^{4 \, x} \log \left (f\right ) + 2 \, a^{3} b^{3} f^{2 \, x} \log \left (f\right ) + a^{2} b^{4} \log \left (f\right )\right )}}, \frac {a^{2} b f^{3 \, x} - a b^{2} f^{x} - {\left (\sqrt {a b} a^{2} f^{4 \, x} + 2 \, \sqrt {a b} a b f^{2 \, x} + \sqrt {a b} b^{2}\right )} \arctan \left (\frac {\sqrt {a b}}{a f^{x}}\right )}{8 \, {\left (a^{4} b^{2} f^{4 \, x} \log \left (f\right ) + 2 \, a^{3} b^{3} f^{2 \, x} \log \left (f\right ) + a^{2} b^{4} \log \left (f\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 87, normalized size = 1.00 \begin {gather*} \frac {a f^{- x} - b f^{- 3 x}}{8 a^{3} b \log {\left (f \right )} + 16 a^{2} b^{2} f^{- 2 x} \log {\left (f \right )} + 8 a b^{3} f^{- 4 x} \log {\left (f \right )}} + \frac {\operatorname {RootSum} {\left (256 z^{2} a^{3} b^{3} + 1, \left ( i \mapsto i \log {\left (- 16 i a^{2} b + f^{- x} \right )} \right )\right )}}{\log {\left (f \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.05, size = 66, normalized size = 0.76 \begin {gather*} \frac {\arctan \left (\frac {a f^{x}}{\sqrt {a b}}\right )}{8 \, \sqrt {a b} a b \log \left (f\right )} + \frac {a f^{3 \, x} - b f^{x}}{8 \, {\left (a f^{2 \, x} + b\right )}^{2} a b \log \left (f\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.64, size = 113, normalized size = 1.30 \begin {gather*} \frac {f^x}{8\,\left (a\,b^2\,\ln \left (f\right )+a^2\,b\,f^{2\,x}\,\ln \left (f\right )\right )}-\frac {f^x}{4\,\left (a\,b^2\,\ln \left (f\right )+a^3\,f^{4\,x}\,\ln \left (f\right )+2\,a^2\,b\,f^{2\,x}\,\ln \left (f\right )\right )}+\frac {\mathrm {atan}\left (\frac {f^x\,\sqrt {a^3\,b^3\,{\ln \left (f\right )}^2}}{a\,b^2\,\ln \left (f\right )}\right )}{8\,\sqrt {a^3\,b^3\,{\ln \left (f\right )}^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________