Optimal. Leaf size=32 \[ -\frac{\tanh ^{-1}\left (\sqrt{1-\frac{x^2}{a^2}}\right )}{a}-\frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.030622, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5265, 4627, 266, 63, 208} \[ -\frac{\tanh ^{-1}\left (\sqrt{1-\frac{x^2}{a^2}}\right )}{a}-\frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5265
Rule 4627
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\csc ^{-1}\left (\frac{a}{x}\right )}{x^2} \, dx &=\int \frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x^2} \, dx\\ &=-\frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x}+\frac{\int \frac{1}{x \sqrt{1-\frac{x^2}{a^2}}} \, dx}{a}\\ &=-\frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x}+\frac{\operatorname{Subst}\left (\int \frac{1}{x \sqrt{1-\frac{x}{a^2}}} \, dx,x,x^2\right )}{2 a}\\ &=-\frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x}-a \operatorname{Subst}\left (\int \frac{1}{a^2-a^2 x^2} \, dx,x,\sqrt{1-\frac{x^2}{a^2}}\right )\\ &=-\frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x}-\frac{\tanh ^{-1}\left (\sqrt{1-\frac{x^2}{a^2}}\right )}{a}\\ \end{align*}
Mathematica [B] time = 0.143413, size = 93, normalized size = 2.91 \[ -\frac{x \sqrt{\frac{a^2}{x^2}-1} \left (\log \left (\frac{a}{x \sqrt{\frac{a^2}{x^2}-1}}+1\right )-\log \left (1-\frac{a}{x \sqrt{\frac{a^2}{x^2}-1}}\right )\right )}{2 a^2 \sqrt{1-\frac{x^2}{a^2}}}-\frac{\csc ^{-1}\left (\frac{a}{x}\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.182, size = 42, normalized size = 1.3 \begin{align*} -{\frac{1}{x}{\rm arccsc} \left ({\frac{a}{x}}\right )}-{\frac{1}{a}\ln \left ({\frac{a}{x}}+{\frac{a}{x}\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.975614, size = 70, normalized size = 2.19 \begin{align*} -\frac{\frac{2 \, a \operatorname{arccsc}\left (\frac{a}{x}\right )}{x} + \log \left (\sqrt{-\frac{x^{2}}{a^{2}} + 1} + 1\right ) - \log \left (-\sqrt{-\frac{x^{2}}{a^{2}} + 1} + 1\right )}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.36956, size = 140, normalized size = 4.38 \begin{align*} -\frac{2 \, a \operatorname{arccsc}\left (\frac{a}{x}\right ) + x \log \left (x \sqrt{\frac{a^{2} - x^{2}}{x^{2}}} + a\right ) - x \log \left (x \sqrt{\frac{a^{2} - x^{2}}{x^{2}}} - a\right )}{2 \, a 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{\operatorname{acsc}{\left (\frac{a}{x} \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1264, size = 82, normalized size = 2.56 \begin{align*} -\frac{a{\left (\frac{\log \left ({\left | a + \sqrt{a^{2} - x^{2}} \right |}\right )}{a} - \frac{\log \left ({\left | -a + \sqrt{a^{2} - x^{2}} \right |}\right )}{a}\right )}}{2 \,{\left | a \right |}} - \frac{\arcsin \left (\frac{x}{a}\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]