Optimal. Leaf size=42 \[ \frac{(2+i a x) \sqrt{a^2 x^2+1}}{2 a^2}-\frac{i \sinh ^{-1}(a x)}{2 a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.019259, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {5060, 780, 215} \[ \frac{(2+i a x) \sqrt{a^2 x^2+1}}{2 a^2}-\frac{i \sinh ^{-1}(a x)}{2 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5060
Rule 780
Rule 215
Rubi steps
\begin{align*} \int e^{i \tan ^{-1}(a x)} x \, dx &=\int \frac{x (1+i a x)}{\sqrt{1+a^2 x^2}} \, dx\\ &=\frac{(2+i a x) \sqrt{1+a^2 x^2}}{2 a^2}-\frac{i \int \frac{1}{\sqrt{1+a^2 x^2}} \, dx}{2 a}\\ &=\frac{(2+i a x) \sqrt{1+a^2 x^2}}{2 a^2}-\frac{i \sinh ^{-1}(a x)}{2 a^2}\\ \end{align*}
Mathematica [A] time = 0.0272107, size = 38, normalized size = 0.9 \[ \frac{(2+i a x) \sqrt{a^2 x^2+1}-i \sinh ^{-1}(a x)}{2 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.067, size = 69, normalized size = 1.6 \begin{align*}{\frac{{\frac{i}{2}}x}{a}\sqrt{{a}^{2}{x}^{2}+1}}-{\frac{{\frac{i}{2}}}{a}\ln \left ({{a}^{2}x{\frac{1}{\sqrt{{a}^{2}}}}}+\sqrt{{a}^{2}{x}^{2}+1} \right ){\frac{1}{\sqrt{{a}^{2}}}}}+{\frac{1}{{a}^{2}}\sqrt{{a}^{2}{x}^{2}+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.982332, size = 73, normalized size = 1.74 \begin{align*} \frac{i \, \sqrt{a^{2} x^{2} + 1} x}{2 \, a} - \frac{i \, \operatorname{arsinh}\left (\frac{a^{2} x}{\sqrt{a^{2}}}\right )}{2 \, \sqrt{a^{2}} a} + \frac{\sqrt{a^{2} x^{2} + 1}}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68409, size = 101, normalized size = 2.4 \begin{align*} \frac{\sqrt{a^{2} x^{2} + 1}{\left (i \, a x + 2\right )} + i \, \log \left (-a x + \sqrt{a^{2} x^{2} + 1}\right )}{2 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.43354, size = 51, normalized size = 1.21 \begin{align*} \begin{cases} \frac{x^{2}}{2} & \text{for}\: a^{2} = 0 \\\frac{\sqrt{a^{2} x^{2} + 1}}{a^{2}} & \text{otherwise} \end{cases} + \frac{i x \sqrt{a^{2} x^{2} + 1}}{2 a} - \frac{i \operatorname{asinh}{\left (a x \right )}}{2 a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11395, size = 73, normalized size = 1.74 \begin{align*} \frac{1}{2} \, \sqrt{a^{2} x^{2} + 1}{\left (\frac{i x}{a} + \frac{2}{a^{2}}\right )} + \frac{i \log \left (-x{\left | a \right |} + \sqrt{a^{2} x^{2} + 1}\right )}{2 \, a{\left | a \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]