a: \(P=\dfrac{x+\sqrt{x}-2-x+\sqrt{x}+2}{\left(\sqrt{x}-1\right)^2\cdot\left(\sqrt{x}+1\right)}\cdot\dfrac{\left(x-1\right)^2}{4x}\)
\(=\dfrac{2\sqrt{x}}{4x}\cdot\left(\sqrt{x}+1\right)\)
\(=\dfrac{\sqrt{x}+1}{2\sqrt{x}}\)
b |x-5|=4
=>x-5=4 hoặc x-5=-4
=>x=9(nhận) hoặc x=1(loại)
Khi x=9 thì \(P=\dfrac{3+1}{2\cdot3}=\dfrac{4}{6}=\dfrac{2}{3}\)