Optimal. Leaf size=59 \[ -\frac{1}{2} i \text{PolyLog}\left (2,e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )-\frac{1}{2} i \sin ^{-1}\left (\frac{x}{a}\right )^2+\sin ^{-1}\left (\frac{x}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0636623, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {5265, 4625, 3717, 2190, 2279, 2391} \[ -\frac{1}{2} i \text{PolyLog}\left (2,e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )-\frac{1}{2} i \sin ^{-1}\left (\frac{x}{a}\right )^2+\sin ^{-1}\left (\frac{x}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5265
Rule 4625
Rule 3717
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{\csc ^{-1}\left (\frac{a}{x}\right )}{x} \, dx &=\int \frac{\sin ^{-1}\left (\frac{x}{a}\right )}{x} \, dx\\ &=\operatorname{Subst}\left (\int x \cot (x) \, dx,x,\sin ^{-1}\left (\frac{x}{a}\right )\right )\\ &=-\frac{1}{2} i \sin ^{-1}\left (\frac{x}{a}\right )^2-2 i \operatorname{Subst}\left (\int \frac{e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\sin ^{-1}\left (\frac{x}{a}\right )\right )\\ &=-\frac{1}{2} i \sin ^{-1}\left (\frac{x}{a}\right )^2+\sin ^{-1}\left (\frac{x}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )-\operatorname{Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}\left (\frac{x}{a}\right )\right )\\ &=-\frac{1}{2} i \sin ^{-1}\left (\frac{x}{a}\right )^2+\sin ^{-1}\left (\frac{x}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )+\frac{1}{2} i \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )\\ &=-\frac{1}{2} i \sin ^{-1}\left (\frac{x}{a}\right )^2+\sin ^{-1}\left (\frac{x}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )-\frac{1}{2} i \text{Li}_2\left (e^{2 i \sin ^{-1}\left (\frac{x}{a}\right )}\right )\\ \end{align*}
Mathematica [A] time = 0.0329512, size = 54, normalized size = 0.92 \[ \csc ^{-1}\left (\frac{a}{x}\right ) \log \left (1-e^{2 i \csc ^{-1}\left (\frac{a}{x}\right )}\right )-\frac{1}{2} i \left (\csc ^{-1}\left (\frac{a}{x}\right )^2+\text{PolyLog}\left (2,e^{2 i \csc ^{-1}\left (\frac{a}{x}\right )}\right )\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.238, size = 125, normalized size = 2.1 \begin{align*} -{\frac{i}{2}} \left ({\rm arccsc} \left ({\frac{a}{x}}\right ) \right ) ^{2}+{\rm arccsc} \left ({\frac{a}{x}}\right )\ln \left ( 1-{\frac{ix}{a}}-\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}} \right ) +{\rm arccsc} \left ({\frac{a}{x}}\right )\ln \left ( 1+{\frac{ix}{a}}+\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}} \right ) -i{\it polylog} \left ( 2,{\frac{-ix}{a}}-\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}} \right ) -i{\it polylog} \left ( 2,{\frac{ix}{a}}+\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}} \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 [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\operatorname{arccsc}\left (\frac{a}{x}\right )}{x}, x\right ) \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}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{arccsc}\left (\frac{a}{x}\right )}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]