\(\int e^{i \arctan (a x)} x^m \, dx\) [156]

Optimal result
Mathematica [C] (warning: unable to verify)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [F]
Sympy [A] (verification not implemented)
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

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

x^(1+m)*hypergeom([1/2, 1/2+1/2*m],[3/2+1/2*m],-a^2*x^2)/(1+m)+I*a*x^(2+m) 
*hypergeom([1/2, 1+1/2*m],[2+1/2*m],-a^2*x^2)/(2+m)
 

Mathematica [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 6 vs. order 5 in optimal.

Time = 0.05 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.08 \[ \int e^{i \arctan (a x)} x^m \, dx=\frac {i x^{1+m} \sqrt {1-i a x} \sqrt {-i+a x} \operatorname {AppellF1}\left (1+m,-\frac {1}{2},\frac {1}{2},2+m,-i a x,i a x\right )}{(1+m) \sqrt {1+i a x} \sqrt {i+a x}} \] Input:

Integrate[E^(I*ArcTan[a*x])*x^m,x]
 

Output:

(I*x^(1 + m)*Sqrt[1 - I*a*x]*Sqrt[-I + a*x]*AppellF1[1 + m, -1/2, 1/2, 2 + 
 m, (-I)*a*x, I*a*x])/((1 + m)*Sqrt[1 + I*a*x]*Sqrt[I + a*x])
 

Rubi [A] (verified)

Time = 0.38 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {5583, 557, 278}

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 x^m e^{i \arctan (a x)} \, dx\)

\(\Big \downarrow \) 5583

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

\(\Big \downarrow \) 557

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

\(\Big \downarrow \) 278

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

Input:

Int[E^(I*ArcTan[a*x])*x^m,x]
 

Output:

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

Defintions of rubi rules used

rule 278
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( 
c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( 
-b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] &&  !IGtQ[p, 0] && (ILtQ[p, 0 
] || GtQ[a, 0])
 

rule 557
Int[((e_.)*(x_))^(m_)*((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_), x_Sym 
bol] :> Simp[c   Int[(e*x)^m*(a + b*x^2)^p, x], x] + Simp[d/e   Int[(e*x)^( 
m + 1)*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, p}, x]
 

rule 5583
Int[E^(ArcTan[(a_.)*(x_)]*(n_))*(x_)^(m_.), x_Symbol] :> Int[x^m*((1 - I*a* 
x)^((I*n + 1)/2)/((1 + I*a*x)^((I*n - 1)/2)*Sqrt[1 + a^2*x^2])), x] /; Free 
Q[{a, m}, x] && IntegerQ[(I*n - 1)/2]
 
Maple [A] (verified)

Time = 0.09 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.90

method result size
meijerg \(\frac {x^{1+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {m}{2}+\frac {1}{2}\right ], \left [\frac {3}{2}+\frac {m}{2}\right ], -a^{2} x^{2}\right )}{1+m}+\frac {i a \,x^{2+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {m}{2}+1\right ], \left [2+\frac {m}{2}\right ], -a^{2} x^{2}\right )}{2+m}\) \(71\)

Input:

int((1+I*a*x)/(a^2*x^2+1)^(1/2)*x^m,x,method=_RETURNVERBOSE)
 

Output:

x^(1+m)*hypergeom([1/2,1/2*m+1/2],[3/2+1/2*m],-a^2*x^2)/(1+m)+I*a*x^(2+m)* 
hypergeom([1/2,1/2*m+1],[2+1/2*m],-a^2*x^2)/(2+m)
 

Fricas [F]

\[ \int e^{i \arctan (a x)} x^m \, dx=\int { \frac {{\left (i \, a x + 1\right )} x^{m}}{\sqrt {a^{2} x^{2} + 1}} \,d x } \] Input:

integrate((1+I*a*x)/(a^2*x^2+1)^(1/2)*x^m,x, algorithm="fricas")
 

Output:

integral(I*sqrt(a^2*x^2 + 1)*x^m/(a*x + I), x)
 

Sympy [A] (verification not implemented)

Time = 1.50 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.19 \[ \int e^{i \arctan (a x)} x^m \, dx=\frac {i a x^{m + 2} \Gamma \left (\frac {m}{2} + 1\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + 1 \\ \frac {m}{2} + 2 \end {matrix}\middle | {a^{2} x^{2} e^{i \pi }} \right )}}{2 \Gamma \left (\frac {m}{2} + 2\right )} + \frac {x^{m + 1} \Gamma \left (\frac {m}{2} + \frac {1}{2}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + \frac {1}{2} \\ \frac {m}{2} + \frac {3}{2} \end {matrix}\middle | {a^{2} x^{2} e^{i \pi }} \right )}}{2 \Gamma \left (\frac {m}{2} + \frac {3}{2}\right )} \] Input:

integrate((1+I*a*x)/(a**2*x**2+1)**(1/2)*x**m,x)
 

Output:

I*a*x**(m + 2)*gamma(m/2 + 1)*hyper((1/2, m/2 + 1), (m/2 + 2,), a**2*x**2* 
exp_polar(I*pi))/(2*gamma(m/2 + 2)) + x**(m + 1)*gamma(m/2 + 1/2)*hyper((1 
/2, m/2 + 1/2), (m/2 + 3/2,), a**2*x**2*exp_polar(I*pi))/(2*gamma(m/2 + 3/ 
2))
 

Maxima [F]

\[ \int e^{i \arctan (a x)} x^m \, dx=\int { \frac {{\left (i \, a x + 1\right )} x^{m}}{\sqrt {a^{2} x^{2} + 1}} \,d x } \] Input:

integrate((1+I*a*x)/(a^2*x^2+1)^(1/2)*x^m,x, algorithm="maxima")
 

Output:

integrate((I*a*x + 1)*x^m/sqrt(a^2*x^2 + 1), x)
 

Giac [F]

\[ \int e^{i \arctan (a x)} x^m \, dx=\int { \frac {{\left (i \, a x + 1\right )} x^{m}}{\sqrt {a^{2} x^{2} + 1}} \,d x } \] Input:

integrate((1+I*a*x)/(a^2*x^2+1)^(1/2)*x^m,x, algorithm="giac")
 

Output:

integrate((I*a*x + 1)*x^m/sqrt(a^2*x^2 + 1), x)
 

Mupad [F(-1)]

Timed out. \[ \int e^{i \arctan (a x)} x^m \, dx=\int \frac {x^m\,\left (1+a\,x\,1{}\mathrm {i}\right )}{\sqrt {a^2\,x^2+1}} \,d x \] Input:

int((x^m*(a*x*1i + 1))/(a^2*x^2 + 1)^(1/2),x)
 

Output:

int((x^m*(a*x*1i + 1))/(a^2*x^2 + 1)^(1/2), x)
 

Reduce [F]

\[ \int e^{i \arctan (a x)} x^m \, dx=\int \frac {x^{m}}{\sqrt {a^{2} x^{2}+1}}d x +\left (\int \frac {x^{m} x}{\sqrt {a^{2} x^{2}+1}}d x \right ) a i \] Input:

int((1+I*a*x)/(a^2*x^2+1)^(1/2)*x^m,x)
                                                                                    
                                                                                    
 

Output:

int(x**m/sqrt(a**2*x**2 + 1),x) + int((x**m*x)/sqrt(a**2*x**2 + 1),x)*a*i