\(\int e^{\arctan (a x)} (c+a^2 c x^2)^2 \, dx\) [259]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 19, antiderivative size = 63 \[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=\frac {\left (\frac {1}{37}+\frac {6 i}{37}\right ) 2^{3-\frac {i}{2}} c^2 (1-i a x)^{3+\frac {i}{2}} \operatorname {Hypergeometric2F1}\left (-2+\frac {i}{2},3+\frac {i}{2},4+\frac {i}{2},\frac {1}{2} (1-i a x)\right )}{a} \] Output:

(1/37+6/37*I)*2^(3-1/2*I)*c^2*(1-I*a*x)^(3+1/2*I)*hypergeom([3+1/2*I, -2+1 
/2*I],[4+1/2*I],1/2-1/2*I*a*x)/a
 

Mathematica [A] (verified)

Time = 0.02 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.00 \[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=\frac {\left (\frac {1}{37}+\frac {6 i}{37}\right ) 2^{3-\frac {i}{2}} c^2 (1-i a x)^{3+\frac {i}{2}} \operatorname {Hypergeometric2F1}\left (-2+\frac {i}{2},3+\frac {i}{2},4+\frac {i}{2},\frac {1}{2} (1-i a x)\right )}{a} \] Input:

Integrate[E^ArcTan[a*x]*(c + a^2*c*x^2)^2,x]
 

Output:

((1/37 + (6*I)/37)*2^(3 - I/2)*c^2*(1 - I*a*x)^(3 + I/2)*Hypergeometric2F1 
[-2 + I/2, 3 + I/2, 4 + I/2, (1 - I*a*x)/2])/a
 

Rubi [A] (verified)

Time = 0.36 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {5596, 79}

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 e^{\arctan (a x)} \left (a^2 c x^2+c\right )^2 \, dx\)

\(\Big \downarrow \) 5596

\(\displaystyle c^2 \int (1-i a x)^{2+\frac {i}{2}} (i a x+1)^{2-\frac {i}{2}}dx\)

\(\Big \downarrow \) 79

\(\displaystyle \frac {\left (\frac {1}{37}+\frac {6 i}{37}\right ) 2^{3-\frac {i}{2}} c^2 (1-i a x)^{3+\frac {i}{2}} \operatorname {Hypergeometric2F1}\left (-2+\frac {i}{2},3+\frac {i}{2},4+\frac {i}{2},\frac {1}{2} (1-i a x)\right )}{a}\)

Input:

Int[E^ArcTan[a*x]*(c + a^2*c*x^2)^2,x]
 

Output:

((1/37 + (6*I)/37)*2^(3 - I/2)*c^2*(1 - I*a*x)^(3 + I/2)*Hypergeometric2F1 
[-2 + I/2, 3 + I/2, 4 + I/2, (1 - I*a*x)/2])/a
 

Defintions of rubi rules used

rule 79
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(( 
a + b*x)^(m + 1)/(b*(m + 1)*(b/(b*c - a*d))^n))*Hypergeometric2F1[-n, m + 1 
, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m, n}, x] 
&&  !IntegerQ[m] &&  !IntegerQ[n] && GtQ[b/(b*c - a*d), 0] && (RationalQ[m] 
 ||  !(RationalQ[n] && GtQ[-d/(b*c - a*d), 0]))
 

rule 5596
Int[E^(ArcTan[(a_.)*(x_)]*(n_.))*((c_) + (d_.)*(x_)^2)^(p_.), x_Symbol] :> 
Simp[c^p   Int[(1 - I*a*x)^(p + I*(n/2))*(1 + I*a*x)^(p - I*(n/2)), x], x] 
/; FreeQ[{a, c, d, n, p}, x] && EqQ[d, a^2*c] && (IntegerQ[p] || GtQ[c, 0])
 
Maple [F]

\[\int {\mathrm e}^{\arctan \left (a x \right )} \left (a^{2} c \,x^{2}+c \right )^{2}d x\]

Input:

int(exp(arctan(a*x))*(a^2*c*x^2+c)^2,x)
 

Output:

int(exp(arctan(a*x))*(a^2*c*x^2+c)^2,x)
 

Fricas [F]

\[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=\int { {\left (a^{2} c x^{2} + c\right )}^{2} e^{\left (\arctan \left (a x\right )\right )} \,d x } \] Input:

integrate(exp(arctan(a*x))*(a^2*c*x^2+c)^2,x, algorithm="fricas")
 

Output:

integral((a^4*c^2*x^4 + 2*a^2*c^2*x^2 + c^2)*e^(arctan(a*x)), x)
 

Sympy [F]

\[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=c^{2} \left (\int 2 a^{2} x^{2} e^{\operatorname {atan}{\left (a x \right )}}\, dx + \int a^{4} x^{4} e^{\operatorname {atan}{\left (a x \right )}}\, dx + \int e^{\operatorname {atan}{\left (a x \right )}}\, dx\right ) \] Input:

integrate(exp(atan(a*x))*(a**2*c*x**2+c)**2,x)
 

Output:

c**2*(Integral(2*a**2*x**2*exp(atan(a*x)), x) + Integral(a**4*x**4*exp(ata 
n(a*x)), x) + Integral(exp(atan(a*x)), x))
 

Maxima [F]

\[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=\int { {\left (a^{2} c x^{2} + c\right )}^{2} e^{\left (\arctan \left (a x\right )\right )} \,d x } \] Input:

integrate(exp(arctan(a*x))*(a^2*c*x^2+c)^2,x, algorithm="maxima")
 

Output:

integrate((a^2*c*x^2 + c)^2*e^(arctan(a*x)), x)
 

Giac [F]

\[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=\int { {\left (a^{2} c x^{2} + c\right )}^{2} e^{\left (\arctan \left (a x\right )\right )} \,d x } \] Input:

integrate(exp(arctan(a*x))*(a^2*c*x^2+c)^2,x, algorithm="giac")
 

Output:

integrate((a^2*c*x^2 + c)^2*e^(arctan(a*x)), x)
 

Mupad [F(-1)]

Timed out. \[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=\int {\mathrm {e}}^{\mathrm {atan}\left (a\,x\right )}\,{\left (c\,a^2\,x^2+c\right )}^2 \,d x \] Input:

int(exp(atan(a*x))*(c + a^2*c*x^2)^2,x)
 

Output:

int(exp(atan(a*x))*(c + a^2*c*x^2)^2, x)
 

Reduce [F]

\[ \int e^{\arctan (a x)} \left (c+a^2 c x^2\right )^2 \, dx=c^{2} \left (\int e^{\mathit {atan} \left (a x \right )}d x +\left (\int e^{\mathit {atan} \left (a x \right )} x^{4}d x \right ) a^{4}+2 \left (\int e^{\mathit {atan} \left (a x \right )} x^{2}d x \right ) a^{2}\right ) \] Input:

int(exp(atan(a*x))*(a^2*c*x^2+c)^2,x)
 

Output:

c**2*(int(e**atan(a*x),x) + int(e**atan(a*x)*x**4,x)*a**4 + 2*int(e**atan( 
a*x)*x**2,x)*a**2)