Optimal. Leaf size=427 \[ -\frac {2 (i+a)^{3/4} \text {ArcTan}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}-\sqrt {2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )+\sqrt {2} \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )-\frac {2 (i+a)^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}+\frac {\log \left (1+\frac {\sqrt {1-i a-i b x}}{\sqrt {1+i a+i b x}}-\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )}{\sqrt {2}}-\frac {\log \left (1+\frac {\sqrt {1-i a-i b x}}{\sqrt {1+i a+i b x}}+\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )}{\sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 427, normalized size of antiderivative = 1.00, number of steps
used = 18, number of rules used = 15, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.833, Rules used = {5203, 132,
65, 338, 303, 1176, 631, 210, 1179, 642, 12, 95, 218, 214, 211} \begin {gather*} -\frac {2 (a+i)^{3/4} \text {ArcTan}\left (\frac {\sqrt [4]{a+i} \sqrt [4]{i a+i b x+1}}{\sqrt [4]{-a+i} \sqrt [4]{-i a-i b x+1}}\right )}{(-a+i)^{3/4}}-\sqrt {2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{-i a-i b x+1}}{\sqrt [4]{i a+i b x+1}}\right )+\sqrt {2} \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt [4]{-i a-i b x+1}}{\sqrt [4]{i a+i b x+1}}\right )+\frac {\log \left (\frac {\sqrt {-i a-i b x+1}}{\sqrt {i a+i b x+1}}-\frac {\sqrt {2} \sqrt [4]{-i a-i b x+1}}{\sqrt [4]{i a+i b x+1}}+1\right )}{\sqrt {2}}-\frac {\log \left (\frac {\sqrt {-i a-i b x+1}}{\sqrt {i a+i b x+1}}+\frac {\sqrt {2} \sqrt [4]{-i a-i b x+1}}{\sqrt [4]{i a+i b x+1}}+1\right )}{\sqrt {2}}-\frac {2 (a+i)^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{a+i} \sqrt [4]{i a+i b x+1}}{\sqrt [4]{-a+i} \sqrt [4]{-i a-i b x+1}}\right )}{(-a+i)^{3/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 65
Rule 95
Rule 132
Rule 210
Rule 211
Rule 214
Rule 218
Rule 303
Rule 338
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 5203
Rubi steps
\begin {align*} \int \frac {e^{-\frac {3}{2} i \tan ^{-1}(a+b x)}}{x} \, dx &=\int \frac {(1-i a-i b x)^{3/4}}{x (1+i a+i b x)^{3/4}} \, dx\\ &=-\left ((-1+i a) \int \frac {1}{x \sqrt [4]{1-i a-i b x} (1+i a+i b x)^{3/4}} \, dx\right )-(i b) \int \frac {1}{\sqrt [4]{1-i a-i b x} (1+i a+i b x)^{3/4}} \, dx\\ &=4 \text {Subst}\left (\int \frac {x^2}{\left (2-x^4\right )^{3/4}} \, dx,x,\sqrt [4]{1-i a-i 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+i b x}}{\sqrt [4]{1-i a-i b x}}\right )\\ &=4 \text {Subst}\left (\int \frac {x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )-\frac {(2 (i+a)) \text {Subst}\left (\int \frac {1}{\sqrt {i-a}-\sqrt {i+a} x^2} \, dx,x,\frac {\sqrt [4]{1+i a+i b x}}{\sqrt [4]{1-i a-i b x}}\right )}{\sqrt {i-a}}-\frac {(2 (i+a)) \text {Subst}\left (\int \frac {1}{\sqrt {i-a}+\sqrt {i+a} x^2} \, dx,x,\frac {\sqrt [4]{1+i a+i b x}}{\sqrt [4]{1-i a-i b x}}\right )}{\sqrt {i-a}}\\ &=-\frac {2 (i+a)^{3/4} \tan ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}-\frac {2 (i+a)^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}-2 \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )+2 \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )\\ &=-\frac {2 (i+a)^{3/4} \tan ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}-\frac {2 (i+a)^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}+\frac {\text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i 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-i b x}}{\sqrt [4]{1+i a+i 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-i b x}}{\sqrt [4]{1+i a+i b x}}\right )+\text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )\\ &=-\frac {2 (i+a)^{3/4} \tan ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}-\frac {2 (i+a)^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}+\frac {\log \left (1+\frac {\sqrt {1-i a-i b x}}{\sqrt {1+i a+i b x}}-\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )}{\sqrt {2}}-\frac {\log \left (1+\frac {\sqrt {1-i a-i b x}}{\sqrt {1+i a+i b x}}+\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i 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-i b x}}{\sqrt [4]{1+i a+i 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-i b x}}{\sqrt [4]{1+i a+i b x}}\right )\\ &=-\frac {2 (i+a)^{3/4} \tan ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}-\sqrt {2} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )+\sqrt {2} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )-\frac {2 (i+a)^{3/4} \tanh ^{-1}\left (\frac {\sqrt [4]{i+a} \sqrt [4]{1+i a+i b x}}{\sqrt [4]{i-a} \sqrt [4]{1-i a-i b x}}\right )}{(i-a)^{3/4}}+\frac {\log \left (1+\frac {\sqrt {1-i a-i b x}}{\sqrt {1+i a+i b x}}-\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i b x}}\right )}{\sqrt {2}}-\frac {\log \left (1+\frac {\sqrt {1-i a-i b x}}{\sqrt {1+i a+i b x}}+\frac {\sqrt {2} \sqrt [4]{1-i a-i b x}}{\sqrt [4]{1+i a+i 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 = 128, normalized size = 0.30 \begin {gather*} \frac {2 (-i (i+a+b x))^{3/4} \left (\sqrt [4]{2} (1+i a+i b x)^{3/4} \, _2F_1\left (\frac {3}{4},\frac {3}{4};\frac {7}{4};-\frac {1}{2} i (i+a+b x)\right )-2 \, _2F_1\left (\frac {3}{4},1;\frac {7}{4};\frac {1+a^2-i b x+a b x}{1+a^2+i b x+a b x}\right )\right )}{3 (1+i a+i b x)^{3/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (\frac {1+i \left (b x +a \right )}{\sqrt {1+\left (b x +a \right )^{2}}}\right )^{\frac {3}{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 [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 629 vs. \(2 (284) = 568\).
time = 7.02, size = 629, normalized size = 1.47 \begin {gather*} -\frac {1}{2} \, \sqrt {4 i} \log \left (\frac {1}{2} \, \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} \, \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} \, \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} \, \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^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} + {\left (a - i\right )} \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}}}{a + i}\right ) - \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} - {\left (a - i\right )} \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}}}{a + i}\right ) + i \, \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} + {\left (i \, a + 1\right )} \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}}}{a + i}\right ) - i \, \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}} \log \left (\frac {{\left (a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} + {\left (-i \, a - 1\right )} \left (-\frac {a^{3} + 3 i \, a^{2} - 3 \, a - i}{a^{3} - 3 i \, a^{2} - 3 \, a + i}\right )^{\frac {1}{4}}}{a + i}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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\,{\left (\frac {1+a\,1{}\mathrm {i}+b\,x\,1{}\mathrm {i}}{\sqrt {{\left (a+b\,x\right )}^2+1}}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________