Optimal. Leaf size=63 \[ \frac {b \tanh ^{-1}\left (\frac {1-a (a+b x)}{\sqrt {1-a^2} \sqrt {1-(a+b x)^2}}\right )}{\sqrt {1-a^2}}-\frac {\cos ^{-1}(a+b x)}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4806, 4744, 725, 206} \[ \frac {b \tanh ^{-1}\left (\frac {1-a (a+b x)}{\sqrt {1-a^2} \sqrt {1-(a+b x)^2}}\right )}{\sqrt {1-a^2}}-\frac {\cos ^{-1}(a+b x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 725
Rule 4744
Rule 4806
Rubi steps
\begin {align*} \int \frac {\cos ^{-1}(a+b x)}{x^2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\cos ^{-1}(x)}{\left (-\frac {a}{b}+\frac {x}{b}\right )^2} \, dx,x,a+b x\right )}{b}\\ &=-\frac {\cos ^{-1}(a+b x)}{x}-\operatorname {Subst}\left (\int \frac {1}{\left (-\frac {a}{b}+\frac {x}{b}\right ) \sqrt {1-x^2}} \, dx,x,a+b x\right )\\ &=-\frac {\cos ^{-1}(a+b x)}{x}+\operatorname {Subst}\left (\int \frac {1}{\frac {1}{b^2}-\frac {a^2}{b^2}-x^2} \, dx,x,\frac {\frac {1}{b}-\frac {a (a+b x)}{b}}{\sqrt {1-(a+b x)^2}}\right )\\ &=-\frac {\cos ^{-1}(a+b x)}{x}+\frac {b \tanh ^{-1}\left (\frac {b \left (\frac {1}{b}-\frac {a (a+b x)}{b}\right )}{\sqrt {1-a^2} \sqrt {1-(a+b x)^2}}\right )}{\sqrt {1-a^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 79, normalized size = 1.25 \[ \frac {b \left (\log \left (\sqrt {1-a^2} \sqrt {-a^2-2 a b x-b^2 x^2+1}-a^2-a b x+1\right )-\log (x)\right )}{\sqrt {1-a^2}}-\frac {\cos ^{-1}(a+b x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.53, size = 360, normalized size = 5.71 \[ \left [-\frac {\sqrt {-a^{2} + 1} b x \log \left (\frac {{\left (2 \, a^{2} - 1\right )} b^{2} x^{2} + 2 \, a^{4} + 4 \, {\left (a^{3} - a\right )} b x - 2 \, \sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left (a b x + a^{2} - 1\right )} \sqrt {-a^{2} + 1} - 4 \, a^{2} + 2}{x^{2}}\right ) + 2 \, {\left (a^{2} - 1\right )} x \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 ) + 2 \, {\left (a^{2} - {\left (a^{2} - 1\right )} x - 1\right )} \arccos \left (b x + a\right )}{2 \, {\left (a^{2} - 1\right )} x}, -\frac {\sqrt {a^{2} - 1} b x \arctan \left (\frac {\sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left (a b x + a^{2} - 1\right )} \sqrt {a^{2} - 1}}{{\left (a^{2} - 1\right )} b^{2} x^{2} + a^{4} + 2 \, {\left (a^{3} - a\right )} b x - 2 \, a^{2} + 1}\right ) + {\left (a^{2} - 1\right )} x \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 ) + {\left (a^{2} - {\left (a^{2} - 1\right )} x - 1\right )} \arccos \left (b x + a\right )}{{\left (a^{2} - 1\right )} x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.99, size = 79, normalized size = 1.25 \[ -\frac {2 \, b^{2} \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 |}} - \frac {\arccos \left (b x + a\right )}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 77, normalized size = 1.22 \[ -\frac {\arccos \left (b x +a \right )}{x}+\frac {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}}{b x}\right )}{\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 [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {\mathrm {acos}\left (a+b\,x\right )}{x^2} \,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 {\operatorname {acos}{\left (a + b x \right )}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________