Optimal. Leaf size=395 \[ -\frac {2 \sqrt [4]{i+a} \text {ArcTan}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\sqrt {2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )+\sqrt {2} \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-\frac {2 \sqrt [4]{i+a} \tanh ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\frac {\log \left (1+\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )}{\sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 395, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 11, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.611, Rules used = {5202, 492,
217, 1179, 642, 1176, 631, 210, 218, 214, 211} \begin {gather*} -\frac {2 \sqrt [4]{a+i} \text {ArcTan}\left (\frac {\sqrt [4]{-a+i} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{a+i} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{-a+i}}-\sqrt {2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )+\sqrt {2} \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-\frac {\log \left (\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}+1\right )}{\sqrt {2}}+\frac {\log \left (\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}+1\right )}{\sqrt {2}}-\frac {2 \sqrt [4]{a+i} \tanh ^{-1}\left (\frac {\sqrt [4]{-a+i} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{a+i} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{-a+i}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 211
Rule 214
Rule 217
Rule 218
Rule 492
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 5202
Rubi steps
\begin {align*} \int \frac {e^{-\frac {1}{2} i \tan ^{-1}(a+b x)}}{x} \, dx &=-\left (8 \text {Subst}\left (\int \frac {x^4}{\left (1+x^4\right ) \left (1-i a-(1+i a) x^4\right )} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )\right )\\ &=4 \text {Subst}\left (\int \frac {1}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-(4 (1-i a)) \text {Subst}\left (\int \frac {1}{1-i a+(-1-i a) x^4} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )\\ &=2 \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )+2 \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-\left (2 \sqrt {i+a}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {i+a}-\sqrt {i-a} x^2} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-\left (2 \sqrt {i+a}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {i+a}+\sqrt {i-a} x^2} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )\\ &=-\frac {2 \sqrt [4]{i+a} \tan ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\frac {2 \sqrt [4]{i+a} \tanh ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\frac {\text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b 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+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )}{\sqrt {2}}+\text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )+\text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )\\ &=-\frac {2 \sqrt [4]{i+a} \tan ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\frac {2 \sqrt [4]{i+a} \tanh ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\frac {\log \left (1+\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b 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+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-\sqrt {2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )\\ &=-\frac {2 \sqrt [4]{i+a} \tan ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\sqrt {2} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )+\sqrt {2} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )-\frac {2 \sqrt [4]{i+a} \tanh ^{-1}\left (\frac {\sqrt [4]{i-a} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{i+a} \sqrt [4]{1+i (a+b x)}}\right )}{\sqrt [4]{i-a}}-\frac {\log \left (1+\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}-\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-i (a+b x)}}{\sqrt {1+i (a+b x)}}+\frac {\sqrt {2} \sqrt [4]{1-i (a+b x)}}{\sqrt [4]{1+i (a+b x)}}\right )}{\sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.02, size = 126, normalized size = 0.32 \begin {gather*} \frac {2 \sqrt [4]{-i (i+a+b x)} \left (2^{3/4} \sqrt [4]{1+i a+i b x} \, _2F_1\left (\frac {1}{4},\frac {1}{4};\frac {5}{4};-\frac {1}{2} i (i+a+b x)\right )-2 \, _2F_1\left (\frac {1}{4},1;\frac {5}{4};\frac {1+a^2-i b x+a b x}{1+a^2+i b x+a b x}\right )\right )}{\sqrt [4]{1+i a+i b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {1}{\sqrt {\frac {1+i \left (b x +a \right )}{\sqrt {1+\left (b x +a \right )^{2}}}}\, x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.51, size = 470, normalized size = 1.19 \begin {gather*} -\frac {1}{2} \, \sqrt {4 i} \log \left (\frac {1}{2} i \, \sqrt {4 i} + \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}\right ) + \frac {1}{2} \, \sqrt {4 i} \log \left (-\frac {1}{2} i \, \sqrt {4 i} + \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}\right ) + \frac {1}{2} \, \sqrt {-4 i} \log \left (\frac {1}{2} i \, \sqrt {-4 i} + \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}\right ) - \frac {1}{2} \, \sqrt {-4 i} \log \left (-\frac {1}{2} i \, \sqrt {-4 i} + \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}\right ) + \left (-\frac {a + i}{a - i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (a - i\right )} \left (-\frac {a + i}{a - i}\right )^{\frac {3}{4}} + {\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}}{a + i}\right ) - \left (-\frac {a + i}{a - i}\right )^{\frac {1}{4}} \log \left (-\frac {{\left (a - i\right )} \left (-\frac {a + i}{a - i}\right )^{\frac {3}{4}} - {\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}}{a + i}\right ) - i \, \left (-\frac {a + i}{a - i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (i \, a + 1\right )} \left (-\frac {a + i}{a - i}\right )^{\frac {3}{4}} + {\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}}{a + i}\right ) + i \, \left (-\frac {a + i}{a - i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (-i \, a - 1\right )} \left (-\frac {a + i}{a - i}\right )^{\frac {3}{4}} + {\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}}{a + i}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt {\frac {i \left (a + b x - i\right )}{\sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{x\,\sqrt {\frac {1+a\,1{}\mathrm {i}+b\,x\,1{}\mathrm {i}}{\sqrt {{\left (a+b\,x\right )}^2+1}}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________