Sakurai and Napolitano's chapter on density functional theory has claims that it is "straightforward" to find $\delta U_{\text{xc}}/\delta n$ for $$U_{\text{xc}}[n]=\int d^3 x n(\mathbf{x})\epsilon(n)\tag{2.33}$$ and a given $\epsilon(n)$, but I can't seem to figure out where to start with this calculation. My knowledge of variational calculus as it appears in Lagrangian mechanics has me calculating $$ \int_{-\infty}^\infty \frac{\partial[n(x)\epsilon(x)]}{\partial n} d^3 x $$ but integrating using Mathematica led to a recursion error, so I am a bit confused, especially since this1 thesis claims that $$\frac{\delta U_{\text{xc}}}{\delta n(x)}= \frac{\partial[n(x)\epsilon(n(x))]}{\partial n(x)}.\tag{2.34}$$ I.e., free of the integral with respect to $d^3 x$. Which approach is correct? If the latter is correct, how does one arrive at that formula for $\delta U_{xc} /\delta n(x)$?
1 P. R. Tulip, Dielectric and Lattice Dynamical Properties of Molecular Crystals via Density Functional Perturbation Theory: Implementation within a First Principles Code.