I am trying to answer a simple question: If a rocket performs a gravitational slingshot around a body of mass m, altitude h, and angle $\theta $ and initial velocity ${ v }_{ sun }$, what will be the resulting ${ v }_{ sun,f }$ of the rocket? This simple question has turned out to be extraordinary difficult to answer.
CONCEPUAL: I began by considering it conceptually; How does a gravity slingshot even work? In the planet's FOR, the rocket's $\triangle v=0$. But in the sun's FOR, the rocket gains some velocity from the planet's movement around the sun; a case of the conservation of energy.
MATHEMATICALLY: I know that a gravitational slingshot involves a hyperbolic orbit. Given that one focus of our hyperbolic orbit should be the planet of interest, it's understandable we seek the polar equation for a hyperbola, $r=\frac { p }{ 1+e\cos { f } } $, where $p = a(1-{e}^{2})$. The five parameters that uniquely define a hyperbola in the above two formulae are $r$ = distance from planet to rocket, $p$ = parameter, $e$ = eccentricity, $f$ = the True anomaly, or the angle is respect to the periapse (point when the planet and rocket and closest), and $a$ = semi-major axis of hyperbola. Other parameters include ${ v }_{ sun,i }$, the velocity of the rocket IRT the sun initially and ${ v }_{ sun,f }$, the velocity of the rocket IRT the sun after the assist. Let ${ v }_{ planet }$ be the velocity of the planet.
I've made a graphic consisting of all the constants I know so far.
I would greatly appreciate it if anyone could assist me in answering my question.