Using the Lagrangian of the system I reached that ##x(t)=\frac{1}{2} gt^2+ut ## is the real trajectory of the particle.
After that, I consider different trajectories: ##x(\alpha,t) = x(t) + \alpha(t)## with ##\alpha(t)## being an arbitrary function of t expect for the conditions...