a: \(Q=\dfrac{x+2+x-1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}-\dfrac{1}{\sqrt{x}-1}\)
\(=\dfrac{2x+1-x-\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}=\dfrac{\sqrt{x}}{x+\sqrt{x}+1}\)
b: \(Q=\dfrac{\sqrt{2}-1}{3-2\sqrt{2}+\sqrt{2}-1+1}=\dfrac{2\sqrt{2}-1}{7}\)