`~rai~`
\(2.\text{Ta có:}x=7-4\sqrt{3}\\\Rightarrow \sqrt{x}=\sqrt{7-4\sqrt{3}}\\\Leftrightarrow \sqrt{x}=\sqrt{4-2.2\sqrt{3}+3}\\\Leftrightarrow \sqrt{x}=\sqrt{(2-\sqrt{3})^2}\\\Leftrightarrow \sqrt{x}=|2-\sqrt{3}|\\\Leftrightarrow \sqrt{x}=2-\sqrt{3}.\quad\text{(do }2>\sqrt{3})\\\text{Thay }\sqrt{x}=2-\sqrt{3}\text{(thỏa mãn) vào biểu thức P được:}\\P=\dfrac{2(2-\sqrt{3})+3}{2-\sqrt{3}+1}\\\quad=\dfrac{4-2\sqrt{3}+3}{1-\sqrt{3}}\\\quad=\dfrac{(7-2\sqrt{3})(1+\sqrt{3})}{(1-\sqrt{3})(1+\sqrt{3})}\\\quad=\dfrac{7+7\sqrt{3}-2\sqrt{3}-6}{1^2-(\sqrt{3})^2}\\\quad=\dfrac{1+5\sqrt{3}}{-2}\\\quad=-\dfrac{1+5\sqrt{3}}{2}.\\\text{Vậy với }x=7-4\sqrt{3}\text{ thì giá trị biểu thức P là }-\dfrac{1+5\sqrt{3}}{2}.\)