# Elliptic orbit

In astrodynamics or celestial mechanics, an elliptic orbit or elliptical orbit is a Kepler orbit with an eccentricity of less than 1; this includes the special case of a circular orbit, with eccentricity equal to 0. In a stricter sense, it is a Kepler orbit with the eccentricity greater than 0 and less than 1 (thus excluding the circular orbit). In a wider sense, it is a Kepler orbit with negative energy. This includes the radial elliptic orbit, with eccentricity equal to 1. They are frequently used during various astrodynamic calculations.
In a gravitational two-body problem with negative energy, both bodies follow similar elliptic orbits with the same orbital period around their common barycenter. The relative position of one body with respect to the other also follows an elliptic orbit.
Examples of elliptic orbits include Hohmann transfer orbits, Molniya orbits, and tundra orbits.

## Velocity

Under standard assumptions, no other forces acting except two spherically symmetrical bodies $(m_{1})$ and $(m_{2})$, the orbital speed ($v\,$) of one body traveling along an elliptic orbit can be computed from the vis-viva equation as:
    $v={\sqrt {\mu \left({2 \over {r}}-{1 \over {a}}\right)}}$
where:
* $\mu \,$ is the standard gravitational parameter, $G(m_{1}+m_{2})$, often expressed as $GM$ when one body is much larger than the other.
* $r\,$ is the distance between the orbiting body and center of mass.
* $a\,\!$ is the length of the semi-major axis.
The velocity equation for a hyperbolic trajectory has either $(+{1 \over {a}})$, or it is the same with the convention that in that case $(a)$ is negative.

## Orbital period

Under standard assumptions the orbital period ($T\,\!$) of a body travelling along an elliptic orbit can be computed as:
    $T=2\pi {\sqrt {a^{3} \over {\mu }}}$
where:
* $\mu$ is the standard gravitational parameter.
* $a\,\!$ is the length of the semi-major axis.
Conclusions:
* The orbital period is equal to that for a circular orbit with the orbital radius equal to the semi-major axis ($a\,\!$),
* For a given semi-major axis the orbital period does not depend on the eccentricity (See also: Kepler's third law).

## Energy

Under standard assumptions, the specific orbital energy ($\epsilon$) of an elliptic orbit is negative and the orbital energy conservation equation (the Vis-viva equation) for this orbit can take the form:
    ${v^{2} \over {2}}-{\mu \over {r}}=-{\mu \over {2a}}=\epsilon <0$
where:
* $v\,$ is the orbital speed of the orbiting body,
* $r\,$ is the distance of the orbiting body from the central body,
* $a\,$ is the length of the semi-major axis,
* $\mu \,$ is the standard gravitational parameter.
Conclusions:
* For a given semi-major axis the specific orbital energy is independent of the eccentricity.
Using the virial theorem to find:
* the time-average of the specific potential energy is equal to −2ε
** the time-average of r$^{−1}$ is a$^{−1}$
* the time-average of the specific kinetic energy is equal to ε

### Energy in terms of semi major axis

It can be helpful to know the energy in terms of the semi major axis (and the involved masses). The total energy of the orbit is given by
    $E=-G{\frac {Mm}{2a}}$,
where a is the semi major axis.

#### Derivation

Since gravity is a central force, the angular momentum is constant:
    ${\dot {\mathbf {L} }}=\mathbf {r} \times \mathbf {F} =\mathbf {r} \times F(r)\mathbf {\hat {r}} =0$
At the closest and furthest approaches, the angular momentum is perpendicular to the distance from the mass orbited, therefore:
    $L=rp=rmv$.
The total energy of the orbit is given by
    $E={\frac {1}{2}}mv^{2}-G{\frac {Mm}{r}}$.
Substituting for v, the equation becomes
    $E={\frac {1}{2}}{\frac {L^{2}}{mr^{2}}}-G{\frac {Mm}{r}}$.
This is true for r being the closest / furthest distance so two simultaneous equations are made, which when solved for E:
    $E=-G{\frac {Mm}{r_{1}+r_{2}}}$
Since r$_1$=a+aϵ{\textstyle r_{1}=a+a\epsilon } and $r_{2}=a-a\epsilon$, where epsilon is the eccentricity of the orbit, the stated result is reached.

## Flight path angle

The flight path angle is the angle between the orbiting body's velocity vector (equal to the vector tangent to the instantaneous orbit) and the local horizontal. Under standard assumptions of the conservation of angular momentum the flight path angle $\phi$ satisfies the equation:
    $h\,=r\,v\,\cos \phi$
where:
* $h\,$ is the specific relative angular momentum of the orbit,
* $v\,$ is the orbital speed of the orbiting body,
* $r\,$ is the radial distance of the orbiting body from the central body,
* $\phi \,$ is the flight path angle
$\psi$ is the angle between the orbital velocity vector and the semi-major axis. $\nu$ is the local true anomaly. $\phi =\nu +{\frac {\pi }{2}}-\psi$, therefore,
    $\cos \phi =\sin(\psi -\nu )=\sin \psi \cos \nu -\cos \psi \sin \nu ={\frac {1+e\cos \nu }{\sqrt {1+e^{2}+2e\cos \nu }}}$
    $\tan \phi ={\frac {e\sin \nu }{1+e\cos \nu }}$
where $e$ is the eccentricity.
The angular momentum is related to the vector cross product of position and velocity, which is proportional to the sine of the angle between these two vectors. Here $\phi$ is defined as the angle which differs by 90 degrees from this, so the cosine appears in place of the sine.

## Equation of motion
### From initial position and velocity

An orbit equation defines the path of an orbiting body $m_{2}\,\!$ around central body $m_{1}\,\!$ relative to $m_{1}\,\!$, without specifying position as a function of time. If the eccentricity is less than 1 then the equation of motion describes an elliptical orbit. Because Kepler's equation $M=E-e\sin E$ has no general closed-form solution for the Eccentric anomaly (E) in terms of the Mean anomaly (M), equations of motion as a function of time also have no closed-form solution (although numerical solutions exist for both).
However, closed-form time-independent path equations of an elliptic orbit with respect to a central body can be determined from just an initial position ($\mathbf {r}$) and velocity ($\mathbf {v}$).
For this case it is convenient to use the following assumptions which differ somewhat from the standard assumptions above:
   * The central body's position is at the origin and is the primary focus ($\mathbf {F1}$) of the ellipse (alternatively, the center of mass may be used instead if the orbiting body has a significant mass)
   * The central body's mass (m1) is known
   * The orbiting body's initial position($\mathbf {r}$) and velocity($\mathbf {v}$) are known
   * The ellipse lies within the XY-plane
The fourth assumption can be made without loss of generality because any three points (or vectors) must lie within a common plane. Under these assumptions the second focus (sometimes called the "empty" focus) must also lie within the XY-plane: $\mathbf {F2} =\left(f_{x},f_{y}\right)$ .

#### Using vectors

The general equation of an ellipse under these assumptions using vectors is:
    $|\mathbf {F2} -\mathbf {p} |+|\mathbf {p} |=2a\qquad \mid z=0$
where:
* $a\,\!$ is the length of the semi-major axis.
* $\mathbf {F2} =\left(f_{x},f_{y}\right)$ is the second ("empty") focus.
* $\mathbf {p} =\left(x,y\right)$ is any (x,y) value satisfying the equation.
The semi-major axis length (a) can be calculated as:
    $a={\frac {\mu |\mathbf {r} |}{2\mu -|\mathbf {r} |\mathbf {v} ^{2}}}$
where $\mu \ =Gm_{1}$ is the standard gravitational parameter.
The empty focus ($\mathbf {F2} =\left(f_{x},f_{y}\right)$) can be found by first determining the Eccentricity vector:
    $\mathbf {e} ={\frac {\mathbf {r} }{|\mathbf {r} |}}-{\frac {\mathbf {v} \times \mathbf {h} }{\mu }}$
Where $\mathbf {h}$ is the specific angular momentum of the orbiting body:
    $\mathbf {h} =\mathbf {r} \times \mathbf {v}$
Then
    $\mathbf {F2} =-2a\mathbf {e}$

#### Using XY Coordinates

This can be done in cartesian coordinates using the following procedure:
The general equation of an ellipse under the assumptions above is:
    ${\sqrt {\left(f_{x}-x\right)^{2}+\left(f_{y}-y\right)^{2}}}+{\sqrt {x^{2}+y^{2}}}=2a\qquad \mid z=0$
Given:
    $r_{x},r_{y}\quad$ the initial position coordinates
    $v_{x},v_{y}\quad$ the initial velocity coordinates
and
    $\mu =Gm_{1}\quad$ the gravitational parameter
Then:
    $h=r_{x}v_{y}-r_{y}v_{x}\quad$ specific angular momentum
    $r={\sqrt {r_{x}^{2}+r_{y}^{2}}}\quad$ initial distance from F1 (at the origin)
    $a={\frac {\mu r}{2\mu -r\left(v_{x}^{2}+v_{y}^{2}\right)}}\quad$ the semi-major axis length
    $e_{x}={\frac {r_{x}}{r}}-{\frac {hv_{y}}{\mu }}\quad$ the Eccentricity vector coordinates
    $e_{y}={\frac {r_{y}}{r}}+{\frac {hv_{x}}{\mu }}\quad$
Finally, the empty focus coordinates
    $f_{x}=-2ae_{x}\quad$
    $f_{y}=-2ae_{y}\quad$
Now the result values fx, fy and a can be applied to the general ellipse equation above.

## Orbital parameters

The state of an orbiting body at any given time is defined by the orbiting body's position and velocity with respect to the central body, which can be represented by the three-dimensional Cartesian coordinates (position of the orbiting body represented by x, y, and z) and the similar Cartesian components of the orbiting body's velocity. This set of six variables, together with time, are called the orbital state vectors. Given the masses of the two bodies they determine the full orbit. The two most general cases with these 6 degrees of freedom are the elliptic and the hyperbolic orbit. Special cases with fewer degrees of freedom are the circular and parabolic orbit.
Because at least six variables are absolutely required to completely represent an elliptic orbit with this set of parameters, then six variables are required to represent an orbit with any set of parameters. Another set of six parameters that are commonly used are the orbital elements.

## Solar System

In the Solar System, planets, asteroids, most comets, and some pieces of space debris have approximately elliptical orbits around the Sun. Strictly speaking, both bodies revolve around the same focus of the ellipse, the one closer to the more massive body, but when one body is significantly more massive, such as the sun in relation to the earth, the focus may be contained within the larger massing body, and thus the smaller is said to revolve around it. The following chart of the perihelion and aphelion of the planets, dwarf planets, and Halley's Comet demonstrates the variation of the eccentricity of their elliptical orbits. For similar distances from the sun, wider bars denote greater eccentricity. Note the almost-zero eccentricity of Earth and Venus compared to the enormous eccentricity of Halley's Comet and Eris.
Distances of selected bodies of the Solar System from the Sun. The left and right edges of each bar correspond to the perihelion and aphelion of the body, respectively, hence long bars denote high orbital eccentricity. The radius of the Sun is 0.7 million km, and the radius of Jupiter (the largest planet) is 0.07 million km, both too small to resolve on this image.

## Radial elliptic trajectory

A radial trajectory can be a double line segment, which is a degenerate ellipse with semi-minor axis = 0 and eccentricity = 1. Although the eccentricity is 1, this is not a parabolic orbit. Most properties and formulas of elliptic orbits apply. However, the orbit cannot be closed. It is an open orbit corresponding to the part of the degenerate ellipse from the moment the bodies touch each other and move away from each other until they touch each other again. In the case of point masses one full orbit is possible, starting and ending with a singularity. The velocities at the start and end are infinite in opposite directions and the potential energy is equal to minus infinity.
The radial elliptic trajectory is the solution of a two-body problem with at some instant zero speed, as in the case of dropping an object (neglecting air resistance).

## History

The Babylonians were the first to realize that the Sun's motion along the ecliptic was not uniform, though they were unaware of why this was; it is today known that this is due to the Earth moving in an elliptic orbit around the Sun, with the Earth moving faster when it is nearer to the Sun at perihelion and moving slower when it is farther away at aphelion.
In the 17th century, Johannes Kepler discovered that the orbits along which the planets travel around the Sun are ellipses with the Sun at one focus, and described this in his first law of planetary motion. Later, Isaac Newton explained this as a corollary of his law of universal gravitation.