Optimal. Leaf size=111 \[ \frac{\sqrt{\pi } a \sqrt{c} \sqrt{\log (f)} \text{Erfi}\left (\frac{\sqrt{c} \sqrt{\log (f)}}{a+b x}\right )}{b^2}-\frac{c \log (f) \text{Ei}\left (\frac{c \log (f)}{(a+b x)^2}\right )}{2 b^2}+\frac{(a+b x)^2 f^{\frac{c}{(a+b x)^2}}}{2 b^2}-\frac{a (a+b x) f^{\frac{c}{(a+b x)^2}}}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.118964, antiderivative size = 111, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.462, Rules used = {2226, 2206, 2211, 2204, 2214, 2210} \[ \frac{\sqrt{\pi } a \sqrt{c} \sqrt{\log (f)} \text{Erfi}\left (\frac{\sqrt{c} \sqrt{\log (f)}}{a+b x}\right )}{b^2}-\frac{c \log (f) \text{Ei}\left (\frac{c \log (f)}{(a+b x)^2}\right )}{2 b^2}+\frac{(a+b x)^2 f^{\frac{c}{(a+b x)^2}}}{2 b^2}-\frac{a (a+b x) f^{\frac{c}{(a+b x)^2}}}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2226
Rule 2206
Rule 2211
Rule 2204
Rule 2214
Rule 2210
Rubi steps
\begin{align*} \int f^{\frac{c}{(a+b x)^2}} x \, dx &=\int \left (-\frac{a f^{\frac{c}{(a+b x)^2}}}{b}+\frac{f^{\frac{c}{(a+b x)^2}} (a+b x)}{b}\right ) \, dx\\ &=\frac{\int f^{\frac{c}{(a+b x)^2}} (a+b x) \, dx}{b}-\frac{a \int f^{\frac{c}{(a+b x)^2}} \, dx}{b}\\ &=-\frac{a f^{\frac{c}{(a+b x)^2}} (a+b x)}{b^2}+\frac{f^{\frac{c}{(a+b x)^2}} (a+b x)^2}{2 b^2}+\frac{(c \log (f)) \int \frac{f^{\frac{c}{(a+b x)^2}}}{a+b x} \, dx}{b}-\frac{(2 a c \log (f)) \int \frac{f^{\frac{c}{(a+b x)^2}}}{(a+b x)^2} \, dx}{b}\\ &=-\frac{a f^{\frac{c}{(a+b x)^2}} (a+b x)}{b^2}+\frac{f^{\frac{c}{(a+b x)^2}} (a+b x)^2}{2 b^2}-\frac{c \text{Ei}\left (\frac{c \log (f)}{(a+b x)^2}\right ) \log (f)}{2 b^2}+\frac{(2 a c \log (f)) \operatorname{Subst}\left (\int f^{c x^2} \, dx,x,\frac{1}{a+b x}\right )}{b^2}\\ &=-\frac{a f^{\frac{c}{(a+b x)^2}} (a+b x)}{b^2}+\frac{f^{\frac{c}{(a+b x)^2}} (a+b x)^2}{2 b^2}+\frac{a \sqrt{c} \sqrt{\pi } \text{erfi}\left (\frac{\sqrt{c} \sqrt{\log (f)}}{a+b x}\right ) \sqrt{\log (f)}}{b^2}-\frac{c \text{Ei}\left (\frac{c \log (f)}{(a+b x)^2}\right ) \log (f)}{2 b^2}\\ \end{align*}
Mathematica [A] time = 0.053062, size = 89, normalized size = 0.8 \[ \frac{\left (b^2 x^2-a^2\right ) f^{\frac{c}{(a+b x)^2}}+2 \sqrt{\pi } a \sqrt{c} \sqrt{\log (f)} \text{Erfi}\left (\frac{\sqrt{c} \sqrt{\log (f)}}{a+b x}\right )-c \log (f) \text{Ei}\left (\frac{c \log (f)}{(a+b x)^2}\right )}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.032, size = 93, normalized size = 0.8 \begin{align*}{\frac{{x}^{2}}{2}{f}^{{\frac{c}{ \left ( bx+a \right ) ^{2}}}}}-{\frac{{a}^{2}}{2\,{b}^{2}}{f}^{{\frac{c}{ \left ( bx+a \right ) ^{2}}}}}+{\frac{c\ln \left ( f \right ) }{2\,{b}^{2}}{\it Ei} \left ( 1,-{\frac{c\ln \left ( f \right ) }{ \left ( bx+a \right ) ^{2}}} \right ) }+{\frac{ac\ln \left ( f \right ) \sqrt{\pi }}{{b}^{2}}{\it Erf} \left ({\frac{1}{bx+a}\sqrt{-c\ln \left ( f \right ) }} \right ){\frac{1}{\sqrt{-c\ln \left ( f \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} b c \int \frac{f^{\frac{c}{b^{2} x^{2} + 2 \, a b x + a^{2}}} x^{2}}{b^{3} x^{3} + 3 \, a b^{2} x^{2} + 3 \, a^{2} b x + a^{3}}\,{d x} \log \left (f\right ) + \frac{1}{2} \, f^{\frac{c}{b^{2} x^{2} + 2 \, a b x + a^{2}}} x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82717, size = 248, normalized size = 2.23 \begin{align*} -\frac{2 \, \sqrt{\pi } a b \sqrt{-\frac{c \log \left (f\right )}{b^{2}}} \operatorname{erf}\left (\frac{b \sqrt{-\frac{c \log \left (f\right )}{b^{2}}}}{b x + a}\right ) + c{\rm Ei}\left (\frac{c \log \left (f\right )}{b^{2} x^{2} + 2 \, a b x + a^{2}}\right ) \log \left (f\right ) -{\left (b^{2} x^{2} - a^{2}\right )} f^{\frac{c}{b^{2} x^{2} + 2 \, a b x + a^{2}}}}{2 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int f^{\frac{c}{{\left (b x + a\right )}^{2}}} x\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]