Optimal. Leaf size=68 \[ -\frac {2 (1-a) \tanh ^{-1}\left (\frac {\sqrt {1-a} \sqrt {a+b x+1}}{\sqrt {a+1} \sqrt {-a-b x+1}}\right )}{\sqrt {1-a^2}}-\sin ^{-1}(a+b x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6163, 105, 53, 619, 216, 93, 208} \[ -\frac {2 (1-a) \tanh ^{-1}\left (\frac {\sqrt {1-a} \sqrt {a+b x+1}}{\sqrt {a+1} \sqrt {-a-b x+1}}\right )}{\sqrt {1-a^2}}-\sin ^{-1}(a+b x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 53
Rule 93
Rule 105
Rule 208
Rule 216
Rule 619
Rule 6163
Rubi steps
\begin {align*} \int \frac {e^{-\tanh ^{-1}(a+b x)}}{x} \, dx &=\int \frac {\sqrt {1-a-b x}}{x \sqrt {1+a+b x}} \, dx\\ &=-\left ((-1+a) \int \frac {1}{x \sqrt {1-a-b x} \sqrt {1+a+b x}} \, dx\right )-b \int \frac {1}{\sqrt {1-a-b x} \sqrt {1+a+b x}} \, dx\\ &=(2 (1-a)) \operatorname {Subst}\left (\int \frac {1}{-1-a-(-1+a) x^2} \, dx,x,\frac {\sqrt {1+a+b x}}{\sqrt {1-a-b x}}\right )-b \int \frac {1}{\sqrt {(1-a) (1+a)-2 a b x-b^2 x^2}} \, dx\\ &=-\frac {2 (1-a) \tanh ^{-1}\left (\frac {\sqrt {1-a} \sqrt {1+a+b x}}{\sqrt {1+a} \sqrt {1-a-b x}}\right )}{\sqrt {1-a^2}}+\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}\\ &=-\sin ^{-1}(a+b x)-\frac {2 (1-a) \tanh ^{-1}\left (\frac {\sqrt {1-a} \sqrt {1+a+b x}}{\sqrt {1+a} \sqrt {1-a-b x}}\right )}{\sqrt {1-a^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 106, normalized size = 1.56 \[ \frac {2 \sqrt {-b} \sinh ^{-1}\left (\frac {\sqrt {b} \sqrt {-a-b x+1}}{\sqrt {2} \sqrt {-b}}\right )}{\sqrt {b}}-\frac {2 \sqrt {a-1} \tanh ^{-1}\left (\frac {\sqrt {-a-1} \sqrt {-a-b x+1}}{\sqrt {a-1} \sqrt {a+b x+1}}\right )}{\sqrt {-a-1}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.61, size = 303, normalized size = 4.46 \[ \left [\frac {1}{2} \, \sqrt {-\frac {a - 1}{a + 1}} \log \left (\frac {{\left (2 \, a^{2} - 1\right )} b^{2} x^{2} + 2 \, a^{4} + 4 \, {\left (a^{3} - a\right )} b x - 4 \, a^{2} + 2 \, \sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left (a^{3} + {\left (a^{2} + a\right )} b x + a^{2} - a - 1\right )} \sqrt {-\frac {a - 1}{a + 1}} + 2}{x^{2}}\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 {\frac {a - 1}{a + 1}} \arctan \left (\frac {\sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left (a b x + a^{2} - 1\right )} \sqrt {\frac {a - 1}{a + 1}}}{{\left (a - 1\right )} b^{2} x^{2} + a^{3} + 2 \, {\left (a^{2} - a\right )} b x - a^{2} - 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 )\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.41, size = 89, normalized size = 1.31 \[ \frac {b \arcsin \left (-b x - a\right ) \mathrm {sgn}\relax (b)}{{\left | b \right |}} - \frac {2 \, {\left (a b - b\right )} \arctan \left (\frac {\frac {{\left (\sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left | b \right |} + b\right )} a}{b^{2} x + a b} - 1}{\sqrt {a^{2} - 1}}\right )}{\sqrt {a^{2} - 1} {\left | b \right |}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.04, size = 249, normalized size = 3.66 \[ \frac {\sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}}{1+a}-\frac {a b \arctan \left (\frac {\sqrt {b^{2}}\, \left (x +\frac {a}{b}\right )}{\sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}}\right )}{\left (1+a \right ) \sqrt {b^{2}}}-\frac {\sqrt {-a^{2}+1}\, \ln \left (\frac {-2 a^{2}+2-2 a b x +2 \sqrt {-a^{2}+1}\, \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}}{x}\right )}{1+a}-\frac {\sqrt {-\left (x +\frac {1+a}{b}\right )^{2} b^{2}+2 b \left (x +\frac {1+a}{b}\right )}}{1+a}-\frac {b \arctan \left (\frac {\sqrt {b^{2}}\, \left (x +\frac {1+a}{b}-\frac {1}{b}\right )}{\sqrt {-\left (x +\frac {1+a}{b}\right )^{2} b^{2}+2 b \left (x +\frac {1+a}{b}\right )}}\right )}{\left (1+a \right ) \sqrt {b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {1-{\left (a+b\,x\right )}^2}}{x\,\left (a+b\,x+1\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {- \left (a + b x - 1\right ) \left (a + b x + 1\right )}}{x \left (a + b x + 1\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________