a) ĐK:\(x\ge0,x\ne4\)
\(P=\dfrac{\left(\sqrt{x}+1\right)^2\left(\sqrt{x}+2\right)-2-5\sqrt{x}}{x-4}\)
\(=\dfrac{x\sqrt{x}+4x}{x-4}\)
b) ĐK: \(x\ge0,x\ne1\)
\(A=\dfrac{\sqrt{x}\left(x-1\right)+3\left(\sqrt{x}+3\right)\left(\sqrt{x}-1\right)+4-6\sqrt{x}}{\left(\sqrt{x}+3\right)\left(x-1\right)}\)
\(=\dfrac{x\sqrt{x}+3x-\sqrt{x}-5}{\left(\sqrt{x}+3\right)\left(x-1\right)}\)