3.6.96 \(\int F^{f (a+b \log ^2(c (d+e x)^n))} (g+h x)^2 \, dx\) [596]

3.6.96.1 Optimal result
3.6.96.2 Mathematica [A] (verified)
3.6.96.3 Rubi [A] (verified)
3.6.96.4 Maple [F]
3.6.96.5 Fricas [A] (verification not implemented)
3.6.96.6 Sympy [B] (verification not implemented)
3.6.96.7 Maxima [F]
3.6.96.8 Giac [F]
3.6.96.9 Mupad [F(-1)]

3.6.96.1 Optimal result

Integrand size = 28, antiderivative size = 372 \[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=\frac {e^{-\frac {1}{b f n^2 \log (F)}} F^{a f} h (e g-d 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 )}{\sqrt {b} e^3 \sqrt {f} n \sqrt {\log (F)}}+\frac {e^{-\frac {1}{4 b f n^2 \log (F)}} F^{a f} (e g-d h)^2 \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^3 \sqrt {f} n \sqrt {\log (F)}}+\frac {e^{-\frac {9}{4 b f n^2 \log (F)}} F^{a f} h^2 \sqrt {\pi } (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {3+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^3 \sqrt {f} n \sqrt {\log (F)}} \]

output
F^(a*f)*h*(-d*h+e*g)*(e*x+d)^2*erfi((1+b*f*n*ln(F)*ln(c*(e*x+d)^n))/n/b^(1 
/2)/f^(1/2)/ln(F)^(1/2))*Pi^(1/2)/e^3/exp(1/b/f/n^2/ln(F))/n/((c*(e*x+d)^n 
)^(2/n))/b^(1/2)/f^(1/2)/ln(F)^(1/2)+1/2*F^(a*f)*(-d*h+e*g)^2*(e*x+d)*erfi 
(1/2*(1+2*b*f*n*ln(F)*ln(c*(e*x+d)^n))/n/b^(1/2)/f^(1/2)/ln(F)^(1/2))*Pi^( 
1/2)/e^3/exp(1/4/b/f/n^2/ln(F))/n/((c*(e*x+d)^n)^(1/n))/b^(1/2)/f^(1/2)/ln 
(F)^(1/2)+1/2*F^(a*f)*h^2*(e*x+d)^3*erfi(1/2*(3+2*b*f*n*ln(F)*ln(c*(e*x+d) 
^n))/n/b^(1/2)/f^(1/2)/ln(F)^(1/2))*Pi^(1/2)/e^3/exp(9/4/b/f/n^2/ln(F))/n/ 
((c*(e*x+d)^n)^(3/n))/b^(1/2)/f^(1/2)/ln(F)^(1/2)
 
3.6.96.2 Mathematica [A] (verified)

Time = 0.29 (sec) , antiderivative size = 303, normalized size of antiderivative = 0.81 \[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=\frac {e^{-\frac {9}{4 b f n^2 \log (F)}} F^{a f} \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-3/n} \left (-2 e^{\frac {5}{4 b f n^2 \log (F)}} h (-e g+d h) (d+e x) \left (c (d+e x)^n\right )^{\frac {1}{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 )+e^{\frac {2}{b f n^2 \log (F)}} (e g-d h)^2 \left (c (d+e x)^n\right )^{2/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 )+h^2 (d+e x)^2 \text {erfi}\left (\frac {3+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^3 \sqrt {f} n \sqrt {\log (F)}} \]

input
Integrate[F^(f*(a + b*Log[c*(d + e*x)^n]^2))*(g + h*x)^2,x]
 
output
(F^(a*f)*Sqrt[Pi]*(d + e*x)*(-2*E^(5/(4*b*f*n^2*Log[F]))*h*(-(e*g) + d*h)* 
(d + e*x)*(c*(d + e*x)^n)^n^(-1)*Erfi[(1 + b*f*n*Log[F]*Log[c*(d + e*x)^n] 
)/(Sqrt[b]*Sqrt[f]*n*Sqrt[Log[F]])] + E^(2/(b*f*n^2*Log[F]))*(e*g - d*h)^2 
*(c*(d + e*x)^n)^(2/n)*Erfi[(1 + 2*b*f*n*Log[F]*Log[c*(d + e*x)^n])/(2*Sqr 
t[b]*Sqrt[f]*n*Sqrt[Log[F]])] + h^2*(d + e*x)^2*Erfi[(3 + 2*b*f*n*Log[F]*L 
og[c*(d + e*x)^n])/(2*Sqrt[b]*Sqrt[f]*n*Sqrt[Log[F]])]))/(2*Sqrt[b]*e^3*E^ 
(9/(4*b*f*n^2*Log[F]))*Sqrt[f]*n*(c*(d + e*x)^n)^(3/n)*Sqrt[Log[F]])
 
3.6.96.3 Rubi [A] (verified)

Time = 0.63 (sec) , antiderivative size = 367, normalized size of antiderivative = 0.99, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {2707, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int (g+h x)^2 F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} \, dx\)

\(\Big \downarrow \) 2707

\(\displaystyle \frac {\int \left ((e g-d h)^2 F^{f \left (b \log ^2\left (c (d+e x)^n\right )+a\right )}+h^2 (d+e x)^2 F^{f \left (b \log ^2\left (c (d+e x)^n\right )+a\right )}+2 h (e g-d h) (d+e x) F^{f \left (b \log ^2\left (c (d+e x)^n\right )+a\right )}\right )d(d+e x)}{e^3}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\frac {\sqrt {\pi } h F^{a f} (d+e x)^2 (e g-d h) 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 )}{\sqrt {b} \sqrt {f} n \sqrt {\log (F)}}+\frac {\sqrt {\pi } F^{a f} (d+e x) (e g-d h)^2 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} \sqrt {f} n \sqrt {\log (F)}}+\frac {\sqrt {\pi } h^2 F^{a f} (d+e x)^3 e^{-\frac {9}{4 b f n^2 \log (F)}} \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {2 b f n \log (F) \log \left (c (d+e x)^n\right )+3}{2 \sqrt {b} \sqrt {f} n \sqrt {\log (F)}}\right )}{2 \sqrt {b} \sqrt {f} n \sqrt {\log (F)}}}{e^3}\)

input
Int[F^(f*(a + b*Log[c*(d + e*x)^n]^2))*(g + h*x)^2,x]
 
output
((F^(a*f)*h*(e*g - d*h)*Sqrt[Pi]*(d + e*x)^2*Erfi[(1 + b*f*n*Log[F]*Log[c* 
(d + e*x)^n])/(Sqrt[b]*Sqrt[f]*n*Sqrt[Log[F]])])/(Sqrt[b]*E^(1/(b*f*n^2*Lo 
g[F]))*Sqrt[f]*n*(c*(d + e*x)^n)^(2/n)*Sqrt[Log[F]]) + (F^(a*f)*(e*g - d*h 
)^2*Sqrt[Pi]*(d + e*x)*Erfi[(1 + 2*b*f*n*Log[F]*Log[c*(d + e*x)^n])/(2*Sqr 
t[b]*Sqrt[f]*n*Sqrt[Log[F]])])/(2*Sqrt[b]*E^(1/(4*b*f*n^2*Log[F]))*Sqrt[f] 
*n*(c*(d + e*x)^n)^n^(-1)*Sqrt[Log[F]]) + (F^(a*f)*h^2*Sqrt[Pi]*(d + e*x)^ 
3*Erfi[(3 + 2*b*f*n*Log[F]*Log[c*(d + e*x)^n])/(2*Sqrt[b]*Sqrt[f]*n*Sqrt[L 
og[F]])])/(2*Sqrt[b]*E^(9/(4*b*f*n^2*Log[F]))*Sqrt[f]*n*(c*(d + e*x)^n)^(3 
/n)*Sqrt[Log[F]]))/e^3
 

3.6.96.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2707
Int[(F_)^(((a_.) + Log[(c_.)*((d_.) + (e_.)*(x_))^(n_.)]^2*(b_.))*(f_.))*(( 
g_.) + (h_.)*(x_))^(m_.), x_Symbol] :> Simp[1/e^(m + 1)   Subst[Int[ExpandI 
ntegrand[F^(f*(a + b*Log[c*x^n]^2)), (e*g - d*h + h*x)^m, x], x], x, d + e* 
x], x] /; FreeQ[{F, a, b, c, d, e, f, g, h, n}, x] && IGtQ[m, 0]
 
3.6.96.4 Maple [F]

\[\int F^{f \left (a +b \ln \left (c \left (e x +d \right )^{n}\right )^{2}\right )} \left (h x +g \right )^{2}d x\]

input
int(F^(f*(a+b*ln(c*(e*x+d)^n)^2))*(h*x+g)^2,x)
 
output
int(F^(f*(a+b*ln(c*(e*x+d)^n)^2))*(h*x+g)^2,x)
 
3.6.96.5 Fricas [A] (verification not implemented)

Time = 0.34 (sec) , antiderivative size = 367, normalized size of antiderivative = 0.99 \[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=-\frac {\sqrt {\pi } \sqrt {-b f n^{2} \log \left (F\right )} h^{2} \operatorname {erf}\left (\frac {{\left (2 \, b f n^{2} \log \left (e x + d\right ) \log \left (F\right ) + 2 \, b f n \log \left (F\right ) \log \left (c\right ) + 3\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} - 12 \, b f n \log \left (F\right ) \log \left (c\right ) - 9}{4 \, b f n^{2} \log \left (F\right )}\right )} + \sqrt {\pi } \sqrt {-b f n^{2} \log \left (F\right )} {\left (e^{2} g^{2} - 2 \, d e g h + d^{2} h^{2}\right )} \operatorname {erf}\left (\frac {{\left (2 \, b f n^{2} \log \left (e x + 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 )} + 2 \, \sqrt {\pi } \sqrt {-b f n^{2} \log \left (F\right )} {\left (e g h - d h^{2}\right )} \operatorname {erf}\left (\frac {{\left (b f n^{2} \log \left (e x + 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 )}}{2 \, e^{3} n} \]

input
integrate(F^(f*(a+b*log(c*(e*x+d)^n)^2))*(h*x+g)^2,x, algorithm="fricas")
 
output
-1/2*(sqrt(pi)*sqrt(-b*f*n^2*log(F))*h^2*erf(1/2*(2*b*f*n^2*log(e*x + d)*l 
og(F) + 2*b*f*n*log(F)*log(c) + 3)*sqrt(-b*f*n^2*log(F))/(b*f*n^2*log(F))) 
*e^(1/4*(4*a*b*f^2*n^2*log(F)^2 - 12*b*f*n*log(F)*log(c) - 9)/(b*f*n^2*log 
(F))) + sqrt(pi)*sqrt(-b*f*n^2*log(F))*(e^2*g^2 - 2*d*e*g*h + d^2*h^2)*erf 
(1/2*(2*b*f*n^2*log(e*x + d)*log(F) + 2*b*f*n*log(F)*log(c) + 1)*sqrt(-b*f 
*n^2*log(F))/(b*f*n^2*log(F)))*e^(1/4*(4*a*b*f^2*n^2*log(F)^2 - 4*b*f*n*lo 
g(F)*log(c) - 1)/(b*f*n^2*log(F))) + 2*sqrt(pi)*sqrt(-b*f*n^2*log(F))*(e*g 
*h - d*h^2)*erf((b*f*n^2*log(e*x + d)*log(F) + b*f*n*log(F)*log(c) + 1)*sq 
rt(-b*f*n^2*log(F))/(b*f*n^2*log(F)))*e^((a*b*f^2*n^2*log(F)^2 - 2*b*f*n*l 
og(F)*log(c) - 1)/(b*f*n^2*log(F))))/(e^3*n)
 
3.6.96.6 Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 1027 vs. \(2 (343) = 686\).

Time = 89.20 (sec) , antiderivative size = 1027, normalized size of antiderivative = 2.76 \[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=\text {Too large to display} \]

input
integrate(F**(f*(a+b*ln(c*(e*x+d)**n)**2))*(h*x+g)**2,x)
 
output
Piecewise((-11*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d**3*f*h**2*n**2*lo 
g(F)/(9*e**3) - 11*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d**3*f*h**2*n*l 
og(F)*log(c*(d + e*x)**n)/(9*e**3) + 3*F**(a*f + b*f*log(c*(d + e*x)**n)** 
2)*b*d**2*f*g*h*n**2*log(F)/e**2 + 3*F**(a*f + b*f*log(c*(d + e*x)**n)**2) 
*b*d**2*f*g*h*n*log(F)*log(c*(d + e*x)**n)/e**2 + 11*F**(a*f + b*f*log(c*( 
d + e*x)**n)**2)*b*d**2*f*h**2*n**2*x*log(F)/(9*e**2) - 2*F**(a*f + b*f*lo 
g(c*(d + e*x)**n)**2)*b*d**2*f*h**2*n*x*log(F)*log(c*(d + e*x)**n)/(3*e**2 
) - 2*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d*f*g**2*n**2*log(F)/e - 2*F 
**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d*f*g**2*n*log(F)*log(c*(d + e*x)** 
n)/e - 3*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d*f*g*h*n**2*x*log(F)/e + 
 2*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d*f*g*h*n*x*log(F)*log(c*(d + e 
*x)**n)/e - 5*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d*f*h**2*n**2*x**2*l 
og(F)/(18*e) + F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*d*f*h**2*n*x**2*log 
(F)*log(c*(d + e*x)**n)/(3*e) + 2*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b* 
f*g**2*n**2*x*log(F) - 2*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*f*g**2*n* 
x*log(F)*log(c*(d + e*x)**n) + F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*f*g 
*h*n**2*x**2*log(F)/2 - F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*f*g*h*n*x* 
*2*log(F)*log(c*(d + e*x)**n) + 2*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b* 
f*h**2*n**2*x**3*log(F)/27 - 2*F**(a*f + b*f*log(c*(d + e*x)**n)**2)*b*f*h 
**2*n*x**3*log(F)*log(c*(d + e*x)**n)/9 + F**(a*f + b*f*log(c*(d + e*x)...
 
3.6.96.7 Maxima [F]

\[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=\int { {\left (h x + g\right )}^{2} F^{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + a\right )} f} \,d x } \]

input
integrate(F^(f*(a+b*log(c*(e*x+d)^n)^2))*(h*x+g)^2,x, algorithm="maxima")
 
output
integrate((h*x + g)^2*F^((b*log((e*x + d)^n*c)^2 + a)*f), x)
 
3.6.96.8 Giac [F]

\[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=\int { {\left (h x + g\right )}^{2} F^{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right )^{2} + a\right )} f} \,d x } \]

input
integrate(F^(f*(a+b*log(c*(e*x+d)^n)^2))*(h*x+g)^2,x, algorithm="giac")
 
output
integrate((h*x + g)^2*F^((b*log((e*x + d)^n*c)^2 + a)*f), x)
 
3.6.96.9 Mupad [F(-1)]

Timed out. \[ \int F^{f \left (a+b \log ^2\left (c (d+e x)^n\right )\right )} (g+h x)^2 \, dx=\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 )}^2 \,d x \]

input
int(F^(f*(a + b*log(c*(d + e*x)^n)^2))*(g + h*x)^2,x)
 
output
int(exp(f*log(F)*(a + b*log(c*(d + e*x)^n)^2))*(g + h*x)^2, x)