3.604 \(\int \frac{1}{\left (x+\sqrt{-3-4 x-x^2}\right )^2} \, dx\)

Optimal. Leaf size=87 \[ \frac{1-\frac{\sqrt{-x-1}}{\sqrt{x+3}}}{-\frac{3 (x+1)}{x+3}-\frac{2 \sqrt{-x-1}}{\sqrt{x+3}}+1}+\frac{\tan ^{-1}\left (\frac{1-\frac{3 \sqrt{-x-1}}{\sqrt{x+3}}}{\sqrt{2}}\right )}{\sqrt{2}} \]

[Out]

(1 - Sqrt[-1 - x]/Sqrt[3 + x])/(1 - (3*(1 + x))/(3 + x) - (2*Sqrt[-1 - x])/Sqrt[
3 + x]) + ArcTan[(1 - (3*Sqrt[-1 - x])/Sqrt[3 + x])/Sqrt[2]]/Sqrt[2]

_______________________________________________________________________________________

Rubi [A]  time = 0.156246, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222 \[ \frac{1-\frac{\sqrt{-x-1}}{\sqrt{x+3}}}{-\frac{3 (x+1)}{x+3}-\frac{2 \sqrt{-x-1}}{\sqrt{x+3}}+1}+\frac{\tan ^{-1}\left (\frac{1-\frac{3 \sqrt{-x-1}}{\sqrt{x+3}}}{\sqrt{2}}\right )}{\sqrt{2}} \]

Antiderivative was successfully verified.

[In]  Int[(x + Sqrt[-3 - 4*x - x^2])^(-2),x]

[Out]

(1 - Sqrt[-1 - x]/Sqrt[3 + x])/(1 - (3*(1 + x))/(3 + x) - (2*Sqrt[-1 - x])/Sqrt[
3 + x]) + ArcTan[(1 - (3*Sqrt[-1 - x])/Sqrt[3 + x])/Sqrt[2]]/Sqrt[2]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 3.867, size = 94, normalized size = 1.08 \[ \frac{2 - \frac{2 \sqrt{- x^{2} - 4 x - 3}}{x + 3}}{2 \left (1 - \frac{2 \sqrt{- x^{2} - 4 x - 3}}{x + 3} + \frac{3 \left (- x^{2} - 4 x - 3\right )}{\left (x + 3\right )^{2}}\right )} - \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} \left (- \frac{1}{2} + \frac{3 \sqrt{- x^{2} - 4 x - 3}}{2 \left (x + 3\right )}\right ) \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(1/(x+(-x**2-4*x-3)**(1/2))**2,x)

[Out]

(2 - 2*sqrt(-x**2 - 4*x - 3)/(x + 3))/(2*(1 - 2*sqrt(-x**2 - 4*x - 3)/(x + 3) +
3*(-x**2 - 4*x - 3)/(x + 3)**2)) - sqrt(2)*atan(sqrt(2)*(-1/2 + 3*sqrt(-x**2 - 4
*x - 3)/(2*(x + 3))))/2

_______________________________________________________________________________________

Mathematica [C]  time = 5.19934, size = 881, normalized size = 10.13 \[ \frac{1}{16} \left (\frac{8 (x+3)}{2 x^2+4 x+3}+4 \sqrt{2} \tan ^{-1}\left (\sqrt{2} (x+1)\right )-\frac{2 i \left (-2 i+\sqrt{2}\right ) \tan ^{-1}\left (\frac{(x+2) \left (2 \left (9+2 i \sqrt{2}\right ) x^2+16 \left (2+i \sqrt{2}\right ) x+3 \left (5+4 i \sqrt{2}\right )\right )}{\left (8 i+6 \sqrt{2}\right ) x^3+\left (-6 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3}+8 \sqrt{2}+36 i\right ) x^2+\left (-12 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3}-5 \sqrt{2}+40 i\right ) x-9 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3}-6 \sqrt{2}+12 i}\right )}{\sqrt{1+2 i \sqrt{2}}}+\frac{2 \left (2 i+\sqrt{2}\right ) \tanh ^{-1}\left (\frac{(x+2) \left (2 \left (9 i+2 \sqrt{2}\right ) x^2+16 \left (2 i+\sqrt{2}\right ) x+3 \left (5 i+4 \sqrt{2}\right )\right )}{\left (-8 i+6 \sqrt{2}\right ) x^3+\left (-6 \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3}+8 \sqrt{2}-36 i\right ) x^2-12 \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x-5 \left (8 i+\sqrt{2}\right ) x-3 \left (3 \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3}+2 \sqrt{2}+4 i\right )}\right )}{\sqrt{1-2 i \sqrt{2}}}-\frac{\left (2 i+\sqrt{2}\right ) \log \left (4 \left (2 x^2+4 x+3\right )^2\right )}{\sqrt{1-2 i \sqrt{2}}}-\frac{\left (-2 i+\sqrt{2}\right ) \log \left (4 \left (2 x^2+4 x+3\right )^2\right )}{\sqrt{1+2 i \sqrt{2}}}+\frac{\left (2 i+\sqrt{2}\right ) \log \left (\left (2 x^2+4 x+3\right ) \left (\left (2+2 i \sqrt{2}\right ) x^2+\left (-2 \sqrt{2-4 i \sqrt{2}} \sqrt{-x^2-4 x-3}+8 i \sqrt{2}+4\right ) x-2 \sqrt{2-4 i \sqrt{2}} \sqrt{-x^2-4 x-3}+6 i \sqrt{2}+3\right )\right )}{\sqrt{1-2 i \sqrt{2}}}+\frac{\left (-2 i+\sqrt{2}\right ) \log \left (\left (2 x^2+4 x+3\right ) \left (\left (2-2 i \sqrt{2}\right ) x^2-2 \left (\sqrt{2+4 i \sqrt{2}} \sqrt{-x^2-4 x-3}+4 i \sqrt{2}-2\right ) x-2 \sqrt{2+4 i \sqrt{2}} \sqrt{-x^2-4 x-3}-6 i \sqrt{2}+3\right )\right )}{\sqrt{1+2 i \sqrt{2}}}+\frac{8 (2 x+3) \sqrt{-x^2-4 x-3}}{2 x^2+4 x+3}\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[(x + Sqrt[-3 - 4*x - x^2])^(-2),x]

[Out]

((8*(3 + x))/(3 + 4*x + 2*x^2) + (8*(3 + 2*x)*Sqrt[-3 - 4*x - x^2])/(3 + 4*x + 2
*x^2) + 4*Sqrt[2]*ArcTan[Sqrt[2]*(1 + x)] - ((2*I)*(-2*I + Sqrt[2])*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x^2]))])/Sqrt[1 - (2*I)*Sqrt[2]] + ((-2*I + Sqrt
[2])*Log[(3 + 4*x + 2*x^2)*(3 - (6*I)*Sqrt[2] + (2 - (2*I)*Sqrt[2])*x^2 - 2*Sqrt
[2 + (4*I)*Sqrt[2]]*Sqrt[-3 - 4*x - x^2] - 2*x*(-2 + (4*I)*Sqrt[2] + Sqrt[2 + (4
*I)*Sqrt[2]]*Sqrt[-3 - 4*x - x^2]))])/Sqrt[1 + (2*I)*Sqrt[2]])/16

_______________________________________________________________________________________

Maple [B]  time = 0.108, size = 2407, normalized size = 27.7 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(1/(x+(-x^2-4*x-3)^(1/2))^2,x)

[Out]

-3/8*(4+4*x)/(2*x^2+4*x+3)+1/4*2^(1/2)*arctan(1/4*(4+4*x)*2^(1/2))-1/2*(-6-4*x)/
(2*x^2+4*x+3)+1/36*3^(1/2)*4^(1/2)*(3*x^2/(-3/2-x)^2-12)^(1/2)*(7*2^(1/2)*arctan
(1/6*(3*x^2/(-3/2-x)^2-12)^(1/2)*2^(1/2))+4*arctanh(3*x/(-3/2-x)/(3*x^2/(-3/2-x)
^2-12)^(1/2)))/((x^2/(-3/2-x)^2-4)/(1+x/(-3/2-x))^2)^(1/2)/(1+x/(-3/2-x))+1/72*3
^(1/2)*4^(1/2)*(3*x^2/(-3/2-x)^2-12)^(1/2)*(arctan(1/6*(3*x^2/(-3/2-x)^2-12)^(1/
2)*2^(1/2))*2^(1/2)*x^2/(-3/2-x)^2-8*arctanh(3*x/(-3/2-x)/(3*x^2/(-3/2-x)^2-12)^
(1/2))*x^2/(-3/2-x)^2+2*2^(1/2)*arctan(1/6*(3*x^2/(-3/2-x)^2-12)^(1/2)*2^(1/2))-
16*arctanh(3*x/(-3/2-x)/(3*x^2/(-3/2-x)^2-12)^(1/2))-6*(3*x^2/(-3/2-x)^2-12)^(1/
2))/((x^2/(-3/2-x)^2-4)/(1+x/(-3/2-x))^2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x^2/(-3/2-x)^2-12)^(1/2)*x/(-3/2-x)+x^2/(-3
/2-x)^2-4)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{{\left (x + \sqrt{-x^{2} - 4 \, x - 3}\right )}^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x + sqrt(-x^2 - 4*x - 3))^(-2),x, algorithm="maxima")

[Out]

integrate((x + sqrt(-x^2 - 4*x - 3))^(-2), x)

_______________________________________________________________________________________

Fricas [A]  time = 0.271421, size = 154, normalized size = 1.77 \[ \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{-x^{2} - 4 \, x - 3}{\left (2 \, x + 3\right )} + 2 \,{\left (2 \, x^{2} + 4 \, x + 3\right )} \arctan \left (\sqrt{2}{\left (x + 1\right )}\right ) +{\left (2 \, x^{2} + 4 \, x + 3\right )} \arctan \left (\frac{\sqrt{2}{\left (6 \, x^{2} + 20 \, x + 15\right )}}{4 \, \sqrt{-x^{2} - 4 \, x - 3}{\left (2 \, x + 3\right )}}\right ) + 2 \, \sqrt{2}{\left (x + 3\right )}\right )}}{8 \,{\left (2 \, x^{2} + 4 \, x + 3\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x + sqrt(-x^2 - 4*x - 3))^(-2),x, algorithm="fricas")

[Out]

1/8*sqrt(2)*(2*sqrt(2)*sqrt(-x^2 - 4*x - 3)*(2*x + 3) + 2*(2*x^2 + 4*x + 3)*arct
an(sqrt(2)*(x + 1)) + (2*x^2 + 4*x + 3)*arctan(1/4*sqrt(2)*(6*x^2 + 20*x + 15)/(
sqrt(-x^2 - 4*x - 3)*(2*x + 3))) + 2*sqrt(2)*(x + 3))/(2*x^2 + 4*x + 3)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{\left (x + \sqrt{- x^{2} - 4 x - 3}\right )^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(x+(-x**2-4*x-3)**(1/2))**2,x)

[Out]

Integral((x + sqrt(-x**2 - 4*x - 3))**(-2), x)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.272446, size = 355, normalized size = 4.08 \[ \frac{1}{4} \, \sqrt{2} \arctan \left (\sqrt{2}{\left (x + 1\right )}\right ) - \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\frac{3 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + 1\right )}\right ) - \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\frac{\sqrt{-x^{2} - 4 \, x - 3} - 1}{x + 2} + 1\right )}\right ) + \frac{x + 3}{2 \,{\left (2 \, x^{2} + 4 \, x + 3\right )}} - \frac{\frac{10 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac{7 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} - \frac{2 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{3}}{{\left (x + 2\right )}^{3}} + 3}{3 \,{\left (\frac{8 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac{14 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + \frac{8 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{3}}{{\left (x + 2\right )}^{3}} + \frac{3 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{4}}{{\left (x + 2\right )}^{4}} + 3\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x + sqrt(-x^2 - 4*x - 3))^(-2),x, algorithm="giac")

[Out]

1/4*sqrt(2)*arctan(sqrt(2)*(x + 1)) - 1/4*sqrt(2)*arctan(1/2*sqrt(2)*(3*(sqrt(-x
^2 - 4*x - 3) - 1)/(x + 2) + 1)) - 1/4*sqrt(2)*arctan(1/2*sqrt(2)*((sqrt(-x^2 -
4*x - 3) - 1)/(x + 2) + 1)) + 1/2*(x + 3)/(2*x^2 + 4*x + 3) - 1/3*(10*(sqrt(-x^2
 - 4*x - 3) - 1)/(x + 2) + 7*(sqrt(-x^2 - 4*x - 3) - 1)^2/(x + 2)^2 - 2*(sqrt(-x
^2 - 4*x - 3) - 1)^3/(x + 2)^3 + 3)/(8*(sqrt(-x^2 - 4*x - 3) - 1)/(x + 2) + 14*(
sqrt(-x^2 - 4*x - 3) - 1)^2/(x + 2)^2 + 8*(sqrt(-x^2 - 4*x - 3) - 1)^3/(x + 2)^3
 + 3*(sqrt(-x^2 - 4*x - 3) - 1)^4/(x + 2)^4 + 3)