1.
\(a,Q=\dfrac{\sqrt{x}-1}{\sqrt{x}+1}-\dfrac{\sqrt{x}+3}{\sqrt{x}-2}-\dfrac{x+5}{x-\sqrt{x}-2}\)
\(Q=\dfrac{\left(\sqrt{x}-1\right)\left(\sqrt{x}-2\right)-\left(\sqrt{x}+3\right)\left(\sqrt{x}+1\right)-x-5}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}\\ Q=\dfrac{x-3\sqrt{x}+2-x-4\sqrt{x}-3-x-5}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}\\ Q=\dfrac{-x-7\sqrt{x}-6}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}\\ Q=\dfrac{-\left(x+7\sqrt{x}+6\right)}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}\\ Q=\dfrac{-\left(\sqrt{x}+1\right)\left(\sqrt{x}+6\right)}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-2\right)}=\dfrac{-\sqrt{x}-6}{\sqrt{x}-2}\)
\(b,Q\in Z\Leftrightarrow\dfrac{-\sqrt{x}-6}{\sqrt{x}-2}\in Z\)
\(\Leftrightarrow\dfrac{-\left(\sqrt{x}-2\right)-8}{\sqrt{x}-2}\in Z\\ \Leftrightarrow-1-\dfrac{8}{\sqrt{x}-2}\in Z\)
Mà \(-1\in Z\Leftrightarrow\dfrac{8}{\sqrt{x}-2}\in Z\)
\(\Leftrightarrow8⋮\sqrt{x}-2\\ \Leftrightarrow\sqrt{x}-2\inƯ\left(8\right)=\left\{-8,-4,-2,-1,1,2,4,8\right\}\)
\(\Leftrightarrow\sqrt{x}\in\left\{-6;-2;0;1;3;4;6;10\right\}\)
Mà \(x\in Z\) và \(\sqrt{x}\ge0\)
\(\Leftrightarrow\sqrt{x}\in\left\{0;1;4\right\}\\ \Leftrightarrow x\in\left\{0;1;4\right\}\)
Vậy \(x\in\left\{0;1;4\right\}\) thì \(Q\in Z\)