Optimal. Leaf size=39 \[ -\frac{x^{m+1}}{m+1}+\frac{2 x^{m+1} \text{Hypergeometric2F1}(1,m+1,m+2,i a x)}{m+1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0226873, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {5062, 80, 64} \[ -\frac{x^{m+1}}{m+1}+\frac{2 x^{m+1} \text{Hypergeometric2F1}(1,m+1,m+2,i a x)}{m+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5062
Rule 80
Rule 64
Rubi steps
\begin{align*} \int e^{2 i \tan ^{-1}(a x)} x^m \, dx &=\int \frac{x^m (1+i a x)}{1-i a x} \, dx\\ &=-\frac{x^{1+m}}{1+m}+2 \int \frac{x^m}{1-i a x} \, dx\\ &=-\frac{x^{1+m}}{1+m}+\frac{2 x^{1+m} \, _2F_1(1,1+m;2+m;i a x)}{1+m}\\ \end{align*}
Mathematica [A] time = 0.0066885, size = 29, normalized size = 0.74 \[ \frac{x^{m+1} (-1+2 \text{Hypergeometric2F1}(1,m+1,m+2,i a x))}{m+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.463, size = 175, normalized size = 4.5 \begin{align*}{\frac{{x}^{1+m}}{1+m} \left ({\frac{1}{2}}+{\frac{m}{2}} \right ){\it LerchPhi} \left ( -{a}^{2}{x}^{2},1,{\frac{1}{2}}+{\frac{m}{2}} \right ) }+{\frac{i}{a} \left ({a}^{2} \right ) ^{-{\frac{m}{2}}} \left ( 2\,{\frac{{x}^{m} \left ({a}^{2} \right ) ^{m/2}}{m}}+{\frac{{x}^{m} \left ( -m-2 \right ) }{2+m} \left ({a}^{2} \right ) ^{{\frac{m}{2}}}{\it LerchPhi} \left ( -{a}^{2}{x}^{2},1,{\frac{m}{2}} \right ) } \right ) }-{\frac{1}{2} \left ({a}^{2} \right ) ^{-{\frac{1}{2}}-{\frac{m}{2}}} \left ( 2\,{\frac{{x}^{1+m} \left ({a}^{2} \right ) ^{3/2+m/2}}{{a}^{2} \left ( 1+m \right ) }}+{\frac{{x}^{1+m} \left ( -3-m \right ) }{{a}^{2} \left ( 3+m \right ) } \left ({a}^{2} \right ) ^{{\frac{3}{2}}+{\frac{m}{2}}}{\it LerchPhi} \left ( -{a}^{2}{x}^{2},1,{\frac{1}{2}}+{\frac{m}{2}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (i \, a x + 1\right )}^{2} x^{m}}{a^{2} x^{2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (a x - i\right )} x^{m}}{a x + i}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 3.93472, size = 269, normalized size = 6.9 \begin{align*} - \frac{a^{2} m x^{3} x^{m} \Phi \left (a^{2} x^{2} e^{i \pi }, 1, \frac{m}{2} + \frac{3}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )}{4 \Gamma \left (\frac{m}{2} + \frac{5}{2}\right )} - \frac{3 a^{2} x^{3} x^{m} \Phi \left (a^{2} x^{2} e^{i \pi }, 1, \frac{m}{2} + \frac{3}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )}{4 \Gamma \left (\frac{m}{2} + \frac{5}{2}\right )} + \frac{i a m x^{2} x^{m} \Phi \left (a^{2} x^{2} e^{i \pi }, 1, \frac{m}{2} + 1\right ) \Gamma \left (\frac{m}{2} + 1\right )}{2 \Gamma \left (\frac{m}{2} + 2\right )} + \frac{i a x^{2} x^{m} \Phi \left (a^{2} x^{2} e^{i \pi }, 1, \frac{m}{2} + 1\right ) \Gamma \left (\frac{m}{2} + 1\right )}{\Gamma \left (\frac{m}{2} + 2\right )} + \frac{m x x^{m} \Phi \left (a^{2} x^{2} e^{i \pi }, 1, \frac{m}{2} + \frac{1}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{1}{2}\right )}{4 \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )} + \frac{x x^{m} \Phi \left (a^{2} x^{2} e^{i \pi }, 1, \frac{m}{2} + \frac{1}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{1}{2}\right )}{4 \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (i \, a x + 1\right )}^{2} x^{m}}{a^{2} x^{2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]