Optimal. Leaf size=38 \[ \frac {(-a+i) \log (x)}{a+i}-\frac {2 \log (a+b x+i)}{1-i a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {5095, 72} \[ \frac {(-a+i) \log (x)}{a+i}-\frac {2 \log (a+b x+i)}{1-i a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 72
Rule 5095
Rubi steps
\begin {align*} \int \frac {e^{2 i \tan ^{-1}(a+b x)}}{x} \, dx &=\int \frac {1+i a+i b x}{x (1-i a-i b x)} \, dx\\ &=\int \left (\frac {i-a}{(i+a) x}-\frac {2 i b}{(i+a) (i+a+b x)}\right ) \, dx\\ &=\frac {(i-a) \log (x)}{i+a}-\frac {2 \log (i+a+b x)}{1-i a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 31, normalized size = 0.82 \[ -\frac {2 i \log (a+b x+i)+(a-i) \log (x)}{a+i} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.63, size = 27, normalized size = 0.71 \[ -\frac {{\left (a - i\right )} \log \relax (x) + 2 i \, \log \left (\frac {b x + a + i}{b}\right )}{a + i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 36, normalized size = 0.95 \[ -\frac {2 \, b i \log \left (b x + a + i\right )}{a b + b i} - \frac {{\left (a - i\right )} \log \left ({\left | x \right |}\right )}{a + i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.05, size = 149, normalized size = 3.92 \[ \frac {2 i \ln \relax (x ) a}{a^{2}+1}-\frac {\ln \relax (x ) a^{2}}{a^{2}+1}+\frac {\ln \relax (x )}{a^{2}+1}-\frac {i \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right ) a}{a^{2}+1}-\frac {\ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right )}{a^{2}+1}+\frac {2 i \arctan \left (\frac {2 b^{2} x +2 a b}{2 b}\right )}{a^{2}+1}-\frac {2 \arctan \left (\frac {2 b^{2} x +2 a b}{2 b}\right ) a}{a^{2}+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.41, size = 80, normalized size = 2.11 \[ -\frac {{\left (2 \, a - 2 i\right )} \arctan \left (\frac {b^{2} x + a b}{b}\right )}{a^{2} + 1} - \frac {{\left (i \, a + 1\right )} \log \left (b^{2} x^{2} + 2 \, a b x + a^{2} + 1\right )}{a^{2} + 1} - \frac {{\left (a^{2} - 2 i \, a - 1\right )} \log \relax (x)}{a^{2} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.70, size = 32, normalized size = 0.84 \[ \ln \relax (x)\,\left (-1+\frac {2{}\mathrm {i}}{a+1{}\mathrm {i}}\right )-\frac {\ln \left (a+b\,x+1{}\mathrm {i}\right )\,2{}\mathrm {i}}{a+1{}\mathrm {i}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.80, size = 107, normalized size = 2.82 \[ - \frac {\left (a - i\right ) \log {\left (\frac {i a^{2} \left (a - i\right )}{a + i} - i a^{2} - \frac {2 a \left (a - i\right )}{a + i} + x \left (- i a b - 3 b\right ) - \frac {i \left (a - i\right )}{a + i} - i \right )}}{a + i} - \frac {2 i \log {\left (- i a^{2} - \frac {2 a^{2}}{a + i} - \frac {4 i a}{a + i} + x \left (- i a b - 3 b\right ) - i + \frac {2}{a + i} \right )}}{a + i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________