Optimal. Leaf size=99 \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2+1}}{x}-\frac{a b \tanh ^{-1}\left (\frac{a^2+a b x+1}{\sqrt{a^2+1} \sqrt{a^2+2 a b x+b^2 x^2+1}}\right )}{\sqrt{a^2+1}}+b \sinh ^{-1}(a+b x)-\frac{a}{x}+b \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.105395, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 8, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.667, Rules used = {5907, 14, 732, 843, 619, 215, 724, 206} \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2+1}}{x}-\frac{a b \tanh ^{-1}\left (\frac{a^2+a b x+1}{\sqrt{a^2+1} \sqrt{a^2+2 a b x+b^2 x^2+1}}\right )}{\sqrt{a^2+1}}+b \sinh ^{-1}(a+b x)-\frac{a}{x}+b \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5907
Rule 14
Rule 732
Rule 843
Rule 619
Rule 215
Rule 724
Rule 206
Rubi steps
\begin{align*} \int \frac{e^{\sinh ^{-1}(a+b x)}}{x^2} \, dx &=\int \frac{a+b x+\sqrt{1+(a+b x)^2}}{x^2} \, dx\\ &=\int \left (\frac{a}{x^2}+\frac{b}{x}+\frac{\sqrt{1+a^2+2 a b x+b^2 x^2}}{x^2}\right ) \, dx\\ &=-\frac{a}{x}+b \log (x)+\int \frac{\sqrt{1+a^2+2 a b x+b^2 x^2}}{x^2} \, dx\\ &=-\frac{a}{x}-\frac{\sqrt{1+a^2+2 a b x+b^2 x^2}}{x}+b \log (x)+\frac{1}{2} \int \frac{2 a b+2 b^2 x}{x \sqrt{1+a^2+2 a b x+b^2 x^2}} \, dx\\ &=-\frac{a}{x}-\frac{\sqrt{1+a^2+2 a b x+b^2 x^2}}{x}+b \log (x)+(a b) \int \frac{1}{x \sqrt{1+a^2+2 a b x+b^2 x^2}} \, dx+b^2 \int \frac{1}{\sqrt{1+a^2+2 a b x+b^2 x^2}} \, dx\\ &=-\frac{a}{x}-\frac{\sqrt{1+a^2+2 a b x+b^2 x^2}}{x}+b \log (x)+\frac{1}{2} \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 a b) \operatorname{Subst}\left (\int \frac{1}{4 \left (1+a^2\right )-x^2} \, dx,x,\frac{2 \left (1+a^2\right )+2 a b x}{\sqrt{1+a^2+2 a b x+b^2 x^2}}\right )\\ &=-\frac{a}{x}-\frac{\sqrt{1+a^2+2 a b x+b^2 x^2}}{x}+b \sinh ^{-1}(a+b x)-\frac{a b \tanh ^{-1}\left (\frac{1+a^2+a b x}{\sqrt{1+a^2} \sqrt{1+a^2+2 a b x+b^2 x^2}}\right )}{\sqrt{1+a^2}}+b \log (x)\\ \end{align*}
Mathematica [A] time = 0.158718, size = 110, normalized size = 1.11 \[ b \sinh ^{-1}(a+b x)-\frac{\sqrt{a^2+2 a b x+b^2 x^2+1}+\frac{a b x \log \left (\sqrt{a^2+1} \sqrt{a^2+2 a b x+b^2 x^2+1}+a^2+a b x+1\right )}{\sqrt{a^2+1}}+\left (-\frac{a}{\sqrt{a^2+1}}-1\right ) b x \log (x)+a}{x} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.009, size = 267, normalized size = 2.7 \begin{align*} -{\frac{1}{ \left ({a}^{2}+1 \right ) x} \left ({b}^{2}{x}^{2}+2\,xab+{a}^{2}+1 \right ) ^{{\frac{3}{2}}}}+2\,{\frac{ab\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1}}{{a}^{2}+1}}+{\frac{{a}^{2}{b}^{2}}{{a}^{2}+1}\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}}}}}-{ab\ln \left ({\frac{1}{x} \left ( 2\,{a}^{2}+2+2\,xab+2\,\sqrt{{a}^{2}+1}\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1} \right ) } \right ){\frac{1}{\sqrt{{a}^{2}+1}}}}+{\frac{{b}^{2}x}{{a}^{2}+1}\sqrt{{b}^{2}{x}^{2}+2\,xab+{a}^{2}+1}}+{\frac{{b}^{2}}{{a}^{2}+1}\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{a}{x}}+b\ln \left ( x \right ) \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 [B] time = 2.72342, size = 437, normalized size = 4.41 \begin{align*} \frac{\sqrt{a^{2} + 1} a b x \log \left (-\frac{a^{2} b x + a^{3} + \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}{\left (a^{2} - \sqrt{a^{2} + 1} a + 1\right )} -{\left (a b x + a^{2} + 1\right )} \sqrt{a^{2} + 1} + a}{x}\right ) -{\left (a^{2} + 1\right )} b x \log \left (-b x - a + \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right ) +{\left (a^{2} + 1\right )} b x \log \left (x\right ) - a^{3} -{\left (a^{2} + 1\right )} b x - \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}{\left (a^{2} + 1\right )} - a}{{\left (a^{2} + 1\right )} x} \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{a + b x + \sqrt{a^{2} + 2 a b x + b^{2} x^{2} + 1}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]