Optimal. Leaf size=164 \[ -\frac {\sqrt {\pi } 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} \log ^{\frac {3}{2}}(f)}+\frac {\sqrt {\pi } b^2 f^{a-\frac {b^2}{4 c}} \text {erfi}\left (\frac {\sqrt {\log (f)} (b+2 c x)}{2 \sqrt {c}}\right )}{8 c^{5/2} \sqrt {\log (f)}}-\frac {b f^{a+b x+c x^2}}{4 c^2 \log (f)}+\frac {x f^{a+b x+c x^2}}{2 c \log (f)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 164, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2241, 2240, 2234, 2204} \[ -\frac {\sqrt {\pi } 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} \log ^{\frac {3}{2}}(f)}+\frac {\sqrt {\pi } b^2 f^{a-\frac {b^2}{4 c}} \text {Erfi}\left (\frac {\sqrt {\log (f)} (b+2 c x)}{2 \sqrt {c}}\right )}{8 c^{5/2} \sqrt {\log (f)}}-\frac {b f^{a+b x+c x^2}}{4 c^2 \log (f)}+\frac {x f^{a+b x+c x^2}}{2 c \log (f)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2204
Rule 2234
Rule 2240
Rule 2241
Rubi steps
\begin {align*} \int f^{a+b x+c x^2} x^2 \, dx &=\frac {f^{a+b x+c x^2} x}{2 c \log (f)}-\frac {b \int f^{a+b x+c x^2} x \, dx}{2 c}-\frac {\int f^{a+b x+c x^2} \, dx}{2 c \log (f)}\\ &=-\frac {b f^{a+b x+c x^2}}{4 c^2 \log (f)}+\frac {f^{a+b x+c x^2} x}{2 c \log (f)}+\frac {b^2 \int f^{a+b x+c x^2} \, dx}{4 c^2}-\frac {f^{a-\frac {b^2}{4 c}} \int f^{\frac {(b+2 c x)^2}{4 c}} \, dx}{2 c \log (f)}\\ &=-\frac {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} \log ^{\frac {3}{2}}(f)}-\frac {b f^{a+b x+c x^2}}{4 c^2 \log (f)}+\frac {f^{a+b x+c x^2} x}{2 c \log (f)}+\frac {\left (b^2 f^{a-\frac {b^2}{4 c}}\right ) \int f^{\frac {(b+2 c x)^2}{4 c}} \, dx}{4 c^2}\\ &=-\frac {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} \log ^{\frac {3}{2}}(f)}-\frac {b f^{a+b x+c x^2}}{4 c^2 \log (f)}+\frac {f^{a+b x+c x^2} x}{2 c \log (f)}+\frac {b^2 f^{a-\frac {b^2}{4 c}} \sqrt {\pi } \text {erfi}\left (\frac {(b+2 c x) \sqrt {\log (f)}}{2 \sqrt {c}}\right )}{8 c^{5/2} \sqrt {\log (f)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 104, normalized size = 0.63 \[ \frac {f^{a-\frac {b^2}{4 c}} \left (\sqrt {\pi } \left (b^2 \log (f)-2 c\right ) \text {erfi}\left (\frac {\sqrt {\log (f)} (b+2 c x)}{2 \sqrt {c}}\right )-2 \sqrt {c} \sqrt {\log (f)} (b-2 c x) f^{\frac {(b+2 c x)^2}{4 c}}\right )}{8 c^{5/2} \log ^{\frac {3}{2}}(f)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 95, normalized size = 0.58 \[ \frac {2 \, {\left (2 \, c^{2} x - b c\right )} f^{c x^{2} + b x + a} \log \relax (f) - \frac {\sqrt {\pi } {\left (b^{2} \log \relax (f) - 2 \, c\right )} \sqrt {-c \log \relax (f)} \operatorname {erf}\left (\frac {{\left (2 \, c x + b\right )} \sqrt {-c \log \relax (f)}}{2 \, c}\right )}{f^{\frac {b^{2} - 4 \, a c}{4 \, c}}}}{8 \, c^{3} \log \relax (f)^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.42, size = 108, normalized size = 0.66 \[ -\frac {\frac {\sqrt {\pi } {\left (b^{2} \log \relax (f) - 2 \, c\right )} \operatorname {erf}\left (-\frac {1}{2} \, \sqrt {-c \log \relax (f)} {\left (2 \, x + \frac {b}{c}\right )}\right ) e^{\left (-\frac {b^{2} \log \relax (f) - 4 \, a c \log \relax (f)}{4 \, c}\right )}}{\sqrt {-c \log \relax (f)} \log \relax (f)} - \frac {2 \, {\left (c {\left (2 \, x + \frac {b}{c}\right )} - 2 \, b\right )} e^{\left (c x^{2} \log \relax (f) + b x \log \relax (f) + a \log \relax (f)\right )}}{\log \relax (f)}}{8 \, c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 163, normalized size = 0.99 \[ -\frac {\sqrt {\pi }\, b^{2} f^{a} f^{-\frac {b^{2}}{4 c}} \erf \left (\frac {b \ln \relax (f )}{2 \sqrt {-c \ln \relax (f )}}-\sqrt {-c \ln \relax (f )}\, x \right )}{8 \sqrt {-c \ln \relax (f )}\, c^{2}}+\frac {x \,f^{a} f^{b x} f^{c \,x^{2}}}{2 c \ln \relax (f )}-\frac {b \,f^{a} f^{b x} f^{c \,x^{2}}}{4 c^{2} \ln \relax (f )}+\frac {\sqrt {\pi }\, f^{a} f^{-\frac {b^{2}}{4 c}} \erf \left (\frac {b \ln \relax (f )}{2 \sqrt {-c \ln \relax (f )}}-\sqrt {-c \ln \relax (f )}\, x \right )}{4 \sqrt {-c \ln \relax (f )}\, c \ln \relax (f )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.08, size = 166, normalized size = 1.01 \[ \frac {{\left (\frac {\sqrt {\pi } {\left (2 \, c x + b\right )} b^{2} {\left (\operatorname {erf}\left (\frac {1}{2} \, \sqrt {-\frac {{\left (2 \, c x + b\right )}^{2} \log \relax (f)}{c}}\right ) - 1\right )} \log \relax (f)^{3}}{\sqrt {-\frac {{\left (2 \, c x + b\right )}^{2} \log \relax (f)}{c}} \left (c \log \relax (f)\right )^{\frac {5}{2}}} - \frac {4 \, {\left (2 \, c x + b\right )}^{3} \Gamma \left (\frac {3}{2}, -\frac {{\left (2 \, c x + b\right )}^{2} \log \relax (f)}{4 \, c}\right ) \log \relax (f)^{3}}{\left (-\frac {{\left (2 \, c x + b\right )}^{2} \log \relax (f)}{c}\right )^{\frac {3}{2}} \left (c \log \relax (f)\right )^{\frac {5}{2}}} - \frac {4 \, b c f^{\frac {{\left (2 \, c x + b\right )}^{2}}{4 \, c}} \log \relax (f)^{2}}{\left (c \log \relax (f)\right )^{\frac {5}{2}}}\right )} f^{a - \frac {b^{2}}{4 \, c}}}{8 \, \sqrt {c \log \relax (f)}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.60, size = 111, normalized size = 0.68 \[ \frac {f^a\,f^{c\,x^2}\,f^{b\,x}\,x}{2\,c\,\ln \relax (f)}-\frac {b\,f^a\,f^{c\,x^2}\,f^{b\,x}}{4\,c^2\,\ln \relax (f)}-\frac {f^{a-\frac {b^2}{4\,c}}\,\sqrt {\pi }\,\mathrm {erfi}\left (\frac {\frac {b\,\ln \relax (f)}{2}+c\,x\,\ln \relax (f)}{\sqrt {c\,\ln \relax (f)}}\right )\,\left (\frac {c}{4}-\frac {b^2\,\ln \relax (f)}{8}\right )}{c^2\,\ln \relax (f)\,\sqrt {c\,\ln \relax (f)}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int f^{a + b x + c x^{2}} x^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________