In orbital mechanics and aerospace engineering, a gravitational slingshot, gravity assist maneuver, or swing-by is the use of the relative movement (e.g. orbit around the Sun) and gravity of a planet or other astronomical object to alter the path and speed of a spacecraft, typically to save propellant, time, and expense. Gravity assistance can be used to accelerate a spacecraft, that is, to increase or decrease its speed or redirect its path. The "assist" is provided by the motion of the gravitating body as it pulls on the spacecraft. It was used by interplanetary probes from Mariner 10 onwards, including the two Voyager probes' notable flybys of Jupiter and Saturn.
A gravity assist around a planet changes a spacecraft's velocity (relative to the Sun) by entering and leaving the gravitational field of a planet. The spacecraft's speed increases as it approaches the planet and decreases while escaping its gravitational pull (which is approximately the same). Because the planet orbits the sun, the spacecraft is affected by this motion during the maneuver. To increase speed, the spacecraft flies with the movement of the planet (taking a small amount of the planet's orbital energy); to decrease speed, the spacecraft flies against the movement of the planet. The sum of the kinetic energies of both bodies remains constant (see elastic collision). A slingshot maneuver can therefore be used to change the spaceship's trajectory and speed relative to the Sun.
A close terrestrial analogy is provided by a tennis ball bouncing off the front of a moving train. Imagine standing on a train platform, and throwing a ball at 30 km/h toward a train approaching at 50 km/h. The driver of the train sees the ball approaching at 80 km/h and then departing at 80 km/h after the ball bounces elastically off the front of the train. Because of the train's motion, however, that departure is at 130 km/h relative to the train platform; the ball has added twice the train's velocity to its own.