Optimal. Leaf size=25 \[ a \sqrt {1-\frac {x^2}{a^2}}+x \text {ArcSin}\left (\frac {x}{a}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 25, 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 = {5373, 4715, 267}
\begin {gather*} a \sqrt {1-\frac {x^2}{a^2}}+x \text {ArcSin}\left (\frac {x}{a}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 267
Rule 4715
Rule 5373
Rubi steps
\begin {align*} \int \csc ^{-1}\left (\frac {a}{x}\right ) \, dx &=\int \sin ^{-1}\left (\frac {x}{a}\right ) \, dx\\ &=x \sin ^{-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 \sin ^{-1}\left (\frac {x}{a}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 25, normalized size = 1.00 \begin {gather*} a \sqrt {1-\frac {x^2}{a^2}}+x \csc ^{-1}\left (\frac {a}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(51\) vs.
\(2(23)=46\).
time = 0.49, size = 52, normalized size = 2.08
method | result | size |
derivativedivides | \(-a \left (-\frac {x \,\mathrm {arccsc}\left (\frac {a}{x}\right )}{a}-\frac {x^{2} \left (\frac {a^{2}}{x^{2}}-1\right )}{\sqrt {\frac {\left (\frac {a^{2}}{x^{2}}-1\right ) x^{2}}{a^{2}}}\, a^{2}}\right )\) | \(52\) |
default | \(-a \left (-\frac {x \,\mathrm {arccsc}\left (\frac {a}{x}\right )}{a}-\frac {x^{2} \left (\frac {a^{2}}{x^{2}}-1\right )}{\sqrt {\frac {\left (\frac {a^{2}}{x^{2}}-1\right ) x^{2}}{a^{2}}}\, a^{2}}\right )\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 23, normalized size = 0.92 \begin {gather*} x \operatorname {arccsc}\left (\frac {a}{x}\right ) + a \sqrt {-\frac {x^{2}}{a^{2}} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 26, normalized size = 1.04 \begin {gather*} x \operatorname {arccsc}\left (\frac {a}{x}\right ) + x \sqrt {\frac {a^{2} - x^{2}}{x^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 22, normalized size = 0.88 \begin {gather*} \begin {cases} a \sqrt {1 - \frac {x^{2}}{a^{2}}} + x \operatorname {acsc}{\left (\frac {a}{x} \right )} & \text {for}\: a \neq 0 \\\tilde {\infty } x & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 26, normalized size = 1.04 \begin {gather*} a {\left (\frac {x \arcsin \left (\frac {x}{a}\right )}{a} + \sqrt {-\frac {x^{2}}{a^{2}} + 1}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 23, normalized size = 0.92 \begin {gather*} a\,\sqrt {1-\frac {x^2}{a^2}}+x\,\mathrm {asin}\left (\frac {x}{a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________