Optimal. Leaf size=52 \[ -\frac {1}{2 x^2}-\frac {4 i a}{x}-\frac {4 i a^2}{i+a x}-8 a^2 \log (x)+8 a^2 \log (i+a x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 52, 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, 90}
\begin {gather*} -\frac {4 i a^2}{a x+i}-8 a^2 \log (x)+8 a^2 \log (a x+i)-\frac {4 i a}{x}-\frac {1}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rule 5170
Rubi steps
\begin {align*} \int \frac {e^{4 i \tan ^{-1}(a x)}}{x^3} \, dx &=\int \frac {(1+i a x)^2}{x^3 (1-i a x)^2} \, dx\\ &=\int \left (\frac {1}{x^3}+\frac {4 i a}{x^2}-\frac {8 a^2}{x}+\frac {4 i a^3}{(i+a x)^2}+\frac {8 a^3}{i+a x}\right ) \, dx\\ &=-\frac {1}{2 x^2}-\frac {4 i a}{x}-\frac {4 i a^2}{i+a x}-8 a^2 \log (x)+8 a^2 \log (i+a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 52, normalized size = 1.00 \begin {gather*} -\frac {1}{2 x^2}-\frac {4 i a}{x}-\frac {4 i a^2}{i+a x}-8 a^2 \log (x)+8 a^2 \log (i+a x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 53, normalized size = 1.02
method | result | size |
default | \(-4 a^{3} \left (\frac {i}{a \left (a x +i\right )}-\frac {2 \ln \left (a x +i\right )}{a}\right )-\frac {1}{2 x^{2}}-\frac {4 i a}{x}-8 a^{2} \ln \left (x \right )\) | \(53\) |
risch | \(\frac {-8 i a^{2} x^{2}+\frac {7}{2} a x -\frac {1}{2} i}{\left (a x +i\right ) x^{2}}-8 a^{2} \ln \left (x \right )-8 i a^{2} \arctan \left (a x \right )+4 a^{2} \ln \left (a^{2} x^{2}+1\right )\) | \(62\) |
meijerg | \(\frac {a^{2} \left (\frac {3 a^{2} x^{2}}{3 a^{2} x^{2}+3}+2 \ln \left (a^{2} x^{2}+1\right )-1-4 \ln \left (x \right )-2 \ln \left (a^{2}\right )-\frac {1}{a^{2} x^{2}}\right )}{2}+\frac {2 i a^{3} \left (-\frac {2 \left (3 a^{2} x^{2}+2\right )}{x \sqrt {a^{2}}\, \left (2 a^{2} x^{2}+2\right )}-\frac {3 a \arctan \left (a x \right )}{\sqrt {a^{2}}}\right )}{\sqrt {a^{2}}}-3 a^{2} \left (-\frac {2 a^{2} x^{2}}{2 a^{2} x^{2}+2}-\ln \left (a^{2} x^{2}+1\right )+1+2 \ln \left (x \right )+\ln \left (a^{2}\right )\right )-\frac {2 i a^{3} \left (\frac {2 x \sqrt {a^{2}}}{2 a^{2} x^{2}+2}+\frac {\sqrt {a^{2}}\, \arctan \left (a x \right )}{a}\right )}{\sqrt {a^{2}}}+\frac {a^{4} x^{2}}{2 a^{2} x^{2}+2}\) | \(226\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 69, normalized size = 1.33 \begin {gather*} -8 i \, a^{2} \arctan \left (a x\right ) + 4 \, a^{2} \log \left (a^{2} x^{2} + 1\right ) - 8 \, a^{2} \log \left (x\right ) + \frac {-16 i \, a^{3} x^{3} - 9 \, a^{2} x^{2} - 8 i \, a x - 1}{2 \, {\left (a^{2} x^{4} + x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.05, size = 77, normalized size = 1.48 \begin {gather*} \frac {-16 i \, a^{2} x^{2} + 7 \, a x - 16 \, {\left (a^{3} x^{3} + i \, a^{2} x^{2}\right )} \log \left (x\right ) + 16 \, {\left (a^{3} x^{3} + i \, a^{2} x^{2}\right )} \log \left (\frac {a x + i}{a}\right ) - i}{2 \, {\left (a x^{3} + i \, x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.18, size = 58, normalized size = 1.12 \begin {gather*} 8 a^{2} \left (- \log {\left (16 a^{3} x \right )} + \log {\left (16 a^{3} x + 16 i a^{2} \right )}\right ) + \frac {- 16 i a^{2} x^{2} + 7 a x - i}{2 a x^{3} + 2 i x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 46, normalized size = 0.88 \begin {gather*} 8 \, a^{2} \log \left (a x + i\right ) - 8 \, a^{2} \log \left ({\left | x \right |}\right ) - \frac {16 i \, a^{2} x^{2} - 7 \, a x + i}{2 \, {\left (a x + i\right )} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.47, size = 43, normalized size = 0.83 \begin {gather*} -a^2\,\mathrm {atan}\left (2\,a\,x+1{}\mathrm {i}\right )\,16{}\mathrm {i}+\frac {8\,a^2\,x^2+\frac {a\,x\,7{}\mathrm {i}}{2}+\frac {1}{2}}{x^2\,\left (-1+a\,x\,1{}\mathrm {i}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________