I am going through this document to read up a bit about functional calculus. I have a question on the proof for the variation of the nonlocal functional, given on page 6. The nonlocal functional is defined as $$F_w[f] = \int _{a}^b dx_1 \int _{a}^b dx_2 w(x_1, x_2) f(x_1) f(x_2)$$ And the author states that $$ \frac{\delta F_w}{\delta f(x_1)} = \int dx_2 f(x_2)[w(x,x_2)+w(x_2,x)]$$
I do not quite understand how this was achieved. The following is my proof for it:
$$F_w[f+\epsilon \eta] - F_w [f] = \delta F_w = \int dx_1 \int dx_2 w(x_1, x_2)[\epsilon f(x_1) \eta (x_2) + \epsilon f(x_2) \eta (x_1) + \epsilon ^2 \eta (x_1) \eta (x_2)$$ In this document, the functional derivative of $F_w$ has been defined as $$ \frac{dF_w [f+\epsilon \eta]}{d\epsilon} \Big| _{\epsilon = 0} = \int dx_1 \frac{\delta F_w}{\delta f(x_1)} \eta (x_1) $$
Doing some manipulations and ordering terms...
$$ \frac{dF_w [f+\epsilon \eta]}{d\epsilon} \Big| _{\epsilon = 0} = \int dx_1 \eta (x_1) \left[ \int dx_2 w(x_1, x_2) f (x_2) \right]+ \int dx_1 \eta (x_1) \left[\int dx_2 w(x_1, x_2) \frac{\eta (x_2)}{\eta (x_1)} f(x_1)\right] $$
Everything inside the big square brackets "[]" should feature in $\frac{\delta F_w}{\delta f(x_1)}$. However, I don't understand how I can reasonable scratch out the pesky $\eta(x_2)/\eta (x_1)$ term.
Is my reasoning valid? Am I messing up the computation somewhere? Any advice you have is appreciated!