In the movie Mission Impossible 3, the main character Ethan Hunt tries to enter a building in Shanghai by swing through the sky, as shown below:
The jump consists of 2 sections, the red part, which is an arc, and the orange part, which is a parabola.
A question naturally arises: For a target building with a given height, what is the furthest horizontal distance it can be placed such that we can jump to its roof using this method?
Before answering this question, we must consider the following fact:
Observing the path when we release at different heights, we see that if we release very late, we can reach great heights, but with reduced horizontal distance. If we release early, we increase horizontal distance, but with reduced height. Because of this trade off, the area that can be reached is restricted within the yellow line。
The question is then:
(1) What is the equation x(z) that describes the orange line above?
(2) For a given point (x,z) that is inside the region bounded by the orange line, what is the proper release height h(x,z) such that the parabola will go through (x,z). The answer should be a set of h. This is the same as asking what is the proper release height if we want to reach a building with height z and is located at x distance away from the center building.
For the ease of discussion, I propose that we use the follow coordinate system and notation :
Here are some calculations that are already done: At the release point, $$\text{Upward shooting angle}=\psi$$ $$v=\sqrt{2gh}$$ $$h(\psi)=r\cos\psi-H$$ $$\psi(h)=\arccos\frac{h+H}{r}$$
Upward and horizontal speeds are: $$v_{u}=v\sin\psi$$ $$v_{h}=v\cos\psi$$ Time for Ethan to fly through the orange part is: $$t=\frac{2v_{u}}{g}=\frac{2v\sin\psi}{g}$$ Thus $$d_{h}=v_{h}\cdot t$$
$$=v\cos\psi\frac{2v\sin\psi}{g}$$
$$=\frac{v^{2}}{g}\sin2\psi$$ If we were to use $h$ as the variable, then $$d(h)=\frac{v^{2}}{g}\sin\left(2\arccos\frac{h+H}{r}\right)$$
$$d(h)=\frac{\left(\sqrt{2gh}\right)^{2}}{2g}\left(\frac{h+H}{r}\right)\sqrt{1-\left(\frac{h+H}{r}\right)^{2}}$$
$$d(h)=h\left(\frac{h+H}{r}\right)\sqrt{1-\left(\frac{h+H}{r}\right)^{2}}$$