Optimal. Leaf size=56 \[ \frac {16 b^2 \sqrt {f^x}}{\log ^3(f)}-\frac {8 b \sqrt {f^x} (a+b x)}{\log ^2(f)}+\frac {2 \sqrt {f^x} (a+b x)^2}{\log (f)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2207, 2225}
\begin {gather*} -\frac {8 b \sqrt {f^x} (a+b x)}{\log ^2(f)}+\frac {2 \sqrt {f^x} (a+b x)^2}{\log (f)}+\frac {16 b^2 \sqrt {f^x}}{\log ^3(f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2207
Rule 2225
Rubi steps
\begin {align*} \int \sqrt {f^x} (a+b x)^2 \, dx &=\frac {2 \sqrt {f^x} (a+b x)^2}{\log (f)}-\frac {(4 b) \int \sqrt {f^x} (a+b x) \, dx}{\log (f)}\\ &=-\frac {8 b \sqrt {f^x} (a+b x)}{\log ^2(f)}+\frac {2 \sqrt {f^x} (a+b x)^2}{\log (f)}+\frac {\left (8 b^2\right ) \int \sqrt {f^x} \, dx}{\log ^2(f)}\\ &=\frac {16 b^2 \sqrt {f^x}}{\log ^3(f)}-\frac {8 b \sqrt {f^x} (a+b x)}{\log ^2(f)}+\frac {2 \sqrt {f^x} (a+b x)^2}{\log (f)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 41, normalized size = 0.73 \begin {gather*} \frac {2 \sqrt {f^x} \left (8 b^2-4 b (a+b x) \log (f)+(a+b x)^2 \log ^2(f)\right )}{\log ^3(f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 60, normalized size = 1.07
method | result | size |
gosper | \(\frac {2 \left (b^{2} x^{2} \ln \left (f \right )^{2}+2 \ln \left (f \right )^{2} a b x +\ln \left (f \right )^{2} a^{2}-4 \ln \left (f \right ) b^{2} x -4 \ln \left (f \right ) b a +8 b^{2}\right ) \sqrt {f^{x}}}{\ln \left (f \right )^{3}}\) | \(60\) |
risch | \(\frac {2 \left (b^{2} x^{2} \ln \left (f \right )^{2}+2 \ln \left (f \right )^{2} a b x +\ln \left (f \right )^{2} a^{2}-4 \ln \left (f \right ) b^{2} x -4 \ln \left (f \right ) b a +8 b^{2}\right ) \sqrt {f^{x}}}{\ln \left (f \right )^{3}}\) | \(60\) |
meijerg | \(-\frac {8 b^{2} \sqrt {f^{x}}\, f^{-\frac {x}{2}} \left (2-\frac {\left (\frac {3 \ln \left (f \right )^{2} x^{2}}{4}-3 x \ln \left (f \right )+6\right ) {\mathrm e}^{\frac {x \ln \left (f \right )}{2}}}{3}\right )}{\ln \left (f \right )^{3}}+\frac {8 b a \sqrt {f^{x}}\, f^{-\frac {x}{2}} \left (1-\frac {\left (2-x \ln \left (f \right )\right ) {\mathrm e}^{\frac {x \ln \left (f \right )}{2}}}{2}\right )}{\ln \left (f \right )^{2}}-\frac {2 a^{2} \sqrt {f^{x}}\, f^{-\frac {x}{2}} \left (1-{\mathrm e}^{\frac {x \ln \left (f \right )}{2}}\right )}{\ln \left (f \right )}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 63, normalized size = 1.12 \begin {gather*} \frac {4 \, {\left (x \log \left (f\right ) - 2\right )} a b f^{\frac {1}{2} \, x}}{\log \left (f\right )^{2}} + \frac {2 \, a^{2} f^{\frac {1}{2} \, x}}{\log \left (f\right )} + \frac {2 \, {\left (x^{2} \log \left (f\right )^{2} - 4 \, x \log \left (f\right ) + 8\right )} b^{2} f^{\frac {1}{2} \, x}}{\log \left (f\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 94, normalized size = 1.68 \begin {gather*} \begin {cases} \frac {\left (2 a^{2} \log {\left (f \right )}^{2} + 4 a b x \log {\left (f \right )}^{2} - 8 a b \log {\left (f \right )} + 2 b^{2} x^{2} \log {\left (f \right )}^{2} - 8 b^{2} x \log {\left (f \right )} + 16 b^{2}\right ) \sqrt {f^{x}}}{\log {\left (f \right )}^{3}} & \text {for}\: \log {\left (f \right )}^{3} \neq 0 \\a^{2} x + a b x^{2} + \frac {b^{2} x^{3}}{3} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 5.52, size = 1392, normalized size = 24.86 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.67, size = 62, normalized size = 1.11 \begin {gather*} \sqrt {f^x}\,\left (\frac {2\,a^2\,{\ln \left (f\right )}^2-8\,a\,b\,\ln \left (f\right )+16\,b^2}{{\ln \left (f\right )}^3}+\frac {2\,b^2\,x^2}{\ln \left (f\right )}-\frac {4\,b\,x\,\left (2\,b-a\,\ln \left (f\right )\right )}{{\ln \left (f\right )}^2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________