Optimal. Leaf size=37 \[ \frac {2 i x}{b}-\frac {x^2}{2}+\frac {2 (1-i a) \log (i+a+b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 37, 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 = {5203, 78}
\begin {gather*} \frac {2 (1-i a) \log (a+b x+i)}{b^2}+\frac {2 i x}{b}-\frac {x^2}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 5203
Rubi steps
\begin {align*} \int e^{2 i \tan ^{-1}(a+b x)} x \, dx &=\int \frac {x (1+i a+i b x)}{1-i a-i b x} \, dx\\ &=\int \left (\frac {2 i}{b}-x+\frac {2 (1-i a)}{b (i+a+b x)}\right ) \, dx\\ &=\frac {2 i x}{b}-\frac {x^2}{2}+\frac {2 (1-i a) \log (i+a+b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 37, normalized size = 1.00 \begin {gather*} \frac {2 i x}{b}-\frac {x^2}{2}+\frac {2 (1-i a) \log (i+a+b x)}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 98 vs. \(2 (32 ) = 64\).
time = 0.10, size = 99, normalized size = 2.68
method | result | size |
risch | \(-\frac {x^{2}}{2}+\frac {2 i x}{b}+\frac {\ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right )}{b^{2}}-\frac {2 i \arctan \left (b x +a \right )}{b^{2}}-\frac {i a \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right )}{b^{2}}-\frac {2 a \arctan \left (b x +a \right )}{b^{2}}\) | \(85\) |
default | \(\frac {-\frac {1}{2} x^{2} b +2 i x}{b}+\frac {\frac {\left (-2 i a b +2 b \right ) \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right )}{2 b^{2}}+\frac {\left (-2 i a^{2}-2 i-\frac {\left (-2 i a b +2 b \right ) a}{b}\right ) \arctan \left (\frac {2 b^{2} x +2 a b}{2 b}\right )}{b}}{b}\) | \(99\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 64 vs. \(2 (29) = 58\).
time = 0.46, size = 64, normalized size = 1.73 \begin {gather*} -\frac {b x^{2} - 4 i \, x}{2 \, b} - \frac {2 \, {\left (a + i\right )} \arctan \left (\frac {b^{2} x + a b}{b}\right )}{b^{2}} + \frac {{\left (-i \, a + 1\right )} \log \left (b^{2} x^{2} + 2 \, a b x + a^{2} + 1\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.59, size = 35, normalized size = 0.95 \begin {gather*} -\frac {b^{2} x^{2} - 4 i \, b x + 4 \, {\left (i \, a - 1\right )} \log \left (\frac {b x + a + i}{b}\right )}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.10, size = 29, normalized size = 0.78 \begin {gather*} - \frac {x^{2}}{2} + \frac {2 i x}{b} - \frac {2 i \left (a + i\right ) \log {\left (a + b x + i \right )}}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 35, normalized size = 0.95 \begin {gather*} -\frac {2 \, {\left (i \, a - 1\right )} \log \left (b x + a + i\right )}{b^{2}} - \frac {b^{2} x^{2} - 4 i \, b x}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 60, normalized size = 1.62 \begin {gather*} -\ln \left (x+\frac {a+1{}\mathrm {i}}{b}\right )\,\left (-\frac {2}{b^2}+\frac {a\,2{}\mathrm {i}}{b^2}\right )-x\,\left (\frac {\left (-1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}-\frac {\left (1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}\right )-\frac {x^2}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________