a: \(Q=\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)-\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}+1\right)^2\cdot\left(\sqrt{x}-1\right)}\cdot\dfrac{\sqrt{x}+1}{\sqrt{x}}\)
\(=\dfrac{x+\sqrt{x}-2-x+\sqrt{x}+2}{x-1}\cdot\dfrac{1}{\sqrt{x}}=\dfrac{2}{x-1}\)
b: Q=2/(x-1)
Để Q là số nguyên lớn nhất thì x-1=1
=>x=2