Optimal. Leaf size=92 \[ -\frac {4 i a^2 \sqrt {a^2 x^2+1}}{a x+i}-\frac {3 i a \sqrt {a^2 x^2+1}}{x}-\frac {\sqrt {a^2 x^2+1}}{2 x^2}+\frac {9}{2} a^2 \tanh ^{-1}\left (\sqrt {a^2 x^2+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.60, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {5060, 6742, 266, 51, 63, 208, 264, 651} \[ -\frac {4 i a^2 \sqrt {a^2 x^2+1}}{a x+i}-\frac {3 i a \sqrt {a^2 x^2+1}}{x}-\frac {\sqrt {a^2 x^2+1}}{2 x^2}+\frac {9}{2} a^2 \tanh ^{-1}\left (\sqrt {a^2 x^2+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 51
Rule 63
Rule 208
Rule 264
Rule 266
Rule 651
Rule 5060
Rule 6742
Rubi steps
\begin {align*} \int \frac {e^{3 i \tan ^{-1}(a x)}}{x^3} \, dx &=\int \frac {(1+i a x)^2}{x^3 (1-i a x) \sqrt {1+a^2 x^2}} \, dx\\ &=\int \left (\frac {1}{x^3 \sqrt {1+a^2 x^2}}+\frac {3 i a}{x^2 \sqrt {1+a^2 x^2}}-\frac {4 a^2}{x \sqrt {1+a^2 x^2}}+\frac {4 a^3}{(i+a x) \sqrt {1+a^2 x^2}}\right ) \, dx\\ &=(3 i a) \int \frac {1}{x^2 \sqrt {1+a^2 x^2}} \, dx-\left (4 a^2\right ) \int \frac {1}{x \sqrt {1+a^2 x^2}} \, dx+\left (4 a^3\right ) \int \frac {1}{(i+a x) \sqrt {1+a^2 x^2}} \, dx+\int \frac {1}{x^3 \sqrt {1+a^2 x^2}} \, dx\\ &=-\frac {3 i a \sqrt {1+a^2 x^2}}{x}-\frac {4 i a^2 \sqrt {1+a^2 x^2}}{i+a x}+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{x^2 \sqrt {1+a^2 x}} \, dx,x,x^2\right )-\left (2 a^2\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {1+a^2 x}} \, dx,x,x^2\right )\\ &=-\frac {\sqrt {1+a^2 x^2}}{2 x^2}-\frac {3 i a \sqrt {1+a^2 x^2}}{x}-\frac {4 i a^2 \sqrt {1+a^2 x^2}}{i+a x}-4 \operatorname {Subst}\left (\int \frac {1}{-\frac {1}{a^2}+\frac {x^2}{a^2}} \, dx,x,\sqrt {1+a^2 x^2}\right )-\frac {1}{4} a^2 \operatorname {Subst}\left (\int \frac {1}{x \sqrt {1+a^2 x}} \, dx,x,x^2\right )\\ &=-\frac {\sqrt {1+a^2 x^2}}{2 x^2}-\frac {3 i a \sqrt {1+a^2 x^2}}{x}-\frac {4 i a^2 \sqrt {1+a^2 x^2}}{i+a x}+4 a^2 \tanh ^{-1}\left (\sqrt {1+a^2 x^2}\right )-\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{-\frac {1}{a^2}+\frac {x^2}{a^2}} \, dx,x,\sqrt {1+a^2 x^2}\right )\\ &=-\frac {\sqrt {1+a^2 x^2}}{2 x^2}-\frac {3 i a \sqrt {1+a^2 x^2}}{x}-\frac {4 i a^2 \sqrt {1+a^2 x^2}}{i+a x}+\frac {9}{2} a^2 \tanh ^{-1}\left (\sqrt {1+a^2 x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 79, normalized size = 0.86 \[ \sqrt {a^2 x^2+1} \left (-\frac {4 i a^2}{a x+i}-\frac {3 i a}{x}-\frac {1}{2 x^2}\right )+\frac {9}{2} a^2 \log \left (\sqrt {a^2 x^2+1}+1\right )-\frac {9}{2} a^2 \log (x) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 131, normalized size = 1.42 \[ \frac {-14 i \, a^{3} x^{3} + 14 \, a^{2} x^{2} + {\left (9 \, a^{3} x^{3} + 9 i \, a^{2} x^{2}\right )} \log \left (-a x + \sqrt {a^{2} x^{2} + 1} + 1\right ) - {\left (9 \, a^{3} x^{3} + 9 i \, a^{2} x^{2}\right )} \log \left (-a x + \sqrt {a^{2} x^{2} + 1} - 1\right ) + \sqrt {a^{2} x^{2} + 1} {\left (-14 i \, a^{2} x^{2} + 5 \, a x - i\right )}}{2 \, a x^{3} + 2 i \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {undef} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 105, normalized size = 1.14 \[ -\frac {i a^{3} x}{\sqrt {a^{2} x^{2}+1}}-\frac {9 a^{2} \left (\frac {1}{\sqrt {a^{2} x^{2}+1}}-\arctanh \left (\frac {1}{\sqrt {a^{2} x^{2}+1}}\right )\right )}{2}+3 i a \left (-\frac {1}{x \sqrt {a^{2} x^{2}+1}}-\frac {2 a^{2} x}{\sqrt {a^{2} x^{2}+1}}\right )-\frac {1}{2 x^{2} \sqrt {a^{2} x^{2}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 81, normalized size = 0.88 \[ -\frac {7 i \, a^{3} x}{\sqrt {a^{2} x^{2} + 1}} + \frac {9}{2} \, a^{2} \operatorname {arsinh}\left (\frac {1}{a {\left | x \right |}}\right ) - \frac {9 \, a^{2}}{2 \, \sqrt {a^{2} x^{2} + 1}} - \frac {3 i \, a}{\sqrt {a^{2} x^{2} + 1} x} - \frac {1}{2 \, \sqrt {a^{2} x^{2} + 1} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.43, size = 99, normalized size = 1.08 \[ -\frac {a^2\,\mathrm {atan}\left (\sqrt {a^2\,x^2+1}\,1{}\mathrm {i}\right )\,9{}\mathrm {i}}{2}-\frac {\sqrt {a^2\,x^2+1}}{2\,x^2}-\frac {a\,\sqrt {a^2\,x^2+1}\,3{}\mathrm {i}}{x}-\frac {a^3\,\sqrt {a^2\,x^2+1}\,4{}\mathrm {i}}{\left (x\,\sqrt {a^2}+\frac {\sqrt {a^2}\,1{}\mathrm {i}}{a}\right )\,\sqrt {a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - i \left (\int \frac {i}{a^{2} x^{5} \sqrt {a^{2} x^{2} + 1} + x^{3} \sqrt {a^{2} x^{2} + 1}}\, dx + \int \left (- \frac {3 a x}{a^{2} x^{5} \sqrt {a^{2} x^{2} + 1} + x^{3} \sqrt {a^{2} x^{2} + 1}}\right )\, dx + \int \frac {a^{3} x^{3}}{a^{2} x^{5} \sqrt {a^{2} x^{2} + 1} + x^{3} \sqrt {a^{2} x^{2} + 1}}\, dx + \int \left (- \frac {3 i a^{2} x^{2}}{a^{2} x^{5} \sqrt {a^{2} x^{2} + 1} + x^{3} \sqrt {a^{2} x^{2} + 1}}\right )\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________