It is well known how to calculate functional derivative if a functional depends of the function and it's derivatives (Euler-Lagrange rule): $\mathcal{L}=\int F(x,\dot{x},t)dt$. There is also straight-forward generalization for a functional that depend on higher order function derivatives.
From now on I will use $x$ instead of $t$ and will denote functions by small english letters (e.g. $f$, $\phi$. etc.).
In my problem, a functional depends on the function's antiderivative:
$$ \mathcal{L}=\int dx \int_{-1}^x f(x')dx'. $$
How can I calculate ${\delta \mathcal{L}}/{\delta f}$ ? I tried to do it by definition:
$$ \int \frac{\delta \mathcal{L}}{\delta f} \phi(x) dx = \left[\frac{dF[f+\epsilon\phi]}{d\epsilon}\right]_{\epsilon=0}. $$ However, after simplifying the right hand side I found out that the result cannot be factorized to $\int (...)\phi(x)dx$.
Denoting $F=\int_{-1}^xf(x')dx'$, I was also trying to use the chain rule, but did not succeed.
In my actual problem I need to minimize $\mathcal{L}=\int dx\int \exp(-f(x'))dx'$.
Thanks,
Mikhail
Edit: Sorry, I should have been more specific from the beginning. The actual problem is find the functional gradient w.r.t. $f(x)$ of the following functional:
$$ \mathcal{L} = \int_{-1}^1 dx \exp\left[\int_{-1}^x f(x')dx'\right]\beta(x). $$
Note, that the second integral is entirely inside of the exponent. $\beta(x)$ does not depend on f(x).