cho P = \(\left[\dfrac{\sqrt{x}\left(\sqrt{x}+2\right)^2}{\left(\sqrt{x}+1\right)^2+3}-\dfrac{4}{2-\sqrt{x}}+\dfrac{8\sqrt{x}+32}{8-x\sqrt{x}}\right]:\left(1-\dfrac{2}{2+\sqrt{x}}\right)\)
a, rút gọn
b, tính P tại x = \(9-4\sqrt{5}\)
c, tìm giá trị chính phương của x để P nguyên
a: \(P=\left(\dfrac{x\sqrt{x}+4x+4\sqrt{x}}{x+2\sqrt{x}+4}+\dfrac{4}{\sqrt{x}-2}-\dfrac{8\sqrt{x}+32}{x\sqrt{x}-8}\right)\cdot\dfrac{\sqrt{x}+2-2}{\sqrt{x}+2}\)
\(=\dfrac{x\sqrt{x}+4x+4\sqrt{x}+4x+8\sqrt{x}+16-8\sqrt{x}-32}{\left(\sqrt{x}-2\right)\left(x+2\sqrt{x}+4\right)}:\dfrac{\sqrt{x}+2}{\sqrt{x}}\)
\(=\dfrac{x\sqrt{x}+8x+4\sqrt{x}-16}{\left(\sqrt{x}-2\right)\left(x+2\sqrt{x}+4\right)}\cdot\dfrac{\sqrt{x}}{\sqrt{x}+2}\)
\(=\dfrac{x\sqrt{x}+2x+6x+12\sqrt{x}-8\sqrt{x}-16}{\left(\sqrt{x}-2\right)\left(x+2\sqrt{x}+4\right)}\cdot\dfrac{\sqrt{x}}{\sqrt{x}+2}\)
\(=\dfrac{\left(\sqrt{x}+2\right)\left(x+6\sqrt{x}-8\right)}{\left(\sqrt{x}-2\right)\left(x+2\sqrt{x}+4\right)}\cdot\dfrac{\sqrt{x}}{\sqrt{x}+2}\)
\(=\dfrac{\sqrt{x}\left(x+6\sqrt{x}-8\right)}{\left(\sqrt{x}-2\right)\left(x+2\sqrt{x}+4\right)}\)
b: Khi x=9-4 căn 5 thi \(P=\dfrac{\left(\sqrt{5}-2\right)\left(9-4\sqrt{5}+6\sqrt{5}-12-8\right)}{\left(\sqrt{5}-2-2\right)\left(9-4\sqrt{5}+2\sqrt{5}-4+4\right)}\)
\(=\dfrac{\left(\sqrt{5}-2\right)\left(-11+2\sqrt{5}\right)}{\left(\sqrt{5}-4\right)\left(9-2\sqrt{5}\right)}\)