Optimal. Leaf size=14 \[ \log (x)-2 \log (i-a x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {5170, 78}
\begin {gather*} \log (x)-2 \log (-a x+i) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 5170
Rubi steps
\begin {align*} \int \frac {e^{-2 i \tan ^{-1}(a x)}}{x} \, dx &=\int \frac {1-i a x}{x (1+i a x)} \, dx\\ &=\int \left (\frac {1}{x}-\frac {2 a}{-i+a x}\right ) \, dx\\ &=\log (x)-2 \log (i-a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 14, normalized size = 1.00 \begin {gather*} \log (x)-2 \log (i-a x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 14, normalized size = 1.00
method | result | size |
default | \(\ln \left (x \right )-2 \ln \left (-a x +i\right )\) | \(14\) |
risch | \(\ln \left (x \right )-\ln \left (a^{2} x^{2}+1\right )-2 i \arctan \left (a x \right )\) | \(23\) |
meijerg | \(\frac {i a x}{i a x +1}-2 \ln \left (i a x +1\right )-\frac {2 i a x}{2 i a x +2}+1+\ln \left (x \right )+\ln \left (i a \right )\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 12, normalized size = 0.86 \begin {gather*} -2 \, \log \left (i \, a x + 1\right ) + \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.81, size = 15, normalized size = 1.07 \begin {gather*} \log \left (x\right ) - 2 \, \log \left (\frac {a x - i}{a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 17, normalized size = 1.21 \begin {gather*} \log {\left (3 a x \right )} - 2 \log {\left (3 a x - 3 i \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 44 vs. \(2 (12) = 24\).
time = 0.41, size = 44, normalized size = 3.14 \begin {gather*} i \, a {\left (-\frac {i \, \log \left (\frac {i}{i \, a x + 1} - i\right )}{a} - \frac {i \, \log \left (\frac {1}{\sqrt {a^{2} x^{2} + 1} {\left | a \right |}}\right )}{a}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.45, size = 14, normalized size = 1.00 \begin {gather*} \ln \left (x\right )-2\,\ln \left (x-\frac {1{}\mathrm {i}}{a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________