Optimal. Leaf size=29 \[ -\frac {1}{2 a (i-a x)}+\frac {\text {ArcTan}(a x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {5181, 46, 209}
\begin {gather*} \frac {\text {ArcTan}(a x)}{2 a}-\frac {1}{2 a (-a x+i)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 209
Rule 5181
Rubi steps
\begin {align*} \int \frac {e^{-i \tan ^{-1}(a x)}}{\left (1+a^2 x^2\right )^{3/2}} \, dx &=\int \frac {1}{(1-i a x) (1+i a x)^2} \, dx\\ &=\int \left (-\frac {1}{2 (-i+a x)^2}+\frac {1}{2 \left (1+a^2 x^2\right )}\right ) \, dx\\ &=-\frac {1}{2 a (i-a x)}+\frac {1}{2} \int \frac {1}{1+a^2 x^2} \, dx\\ &=-\frac {1}{2 a (i-a x)}+\frac {\tan ^{-1}(a x)}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 21, normalized size = 0.72 \begin {gather*} \frac {\frac {1}{-i+a x}+\text {ArcTan}(a x)}{2 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 43, normalized size = 1.48
method | result | size |
risch | \(\frac {1}{2 a \left (a x -i\right )}+\frac {\arctan \left (a x \right )}{2 a}\) | \(24\) |
default | \(-\frac {i \ln \left (-a x +i\right )}{4 a}-\frac {1}{2 a \left (-a x +i\right )}+\frac {i \ln \left (a x +i\right )}{4 a}\) | \(43\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \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. 49 vs. \(2 (22) = 44\).
time = 3.16, size = 49, normalized size = 1.69 \begin {gather*} \frac {{\left (i \, a x + 1\right )} \log \left (\frac {a x + i}{a}\right ) + {\left (-i \, a x - 1\right )} \log \left (\frac {a x - i}{a}\right ) + 2}{4 \, {\left (a^{2} x - i \, a\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.11, size = 34, normalized size = 1.17 \begin {gather*} - i \left (\frac {i}{2 a^{2} x - 2 i a} + \frac {\frac {\log {\left (x - \frac {i}{a} \right )}}{4} - \frac {\log {\left (x + \frac {i}{a} \right )}}{4}}{a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 36, normalized size = 1.24 \begin {gather*} -\frac {i \, \log \left (a x - i\right )}{4 \, a} + \frac {i \, \log \left (i \, a x - 1\right )}{4 \, a} + \frac {1}{2 \, {\left (a x - i\right )} a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.48, size = 25, normalized size = 0.86 \begin {gather*} \frac {\mathrm {atan}\left (a\,x\right )}{2\,a}-\frac {1}{2\,\left (-a^2\,x+a\,1{}\mathrm {i}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________