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.11, antiderivative size = 99, normalized size of antiderivative = 1.00, 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 14
Rule 206
Rule 215
Rule 619
Rule 724
Rule 732
Rule 843
Rule 5907
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.17, 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]
________________________________________________________________________________________
fricas [B] time = 0.69, size = 183, normalized size = 1.85 \[ \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 \relax (x) - 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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.94, size = 234, normalized size = 2.36 \[ \frac {a b \log \left (\frac {{\left | -2 \, x {\left | b \right |} + 2 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} - 2 \, \sqrt {a^{2} + 1} \right |}}{{\left | -2 \, x {\left | b \right |} + 2 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1} + 2 \, \sqrt {a^{2} + 1} \right |}}\right )}{\sqrt {a^{2} + 1}} - \frac {b^{2} \log \left (-a b - {\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right )} {\left | b \right |}\right )}{{\left | b \right |}} + b \log \left ({\left | x \right |}\right ) - \frac {a}{x} + \frac {2 \, {\left ({\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right )} a b^{5} + a^{2} b^{4} {\left | b \right |} + b^{4} {\left | b \right |}\right )}}{{\left ({\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right )}^{2} - a^{2} - 1\right )} b^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 267, normalized size = 2.70 \[ -\frac {\left (b^{2} x^{2}+2 a b x +a^{2}+1\right )^{\frac {3}{2}}}{\left (a^{2}+1\right ) x}+\frac {2 a b \sqrt {b^{2} x^{2}+2 a b x +a^{2}+1}}{a^{2}+1}+\frac {a^{2} b^{2} \ln \left (\frac {b^{2} x +a b}{\sqrt {b^{2}}}+\sqrt {b^{2} x^{2}+2 a b x +a^{2}+1}\right )}{\left (a^{2}+1\right ) \sqrt {b^{2}}}-\frac {a b \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 {b^{2} \sqrt {b^{2} x^{2}+2 a b x +a^{2}+1}\, x}{a^{2}+1}+\frac {b^{2} \ln \left (\frac {b^{2} x +a b}{\sqrt {b^{2}}}+\sqrt {b^{2} x^{2}+2 a b x +a^{2}+1}\right )}{\left (a^{2}+1\right ) \sqrt {b^{2}}}+b \ln \relax (x )-\frac {a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 170, normalized size = 1.72 \[ -\frac {a b \operatorname {arsinh}\left (\frac {2 \, a b x}{\sqrt {-4 \, a^{2} b^{2} + 4 \, {\left (a^{2} + 1\right )} b^{2}} {\left | x \right |}} + \frac {2 \, a^{2}}{\sqrt {-4 \, a^{2} b^{2} + 4 \, {\left (a^{2} + 1\right )} b^{2}} {\left | x \right |}} + \frac {2}{\sqrt {-4 \, a^{2} b^{2} + 4 \, {\left (a^{2} + 1\right )} b^{2}} {\left | x \right |}}\right )}{\sqrt {a^{2} + 1}} + b \operatorname {arsinh}\left (\frac {2 \, {\left (b^{2} x + a b\right )}}{\sqrt {-4 \, a^{2} b^{2} + 4 \, {\left (a^{2} + 1\right )} b^{2}}}\right ) + b \log \relax (x) - \frac {a}{x} - \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} + 1}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.26, size = 269, normalized size = 2.72 \[ b\,\ln \relax (x)-\frac {a}{x}+\ln \left (\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}+\frac {x\,b^2+a\,b}{\sqrt {b^2}}\right )\,\sqrt {b^2}-\frac {\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}}{x\,\left (a^2+1\right )}+\frac {a^3\,b\,\mathrm {atanh}\left (\frac {a^2+b\,x\,a+1}{\sqrt {a^2+1}\,\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}}\right )}{{\left (a^2+1\right )}^{3/2}}-\frac {a^2\,\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}}{x\,\left (a^2+1\right )}+\frac {a\,b\,\mathrm {atanh}\left (\frac {a^2+b\,x\,a+1}{\sqrt {a^2+1}\,\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}}\right )}{{\left (a^2+1\right )}^{3/2}}-\frac {2\,a\,b\,\ln \left (a\,b+\frac {a^2+1}{x}+\frac {\sqrt {a^2+1}\,\sqrt {a^2+2\,a\,b\,x+b^2\,x^2+1}}{x}\right )}{\sqrt {a^2+1}} \]
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 + \sqrt {a^{2} + 2 a b x + b^{2} x^{2} + 1}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________