Integrand size = 16, antiderivative size = 40 \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=x \arctan \left (\sqrt {-\frac {a-x}{a+x}}\right )-a \text {arctanh}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5311, 12, 1983, 214} \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=x \arctan \left (\sqrt {-\frac {a-x}{a+x}}\right )-a \text {arctanh}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \]
[In]
[Out]
Rule 12
Rule 214
Rule 1983
Rule 5311
Rubi steps \begin{align*} \text {integral}& = x \arctan \left (\sqrt {-\frac {a-x}{a+x}}\right )-\int \frac {a}{2 \sqrt {\frac {-a+x}{a+x}} (a+x)} \, dx \\ & = x \arctan \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 \arctan \left (\sqrt {-\frac {a-x}{a+x}}\right )-\left (2 a^2\right ) \text {Subst}\left (\int \frac {1}{2 a-2 a x^2} \, dx,x,\sqrt {\frac {-a+x}{a+x}}\right ) \\ & = x \arctan \left (\sqrt {-\frac {a-x}{a+x}}\right )-a \text {arctanh}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.78 \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=x \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right )-\frac {a \sqrt {-a+x} \text {arctanh}\left (\frac {\sqrt {a+x}}{\sqrt {-a+x}}\right )}{\sqrt {\frac {-a+x}{a+x}} \sqrt {a+x}} \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 66, normalized size of antiderivative = 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\) |
parts | \(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\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.45 \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=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 ) \]
[In]
[Out]
\[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=\int \operatorname {atan}{\left (\sqrt {\frac {- a + x}{a + x}} \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 89 vs. \(2 (36) = 72\).
Time = 0.28 (sec) , antiderivative size = 89, normalized size of antiderivative = 2.22 \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=\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 )} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.22 \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=\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 ) \]
[In]
[Out]
Time = 0.43 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.90 \[ \int \arctan \left (\sqrt {\frac {-a+x}{a+x}}\right ) \, dx=x\,\mathrm {atan}\left (\sqrt {-\frac {a-x}{a+x}}\right )-a\,\mathrm {atanh}\left (\sqrt {-\frac {a-x}{a+x}}\right ) \]
[In]
[Out]