I want to find the extrema of the functional,
$$ J[y] =\int^1_0 L(x, y(x)) \ \text{d} x $$
in the space of continuous functions $C[0, 1]$, subject to the constraint,
$$ \int^1_0 \left(y(x) - \frac{1}{2}\right)^2 \text{d} x \ \times \int^1_0 y(t) \ \text{d} t = 1 $$
I know how to derive the Euler-Lagrange equation for the case in which the constraint is a simple integral of the form
$$ \int^1_0 M(t, y(t), y^\prime(t)) \ \text{d} t = c $$
but I could not find any reference on a constraint with a product of integrals, as is my case.
Do you know of any reference book I could consult on this or could you point me in the right directions to derive the EL equation myself?