Optimal. Leaf size=211 \[ -\frac {(1-i a-i b x)^{3/4} \sqrt [4]{1+i a+i b x}}{(1+i a) x}-\frac {3 i b \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)^{7/4} \sqrt [4]{i+a}}-\frac {3 i b \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)^{7/4} \sqrt [4]{i+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 211, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5203, 96, 95,
218, 214, 211} \begin {gather*} -\frac {3 i b \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)^{7/4} \sqrt [4]{a+i}}-\frac {(-i a-i b x+1)^{3/4} \sqrt [4]{i a+i b x+1}}{(1+i a) x}-\frac {3 i b \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)^{7/4} \sqrt [4]{a+i}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 96
Rule 211
Rule 214
Rule 218
Rule 5203
Rubi steps
\begin {align*} \int \frac {e^{-\frac {3}{2} i \tan ^{-1}(a+b x)}}{x^2} \, dx &=\int \frac {(1-i a-i b x)^{3/4}}{x^2 (1+i a+i b x)^{3/4}} \, dx\\ &=-\frac {(1-i a-i b x)^{3/4} \sqrt [4]{1+i a+i b x}}{(1+i a) x}+\frac {(3 b) \int \frac {1}{x \sqrt [4]{1-i a-i b x} (1+i a+i b x)^{3/4}} \, dx}{2 (i-a)}\\ &=-\frac {(1-i a-i b x)^{3/4} \sqrt [4]{1+i a+i b x}}{(1+i a) x}+\frac {(6 b) \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 )}{i-a}\\ &=-\frac {(1-i a-i b x)^{3/4} \sqrt [4]{1+i a+i b x}}{(1+i a) x}-\frac {(3 i b) \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 )}{(i-a)^{3/2}}-\frac {(3 i b) \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 )}{(i-a)^{3/2}}\\ &=-\frac {(1-i a-i b x)^{3/4} \sqrt [4]{1+i a+i b x}}{(1+i a) x}-\frac {3 i b \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)^{7/4} \sqrt [4]{i+a}}-\frac {3 i b \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)^{7/4} \sqrt [4]{i+a}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.02, size = 107, normalized size = 0.51 \begin {gather*} -\frac {(-i (i+a+b x))^{3/4} \left (1+a^2+i b x+a b x-2 i b x \, _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 )}{\left (1+a^2\right ) x (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^{2}}\, 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. 613 vs. \(2 (137) = 274\).
time = 5.54, size = 613, normalized size = 2.91 \begin {gather*} \frac {3 \, \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (-i \, a - 1\right )} x \log \left (\frac {b \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} + \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (a^{2} - 2 i \, a - 1\right )}}{b}\right ) + 3 \, \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (i \, a + 1\right )} x \log \left (\frac {b \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} - \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (a^{2} - 2 i \, a - 1\right )}}{b}\right ) - 3 \, \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (a - i\right )} x \log \left (\frac {b \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} - \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (i \, a^{2} + 2 \, a - i\right )}}{b}\right ) + 3 \, \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (a - i\right )} x \log \left (\frac {b \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}} - \left (-\frac {b^{4}}{a^{8} - 6 i \, a^{7} - 14 \, a^{6} + 14 i \, a^{5} + 14 i \, a^{3} + 14 \, a^{2} - 6 i \, a - 1}\right )^{\frac {1}{4}} {\left (-i \, a^{2} - 2 \, a + i\right )}}{b}\right ) + 2 \, {\left (b x + a + i\right )} \sqrt {\frac {i \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{b x + a + i}}}{2 \, {\left (a - i\right )} x} \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^2\,{\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]
________________________________________________________________________________________