I am looking to calculate the derivative of a functional $\phi(\rho)$ with respect to $\rho$, that looks like $$\phi[\rho](x)=\rho(x)\int_0^1\log|x-y|\rho(y)dy.$$
I have read that the Gateaux derivative or Frechet derivative and calculus of variations are the right key words to look for. However I am very new to functional analysis and I am not sure who to proceed. Could someone help?
PS: I need this for a computation so numerically I wanted to do $(\phi(\rho+tu)-\phi(\rho))/t$ for a small $t$ to approximate the derivative. Is this correct? I wouldn't mind to have an analytic result though. Thank you!
You want the best linear approximation to the map $\Phi : \rho \mapsto \phi[\rho](x)$. Somewhere there must be a topological linear space $X$. For example, perhaps $\rho \in C[0,1]$ and $\Phi : C[0,1]\rightarrow\mathbb{R}$. In any case, if $\rho \in X$ is fixed and $\delta\in X$ is allowed to vary, the derivative at $\rho$ is the best linear approximation of the following with respect to $\delta$: \begin{align} \Phi(\rho+\delta)-\Phi(\rho)= &(\rho(x)+\delta(x))\int_{0}^{1}\log|x-y|\{\rho(y)+\delta(y)\}dy \\ & -\rho(x)\int_{0}^{1}\log|x-y|\rho(y)dy \\ = & \delta(x)\int_{0}^{1}\log|x-y|\rho(y)dy+\rho(x)\int_{0}^{1}\log|x-y|\delta(y)dy \\ & + \delta(x)\int_{0}^{1}\log|x-y|\delta(y)dy \end{align} So the derivative at $\rho$ is a linear map which, when applied to $\delta$, gives $$ \Phi'(\rho)\delta = \delta(x)\int_{0}^{1}\log|x-y|\rho(y)dy+\rho(x)\int_{0}^{1}\log|x-y|\delta(y)dy. $$