Optimal. Leaf size=40 \[ x \tan ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )-a \tanh ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5203, 12, 1961, 208} \[ x \tan ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )-a \tanh ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 208
Rule 1961
Rule 5203
Rubi steps
\begin {align*} \int \tan ^{-1}\left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx &=x \tan ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )-\int \frac {a}{2 \sqrt {\frac {-a+x}{a+x}} (a+x)} \, dx\\ &=x \tan ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )-\frac {1}{2} a \int \frac {1}{\sqrt {\frac {-a+x}{a+x}} (a+x)} \, dx\\ &=x \tan ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )-\left (2 a^2\right ) \operatorname {Subst}\left (\int \frac {1}{2 a-2 a x^2} \, dx,x,\sqrt {\frac {-a+x}{a+x}}\right )\\ &=x \tan ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )-a \tanh ^{-1}\left (\sqrt {-\frac {a-x}{a+x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 71, normalized size = 1.78 \[ x \tan ^{-1}\left (\sqrt {\frac {x-a}{a+x}}\right )-\frac {a \sqrt {x-a} \tanh ^{-1}\left (\frac {\sqrt {x-a}}{\sqrt {a+x}}\right )}{\sqrt {\frac {x-a}{a+x}} \sqrt {a+x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \tan ^{-1}\left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.12, size = 58, normalized size = 1.45 \[ x \arctan \left (\sqrt {-\frac {a - x}{a + x}}\right ) - \frac {1}{2} \, a \log \left (\sqrt {-\frac {a - x}{a + x}} + 1\right ) + \frac {1}{2} \, a \log \left (\sqrt {-\frac {a - x}{a + x}} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.19, size = 49, normalized size = 1.22 \[ \frac {1}{2} \, a \log \left ({\left | -x + \sqrt {-a^{2} + x^{2}} \right |}\right ) \mathrm {sgn}\left (a + x\right ) + x \arctan \left (\frac {\sqrt {-a^{2} + x^{2}} \mathrm {sgn}\left (a + x\right )}{a + x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 66, normalized size = 1.65
method | result | size |
default | \(x \arctan \left (\sqrt {\frac {-a +x}{a +x}}\right )+\frac {\left (a -x \right ) a \ln \left (x +\sqrt {-a^{2}+x^{2}}\right )}{2 \sqrt {-\frac {a -x}{a +x}}\, \sqrt {-\left (a -x \right ) \left (a +x \right )}}\) | \(66\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.98, size = 89, normalized size = 2.22 \[ \frac {1}{2} \, a {\left (\frac {4 \, \arctan \left (\sqrt {-\frac {a - x}{a + x}}\right )}{\frac {a - x}{a + x} + 1} - 2 \, \arctan \left (\sqrt {-\frac {a - x}{a + x}}\right ) - \log \left (\sqrt {-\frac {a - x}{a + x}} + 1\right ) + \log \left (\sqrt {-\frac {a - x}{a + x}} - 1\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.36, size = 36, normalized size = 0.90 \[ x\,\mathrm {atan}\left (\sqrt {-\frac {a-x}{a+x}}\right )-a\,\mathrm {atanh}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \operatorname {atan}{\left (\sqrt {\frac {- a + x}{a + x}} \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________