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

3.7.12.1 Optimal result
3.7.12.2 Mathematica [A] (verified)
3.7.12.3 Rubi [A] (verified)
3.7.12.4 Maple [F]
3.7.12.5 Fricas [A] (verification not implemented)
3.7.12.6 Sympy [B] (verification not implemented)
3.7.12.7 Maxima [F]
3.7.12.8 Giac [F]
3.7.12.9 Mupad [F(-1)]

3.7.12.1 Optimal result

Integrand size = 26, antiderivative size = 257 \[ \int F^{f \left (a+b \log \left (c (d+e x)^n\right )\right )^2} (g+h x) \, dx=\frac {e^{-\frac {1+2 a b f n \log (F)}{b^2 f n^2 \log (F)}} h \sqrt {\pi } (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\frac {1}{n}+a b f \log (F)+b^2 f \log (F) \log \left (c (d+e x)^n\right )}{b \sqrt {f} \sqrt {\log (F)}}\right )}{2 b e^2 \sqrt {f} n \sqrt {\log (F)}}+\frac {e^{-\frac {1+4 a b f n \log (F)}{4 b^2 f n^2 \log (F)}} (e g-d h) \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\frac {1}{n}+2 a b f \log (F)+2 b^2 f \log (F) \log \left (c (d+e x)^n\right )}{2 b \sqrt {f} \sqrt {\log (F)}}\right )}{2 b e^2 \sqrt {f} n \sqrt {\log (F)}} \]

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

Time = 0.22 (sec) , antiderivative size = 221, normalized size of antiderivative = 0.86 \[ \int F^{f \left (a+b \log \left (c (d+e x)^n\right )\right )^2} (g+h x) \, dx=\frac {e^{-\frac {1+2 a b f n \log (F)}{b^2 f n^2 \log (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) \left (a+b \log \left (c (d+e x)^n\right )\right )}{b \sqrt {f} n \sqrt {\log (F)}}\right )+e^{\frac {3+4 a b f n \log (F)}{4 b^2 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) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 b \sqrt {f} n \sqrt {\log (F)}}\right )\right )}{2 b e^2 \sqrt {f} n \sqrt {\log (F)}} \]

input
Integrate[F^(f*(a + b*Log[c*(d + e*x)^n])^2)*(g + h*x),x]
 
output
(Sqrt[Pi]*(d + e*x)*(h*(d + e*x)*Erfi[(1 + b*f*n*Log[F]*(a + b*Log[c*(d + 
e*x)^n]))/(b*Sqrt[f]*n*Sqrt[Log[F]])] + E^((3 + 4*a*b*f*n*Log[F])/(4*b^2*f 
*n^2*Log[F]))*(e*g - d*h)*(c*(d + e*x)^n)^n^(-1)*Erfi[(1 + 2*b*f*n*Log[F]* 
(a + b*Log[c*(d + e*x)^n]))/(2*b*Sqrt[f]*n*Sqrt[Log[F]])]))/(2*b*e^2*E^((1 
 + 2*a*b*f*n*Log[F])/(b^2*f*n^2*Log[F]))*Sqrt[f]*n*(c*(d + e*x)^n)^(2/n)*S 
qrt[Log[F]])
 
3.7.12.3 Rubi [A] (verified)

Time = 0.55 (sec) , antiderivative size = 255, 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.077, Rules used = {2713, 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) F^{f \left (a+b \log \left (c (d+e x)^n\right )\right )^2} \, dx\)

\(\Big \downarrow \) 2713

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

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\frac {\sqrt {\pi } (d+e x) (e g-d h) \left (c (d+e x)^n\right )^{-1/n} e^{-\frac {4 a b f n \log (F)+1}{4 b^2 f n^2 \log (F)}} \text {erfi}\left (\frac {2 a b f \log (F)+2 b^2 f \log (F) \log \left (c (d+e x)^n\right )+\frac {1}{n}}{2 b \sqrt {f} \sqrt {\log (F)}}\right )}{2 b \sqrt {f} n \sqrt {\log (F)}}+\frac {\sqrt {\pi } h (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} e^{-\frac {2 a b f n \log (F)+1}{b^2 f n^2 \log (F)}} \text {erfi}\left (\frac {a b f \log (F)+b^2 f \log (F) \log \left (c (d+e x)^n\right )+\frac {1}{n}}{b \sqrt {f} \sqrt {\log (F)}}\right )}{2 b \sqrt {f} n \sqrt {\log (F)}}}{e^2}\)

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

3.7.12.3.1 Defintions of rubi rules used

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

rule 2713
Int[(F_)^(((a_.) + Log[(c_.)*((d_.) + (e_.)*(x_))^(n_.)]*(b_.))^2*(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.7.12.4 Maple [F]

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

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

Time = 0.30 (sec) , antiderivative size = 259, normalized size of antiderivative = 1.01 \[ \int F^{f \left (a+b \log \left (c (d+e x)^n\right )\right )^2} (g+h x) \, dx=-\frac {\sqrt {\pi } \sqrt {-b^{2} f n^{2} \log \left (F\right )} {\left (e g - d h\right )} \operatorname {erf}\left (\frac {{\left (2 \, b^{2} f n^{2} \log \left (e x + d\right ) \log \left (F\right ) + 2 \, b^{2} f n \log \left (F\right ) \log \left (c\right ) + 2 \, a b f n \log \left (F\right ) + 1\right )} \sqrt {-b^{2} f n^{2} \log \left (F\right )}}{2 \, b^{2} f n^{2} \log \left (F\right )}\right ) e^{\left (-\frac {4 \, b^{2} f n \log \left (F\right ) \log \left (c\right ) + 4 \, a b f n \log \left (F\right ) + 1}{4 \, b^{2} f n^{2} \log \left (F\right )}\right )} + \sqrt {\pi } \sqrt {-b^{2} f n^{2} \log \left (F\right )} h \operatorname {erf}\left (\frac {{\left (b^{2} f n^{2} \log \left (e x + d\right ) \log \left (F\right ) + b^{2} f n \log \left (F\right ) \log \left (c\right ) + a b f n \log \left (F\right ) + 1\right )} \sqrt {-b^{2} f n^{2} \log \left (F\right )}}{b^{2} f n^{2} \log \left (F\right )}\right ) e^{\left (-\frac {2 \, b^{2} f n \log \left (F\right ) \log \left (c\right ) + 2 \, a b f n \log \left (F\right ) + 1}{b^{2} f n^{2} \log \left (F\right )}\right )}}{2 \, b e^{2} n} \]

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

Leaf count of result is larger than twice the leaf count of optimal. 1149 vs. \(2 (243) = 486\).

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

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

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

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

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

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

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

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