Optimal. Leaf size=43 \[ -\frac {i \sqrt {1+a^2 x^2} \log (i-a x)}{a \sqrt {c+a^2 c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {5184, 5181, 31}
\begin {gather*} -\frac {i \sqrt {a^2 x^2+1} \log (-a x+i)}{a \sqrt {a^2 c x^2+c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 5181
Rule 5184
Rubi steps
\begin {align*} \int \frac {e^{-i \tan ^{-1}(a x)}}{\sqrt {c+a^2 c x^2}} \, dx &=\frac {\sqrt {1+a^2 x^2} \int \frac {e^{-i \tan ^{-1}(a x)}}{\sqrt {1+a^2 x^2}} \, dx}{\sqrt {c+a^2 c x^2}}\\ &=\frac {\sqrt {1+a^2 x^2} \int \frac {1}{1+i a x} \, dx}{\sqrt {c+a^2 c x^2}}\\ &=-\frac {i \sqrt {1+a^2 x^2} \log (i-a x)}{a \sqrt {c+a^2 c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 43, normalized size = 1.00 \begin {gather*} -\frac {i \sqrt {1+a^2 x^2} \log (i-a x)}{a \sqrt {c+a^2 c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 42, normalized size = 0.98
method | result | size |
risch | \(-\frac {i \sqrt {a^{2} x^{2}+1}\, \ln \left (-a x +i\right )}{\sqrt {c \left (a^{2} x^{2}+1\right )}\, a}\) | \(39\) |
default | \(-\frac {i \sqrt {c \left (a^{2} x^{2}+1\right )}\, \ln \left (i a x +1\right )}{\sqrt {a^{2} x^{2}+1}\, c a}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 15, normalized size = 0.35 \begin {gather*} -\frac {i \, \log \left (i \, a x + 1\right )}{a \sqrt {c}} \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. 253 vs. \(2 (35) = 70\).
time = 2.80, size = 253, normalized size = 5.88 \begin {gather*} \frac {1}{2} i \, \sqrt {\frac {1}{a^{2} c}} \log \left (\frac {{\left (-i \, a^{6} x^{2} - 2 \, a^{5} x + 2 i \, a^{4}\right )} \sqrt {a^{2} c x^{2} + c} \sqrt {a^{2} x^{2} + 1} + {\left (i \, a^{9} c x^{4} + 2 \, a^{8} c x^{3} + i \, a^{7} c x^{2} + 2 \, a^{6} c x\right )} \sqrt {\frac {1}{a^{2} c}}}{8 \, {\left (a^{3} x^{3} - i \, a^{2} x^{2} + a x - i\right )}}\right ) - \frac {1}{2} i \, \sqrt {\frac {1}{a^{2} c}} \log \left (\frac {{\left (-i \, a^{6} x^{2} - 2 \, a^{5} x + 2 i \, a^{4}\right )} \sqrt {a^{2} c x^{2} + c} \sqrt {a^{2} x^{2} + 1} + {\left (-i \, a^{9} c x^{4} - 2 \, a^{8} c x^{3} - i \, a^{7} c x^{2} - 2 \, a^{6} c x\right )} \sqrt {\frac {1}{a^{2} c}}}{8 \, {\left (a^{3} x^{3} - i \, a^{2} x^{2} + a x - i\right )}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - i \int \frac {\sqrt {a^{2} x^{2} + 1}}{a x \sqrt {a^{2} c x^{2} + c} - i \sqrt {a^{2} c x^{2} + c}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {a^2\,x^2+1}}{\sqrt {c\,a^2\,x^2+c}\,\left (1+a\,x\,1{}\mathrm {i}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________