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.01, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, 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 261
Rule 4620
Rule 5264
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.01, size = 26, normalized size = 1.00 \[ x \sec ^{-1}\left (\frac {a}{x}\right )-a \sqrt {1-\frac {x^2}{a^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.91, size = 27, normalized size = 1.04 \[ x \operatorname {arcsec}\left (\frac {a}{x}\right ) - x \sqrt {\frac {a^{2} - x^{2}}{x^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 28, normalized size = 1.08 \[ a {\left (\frac {x \arccos \left (\frac {x}{a}\right )}{a} - \sqrt {-\frac {x^{2}}{a^{2}} + 1}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 51, normalized size = 1.96 \[ -a \left (-\frac {x \,\mathrm {arcsec}\left (\frac {a}{x}\right )}{a}+\frac {x^{2} \left (-1+\frac {a^{2}}{x^{2}}\right )}{\sqrt {\frac {\left (-1+\frac {a^{2}}{x^{2}}\right ) x^{2}}{a^{2}}}\, a^{2}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 24, normalized size = 0.92 \[ x \operatorname {arcsec}\left (\frac {a}{x}\right ) - a \sqrt {-\frac {x^{2}}{a^{2}} + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 24, normalized size = 0.92 \[ x\,\mathrm {acos}\left (\frac {x}{a}\right )-a\,\sqrt {1-\frac {x^2}{a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 22, normalized size = 0.85 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________