Part of a series on 
Astrodynamics 

In astronomy, perturbation is the complex motion of a massive body subjected to forces other than the gravitational attraction of a single other massive body.^{[1]} The other forces can include a third (fourth, fifth, etc.) body, resistance, as from an atmosphere, and the offcenter attraction of an oblate or otherwise misshapen body.^{[2]}
The study of perturbations began with the first attempts to predict planetary motions in the sky. In ancient times the causes were unknown. Isaac Newton, at the time he formulated his laws of motion and of gravitation, applied them to the first analysis of perturbations,^{[2]} recognizing the complex difficulties of their calculation.^{[3]} Many of the great mathematicians since then have given attention to the various problems involved; throughout the 18th and 19th centuries there was demand for accurate tables of the position of the Moon and planets for marine navigation.
The complex motions of gravitational perturbations can be broken down. The hypothetical motion that the body follows under the gravitational effect of one other body only is a conic section, and can be described in geometrical terms. This is called a twobody problem, or an unperturbed Keplerian orbit. The differences between that and the actual motion of the body are perturbations due to the additional gravitational effects of the remaining body or bodies. If there is only one other significant body then the perturbed motion is a threebody problem; if there are multiple other bodies it is an nbody problem. A general analytical solution (a mathematical expression to predict the positions and motions at any future time) exists for the twobody problem; when more than two bodies are considered analytic solutions exist only for special cases. Even the twobody problem becomes insoluble if one of the bodies is irregular in shape.^{[4]}
Most systems that involve multiple gravitational attractions present one primary body which is dominant in its effects (for example, a star, in the case of the star and its planet, or a planet, in the case of the planet and its satellite). The gravitational effects of the other bodies can be treated as perturbations of the hypothetical unperturbed motion of the planet or satellite around its primary body.
In methods of general perturbations, general differential equations, either of motion or of change in the orbital elements, are solved analytically, usually by series expansions. The result is usually expressed in terms of algebraic and trigonometric functions of the orbital elements of the body in question and the perturbing bodies. This can be applied generally to many different sets of conditions, and is not specific to any particular set of gravitating objects.^{[5]} Historically, general perturbations were investigated first. The classical methods are known as variation of the elements, variation of parameters or variation of the constants of integration. In these methods, it is considered that the body is always moving in a conic section, however the conic section is constantly changing due to the perturbations. If all perturbations were to cease at any particular instant, the body would continue in this (now unchanging) conic section indefinitely; this conic is known as the osculating orbit and its orbital elements at any particular time are what are sought by the methods of general perturbations.^{[2]}
General perturbations takes advantage of the fact that in many problems of celestial mechanics, the twobody orbit changes rather slowly due to the perturbations; the twobody orbit is a good first approximation. General perturbations is applicable only if the perturbing forces are about one order of magnitude smaller, or less, than the gravitational force of the primary body.^{[4]} In the Solar System, this is usually the case; Jupiter, the second largest body, has a mass of about 1/1000 that of the Sun.
General perturbation methods are preferred for some types of problems, as the source of certain observed motions are readily found. This is not necessarily so for special perturbations; the motions would be predicted with similar accuracy, but no information on the configurations of the perturbing bodies (for instance, an orbital resonance) which caused them would be available.^{[4]}
In methods of special perturbations, numerical datasets, representing values for the positions, velocities and accelerative forces on the bodies of interest, are made the basis of numerical integration of the differential equations of motion.^{[6]} In effect, the positions and velocities are perturbed directly, and no attempt is made to calculate the curves of the orbits or the orbital elements.^{[2]}
Special perturbations can be applied to any problem in celestial mechanics, as it is not limited to cases where the perturbing forces are small.^{[4]} Once applied only to comets and minor planets, special perturbation methods are now the basis of the most accurate machinegenerated planetary ephemerides of the great astronomical almanacs.^{[2]}^{[7]} Special perturbations are also used for modeling an orbit with computers.
Cowell's formulation (so named for Philip H. Cowell, who, with A.C.D. Cromellin, used a similar method to predict the return of Halley's comet) is perhaps the simplest of the special perturbation methods.^{[8]} In a system of mutually interacting bodies, this method mathematically solves for the Newtonian forces on body by summing the individual interactions from the other bodies:
where is the acceleration vector of body , is the gravitational constant, is the mass of body , and are the position vectors of objects and respectively, and is the distance from object to object , all vectors being referred to the barycenter of the system. This equation is resolved into components in , , and and these are integrated numerically to form the new velocity and position vectors. This process is repeated as many times as necessary. The advantage of Cowell's method is ease of application and programming. A disadvantage is that when perturbations become large in magnitude (as when an object makes a close approach to another) the errors of the method also become large.^{[9]} However, for many problems in celestial mechanics, this is never the case. Another disadvantage is that in systems with a dominant central body, such as the Sun, it is necessary to carry many significant digits in the arithmetic because of the large difference in the forces of the central body and the perturbing bodies, although with modern computers this is not nearly the limitation it once was.^{[10]}
Encke's method begins with the osculating orbit as a reference and integrates numerically to solve for the variation from the reference as a function of time.^{[11]} Its advantages are that perturbations are generally small in magnitude, so the integration can proceed in larger steps (with resulting lesser errors), and the method is much less affected by extreme perturbations. Its disadvantage is complexity; it cannot be used indefinitely without occasionally updating the osculating orbit and continuing from there, a process known as rectification.^{[9]} Encke's method is similar to the general perturbation method of variation of the elements, except the rectification is performed at discrete intervals rather than continuously.^{[12]}
Letting be the radius vector of the osculating orbit, the radius vector of the perturbed orbit, and the variation from the osculating orbit,

(1) 
.


(2) 
and are just the equations of motion of and
for the perturbed orbit and


(3) 
for the unperturbed orbit,


(4) 
where is the gravitational parameter with and the masses of the central body and the perturbed body, is the perturbing acceleration, and and are the magnitudes of and .
Substituting from equations (3) and (4) into equation (2),

(5) 
which, in theory, could be integrated twice to find . Since the osculating orbit is easily calculated by twobody methods, and are accounted for and can be solved. In practice, the quantity in the brackets, , is the difference of two nearly equal vectors, and further manipulation is necessary to avoid the need for extra significant digits.^{[13]}^{[14]} Encke's method was more widely used before the advent of modern computers, when much orbit computation was performed on mechanical calculating machines.
In the Solar System, many of the disturbances of one planet by another are periodic, consisting of small impulses each time a planet passes another in its orbit. This causes the bodies to follow motions that are periodic or quasiperiodic – such as the Moon in its strongly perturbed orbit, which is the subject of lunar theory. This periodic nature led to the discovery of Neptune in 1846 as a result of its perturbations of the orbit of Uranus.
Ongoing mutual perturbations of the planets cause longterm quasiperiodic variations in their orbital elements, most apparent when two planets' orbital periods are nearly in sync. For instance, five orbits of Jupiter (59.31 years) is nearly equal to two of Saturn (58.91 years). This causes large perturbations of both, with a period of 918 years, the time required for the small difference in their positions at conjunction to make one complete circle, first discovered by Laplace.^{[2]} Venus currently has the orbit with the least eccentricity, i.e. it is the closest to circular, of all the planetary orbits. In 25,000 years' time, Earth will have a more circular (less eccentric) orbit than Venus. It has been shown that longterm periodic disturbances within the Solar System can become chaotic over very long time scales; under some circumstances one or more planets can cross the orbit of another, leading to collisions.^{[15]}
The orbits of many of the minor bodies of the Solar System, such as comets, are often heavily perturbed, particularly by the gravitational fields of the gas giants. While many of these perturbations are periodic, others are not, and these in particular may represent aspects of chaotic motion. For example, in April 1996, Jupiter's gravitational influence caused the period of Comet Hale–Bopp's orbit to decrease from 4,206 to 2,380 years, a change that will not revert on any periodic basis.^{[16]}