Optimal. Leaf size=242 \[ \frac {e^{-\frac {1}{b f n^2 \log (F)}} F^{a f} h \sqrt {\pi } (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {1+b f n \log (F) \log \left (c (d+e x)^n\right )}{\sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )}{2 \sqrt {b} e^2 \sqrt {f} n \sqrt {\log (F)}}+\frac {e^{-\frac {1}{4 b f n^2 \log (F)}} F^{a f} (e g-d h) \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {1+2 b f n \log (F) \log \left (c (d+e x)^n\right )}{2 \sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )}{2 \sqrt {b} e^2 \sqrt {f} n \sqrt {\log (F)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 242, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {2309, 2307,
2266, 2235, 2308} \begin {gather*} \frac {\sqrt {\pi } F^{a f} (d+e x) (e g-d h) e^{-\frac {1}{4 b f n^2 \log (F)}} \left (c (d+e x)^n\right )^{-1/n} \text {Erfi}\left (\frac {2 b f n \log (F) \log \left (c (d+e x)^n\right )+1}{2 \sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )}{2 \sqrt {b} e^2 \sqrt {f} n \sqrt {\log (F)}}+\frac {\sqrt {\pi } h F^{a f} (d+e x)^2 e^{-\frac {1}{b f n^2 \log (F)}} \left (c (d+e x)^n\right )^{-2/n} \text {Erfi}\left (\frac {b f n \log (F) \log \left (c (d+e x)^n\right )+1}{\sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )}{2 \sqrt {b} e^2 \sqrt {f} n \sqrt {\log (F)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2266
Rule 2307
Rule 2308
Rule 2309
Rubi steps
\begin {align*} \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x) \, dx &=\int \left (F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} g+F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} h x\right ) \, dx\\ &=g \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} \, dx+h \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} x \, dx\\ &=\frac {g \text {Subst}\left (\int F^{f \left (a+b \log ^2\left (c x^n\right )\right )} \, dx,x,d+e x\right )}{e}+h \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} x \, dx\\ &=h \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} x \, dx+\frac {\left (g (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{\frac {x}{n}+a f \log (F)+b f x^2 \log (F)} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{e n}\\ &=h \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} x \, dx+\frac {\left (e^{-\frac {1}{4 b f n^2 \log (F)}} F^{a f} g (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{\frac {\left (\frac {1}{n}+2 b f x \log (F)\right )^2}{4 b f \log (F)}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{e n}\\ &=\frac {e^{-\frac {1}{4 b f n^2 \log (F)}} F^{a f} g \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {1+2 b f n \log (F) \log \left (c (d+e x)^n\right )}{2 \sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )}{2 \sqrt {b} e \sqrt {f} n \sqrt {\log (F)}}+h \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} x \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 204, normalized size = 0.84 \begin {gather*} \frac {e^{-\frac {1}{b f n^2 \log (F)}} F^{a f} \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-2/n} \left (h (d+e x) \text {erfi}\left (\frac {1+b f n \log (F) \log \left (c (d+e x)^n\right )}{\sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )+e^{\frac {3}{4 b f n^2 \log (F)}} (e g-d h) \left (c (d+e x)^n\right )^{\frac {1}{n}} \text {erfi}\left (\frac {1+2 b f n \log (F) \log \left (c (d+e x)^n\right )}{2 \sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )\right )}{2 \sqrt {b} e^2 \sqrt {f} n \sqrt {\log (F)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int F^{f \left (a +b \ln \left (c \left (e x +d \right )^{n}\right )^{2}\right )} \left (h x +g \right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 234, normalized size = 0.97 \begin {gather*} \frac {{\left (\sqrt {\pi } \sqrt {-b f n^{2} \log \left (F\right )} {\left (d h - g e\right )} \operatorname {erf}\left (\frac {{\left (2 \, b f n^{2} \log \left (x e + d\right ) \log \left (F\right ) + 2 \, b f n \log \left (F\right ) \log \left (c\right ) + 1\right )} \sqrt {-b f n^{2} \log \left (F\right )}}{2 \, b f n^{2} \log \left (F\right )}\right ) e^{\left (\frac {4 \, a b f^{2} n^{2} \log \left (F\right )^{2} - 4 \, b f n \log \left (F\right ) \log \left (c\right ) - 1}{4 \, b f n^{2} \log \left (F\right )}\right )} - \sqrt {\pi } \sqrt {-b f n^{2} \log \left (F\right )} h \operatorname {erf}\left (\frac {{\left (b f n^{2} \log \left (x e + d\right ) \log \left (F\right ) + b f n \log \left (F\right ) \log \left (c\right ) + 1\right )} \sqrt {-b f n^{2} \log \left (F\right )}}{b f n^{2} \log \left (F\right )}\right ) e^{\left (\frac {a b f^{2} n^{2} \log \left (F\right )^{2} - 2 \, b f n \log \left (F\right ) \log \left (c\right ) - 1}{b f n^{2} \log \left (F\right )}\right )}\right )} e^{\left (-2\right )}}{2 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 581 vs.
\(2 (223) = 446\).
time = 27.69, size = 581, normalized size = 2.40 \begin {gather*} \begin {cases} \frac {3 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b d^{2} f h n^{2} \log {\left (F \right )}}{2 e^{2}} + \frac {3 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b d^{2} f h n \log {\left (F \right )} \log {\left (c \left (d + e x\right )^{n} \right )}}{2 e^{2}} - \frac {2 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b d f g n^{2} \log {\left (F \right )}}{e} - \frac {2 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b d f g n \log {\left (F \right )} \log {\left (c \left (d + e x\right )^{n} \right )}}{e} - \frac {3 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b d f h n^{2} x \log {\left (F \right )}}{2 e} + \frac {F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b d f h n x \log {\left (F \right )} \log {\left (c \left (d + e x\right )^{n} \right )}}{e} + 2 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b f g n^{2} x \log {\left (F \right )} - 2 F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b f g n x \log {\left (F \right )} \log {\left (c \left (d + e x\right )^{n} \right )} + \frac {F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b f h n^{2} x^{2} \log {\left (F \right )}}{4} - \frac {F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} b f h n x^{2} \log {\left (F \right )} \log {\left (c \left (d + e x\right )^{n} \right )}}{2} - \frac {F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} d^{2} h}{2 e^{2}} + \frac {F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} d g}{e} + F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} g x + \frac {F^{a f} F^{b f \log {\left (c \left (d + e x\right )^{n} \right )}^{2}} h x^{2}}{2} & \text {for}\: e \neq 0 \\F^{f \left (a + b \log {\left (c d^{n} \right )}^{2}\right )} \left (g x + \frac {h x^{2}}{2}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\mathrm {e}}^{f\,\ln \left (F\right )\,\left (b\,{\ln \left (c\,{\left (d+e\,x\right )}^n\right )}^2+a\right )}\,\left (g+h\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________