Optimal. Leaf size=26 \[ x \cos ^{-1}\left (\frac{x}{a}\right )-a \sqrt{1-\frac{x^2}{a^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0092175, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5264, 4620, 261} \[ x \cos ^{-1}\left (\frac{x}{a}\right )-a \sqrt{1-\frac{x^2}{a^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5264
Rule 4620
Rule 261
Rubi steps
\begin{align*} \int \sec ^{-1}\left (\frac{a}{x}\right ) \, dx &=\int \cos ^{-1}\left (\frac{x}{a}\right ) \, dx\\ &=x \cos ^{-1}\left (\frac{x}{a}\right )+\frac{\int \frac{x}{\sqrt{1-\frac{x^2}{a^2}}} \, dx}{a}\\ &=-a \sqrt{1-\frac{x^2}{a^2}}+x \cos ^{-1}\left (\frac{x}{a}\right )\\ \end{align*}
Mathematica [A] time = 0.0125269, size = 26, normalized size = 1. \[ x \sec ^{-1}\left (\frac{a}{x}\right )-a \sqrt{1-\frac{x^2}{a^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.151, size = 51, normalized size = 2. \begin{align*} -a \left ( -{\frac{x}{a}{\rm arcsec} \left ({\frac{a}{x}}\right )}+{\frac{{x}^{2}}{{a}^{2}} \left ( -1+{\frac{{a}^{2}}{{x}^{2}}} \right ){\frac{1}{\sqrt{{\frac{{x}^{2}}{{a}^{2}} \left ( -1+{\frac{{a}^{2}}{{x}^{2}}} \right ) }}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.964025, size = 32, normalized size = 1.23 \begin{align*} x \operatorname{arcsec}\left (\frac{a}{x}\right ) - a \sqrt{-\frac{x^{2}}{a^{2}} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.60646, size = 55, normalized size = 2.12 \begin{align*} x \operatorname{arcsec}\left (\frac{a}{x}\right ) - x \sqrt{\frac{a^{2} - x^{2}}{x^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.164664, size = 22, normalized size = 0.85 \begin{align*} \begin{cases} - a \sqrt{1 - \frac{x^{2}}{a^{2}}} + x \operatorname{asec}{\left (\frac{a}{x} \right )} & \text{for}\: a \neq 0 \\\tilde{\infty } x & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08103, size = 38, normalized size = 1.46 \begin{align*} a{\left (\frac{x \arccos \left (\frac{x}{a}\right )}{a} - \sqrt{-\frac{x^{2}}{a^{2}} + 1}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]