a: \(P=\dfrac{3x+3\sqrt{x}-3-x+1-x+4}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}\)
\(=\dfrac{x+3\sqrt{x}+2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}=\dfrac{\sqrt{x}+1}{\sqrt{x}-1}\)
c: Để \(\dfrac{\sqrt{x}-1}{\sqrt{x}+1}\) là số nguyên thì \(\sqrt{x}+1-2⋮\sqrt{x}+1\)
=>\(\sqrt{x}+1\in\left\{1;2\right\}\)
=>x=0