Ta có \(x=\sqrt{\dfrac{1}{2\sqrt{3}-2}-\dfrac{3}{2\sqrt{3}+2}}=\sqrt{\dfrac{2\sqrt{3}+2}{\left(2\sqrt{3}-2\right)\left(2\sqrt{3}+2\right)}-\dfrac{3\left(2\sqrt{3}-2\right)}{\left(2\sqrt{3}-2\right)\left(2\sqrt{3}+2\right)}}=\sqrt{\dfrac{2\left(\sqrt{3}+1\right)}{12-4}-\dfrac{2\left(3\sqrt{3}-3\right)}{12-4}}=\sqrt{\dfrac{\sqrt{3}+1}{4}-\dfrac{3\sqrt{3}-3}{4}}=\sqrt{\dfrac{\sqrt{3}+1-3\sqrt{3}+3}{4}}=\sqrt{\dfrac{4-2\sqrt{3}}{4}}=\dfrac{\sqrt{4-2\sqrt{3}}}{\sqrt{4}}=\dfrac{\sqrt{3-2\sqrt{3}+1}}{2}=\dfrac{\sqrt{\left(\sqrt{3}-1\right)^2}}{2}=\dfrac{\left|\sqrt{3}-1\right|}{2}=\dfrac{\sqrt{3}-1}{2}\Leftrightarrow2x=\sqrt{3}-1\Leftrightarrow2x+1=\sqrt{3}\Leftrightarrow\left(2x+1\right)^2=3\Leftrightarrow4x^2+4x-2=0\Leftrightarrow2x^2+2x-1=0\)
Ta lại có \(P=\dfrac{4\left(x+1\right)x^{2018}-2x^{2017}+2x+1}{2x^2+3x}=\dfrac{2x^{2017}\left[2\left(x+1\right)x-1\right]+\sqrt{3}}{2x^2+2x-1+x+1}=\dfrac{2x^{2017}\left[2x^2+2x-1\right]+\sqrt{3}}{x+1}=\dfrac{\sqrt{3}}{x+1}=\sqrt{3}:\left(x+1\right)=\sqrt{3}:\left(\dfrac{\sqrt{3}-1}{2}+1\right)=\sqrt{3}:\dfrac{\sqrt{3}+1}{2}=\dfrac{2\sqrt{3}}{\sqrt{3}+1}=\dfrac{2\sqrt{3}\left(\sqrt{3}-1\right)}{3-1}=\dfrac{2\left(3-\sqrt{3}\right)}{2}=3-\sqrt{3}\)Vậy khi \(x=\sqrt{\dfrac{1}{2\sqrt{3}-2}-\dfrac{3}{2\sqrt{3}+2}}\) thì P=\(3-\sqrt{3}\)