3.114 \(\int \frac {x}{4-x^2+\sqrt {4-x^2}} \, dx\)

Optimal. Leaf size=16 \[ -\log \left (\sqrt {4-x^2}+1\right ) \]

[Out]

-ln(1+(-x^2+4)^(1/2))

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {2155, 31} \[ -\log \left (\sqrt {4-x^2}+1\right ) \]

Antiderivative was successfully verified.

[In]

Int[x/(4 - x^2 + Sqrt[4 - x^2]),x]

[Out]

-Log[1 + Sqrt[4 - x^2]]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2155

Int[(x_)^(m_.)/((c_) + (d_.)*(x_)^(n_) + (e_.)*Sqrt[(a_) + (b_.)*(x_)^(n_)]), x_Symbol] :> Dist[1/n, Subst[Int
[x^((m + 1)/n - 1)/(c + d*x + e*Sqrt[a + b*x]), x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && EqQ[b*c
- a*d, 0] && IntegerQ[(m + 1)/n]

Rubi steps

\begin {align*} \int \frac {x}{4-x^2+\sqrt {4-x^2}} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{4+\sqrt {4-x}-x} \, dx,x,x^2\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{1+x} \, dx,x,\sqrt {4-x^2}\right )\\ &=-\log \left (1+\sqrt {4-x^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 16, normalized size = 1.00 \[ -\log \left (\sqrt {4-x^2}+1\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x/(4 - x^2 + Sqrt[4 - x^2]),x]

[Out]

-Log[1 + Sqrt[4 - x^2]]

________________________________________________________________________________________

fricas [B]  time = 0.40, size = 55, normalized size = 3.44 \[ -\frac {1}{2} \, \log \left (x^{2} - 3\right ) + \frac {1}{2} \, \log \left (-\frac {x^{2} + 3 \, \sqrt {-x^{2} + 4} - 6}{x^{2}}\right ) - \frac {1}{2} \, \log \left (-\frac {x^{2} + \sqrt {-x^{2} + 4} - 2}{x^{2}}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(4-x^2+(-x^2+4)^(1/2)),x, algorithm="fricas")

[Out]

-1/2*log(x^2 - 3) + 1/2*log(-(x^2 + 3*sqrt(-x^2 + 4) - 6)/x^2) - 1/2*log(-(x^2 + sqrt(-x^2 + 4) - 2)/x^2)

________________________________________________________________________________________

giac [A]  time = 0.01, size = 14, normalized size = 0.88 \[ -\log \left (\sqrt {-x^{2} + 4} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(4-x^2+(-x^2+4)^(1/2)),x, algorithm="giac")

[Out]

-log(sqrt(-x^2 + 4) + 1)

________________________________________________________________________________________

maple [B]  time = 0.10, size = 266, normalized size = 16.62 \[ \frac {\arctanh \left (\frac {2-2 \sqrt {3}\, \left (x -\sqrt {3}\right )}{2 \sqrt {-\left (x -\sqrt {3}\right )^{2}-2 \sqrt {3}\, \left (x -\sqrt {3}\right )+1}}\right )}{2 \left (2+\sqrt {3}\right ) \left (-2+\sqrt {3}\right )}+\frac {\arctanh \left (\frac {2+2 \sqrt {3}\, \left (x +\sqrt {3}\right )}{2 \sqrt {-\left (x +\sqrt {3}\right )^{2}+2 \sqrt {3}\, \left (x +\sqrt {3}\right )+1}}\right )}{2 \left (2+\sqrt {3}\right ) \left (-2+\sqrt {3}\right )}-\frac {\ln \left (x^{2}-3\right )}{2}+\frac {\sqrt {-4 x -\left (x -2\right )^{2}+8}}{2 \left (2+\sqrt {3}\right ) \left (-2+\sqrt {3}\right )}-\frac {\sqrt {-\left (x +\sqrt {3}\right )^{2}+2 \sqrt {3}\, \left (x +\sqrt {3}\right )+1}}{2 \left (2+\sqrt {3}\right ) \left (-2+\sqrt {3}\right )}+\frac {\sqrt {4 x -\left (x +2\right )^{2}+8}}{2 \left (2+\sqrt {3}\right ) \left (-2+\sqrt {3}\right )}-\frac {\sqrt {-\left (x -\sqrt {3}\right )^{2}-2 \sqrt {3}\, \left (x -\sqrt {3}\right )+1}}{2 \left (2+\sqrt {3}\right ) \left (-2+\sqrt {3}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(4-x^2+(-x^2+4)^(1/2)),x)

[Out]

-1/2*ln(x^2-3)+1/2/(2+3^(1/2))/(-2+3^(1/2))*(-(-2+x)^2-4*x+8)^(1/2)+1/2/(2+3^(1/2))/(-2+3^(1/2))*arctanh(1/2*(
2+2*3^(1/2)*(x+3^(1/2)))/(-(x+3^(1/2))^2+2*3^(1/2)*(x+3^(1/2))+1)^(1/2))-1/2/(2+3^(1/2))/(-2+3^(1/2))*(-(x+3^(
1/2))^2+2*3^(1/2)*(x+3^(1/2))+1)^(1/2)+1/2/(2+3^(1/2))/(-2+3^(1/2))*(-(x+2)^2+4*x+8)^(1/2)+1/2/(2+3^(1/2))/(-2
+3^(1/2))*arctanh(1/2*(2-2*3^(1/2)*(x-3^(1/2)))/(-(x-3^(1/2))^2-2*3^(1/2)*(x-3^(1/2))+1)^(1/2))-1/2/(2+3^(1/2)
)/(-2+3^(1/2))*(-(x-3^(1/2))^2-2*3^(1/2)*(x-3^(1/2))+1)^(1/2)

________________________________________________________________________________________

maxima [A]  time = 0.62, size = 14, normalized size = 0.88 \[ -\log \left (\sqrt {-x^{2} + 4} + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(4-x^2+(-x^2+4)^(1/2)),x, algorithm="maxima")

[Out]

-log(sqrt(-x^2 + 4) + 1)

________________________________________________________________________________________

mupad [B]  time = 0.16, size = 87, normalized size = 5.44 \[ -\frac {\ln \left (x-\sqrt {3}\right )}{2}-\frac {\ln \left (\frac {\sqrt {3}\,x\,1{}\mathrm {i}+\sqrt {4-x^2}\,1{}\mathrm {i}+4{}\mathrm {i}}{x+\sqrt {3}}\right )}{2}-\frac {\ln \left (x+\sqrt {3}\right )}{2}-\frac {\ln \left (\frac {-\sqrt {3}\,x\,1{}\mathrm {i}+\sqrt {4-x^2}\,1{}\mathrm {i}+4{}\mathrm {i}}{x-\sqrt {3}}\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/((4 - x^2)^(1/2) - x^2 + 4),x)

[Out]

- log(x - 3^(1/2))/2 - log((3^(1/2)*x*1i + (4 - x^2)^(1/2)*1i + 4i)/(x + 3^(1/2)))/2 - log(x + 3^(1/2))/2 - lo
g(((4 - x^2)^(1/2)*1i - 3^(1/2)*x*1i + 4i)/(x - 3^(1/2)))/2

________________________________________________________________________________________

sympy [B]  time = 5.40, size = 44, normalized size = 2.75 \[ \frac {\log {\left (2 \sqrt {4 - x^{2}} \right )}}{2} - \frac {\log {\left (2 \sqrt {4 - x^{2}} + 2 \right )}}{2} - \frac {\log {\left (x^{2} - \sqrt {4 - x^{2}} - 4 \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(4-x**2+(-x**2+4)**(1/2)),x)

[Out]

log(2*sqrt(4 - x**2))/2 - log(2*sqrt(4 - x**2) + 2)/2 - log(x**2 - sqrt(4 - x**2) - 4)/2

________________________________________________________________________________________