Optimal. Leaf size=23 \[ -\frac{\tanh ^{-1}\left (\frac{\sqrt{a^2-x^2}}{a}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0141744, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {266, 63, 206} \[ -\frac{\tanh ^{-1}\left (\frac{\sqrt{a^2-x^2}}{a}\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{x \sqrt{a^2-x^2}} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{a^2-x} x} \, dx,x,x^2\right )\\ &=-\operatorname{Subst}\left (\int \frac{1}{a^2-x^2} \, dx,x,\sqrt{a^2-x^2}\right )\\ &=-\frac{\tanh ^{-1}\left (\frac{\sqrt{a^2-x^2}}{a}\right )}{a}\\ \end{align*}
Mathematica [A] time = 0.0038571, size = 23, normalized size = 1. \[ -\frac{\tanh ^{-1}\left (\frac{\sqrt{a^2-x^2}}{a}\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 37, normalized size = 1.6 \begin{align*} -{\ln \left ({\frac{1}{x} \left ( 2\,{a}^{2}+2\,\sqrt{{a}^{2}}\sqrt{{a}^{2}-{x}^{2}} \right ) } \right ){\frac{1}{\sqrt{{a}^{2}}}}} \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 = 1.88047, size = 45, normalized size = 1.96 \begin{align*} \frac{\log \left (-\frac{a - \sqrt{a^{2} - x^{2}}}{x}\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.07572, size = 24, normalized size = 1.04 \begin{align*} \begin{cases} - \frac{\operatorname{acosh}{\left (\frac{a}{x} \right )}}{a} & \text{for}\: \frac{\left |{a^{2}}\right |}{\left |{x^{2}}\right |} > 1 \\\frac{i \operatorname{asin}{\left (\frac{a}{x} \right )}}{a} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.07154, size = 58, normalized size = 2.52 \begin{align*} -\frac{\log \left ({\left | a + \sqrt{a^{2} - x^{2}} \right |}\right )}{2 \, a} + \frac{\log \left ({\left | -a + \sqrt{a^{2} - x^{2}} \right |}\right )}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]