I'm interested to find the solution to the following variational problem:
$$ J[y]=\int_{T=0}^{\infty}\int_{t=0}^{T}L(t,y(t),y'(t))p(T)dtdT $$
where $p(T)$ is a probability distribution function over $T$ ($T$ is greater than zero).
My question is what are the conditions for $y$ that will minimise $J[y]$.