Optimal. Leaf size=59 \[ -\frac{1}{2} i \text{PolyLog}\left (2,-e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right )-\frac{1}{2} i \cos ^{-1}\left (\frac{x}{a}\right )^2+\cos ^{-1}\left (\frac{x}{a}\right ) \log \left (1+e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0598754, 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 = {5264, 4626, 3719, 2190, 2279, 2391} \[ -\frac{1}{2} i \text{PolyLog}\left (2,-e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right )-\frac{1}{2} i \cos ^{-1}\left (\frac{x}{a}\right )^2+\cos ^{-1}\left (\frac{x}{a}\right ) \log \left (1+e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5264
Rule 4626
Rule 3719
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{\sec ^{-1}\left (\frac{a}{x}\right )}{x} \, dx &=\int \frac{\cos ^{-1}\left (\frac{x}{a}\right )}{x} \, dx\\ &=-\operatorname{Subst}\left (\int x \tan (x) \, dx,x,\cos ^{-1}\left (\frac{x}{a}\right )\right )\\ &=-\frac{1}{2} i \cos ^{-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,\cos ^{-1}\left (\frac{x}{a}\right )\right )\\ &=-\frac{1}{2} i \cos ^{-1}\left (\frac{x}{a}\right )^2+\cos ^{-1}\left (\frac{x}{a}\right ) \log \left (1+e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right )-\operatorname{Subst}\left (\int \log \left (1+e^{2 i x}\right ) \, dx,x,\cos ^{-1}\left (\frac{x}{a}\right )\right )\\ &=-\frac{1}{2} i \cos ^{-1}\left (\frac{x}{a}\right )^2+\cos ^{-1}\left (\frac{x}{a}\right ) \log \left (1+e^{2 i \cos ^{-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 \cos ^{-1}\left (\frac{x}{a}\right )}\right )\\ &=-\frac{1}{2} i \cos ^{-1}\left (\frac{x}{a}\right )^2+\cos ^{-1}\left (\frac{x}{a}\right ) \log \left (1+e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right )-\frac{1}{2} i \text{Li}_2\left (-e^{2 i \cos ^{-1}\left (\frac{x}{a}\right )}\right )\\ \end{align*}
Mathematica [A] time = 0.0204337, size = 59, normalized size = 1. \[ -\frac{1}{2} i \text{PolyLog}\left (2,-e^{2 i \sec ^{-1}\left (\frac{a}{x}\right )}\right )-\frac{1}{2} i \sec ^{-1}\left (\frac{a}{x}\right )^2+\sec ^{-1}\left (\frac{a}{x}\right ) \log \left (1+e^{2 i \sec ^{-1}\left (\frac{a}{x}\right )}\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.236, size = 76, normalized size = 1.3 \begin{align*} -{\frac{i}{2}} \left ({\rm arcsec} \left ({\frac{a}{x}}\right ) \right ) ^{2}+{\rm arcsec} \left ({\frac{a}{x}}\right )\ln \left ( 1+ \left ({\frac{x}{a}}+i\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}} \right ) ^{2} \right ) -{\frac{i}{2}}{\it polylog} \left ( 2,- \left ({\frac{x}{a}}+i\sqrt{1-{\frac{{x}^{2}}{{a}^{2}}}} \right ) ^{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{arcsec}\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{asec}{\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{arcsec}\left (\frac{a}{x}\right )}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]