Let's say we have a real, continuous, positive function f(x) for which we define the quantity:
$$\pi(f,a) = \frac{\int_0^a f(x) dx}{\int_0^a \sqrt{1+\left(\frac{df(x)}{dx} \right)^2 }dx}$$
we want to find the function f that maximizes $\pi$ for a given $a$.
In general how do we attack problems of this kind: find $f$ such that $\mathrm{F}(f)$ is maximum? Are there any constrains that guarantee that there is an analytical solution? How could the problem above be modified to have a solution?