Ta có: \(x=9-4\sqrt{5}\)
⇔ \(\sqrt{x}=\sqrt{9-4\sqrt{5}}=\sqrt{5-4\sqrt{5}+4}\)
⇔ \(\sqrt{x}=\sqrt{\left(\sqrt{5}-2\right)^2}=\left|\sqrt{5}-2\right|\)
⇔ \(\sqrt{x}=\sqrt{5}-2\)
Khi đó: \(P=\dfrac{1-\sqrt{5}+2}{\sqrt{5}-2+2}=\dfrac{3-\sqrt{5}}{\sqrt{5}}\)