6. A bullet is fired with a vertical velocity v at a vertical wall whose distance from the point of the projection isx. Prove that the greatest height above the level of the point of projection at which the bullet can hit the wall is given by
\[
\frac{v^{2}-g^{2} x^{2}}{2 g v^{2}}
\]