Optimal. Leaf size=44 \[ \frac{(1-a) \sqrt{a+b x+1}}{b^2 \sqrt{-a-b x+1}}-\frac{\sin ^{-1}(a+b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0822346, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.156, Rules used = {6164, 78, 53, 619, 216} \[ \frac{(1-a) \sqrt{a+b x+1}}{b^2 \sqrt{-a-b x+1}}-\frac{\sin ^{-1}(a+b x)}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6164
Rule 78
Rule 53
Rule 619
Rule 216
Rubi steps
\begin{align*} \int \frac{e^{\tanh ^{-1}(a+b x)} x}{1-a^2-2 a b x-b^2 x^2} \, dx &=\int \frac{x}{(1-a-b x)^{3/2} \sqrt{1+a+b x}} \, dx\\ &=\frac{(1-a) \sqrt{1+a+b x}}{b^2 \sqrt{1-a-b x}}-\frac{\int \frac{1}{\sqrt{1-a-b x} \sqrt{1+a+b x}} \, dx}{b}\\ &=\frac{(1-a) \sqrt{1+a+b x}}{b^2 \sqrt{1-a-b x}}-\frac{\int \frac{1}{\sqrt{(1-a) (1+a)-2 a b x-b^2 x^2}} \, dx}{b}\\ &=\frac{(1-a) \sqrt{1+a+b x}}{b^2 \sqrt{1-a-b x}}+\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{x^2}{4 b^2}}} \, dx,x,-2 a b-2 b^2 x\right )}{2 b^3}\\ &=\frac{(1-a) \sqrt{1+a+b x}}{b^2 \sqrt{1-a-b x}}-\frac{\sin ^{-1}(a+b x)}{b^2}\\ \end{align*}
Mathematica [A] time = 0.145452, size = 49, normalized size = 1.11 \[ -\frac{\sin ^{-1}(a+b x)-\frac{(a-1) \sqrt{-a^2-2 a b x-b^2 x^2+1}}{a+b x-1}}{b^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.037, size = 160, normalized size = 3.6 \begin{align*}{\frac{x}{b}{\frac{1}{\sqrt{-{b}^{2}{x}^{2}-2\,xab-{a}^{2}+1}}}}-{\frac{1}{b}\arctan \left ({\sqrt{{b}^{2}} \left ( x+{\frac{a}{b}} \right ){\frac{1}{\sqrt{-{b}^{2}{x}^{2}-2\,xab-{a}^{2}+1}}}} \right ){\frac{1}{\sqrt{{b}^{2}}}}}+{\frac{1}{{b}^{2}}{\frac{1}{\sqrt{-{b}^{2}{x}^{2}-2\,xab-{a}^{2}+1}}}}-{\frac{ax}{b}{\frac{1}{\sqrt{-{b}^{2}{x}^{2}-2\,xab-{a}^{2}+1}}}}-{\frac{{a}^{2}}{{b}^{2}}{\frac{1}{\sqrt{-{b}^{2}{x}^{2}-2\,xab-{a}^{2}+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.6145, size = 594, normalized size = 13.5 \begin{align*} -\frac{b^{2}{\left (\frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} a}{b^{4} x + a b^{3} + \sqrt{b^{2}} b^{2}} - \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} a}{b^{4} x + a b^{3} - \sqrt{b^{2}} b^{2}} - \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} a}{\sqrt{b^{2}} b^{3} x + a \sqrt{b^{2}} b^{2} + b^{3}} - \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} a}{\sqrt{b^{2}} b^{3} x + a \sqrt{b^{2}} b^{2} - b^{3}} - \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}}{b^{4} x + a b^{3} + \sqrt{b^{2}} b^{2}} + \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}}{b^{4} x + a b^{3} - \sqrt{b^{2}} b^{2}} + \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}}{\sqrt{b^{2}} b^{3} x + a \sqrt{b^{2}} b^{2} + b^{3}} + \frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}}{\sqrt{b^{2}} b^{3} x + a \sqrt{b^{2}} b^{2} - b^{3}} + \frac{2 \, \arcsin \left (\sqrt{b^{2}} x + \frac{a \sqrt{b^{2}}}{b}\right )}{b^{3}}\right )}}{2 \, \sqrt{a^{2} b^{2} -{\left (a^{2} - 1\right )} b^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.63749, size = 225, normalized size = 5.11 \begin{align*} \frac{{\left (b x + a - 1\right )} \arctan \left (\frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}{\left (b x + a\right )}}{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 (a - 1\right )}}{b^{3} x +{\left (a - 1\right )} 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}{a \sqrt{- a^{2} - 2 a b x - b^{2} x^{2} + 1} + b x \sqrt{- a^{2} - 2 a b x - b^{2} x^{2} + 1} - \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.19682, size = 89, normalized size = 2.02 \begin{align*} \frac{\arcsin \left (-b x - a\right ) \mathrm{sgn}\left (b\right )}{b{\left | b \right |}} - \frac{2 \,{\left (a - 1\right )}}{b{\left (\frac{\sqrt{-{\left (b x + a\right )}^{2} + 1}{\left | b \right |} + b}{b^{2} x + a b} - 1\right )}{\left | b \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]