Optimal. Leaf size=47 \[ -\frac{1}{4} a x \sqrt{1-\frac{x^2}{a^2}}+\frac{1}{4} a^2 \sin ^{-1}\left (\frac{x}{a}\right )+\frac{1}{2} x^2 \cos ^{-1}\left (\frac{x}{a}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0201988, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5264, 4628, 321, 216} \[ -\frac{1}{4} a x \sqrt{1-\frac{x^2}{a^2}}+\frac{1}{4} a^2 \sin ^{-1}\left (\frac{x}{a}\right )+\frac{1}{2} x^2 \cos ^{-1}\left (\frac{x}{a}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5264
Rule 4628
Rule 321
Rule 216
Rubi steps
\begin{align*} \int x \sec ^{-1}\left (\frac{a}{x}\right ) \, dx &=\int x \cos ^{-1}\left (\frac{x}{a}\right ) \, dx\\ &=\frac{1}{2} x^2 \cos ^{-1}\left (\frac{x}{a}\right )+\frac{\int \frac{x^2}{\sqrt{1-\frac{x^2}{a^2}}} \, dx}{2 a}\\ &=-\frac{1}{4} a x \sqrt{1-\frac{x^2}{a^2}}+\frac{1}{2} x^2 \cos ^{-1}\left (\frac{x}{a}\right )+\frac{1}{4} a \int \frac{1}{\sqrt{1-\frac{x^2}{a^2}}} \, dx\\ &=-\frac{1}{4} a x \sqrt{1-\frac{x^2}{a^2}}+\frac{1}{2} x^2 \cos ^{-1}\left (\frac{x}{a}\right )+\frac{1}{4} a^2 \sin ^{-1}\left (\frac{x}{a}\right )\\ \end{align*}
Mathematica [A] time = 0.0268036, size = 44, normalized size = 0.94 \[ \frac{1}{4} \left (-a x \sqrt{1-\frac{x^2}{a^2}}+a^2 \sin ^{-1}\left (\frac{x}{a}\right )+2 x^2 \sec ^{-1}\left (\frac{a}{x}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.152, size = 93, normalized size = 2. \begin{align*}{\frac{{x}^{2}}{2}{\rm arcsec} \left ({\frac{a}{x}}\right )}+{\frac{ax}{4}\sqrt{-1+{\frac{{a}^{2}}{{x}^{2}}}}\arctan \left ({\frac{1}{\sqrt{-1+{\frac{{a}^{2}}{{x}^{2}}}}}} \right ){\frac{1}{\sqrt{{\frac{{x}^{2}}{{a}^{2}} \left ( -1+{\frac{{a}^{2}}{{x}^{2}}} \right ) }}}}}-{\frac{{x}^{3}}{4\,a} \left ( -1+{\frac{{a}^{2}}{{x}^{2}}} \right ){\frac{1}{\sqrt{{\frac{{x}^{2}}{{a}^{2}} \left ( -1+{\frac{{a}^{2}}{{x}^{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 [A] time = 2.54974, size = 86, normalized size = 1.83 \begin{align*} -\frac{1}{4} \, x^{2} \sqrt{\frac{a^{2} - x^{2}}{x^{2}}} - \frac{1}{4} \,{\left (a^{2} - 2 \, x^{2}\right )} \operatorname{arcsec}\left (\frac{a}{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.266126, size = 41, normalized size = 0.87 \begin{align*} \begin{cases} - \frac{a^{2} \operatorname{asec}{\left (\frac{a}{x} \right )}}{4} - \frac{a x \sqrt{1 - \frac{x^{2}}{a^{2}}}}{4} + \frac{x^{2} \operatorname{asec}{\left (\frac{a}{x} \right )}}{2} & \text{for}\: a \neq 0 \\\tilde{\infty } x^{2} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09669, size = 53, normalized size = 1.13 \begin{align*} -\frac{1}{4} \, a^{2} \arccos \left (\frac{x}{a}\right ) + \frac{1}{2} \, x^{2} \arccos \left (\frac{x}{a}\right ) - \frac{1}{4} \, a x \sqrt{-\frac{x^{2}}{a^{2}} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]