a) Ta có: \(B=\left(\sqrt{x}-1\right)\left(\sqrt{x}+4\right)-\left(\sqrt{x}-3\right)^2+\left(2\sqrt{x}+1\right)^2\)
\(=x+4\sqrt{x}-\sqrt{x}-4-\left(x-6\sqrt{x}+9\right)+\left(4x+4\sqrt{x}+1\right)\)
\(=x+3\sqrt{x}-4-x+6\sqrt{x}-9+4x+4\sqrt{x}+1\)
\(=4x+13\sqrt{x}-12\)
b) Ta có: \(C=\frac{x\sqrt{x}+1}{x-\sqrt{x}+1}+\frac{x-4}{x-2}-\frac{x+2\sqrt{x}+1}{\sqrt{x}+1}\)
\(=\frac{\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}{x-\sqrt{x}+1}+\frac{x-4}{x-2}-\frac{\left(\sqrt{x}+1\right)^2}{\sqrt{x}+1}\)
\(=\sqrt{x}+1+\frac{x-4}{x-2}-\left(\sqrt{x}+1\right)\)
\(=\frac{x-4}{x-2}\)