Optimal. Leaf size=81 \[ \frac {f^{a+b x+c x^2}}{2 c \log (f)}-\frac {b f^{a-\frac {b^2}{4 c}} \sqrt {\pi } \text {erfi}\left (\frac {(b+2 c x) \sqrt {\log (f)}}{2 \sqrt {c}}\right )}{4 c^{3/2} \sqrt {\log (f)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2272, 2266,
2235} \begin {gather*} \frac {f^{a+b x+c x^2}}{2 c \log (f)}-\frac {\sqrt {\pi } b f^{a-\frac {b^2}{4 c}} \text {Erfi}\left (\frac {\sqrt {\log (f)} (b+2 c x)}{2 \sqrt {c}}\right )}{4 c^{3/2} \sqrt {\log (f)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2266
Rule 2272
Rubi steps
\begin {align*} \int f^{a+b x+c x^2} x \, dx &=\frac {f^{a+b x+c x^2}}{2 c \log (f)}-\frac {b \int f^{a+b x+c x^2} \, dx}{2 c}\\ &=\frac {f^{a+b x+c x^2}}{2 c \log (f)}-\frac {\left (b f^{a-\frac {b^2}{4 c}}\right ) \int f^{\frac {(b+2 c x)^2}{4 c}} \, dx}{2 c}\\ &=\frac {f^{a+b x+c x^2}}{2 c \log (f)}-\frac {b f^{a-\frac {b^2}{4 c}} \sqrt {\pi } \text {erfi}\left (\frac {(b+2 c x) \sqrt {\log (f)}}{2 \sqrt {c}}\right )}{4 c^{3/2} \sqrt {\log (f)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 81, normalized size = 1.00 \begin {gather*} \frac {f^{a+b x+c x^2}}{2 c \log (f)}-\frac {b f^{a-\frac {b^2}{4 c}} \sqrt {\pi } \text {erfi}\left (\frac {(b+2 c x) \sqrt {\log (f)}}{2 \sqrt {c}}\right )}{4 c^{3/2} \sqrt {\log (f)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 79, normalized size = 0.98
method | result | size |
risch | \(\frac {f^{c \,x^{2}} f^{b x} f^{a}}{2 c \ln \left (f \right )}+\frac {b \sqrt {\pi }\, f^{a} f^{-\frac {b^{2}}{4 c}} \erf \left (-\sqrt {-c \ln \left (f \right )}\, x +\frac {b \ln \left (f \right )}{2 \sqrt {-c \ln \left (f \right )}}\right )}{4 c \sqrt {-c \ln \left (f \right )}}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.37, size = 107, normalized size = 1.32 \begin {gather*} -\frac {{\left (\frac {\sqrt {\pi } {\left (2 \, c x + b\right )} b {\left (\operatorname {erf}\left (\frac {1}{2} \, \sqrt {-\frac {{\left (2 \, c x + b\right )}^{2} \log \left (f\right )}{c}}\right ) - 1\right )} \log \left (f\right )^{2}}{\sqrt {-\frac {{\left (2 \, c x + b\right )}^{2} \log \left (f\right )}{c}} \left (c \log \left (f\right )\right )^{\frac {3}{2}}} - \frac {2 \, c f^{\frac {{\left (2 \, c x + b\right )}^{2}}{4 \, c}} \log \left (f\right )}{\left (c \log \left (f\right )\right )^{\frac {3}{2}}}\right )} f^{a - \frac {b^{2}}{4 \, c}}}{4 \, \sqrt {c \log \left (f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 73, normalized size = 0.90 \begin {gather*} \frac {2 \, c f^{c x^{2} + b x + a} + \frac {\sqrt {\pi } \sqrt {-c \log \left (f\right )} b \operatorname {erf}\left (\frac {{\left (2 \, c x + b\right )} \sqrt {-c \log \left (f\right )}}{2 \, c}\right )}{f^{\frac {b^{2} - 4 \, a c}{4 \, c}}}}{4 \, c^{2} \log \left (f\right )} \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 + b x + c x^{2}} x\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.97, size = 80, normalized size = 0.99 \begin {gather*} \frac {\frac {\sqrt {\pi } b \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {-c \log \left (f\right )} {\left (2 \, x + \frac {b}{c}\right )}\right ) e^{\left (-\frac {b^{2} \log \left (f\right ) - 4 \, a c \log \left (f\right )}{4 \, c}\right )}}{\sqrt {-c \log \left (f\right )}} + \frac {2 \, e^{\left (c x^{2} \log \left (f\right ) + b x \log \left (f\right ) + a \log \left (f\right )\right )}}{\log \left (f\right )}}{4 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.57, size = 71, normalized size = 0.88 \begin {gather*} \frac {f^a\,f^{c\,x^2}\,f^{b\,x}}{2\,c\,\ln \left (f\right )}-\frac {b\,f^{a-\frac {b^2}{4\,c}}\,\sqrt {\pi }\,\mathrm {erfi}\left (\frac {\frac {b\,\ln \left (f\right )}{2}+c\,x\,\ln \left (f\right )}{\sqrt {c\,\ln \left (f\right )}}\right )}{4\,c\,\sqrt {c\,\ln \left (f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________