(For the physical meaning of this problem see https://physics.stackexchange.com/questions/122818/how-should-i-throttle-my-rocket-to-reach-highest-altitude).
Given $g \in (0,\infty), k \in C^1( [0, \infty)), f \in L^1([0, \infty))$ non negative and such that $\int_0^{\infty}f \leq c < 1$, consider the Cauchy problem $$\begin{cases} x_f''(t)= \dfrac{f(t) - x_f'(t)^2k(x_f(t))}{1-\int_0^{\infty} f} -g,\\ x_f'(0) = 0,\\ x_f(0) = 0. \end{cases} $$
Find an $f$ such that for any other $\tilde f$ (which satisfy the properties above) it holds $$ \sup_{[0,\infty)} x_{\tilde f} \leq \sup_{[0,\infty)} x_f. $$ (You may also want to consider the weak formulation with distributional derivatives).
Are there some analytic solutions to this problem for easy forms of $k$? (e.g. $k$ constant, linear, etc.)
What can we say about the regularity of solutions in the weak problem?
Can we derive from the form of $k$ some properties of the solution?