Integrand size = 16, antiderivative size = 267 \[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=2 \arctan \left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\sqrt {2} \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )+\sqrt {2} \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )-2 \text {arctanh}\left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\frac {\log \left (1+\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 267, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.875, Rules used = {5170, 132, 65, 246, 217, 1179, 642, 1176, 631, 210, 95, 304, 209, 212} \[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=2 \arctan \left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\sqrt {2} \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )+\sqrt {2} \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )-2 \text {arctanh}\left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\frac {\log \left (\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}+1\right )}{\sqrt {2}}+\frac {\log \left (\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}+1\right )}{\sqrt {2}} \]
[In]
[Out]
Rule 65
Rule 95
Rule 132
Rule 209
Rule 210
Rule 212
Rule 217
Rule 246
Rule 304
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 5170
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sqrt [4]{1-i a x}}{x \sqrt [4]{1+i a x}} \, dx \\ & = -\left ((i a) \int \frac {1}{(1-i a x)^{3/4} \sqrt [4]{1+i a x}} \, dx\right )+\int \frac {1}{x (1-i a x)^{3/4} \sqrt [4]{1+i a x}} \, dx \\ & = 4 \text {Subst}\left (\int \frac {1}{\sqrt [4]{2-x^4}} \, dx,x,\sqrt [4]{1-i a x}\right )+4 \text {Subst}\left (\int \frac {x^2}{-1+x^4} \, dx,x,\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right ) \\ & = -\left (2 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )\right )+2 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )+4 \text {Subst}\left (\int \frac {1}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right ) \\ & = 2 \arctan \left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-2 \text {arctanh}\left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )+2 \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )+2 \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right ) \\ & = 2 \arctan \left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-2 \text {arctanh}\left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\frac {\text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}}-\frac {\text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}}+\text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )+\text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right ) \\ & = 2 \arctan \left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-2 \text {arctanh}\left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\frac {\log \left (1+\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}}+\sqrt {2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )-\sqrt {2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right ) \\ & = 2 \arctan \left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\sqrt {2} \arctan \left (1-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )+\sqrt {2} \arctan \left (1+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )-2 \text {arctanh}\left (\frac {\sqrt [4]{1+i a x}}{\sqrt [4]{1-i a x}}\right )-\frac {\log \left (1+\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}-\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-i a x}}{\sqrt {1+i a x}}+\frac {\sqrt {2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt {2}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.02 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.36 \[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=2\ 2^{3/4} \sqrt [4]{1-i a x} \operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{4},\frac {5}{4},\frac {1}{2} (1-i a x)\right )-\frac {4 \sqrt [4]{1-i a x} \operatorname {Hypergeometric2F1}\left (\frac {1}{4},1,\frac {5}{4},-\frac {1-i a x}{-1-i a x}\right )}{\sqrt [4]{1+i a x}} \]
[In]
[Out]
\[\int \frac {1}{\sqrt {\frac {i a x +1}{\sqrt {a^{2} x^{2}+1}}}\, x}d x\]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 243, normalized size of antiderivative = 0.91 \[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=-\frac {1}{2} \, \sqrt {4 i} \log \left (\frac {1}{2} i \, \sqrt {4 i} + \sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}}\right ) + \frac {1}{2} \, \sqrt {4 i} \log \left (-\frac {1}{2} i \, \sqrt {4 i} + \sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}}\right ) + \frac {1}{2} \, \sqrt {-4 i} \log \left (\frac {1}{2} i \, \sqrt {-4 i} + \sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}}\right ) - \frac {1}{2} \, \sqrt {-4 i} \log \left (-\frac {1}{2} i \, \sqrt {-4 i} + \sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}}\right ) - \log \left (\sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}} + 1\right ) + i \, \log \left (\sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}} + i\right ) - i \, \log \left (\sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}} - i\right ) + \log \left (\sqrt {\frac {i \, \sqrt {a^{2} x^{2} + 1}}{a x + i}} - 1\right ) \]
[In]
[Out]
\[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=\int \frac {1}{x \sqrt {\frac {i \left (a x - i\right )}{\sqrt {a^{2} x^{2} + 1}}}}\, dx \]
[In]
[Out]
\[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=\int { \frac {1}{x \sqrt {\frac {i \, a x + 1}{\sqrt {a^{2} x^{2} + 1}}}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {e^{-\frac {1}{2} i \arctan (a x)}}{x} \, dx=\int \frac {1}{x\,\sqrt {\frac {1+a\,x\,1{}\mathrm {i}}{\sqrt {a^2\,x^2+1}}}} \,d x \]
[In]
[Out]