Integrand size = 14, antiderivative size = 102 \[ \int e^{3 i \arctan (a x)} x^2 \, dx=\frac {i (1+i a x)^3}{a^3 \sqrt {1+a^2 x^2}}+\frac {(28 i-3 a x) \sqrt {1+a^2 x^2}}{6 a^3}+\frac {i (3+i a x)^2 \sqrt {1+a^2 x^2}}{3 a^3}+\frac {11 \text {arcsinh}(a x)}{2 a^3} \]
[Out]
Time = 0.40 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.643, Rules used = {5168, 1647, 1607, 12, 866, 1649, 1668, 794, 221} \[ \int e^{3 i \arctan (a x)} x^2 \, dx=\frac {11 \text {arcsinh}(a x)}{2 a^3}+\frac {i (1+i a x)^3}{a^3 \sqrt {a^2 x^2+1}}+\frac {i (3+i a x)^2 \sqrt {a^2 x^2+1}}{3 a^3}+\frac {(-3 a x+28 i) \sqrt {a^2 x^2+1}}{6 a^3} \]
[In]
[Out]
Rule 12
Rule 221
Rule 794
Rule 866
Rule 1607
Rule 1647
Rule 1649
Rule 1668
Rule 5168
Rubi steps \begin{align*} \text {integral}& = \int \frac {x^2 (1+i a x)^2}{(1-i a x) \sqrt {1+a^2 x^2}} \, dx \\ & = -\left ((i a) \int \frac {\sqrt {1+a^2 x^2} \left (\frac {i x^2}{a}-x^3\right )}{(1-i a x)^2} \, dx\right ) \\ & = -\left ((i a) \int \frac {\left (\frac {i}{a}-x\right ) x^2 \sqrt {1+a^2 x^2}}{(1-i a x)^2} \, dx\right ) \\ & = a^2 \int \frac {x^2 \left (1+a^2 x^2\right )^{3/2}}{a^2 (1-i a x)^3} \, dx \\ & = \int \frac {x^2 \left (1+a^2 x^2\right )^{3/2}}{(1-i a x)^3} \, dx \\ & = \int \frac {x^2 (1+i a x)^3}{\left (1+a^2 x^2\right )^{3/2}} \, dx \\ & = \frac {i (1+i a x)^3}{a^3 \sqrt {1+a^2 x^2}}-\int \frac {\left (-\frac {3}{a^2}-\frac {i x}{a}\right ) (1+i a x)^2}{\sqrt {1+a^2 x^2}} \, dx \\ & = \frac {i (1+i a x)^3}{a^3 \sqrt {1+a^2 x^2}}+\frac {i (3+i a x)^2 \sqrt {1+a^2 x^2}}{3 a^3}+\frac {1}{3} \int \frac {\left (-\frac {3}{a^2}-\frac {i x}{a}\right ) (-5-3 i a x)}{\sqrt {1+a^2 x^2}} \, dx \\ & = \frac {i (1+i a x)^3}{a^3 \sqrt {1+a^2 x^2}}+\frac {(28 i-3 a x) \sqrt {1+a^2 x^2}}{6 a^3}+\frac {i (3+i a x)^2 \sqrt {1+a^2 x^2}}{3 a^3}+\frac {11 \int \frac {1}{\sqrt {1+a^2 x^2}} \, dx}{2 a^2} \\ & = \frac {i (1+i a x)^3}{a^3 \sqrt {1+a^2 x^2}}+\frac {(28 i-3 a x) \sqrt {1+a^2 x^2}}{6 a^3}+\frac {i (3+i a x)^2 \sqrt {1+a^2 x^2}}{3 a^3}+\frac {11 \text {arcsinh}(a x)}{2 a^3} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.62 \[ \int e^{3 i \arctan (a x)} x^2 \, dx=\frac {\frac {\sqrt {1+a^2 x^2} \left (-52+19 i a x-7 a^2 x^2-2 i a^3 x^3\right )}{i+a x}+33 \text {arcsinh}(a x)}{6 a^3} \]
[In]
[Out]
Time = 0.40 (sec) , antiderivative size = 111, normalized size of antiderivative = 1.09
method | result | size |
risch | \(-\frac {i \left (2 a^{2} x^{2}-9 i a x -28\right ) \sqrt {a^{2} x^{2}+1}}{6 a^{3}}+\frac {11 \ln \left (\frac {a^{2} x}{\sqrt {a^{2}}}+\sqrt {a^{2} x^{2}+1}\right )}{2 a^{2} \sqrt {a^{2}}}-\frac {4 \sqrt {\left (x +\frac {i}{a}\right )^{2} a^{2}-2 i a \left (x +\frac {i}{a}\right )}}{a^{4} \left (x +\frac {i}{a}\right )}\) | \(111\) |
meijerg | \(\frac {-\frac {\sqrt {\pi }\, x \left (a^{2}\right )^{\frac {3}{2}}}{a^{2} \sqrt {a^{2} x^{2}+1}}+\frac {\sqrt {\pi }\, \left (a^{2}\right )^{\frac {3}{2}} \operatorname {arcsinh}\left (a x \right )}{a^{3}}}{a^{2} \sqrt {\pi }\, \sqrt {a^{2}}}+\frac {3 i \left (-2 \sqrt {\pi }+\frac {\sqrt {\pi }\, \left (4 a^{2} x^{2}+8\right )}{4 \sqrt {a^{2} x^{2}+1}}\right )}{a^{3} \sqrt {\pi }}-\frac {3 \left (\frac {\sqrt {\pi }\, x \left (a^{2}\right )^{\frac {5}{2}} \left (5 a^{2} x^{2}+15\right )}{10 a^{4} \sqrt {a^{2} x^{2}+1}}-\frac {3 \sqrt {\pi }\, \left (a^{2}\right )^{\frac {5}{2}} \operatorname {arcsinh}\left (a x \right )}{2 a^{5}}\right )}{a^{2} \sqrt {\pi }\, \sqrt {a^{2}}}-\frac {i \left (\frac {8 \sqrt {\pi }}{3}-\frac {\sqrt {\pi }\, \left (-2 a^{4} x^{4}+8 a^{2} x^{2}+16\right )}{6 \sqrt {a^{2} x^{2}+1}}\right )}{a^{3} \sqrt {\pi }}\) | \(212\) |
default | \(-\frac {x}{a^{2} \sqrt {a^{2} x^{2}+1}}+\frac {\ln \left (\frac {a^{2} x}{\sqrt {a^{2}}}+\sqrt {a^{2} x^{2}+1}\right )}{a^{2} \sqrt {a^{2}}}-3 a^{2} \left (\frac {x^{3}}{2 a^{2} \sqrt {a^{2} x^{2}+1}}-\frac {3 \left (-\frac {x}{a^{2} \sqrt {a^{2} x^{2}+1}}+\frac {\ln \left (\frac {a^{2} x}{\sqrt {a^{2}}}+\sqrt {a^{2} x^{2}+1}\right )}{a^{2} \sqrt {a^{2}}}\right )}{2 a^{2}}\right )-i a^{3} \left (\frac {x^{4}}{3 a^{2} \sqrt {a^{2} x^{2}+1}}-\frac {4 \left (\frac {x^{2}}{a^{2} \sqrt {a^{2} x^{2}+1}}+\frac {2}{a^{4} \sqrt {a^{2} x^{2}+1}}\right )}{3 a^{2}}\right )+3 i a \left (\frac {x^{2}}{a^{2} \sqrt {a^{2} x^{2}+1}}+\frac {2}{a^{4} \sqrt {a^{2} x^{2}+1}}\right )\) | \(236\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 80, normalized size of antiderivative = 0.78 \[ \int e^{3 i \arctan (a x)} x^2 \, dx=-\frac {24 \, a x + 33 \, {\left (a x + i\right )} \log \left (-a x + \sqrt {a^{2} x^{2} + 1}\right ) - {\left (-2 i \, a^{3} x^{3} - 7 \, a^{2} x^{2} + 19 i \, a x - 52\right )} \sqrt {a^{2} x^{2} + 1} + 24 i}{6 \, {\left (a^{4} x + i \, a^{3}\right )}} \]
[In]
[Out]
\[ \int e^{3 i \arctan (a x)} x^2 \, dx=- i \left (\int \frac {i x^{2}}{a^{2} x^{2} \sqrt {a^{2} x^{2} + 1} + \sqrt {a^{2} x^{2} + 1}}\, dx + \int \left (- \frac {3 a x^{3}}{a^{2} x^{2} \sqrt {a^{2} x^{2} + 1} + \sqrt {a^{2} x^{2} + 1}}\right )\, dx + \int \frac {a^{3} x^{5}}{a^{2} x^{2} \sqrt {a^{2} x^{2} + 1} + \sqrt {a^{2} x^{2} + 1}}\, dx + \int \left (- \frac {3 i a^{2} x^{4}}{a^{2} x^{2} \sqrt {a^{2} x^{2} + 1} + \sqrt {a^{2} x^{2} + 1}}\right )\, dx\right ) \]
[In]
[Out]
none
Time = 0.21 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.93 \[ \int e^{3 i \arctan (a x)} x^2 \, dx=-\frac {i \, a x^{4}}{3 \, \sqrt {a^{2} x^{2} + 1}} - \frac {3 \, x^{3}}{2 \, \sqrt {a^{2} x^{2} + 1}} + \frac {13 i \, x^{2}}{3 \, \sqrt {a^{2} x^{2} + 1} a} - \frac {11 \, x}{2 \, \sqrt {a^{2} x^{2} + 1} a^{2}} + \frac {11 \, \operatorname {arsinh}\left (a x\right )}{2 \, a^{3}} + \frac {26 i}{3 \, \sqrt {a^{2} x^{2} + 1} a^{3}} \]
[In]
[Out]
\[ \int e^{3 i \arctan (a x)} x^2 \, dx=\int { \frac {{\left (i \, a x + 1\right )}^{3} x^{2}}{{\left (a^{2} x^{2} + 1\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 114, normalized size of antiderivative = 1.12 \[ \int e^{3 i \arctan (a x)} x^2 \, dx=\frac {11\,\mathrm {asinh}\left (x\,\sqrt {a^2}\right )}{2\,a^2\,\sqrt {a^2}}-\frac {\sqrt {a^2\,x^2+1}\,\left (\frac {3\,x\,\sqrt {a^2}}{2\,a^2}-\frac {a\,14{}\mathrm {i}}{3\,{\left (a^2\right )}^{3/2}}+\frac {a^3\,x^2\,1{}\mathrm {i}}{3\,{\left (a^2\right )}^{3/2}}\right )}{\sqrt {a^2}}-\frac {4\,\sqrt {a^2\,x^2+1}}{a^2\,\left (x\,\sqrt {a^2}+\frac {\sqrt {a^2}\,1{}\mathrm {i}}{a}\right )\,\sqrt {a^2}} \]
[In]
[Out]