Let $$k=\sqrt{x+\frac{1}{2}\sqrt{2011}}-\sqrt{x-\frac{1}{2}\sqrt{2011}}$$
Then $$k\left(\sqrt{x+\frac{1}{2}\sqrt{2011}}+\sqrt{x-\frac{1}{2}\sqrt{2011}}\right)=\sqrt{2011}$$
So $$\sqrt{x+\frac{1}{2}\sqrt{2011}}+\sqrt{x-\frac{1}{2}\sqrt{2011}}=\frac{\sqrt{2011}}{k}$$
Adding the first and the last we have
$$2\sqrt{x+\frac{1}{2}\sqrt{2011}}=k+\frac{\sqrt{2011}}{k}$$
Squaring we get
$$4x+2\sqrt{2011}=k^2+\frac{2011}{k^2}+2\sqrt{2011}$$
or
$$4x=k^2+\frac{2011}{k^2}$$ since $x$ is an integer $\frac{2011}{k^2}$ is also an integer and thus $k^2=1$ and so $x=503$.