Optimal. Leaf size=110 \[ \frac{\sqrt{-i a-i b x+1} (i a+i b x+1)^{3/2}}{2 b^2}+\frac{(1-2 i a) \sqrt{-i a-i b x+1} \sqrt{i a+i b x+1}}{2 b^2}-\frac{(2 a+i) \sinh ^{-1}(a+b x)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0753336, antiderivative size = 110, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {5095, 80, 50, 53, 619, 215} \[ \frac{\sqrt{-i a-i b x+1} (i a+i b x+1)^{3/2}}{2 b^2}+\frac{(1-2 i a) \sqrt{-i a-i b x+1} \sqrt{i a+i b x+1}}{2 b^2}-\frac{(2 a+i) \sinh ^{-1}(a+b x)}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5095
Rule 80
Rule 50
Rule 53
Rule 619
Rule 215
Rubi steps
\begin{align*} \int e^{i \tan ^{-1}(a+b x)} x \, dx &=\int \frac{x \sqrt{1+i a+i b x}}{\sqrt{1-i a-i b x}} \, dx\\ &=\frac{\sqrt{1-i a-i b x} (1+i a+i b x)^{3/2}}{2 b^2}-\frac{(i+2 a) \int \frac{\sqrt{1+i a+i b x}}{\sqrt{1-i a-i b x}} \, dx}{2 b}\\ &=\frac{(1-2 i a) \sqrt{1-i a-i b x} \sqrt{1+i a+i b x}}{2 b^2}+\frac{\sqrt{1-i a-i b x} (1+i a+i b x)^{3/2}}{2 b^2}-\frac{(i+2 a) \int \frac{1}{\sqrt{1-i a-i b x} \sqrt{1+i a+i b x}} \, dx}{2 b}\\ &=\frac{(1-2 i a) \sqrt{1-i a-i b x} \sqrt{1+i a+i b x}}{2 b^2}+\frac{\sqrt{1-i a-i b x} (1+i a+i b x)^{3/2}}{2 b^2}-\frac{(i+2 a) \int \frac{1}{\sqrt{(1-i a) (1+i a)+2 a b x+b^2 x^2}} \, dx}{2 b}\\ &=\frac{(1-2 i a) \sqrt{1-i a-i b x} \sqrt{1+i a+i b x}}{2 b^2}+\frac{\sqrt{1-i a-i b x} (1+i a+i b x)^{3/2}}{2 b^2}-\frac{(i+2 a) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{4 b^2}}} \, dx,x,2 a b+2 b^2 x\right )}{4 b^3}\\ &=\frac{(1-2 i a) \sqrt{1-i a-i b x} \sqrt{1+i a+i b x}}{2 b^2}+\frac{\sqrt{1-i a-i b x} (1+i a+i b x)^{3/2}}{2 b^2}-\frac{(i+2 a) \sinh ^{-1}(a+b x)}{2 b^2}\\ \end{align*}
Mathematica [A] time = 0.113457, size = 108, normalized size = 0.98 \[ \frac{\sqrt{a^2+2 a b x+b^2 x^2+1} (-i a+i b x+2)}{2 b^2}+\frac{(-1)^{3/4} (2 a+i) \sinh ^{-1}\left (\frac{\left (\frac{1}{2}+\frac{i}{2}\right ) \sqrt{b} \sqrt{-i (a+b x+i)}}{\sqrt{-i b}}\right )}{\sqrt{-i b} b^{3/2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.109, size = 171, normalized size = 1.6 \begin{align*}{\frac{{\frac{i}{2}}x}{b}\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1}}-{\frac{{\frac{i}{2}}a}{{b}^{2}}\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1}}-{\frac{{\frac{i}{2}}}{b}\ln \left ({({b}^{2}x+ab){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1} \right ){\frac{1}{\sqrt{{b}^{2}}}}}+{\frac{1}{{b}^{2}}\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1}}-{\frac{a}{b}\ln \left ({({b}^{2}x+ab){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1} \right ){\frac{1}{\sqrt{{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64975, size = 200, normalized size = 1.82 \begin{align*} \frac{-3 i \, a^{2} +{\left (8 \, a + 4 i\right )} \log \left (-b x - a + \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right ) + \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}{\left (4 i \, b x - 4 i \, a + 8\right )} + 4 \, a}{8 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \left (i a + i b x + 1\right )}{\sqrt{a^{2} + 2 a b x + b^{2} x^{2} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1554, size = 103, normalized size = 0.94 \begin{align*} \frac{1}{2} \, \sqrt{{\left (b x + a\right )}^{2} + 1}{\left (\frac{i x}{b} - \frac{a b i - 2 \, b}{b^{3}}\right )} + \frac{{\left (2 \, a + i\right )} \log \left (-a b -{\left (x{\left | b \right |} - \sqrt{{\left (b x + a\right )}^{2} + 1}\right )}{\left | b \right |}\right )}{2 \, b{\left | b \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]