Optimal. Leaf size=64 \[ \sin ^{-1}(a+b x)-\frac {2 (a+1) \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}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.583, Rules used = {6163, 105, 53, 619, 216, 93, 208} \[ \sin ^{-1}(a+b x)-\frac {2 (a+1) \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}} \]
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.06, size = 106, normalized size = 1.66 \[ \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.70, size = 306, normalized size = 4.78 \[ \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.23, size = 79, normalized size = 1.23 \[ -\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 {-{\left (b x + a\right )}^{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 = 168, normalized size = 2.62 \[ \frac {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 )}{\sqrt {b^{2}}}-\frac {\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 )}{\sqrt {-a^{2}+1}}-\frac {\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 ) a}{\sqrt {-a^{2}+1}} \]
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 [B] time = 1.39, size = 132, normalized size = 2.06 \[ \mathrm {asin}\left (a+b\,x\right )-\frac {\ln \left (\frac {\sqrt {1-a^2}\,\sqrt {-a^2-2\,a\,b\,x-b^2\,x^2+1}}{x}-\frac {a^2-1}{x}-a\,b\right )}{\sqrt {1-a^2}}-\frac {a\,\ln \left (\frac {\sqrt {1-a^2}\,\sqrt {-a^2-2\,a\,b\,x-b^2\,x^2+1}}{x}-\frac {a^2-1}{x}-a\,b\right )}{\sqrt {1-a^2}} \]
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 {a + b x + 1}{x \sqrt {- \left (a + b x - 1\right ) \left (a + b x + 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________