\(a,P=\left(\dfrac{\sqrt{x}-2}{x-1}-\dfrac{\sqrt{x}+2}{x+2\sqrt{x}+1}\right).\dfrac{\left(1-x\right)^2}{2}\)
\(\Rightarrow P=\left(\dfrac{\sqrt{x}-2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}-\dfrac{\sqrt{x}+2}{\left(\sqrt{x}+1\right)^2}\right).\dfrac{\left(1-x\right)^2}{2}\)
\(\Rightarrow P=\left(\dfrac{\left(\sqrt{x}-2\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}-\dfrac{\left(\sqrt{x}+2\right)\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}\right).\dfrac{\left(1-x\right)^2}{2}\)
\(\Rightarrow P=\left(\dfrac{x-\sqrt{x}-2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}-\dfrac{x+\sqrt{x}-2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}\right).\dfrac{\left(1-x\right)^2}{2}\)
\(\Rightarrow P=\dfrac{x-\sqrt{x}-2-x-\sqrt{x}+2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}.\dfrac{\left(x-1\right)^2}{2}\)
\(\Rightarrow P=\dfrac{-2\sqrt{x}}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)^2}.\dfrac{\left(\sqrt{x}-1\right)^2\left(\sqrt{x}+1\right)^2}{2}\)
\(\Rightarrow P=-\sqrt{x}\left(\sqrt{x}-1\right)\)
b,Thay \(x=7-4\sqrt{3}\) ta có:
\(P=-\sqrt{x}\left(\sqrt{x}-1\right)\\ =-\sqrt{7-4\sqrt{3}}\left(\sqrt{7-4\sqrt{3}}-1\right)\\ =-\sqrt{7-2\sqrt{12}}\left(\sqrt{7-2\sqrt{12}}-1\right)\\ =-\sqrt{4-2\sqrt{3}\sqrt{4}+3}\left(\sqrt{4-2\sqrt{3}\sqrt{4}+3}-1\right)\\ =-\sqrt{\left(2-\sqrt{3}\right)^2}\left(\sqrt{\left(2-\sqrt{3}\right)^2}-1\right)\)
\(=-\left(2-\sqrt{3}\right)\left(2-\sqrt{3}-1\right)\\ =-\left(2-\sqrt{3}\right)\left(1-\sqrt{3}\right)\)