Optimal. Leaf size=29 \[ \frac{\sinh ^{-1}(a x)}{a}+\frac{i \sqrt{a^2 x^2+1}}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0090885, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {5059, 641, 215} \[ \frac{\sinh ^{-1}(a x)}{a}+\frac{i \sqrt{a^2 x^2+1}}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5059
Rule 641
Rule 215
Rubi steps
\begin{align*} \int e^{i \tan ^{-1}(a x)} \, dx &=\int \frac{1+i a x}{\sqrt{1+a^2 x^2}} \, dx\\ &=\frac{i \sqrt{1+a^2 x^2}}{a}+\int \frac{1}{\sqrt{1+a^2 x^2}} \, dx\\ &=\frac{i \sqrt{1+a^2 x^2}}{a}+\frac{\sinh ^{-1}(a x)}{a}\\ \end{align*}
Mathematica [A] time = 0.0147939, size = 26, normalized size = 0.9 \[ \frac{\sinh ^{-1}(a x)+i \sqrt{a^2 x^2+1}}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.053, size = 48, normalized size = 1.7 \begin{align*}{\ln \left ({{a}^{2}x{\frac{1}{\sqrt{{a}^{2}}}}}+\sqrt{{a}^{2}{x}^{2}+1} \right ){\frac{1}{\sqrt{{a}^{2}}}}}+{\frac{i}{a}\sqrt{{a}^{2}{x}^{2}+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.02399, size = 46, normalized size = 1.59 \begin{align*} \frac{\operatorname{arsinh}\left (\frac{a^{2} x}{\sqrt{a^{2}}}\right )}{\sqrt{a^{2}}} + \frac{i \, \sqrt{a^{2} x^{2} + 1}}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61595, size = 77, normalized size = 2.66 \begin{align*} \frac{i \, \sqrt{a^{2} x^{2} + 1} - \log \left (-a x + \sqrt{a^{2} x^{2} + 1}\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.3362, size = 68, normalized size = 2.34 \begin{align*} i a \left (\begin{cases} \frac{x^{2}}{2} & \text{for}\: a^{2} = 0 \\\frac{\sqrt{a^{2} x^{2} + 1}}{a^{2}} & \text{otherwise} \end{cases}\right ) + \begin{cases} \sqrt{- \frac{1}{a^{2}}} \operatorname{asin}{\left (x \sqrt{- a^{2}} \right )} & \text{for}\: a^{2} < 0 \\\sqrt{\frac{1}{a^{2}}} \operatorname{asinh}{\left (x \sqrt{a^{2}} \right )} & \text{for}\: a^{2} > 0 \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11413, size = 55, normalized size = 1.9 \begin{align*} \frac{\sqrt{a^{2} x^{2} + 1} i}{a} - \frac{\log \left (-x{\left | a \right |} + \sqrt{a^{2} x^{2} + 1}\right )}{{\left | a \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]