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)}\)