I want to find this functional derivative:
$$\dfrac{\delta \int d^d x'[\nabla_{x'} \phi(\vec{x}')]^2}{\delta \phi(\vec{x})} = \int d^d x' \left(\dfrac{\delta \nabla_{x'} \phi(\vec{x}')}{\delta \phi(\vec{x})}\cdot \nabla_{x'} \phi(\vec{x}') +\nabla_{x'} \phi(\vec{x}')\cdot \dfrac{\delta \nabla_{x'} \phi(\vec{x}')}{\delta \phi(\vec{x})}\right)$$
According to the book I have, the first term of the integral is:
$$\int d^d x' \dfrac{\delta \nabla_{x'} \phi(\vec{x}')}{\delta \phi(\vec{x})}\cdot \nabla_{x'} \phi(\vec{x}') = -\int d^d x' \dfrac{\delta\phi(\vec{x}')}{\delta\phi(\vec{x})} \nabla^2_{x'} \phi(\vec{x}') \tag{1}$$
With that result and with $\dfrac{\delta\phi(\vec{x}')}{\delta\phi(\vec{x})}=\delta(\vec x -\vec x ')$, I get $-\nabla^2 \phi(\vec{x})$, but I cannot see where the minus comes from in $(1)$. In fact, why does the Laplacian appear in $(1)$?