Optimal. Leaf size=268 \[ -\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}-\frac{i \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 )}{2 \sqrt{2} a}+\frac{i \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 )}{2 \sqrt{2} a}-\frac{i \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt{2} a}+\frac{i \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt{2} a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.146362, antiderivative size = 268, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 10, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.833, Rules used = {5061, 50, 63, 240, 211, 1165, 628, 1162, 617, 204} \[ -\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}-\frac{i \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 )}{2 \sqrt{2} a}+\frac{i \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 )}{2 \sqrt{2} a}-\frac{i \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt{2} a}+\frac{i \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt{2} a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5061
Rule 50
Rule 63
Rule 240
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int e^{-\frac{1}{2} i \tan ^{-1}(a x)} \, dx &=\int \frac{\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}} \, dx\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}+\frac{1}{2} \int \frac{1}{(1-i a x)^{3/4} \sqrt [4]{1+i a x}} \, dx\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}+\frac{(2 i) \operatorname{Subst}\left (\int \frac{1}{\sqrt [4]{2-x^4}} \, dx,x,\sqrt [4]{1-i a x}\right )}{a}\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}+\frac{(2 i) \operatorname{Subst}\left (\int \frac{1}{1+x^4} \, dx,x,\frac{\sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{a}\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}+\frac{i \operatorname{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 )}{a}+\frac{i \operatorname{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 )}{a}\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}+\frac{i \operatorname{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 a}+\frac{i \operatorname{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 a}-\frac{i \operatorname{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 )}{2 \sqrt{2} a}-\frac{i \operatorname{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 )}{2 \sqrt{2} a}\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}-\frac{i \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 )}{2 \sqrt{2} a}+\frac{i \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 )}{2 \sqrt{2} a}+\frac{i \operatorname{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} a}-\frac{i \operatorname{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} a}\\ &=-\frac{i \sqrt [4]{1-i a x} (1+i a x)^{3/4}}{a}-\frac{i \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt{2} a}+\frac{i \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{1-i a x}}{\sqrt [4]{1+i a x}}\right )}{\sqrt{2} a}-\frac{i \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 )}{2 \sqrt{2} a}+\frac{i \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 )}{2 \sqrt{2} a}\\ \end{align*}
Mathematica [C] time = 0.0280596, size = 41, normalized size = 0.15 \[ -\frac{8 i e^{\frac{3}{2} i \tan ^{-1}(a x)} \text{Hypergeometric2F1}\left (\frac{3}{4},2,\frac{7}{4},-e^{2 i \tan ^{-1}(a x)}\right )}{3 a} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.128, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{\sqrt{{(1+iax){\frac{1}{\sqrt{{a}^{2}{x}^{2}+1}}}}}}}\, dx \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{1}{\sqrt{\frac{i \, a x + 1}{\sqrt{a^{2} x^{2} + 1}}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.02765, size = 493, normalized size = 1.84 \begin{align*} \frac{a \sqrt{\frac{i}{a^{2}}} \log \left (a \sqrt{\frac{i}{a^{2}}} + \sqrt{\frac{i \, \sqrt{a^{2} x^{2} + 1}}{a x + i}}\right ) - a \sqrt{\frac{i}{a^{2}}} \log \left (-a \sqrt{\frac{i}{a^{2}}} + \sqrt{\frac{i \, \sqrt{a^{2} x^{2} + 1}}{a x + i}}\right ) - a \sqrt{-\frac{i}{a^{2}}} \log \left (a \sqrt{-\frac{i}{a^{2}}} + \sqrt{\frac{i \, \sqrt{a^{2} x^{2} + 1}}{a x + i}}\right ) + a \sqrt{-\frac{i}{a^{2}}} \log \left (-a \sqrt{-\frac{i}{a^{2}}} + \sqrt{\frac{i \, \sqrt{a^{2} x^{2} + 1}}{a x + i}}\right ) - 2 i \, \sqrt{a^{2} x^{2} + 1} \sqrt{\frac{i \, \sqrt{a^{2} x^{2} + 1}}{a x + i}}}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \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{1}{\sqrt{\frac{i \, a x + 1}{\sqrt{a^{2} x^{2} + 1}}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]