I had an interesting math problem presented to me some time ago by a friend (he stated it in non-mathematical terms). At what angle would you launch a projectile from a spaceship/satellite such that it left that object and went on to hit another orbiting object? Then as a supplemental question he asked at what angle would you launch that projectile to hit the other orbiting object in the least amount of time?
I assumed that the objects were only acted upon by a single spherically symmetric mass distribution such that I could treat it as a one-body problem for each object. Further, I assumed it all took place in the plane with a polar coordinate system so that I ended up with this simple system of nonlinear autonomous ODE's,
$$ \begin{bmatrix} \frac{d \theta}{dt} \\ \frac{dv}{dt}\\ \frac{dr}{dt} \end{bmatrix} = \begin{bmatrix} \frac{h}{r^{2}} \\ \frac{h^{2}}{r^{3}} -\frac{\mu}{r^{2}} \\ v \end{bmatrix}.$$
Where the inital conditions for the projectile would be $\{ \theta_{i} , r_{i}, v_{\beta}\cos(\phi - \theta_{i}) + v_{i}\}$ with an $h_{\phi} = r_{i} (v_{\beta}\sin(\phi - \theta_{i}) + v_{\theta i})$ and the target objects' initial conditions are $\{ \theta_{i}^{'} , r_{i}^{'}, v_{i}^{'}\}$ with $h'= r^{'}_{i} v_{\theta i}^{'}$. Where $\phi$ is the launch angle from the polar axis while $v_{\beta}$ is the magnitude of the projectiles velocity (which I assume to not change, only its launch direction) and $\mu$ is a constant relating to the gravitational field strength of the attracting object. Below is a picture depicting the general initial and final conditions.
After all these preliminaries, i'm basically asking if there is a variational calculus or other simpler solution to solving this problem as perhaps a boundary problem of sorts mixed with an initial ODE problem. That is, aside from computationally pouring on through thousands of trajectories with minutely differing $\phi$'s then numerically guessing at the appropriate approximate launch angle or angles that solve my question(s).
Which. . . isn't what I exactly want to do and I desire to know if there is an equation, a single or system of ODE's, that I could solve themselves for this launch angle which gives a least time of travel or gives launch angles that would lead to a hit (irrespective of the time of travel). If you can help in anyway, this would be most appreciated. I'm a sophomore College student with little knowledge of solving robustly ODE's or even programming solvers for them.


So, $v_\beta$ is fixed? There's just two parameters, $\phi$ and the launch time $t_0$?
For any given $\phi$, the set of $t_0$ which results in a collision will be a discrete set. The reverse is not quite true, but is true if you insist the collision occur within some time limit, or some finite number of orbits - for any given $t_0$, the set of $\phi$ that results in a collision within [time limit] is discrete.
Let's say you fix $t_0$ and solve for $\phi$. Once you have one solution, the travel time is determined, and you can (in principle) find the derivative of the travel time with respect to $t_0$. This allows you to use efficient optimisation methods (such as conjugate gradient), even if you can't solve it analytically.
Finding a neat representation of orbits (such as polar coordinates) really helps. However, the polar coordinate representation isn't the neatest. There's another way (and I can't find a link to it, alas) where (by modifying the time variable) all orbits become great circles on a 4-dimensional sphere $x^2+y^2+z^2+T^2=r^2$. If you can find that, it might make the problem even easier to solve, but alas, I can't help you find it.