Lambert's problem

From HandWiki

In celestial mechanics, Lambert's problem is concerned with the determination of an orbit from two position vectors and the time of flight, posed in the 18th century by Johann Heinrich Lambert and formally solved with mathematical proof by Joseph-Louis Lagrange. It has important applications in the areas of rendezvous, targeting, guidance, and preliminary orbit determination.[1] Suppose a body under the influence of a central gravitational force is observed to travel from point P1 on its conic trajectory, to a point P2 in a time T. The time of flight is related to other variables by Lambert's theorem, which states:

The transfer time of a body moving between two points on a conic trajectory is a function only of the sum of the distances of the two points from the origin of the force, the linear distance between the points, and the semimajor axis of the conic.[2]

Stated another way, Lambert's problem is the boundary value problem for the differential equation [math]\displaystyle{ \ddot {\mathbf r } = -\mu \frac {\hat \mathbf r } {r^2} }[/math] of the two-body problem when the mass of one body is infinitesimal; this subset of the two-body problem is known as the Kepler orbit.

The precise formulation of Lambert's problem is as follows:

Two different times [math]\displaystyle{ t_1 ,\, t_2 }[/math] and two position vectors [math]\displaystyle{ \mathbf r_1 = r_1 \hat \mathbf r_1 ,\, \mathbf r_2 = r_2 \hat \mathbf r_2 }[/math] are given.

Find the solution [math]\displaystyle{ \mathbf r(t) }[/math] satisfying the differential equation above for which [math]\displaystyle{ \begin{align} \mathbf r(t_1) = \mathbf r_1 \\ \mathbf r(t_2) = \mathbf r_2 \end{align} }[/math]

Initial geometrical analysis

Figure 1: [math]\displaystyle{ F_1 }[/math] is the centre of attraction, [math]\displaystyle{ P_1 }[/math] is the point corresponding to vector [math]\displaystyle{ \bar r_1 }[/math], and [math]\displaystyle{ P_2 }[/math] is the point corresponding to vector [math]\displaystyle{ \bar r_2 }[/math]
Figure 2: Hyperbola with the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] as foci passing through [math]\displaystyle{ F_1 }[/math]
Figure 3: Ellipse with the points [math]\displaystyle{ F_1 }[/math] and [math]\displaystyle{ F_2 }[/math] as foci passing through [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math]

The three points

  • [math]\displaystyle{ F_1 }[/math], the centre of attraction,
  • [math]\displaystyle{ P_1 }[/math], the point corresponding to vector [math]\displaystyle{ \bar r_1 }[/math],
  • [math]\displaystyle{ P_2 }[/math], the point corresponding to vector [math]\displaystyle{ \bar r_2 }[/math],

form a triangle in the plane defined by the vectors [math]\displaystyle{ \bar r_1 }[/math] and [math]\displaystyle{ \bar r_2 }[/math] as illustrated in figure 1. The distance between the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] is [math]\displaystyle{ 2d }[/math], the distance between the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ F_1 }[/math] is [math]\displaystyle{ r_1 = r_m-A }[/math] and the distance between the points [math]\displaystyle{ P_2 }[/math] and [math]\displaystyle{ F_1 }[/math] is [math]\displaystyle{ r_2 = r_m+A }[/math]. The value [math]\displaystyle{ A }[/math] is positive or negative depending on which of the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] that is furthest away from the point [math]\displaystyle{ F_1 }[/math]. The geometrical problem to solve is to find all ellipses that go through the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] and have a focus at the point [math]\displaystyle{ F_1 }[/math]

The points [math]\displaystyle{ F_1 }[/math], [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] define a hyperbola going through the point [math]\displaystyle{ F_1 }[/math] with foci at the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math]. The point [math]\displaystyle{ F_1 }[/math] is either on the left or on the right branch of the hyperbola depending on the sign of [math]\displaystyle{ A }[/math]. The semi-major axis of this hyperbola is [math]\displaystyle{ |A| }[/math] and the eccentricity [math]\displaystyle{ E }[/math] is [math]\displaystyle{ \frac{d}{|A|} }[/math]. This hyperbola is illustrated in figure 2.

Relative the usual canonical coordinate system defined by the major and minor axis of the hyperbola its equation is

[math]\displaystyle{ \frac{x^2}{A^2} - \frac{y^2}{B^2} = 1 }[/math]

 

 

 

 

(1)

with

[math]\displaystyle{ B = |A| \sqrt{E^2-1} = \sqrt{d^2-A^2} }[/math]

 

 

 

 

(2)

For any point on the same branch of the hyperbola as [math]\displaystyle{ F_1 }[/math] the difference between the distances [math]\displaystyle{ r_2 }[/math] to point [math]\displaystyle{ P_2 }[/math] and [math]\displaystyle{ r_1 }[/math] to point [math]\displaystyle{ P_1 }[/math] is

[math]\displaystyle{ r_2 - r_1 = 2A }[/math]

 

 

 

 

(3)

For any point [math]\displaystyle{ F_2 }[/math] on the other branch of the hyperbola corresponding relation is

[math]\displaystyle{ s_1 - s_2 = 2A }[/math]

 

 

 

 

(4)

i.e.

[math]\displaystyle{ r_1 + s_1 = r_2 + s_2 }[/math]

 

 

 

 

(5)

But this means that the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] both are on the ellipse having the focal points [math]\displaystyle{ F_1 }[/math] and [math]\displaystyle{ F_2 }[/math] and the semi-major axis

[math]\displaystyle{ a = \frac{r_1 + s_1}{2} = \frac{r_2 + s_2}{2} }[/math]

 

 

 

 

(6)

The ellipse corresponding to an arbitrary selected point [math]\displaystyle{ F_2 }[/math] is displayed in figure 3.

Solution for an assumed elliptic transfer orbit

First one separates the cases of having the orbital pole in the direction [math]\displaystyle{ \mathbf r_1 \times \mathbf r_2 }[/math] or in the direction [math]\displaystyle{ -\mathbf r_1 \times \mathbf r_2 }[/math]. In the first case the transfer angle [math]\displaystyle{ \alpha }[/math] for the first passage through [math]\displaystyle{ \mathbf r_2 }[/math] will be in the interval [math]\displaystyle{ 0 \lt \alpha \lt 180^\circ }[/math] and in the second case it will be in the interval [math]\displaystyle{ 180^\circ \lt \alpha \lt 360^\circ }[/math]. Then [math]\displaystyle{ \mathbf r(t) }[/math] will continue to pass through [math]\displaystyle{ \bar r_2 }[/math] every orbital revolution.

In case [math]\displaystyle{ \mathbf r_1 \times \mathbf r_2 }[/math] is zero, i.e. [math]\displaystyle{ \mathbf r_1 }[/math] and [math]\displaystyle{ \mathbf r_2 }[/math] have opposite directions, all orbital planes containing corresponding line are equally adequate and the transfer angle [math]\displaystyle{ \alpha }[/math] for the first passage through [math]\displaystyle{ \bar r_2 }[/math] will be [math]\displaystyle{ 180^\circ }[/math].

For any [math]\displaystyle{ \alpha }[/math] with [math]\displaystyle{ 0 \lt \alpha \lt \infin }[/math] the triangle formed by [math]\displaystyle{ P_1 }[/math], [math]\displaystyle{ P_2 }[/math] and [math]\displaystyle{ F_1 }[/math] are as in figure 1 with

[math]\displaystyle{ d = \frac{\sqrt{ {r_1}^2 + {r_2}^2 - 2 r_1 r_2 \cos \alpha}}{2} }[/math]

 

 

 

 

(7)

and the semi-major axis (with sign!) of the hyperbola discussed above is

[math]\displaystyle{ A = \frac{r_2 - r_1 }{2} }[/math]

 

 

 

 

(8)

The eccentricity (with sign!) for the hyperbola is

[math]\displaystyle{ E = \frac{d}{A} }[/math]

 

 

 

 

(9)

and the semi-minor axis is

[math]\displaystyle{ B = |A| \sqrt{E^2-1} = \sqrt{d^2-A^2} }[/math]

 

 

 

 

(10)

The coordinates of the point [math]\displaystyle{ F_1 }[/math] relative the canonical coordinate system for the hyperbola are (note that [math]\displaystyle{ E }[/math] has the sign of [math]\displaystyle{ r_2 - r_1 }[/math])

[math]\displaystyle{ x_0 = -\frac{r_m}{E} }[/math]

 

 

 

 

(11)

[math]\displaystyle{ y_0 = B \sqrt{{ \left(\frac{x_0}{A}\right) } ^2 - 1} }[/math]

 

 

 

 

(12)

where

[math]\displaystyle{ r_m = \frac{r_2 + r_1 }{2} }[/math]

 

 

 

 

(13)

Using the y-coordinate of the point [math]\displaystyle{ F_2 }[/math] on the other branch of the hyperbola as free parameter the x-coordinate of [math]\displaystyle{ F_2 }[/math] is (note that [math]\displaystyle{ A }[/math] has the sign of [math]\displaystyle{ r_2 - r_1 }[/math])

[math]\displaystyle{ x = A \sqrt{1+ {\left(\frac{y}{B}\right)}^2} }[/math]

 

 

 

 

(14)

The semi-major axis of the ellipse passing through the points [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] having the foci [math]\displaystyle{ F_1 }[/math] and [math]\displaystyle{ F_2 }[/math] is

[math]\displaystyle{ a = \frac{r_1 + s_1}{2} = \frac{r_2 + s_2}{2} = \frac{r_m + E x}{2} }[/math]

 

 

 

 

(15)

The distance between the foci is

[math]\displaystyle{ \sqrt{ {(x_0 - x)}^2 + {(y_0 - y)}^2} }[/math]

 

 

 

 

(16)

and the eccentricity is consequently

[math]\displaystyle{ e = \frac { \sqrt{{(x_0 - x)}^2 + {(y_0 - y)}^2}} {2 a} }[/math]

 

 

 

 

(17)

The true anomaly [math]\displaystyle{ \theta_1 }[/math] at point [math]\displaystyle{ P_1 }[/math] depends on the direction of motion, i.e. if [math]\displaystyle{ \sin \alpha }[/math] is positive or negative. In both cases one has that

[math]\displaystyle{ \cos \theta_1 = -\frac{(x_0+d) f_x + y_0 f_y}{r_1} }[/math]

 

 

 

 

(18)

where

[math]\displaystyle{ f_x = \frac{x_0 - x }{\sqrt{{(x_0 - x)}^2 + {(y_0 - y)}^2} } }[/math]

 

 

 

 

(19)

[math]\displaystyle{ f_y = \frac{y_0 - y }{\sqrt{{(x_0 - x)}^2 + {(y_0 - y)}^2} } }[/math]

 

 

 

 

(20)

is the unit vector in the direction from [math]\displaystyle{ F_2 }[/math] to [math]\displaystyle{ F_1 }[/math] expressed in the canonical coordinates.

If [math]\displaystyle{ \sin \alpha }[/math] is positive then

[math]\displaystyle{ \sin \theta_1 = \frac{(x_0+d) f_y - y_0 f_x}{r_1} }[/math]

 

 

 

 

(21)

If [math]\displaystyle{ \sin \alpha }[/math] is negative then

[math]\displaystyle{ \sin \theta_1 = -\frac{(x_0+d) f_y - y_0 f_x}{r_1} }[/math]

 

 

 

 

(22)

With

  • semi-major axis
  • eccentricity
  • initial true anomaly

being known functions of the parameter y the time for the true anomaly to increase with the amount [math]\displaystyle{ \alpha }[/math] is also a known function of y. If [math]\displaystyle{ t_2 -t_1 }[/math] is in the range that can be obtained with an elliptic Kepler orbit corresponding y value can then be found using an iterative algorithm.

In the special case that [math]\displaystyle{ r_1 = r_2 }[/math] (or very close) [math]\displaystyle{ A = 0 }[/math] and the hyperbola with two branches deteriorates into one single line orthogonal to the line between [math]\displaystyle{ P_1 }[/math] and [math]\displaystyle{ P_2 }[/math] with the equation

[math]\displaystyle{ x = 0 }[/math]

 

 

 

 

(1')

Equations (11) and (12) are then replaced with

[math]\displaystyle{ x_0 = 0 }[/math]

 

 

 

 

(11')

[math]\displaystyle{ y_0 = \sqrt {{r_m}^2 - d^2} }[/math]

 

 

 

 

(12')

(14) is replaced by

[math]\displaystyle{ x = 0 }[/math]

 

 

 

 

(14')

and (15) is replaced by

[math]\displaystyle{ a = \frac{r_m + \sqrt {d^2 + y^2}}{2} }[/math]

 

 

 

 

(15')

Numerical example

Figure 4: The transfer time with * r1 = 10000 km * r2 = 16000 km * α = 120° as a function of y when y varies from −20000 km to 50000 km. The transfer time decreases from 20741 seconds with y = −20000 km to 2856 seconds with y = 50000 km. For any value between 2856 seconds and 20741 seconds the Lambert's problem can be solved using an y-value between −20000 km and 50000 km

Assume the following values for an Earth centered Kepler orbit

  • r1 = 10000 km
  • r2 = 16000 km
  • α = 100°

These are the numerical values that correspond to figures 1, 2, and 3.

Selecting the parameter y as 30000 km one gets a transfer time of 3072 seconds assuming the gravitational constant to be [math]\displaystyle{ \mu }[/math] = 398603 km3/s2. Corresponding orbital elements are

  • semi-major axis = 23001 km
  • eccentricity = 0.566613
  • true anomaly at time t1 = −7.577°
  • true anomaly at time t2 = 92.423°

This y-value corresponds to Figure 3.

With

  • r1 = 10000 km
  • r2 = 16000 km
  • α = 260°

one gets the same ellipse with the opposite direction of motion, i.e.

  • true anomaly at time t1 = 7.577°
  • true anomaly at time t2 = 267.577° = 360° − 92.423°

and a transfer time of 31645 seconds.

The radial and tangential velocity components can then be computed with the formulas (see the Kepler orbit article) [math]\displaystyle{ V_r = \sqrt{\frac {\mu}{p}} \, e \sin (\theta) }[/math] [math]\displaystyle{ V_t = \sqrt{\frac {\mu}{p}} \left(1 + e \cos \theta\right). }[/math]

The transfer times from P1 to P2 for other values of y are displayed in Figure 4.

Practical applications

The most typical use of this algorithm to solve Lambert's problem is certainly for the design of interplanetary missions. A spacecraft traveling from the Earth to for example Mars can in first approximation be considered to follow a heliocentric elliptic Kepler orbit from the position of the Earth at the time of launch to the position of Mars at the time of arrival. By comparing the initial and the final velocity vector of this heliocentric Kepler orbit with corresponding velocity vectors for the Earth and Mars a quite good estimate of the required launch energy and of the maneuvers needed for the capture at Mars can be obtained. This approach is often used in conjunction with the patched conic approximation.

This is also a method for orbit determination. If two positions of a spacecraft at different times are known with good precision (for example by GPS fix) the complete orbit can be derived with this algorithm, i.e. an interpolation and an extrapolation of these two position fixes is obtained.

Parametrization of the transfer trajectories

It is possible to parametrize all possible orbits passing through the two points [math]\displaystyle{ \mathbf r_1 }[/math] and [math]\displaystyle{ \mathbf r_2 }[/math] using a single parameter [math]\displaystyle{ \gamma }[/math].

The semi-latus rectum [math]\displaystyle{ p }[/math] is given by [math]\displaystyle{ p = \frac{\left(\left|\mathbf{r}_1\right| + \left|\mathbf{r}_2\right|\right)\left(\left|\mathbf{r}_1\right|\left|\mathbf{r}_2\right|-\mathbf{r}_1\cdot\mathbf{r}_2 +\gamma \hat\mathbf{N}\cdot(\mathbf{r}_1\times\mathbf{r}_2)\right)}{\left|\mathbf{r}_2-\mathbf{r}_1\right|^2} }[/math]

The eccentricity vector [math]\displaystyle{ \mathbf e }[/math] is given by [math]\displaystyle{ \mathbf{e} = \frac{\left(\left(|\mathbf{r}_1| - |\mathbf{r}_2|\right)\left(\mathbf{r}_2 - \mathbf{r}_1\right)-\gamma \left(r_1 + r_2\right) \hat\mathbf{N}\times(\mathbf{r}_2-\mathbf{r}_1)\right)}{|\mathbf{r}_2-\mathbf{r}_1|^2} }[/math] where [math]\displaystyle{ \hat\mathbf{N} = \pm\frac{\mathbf r_1 \times \mathbf r_2}{\left|\mathbf r_1 \times \mathbf r_2\right|} }[/math] is the normal to the orbit. Two special values of [math]\displaystyle{ \gamma }[/math] exists

The extremal [math]\displaystyle{ \gamma }[/math]: [math]\displaystyle{ \gamma_0 = - \frac{\left|\mathbf r_1\right|\left|\mathbf r_2\right| - \mathbf r_1 \cdot \mathbf r_2}{\hat\mathbf{N} \cdot (\mathbf r_1 \times \mathbf r_2)} }[/math]

The [math]\displaystyle{ \gamma }[/math] that produces a parabola: [math]\displaystyle{ \gamma_p = \frac{\sqrt{2\left(\left|\mathbf r_1\right|\left|\mathbf r_2\right| - \mathbf r_1 \cdot \mathbf r_2\right)}}{\left|\mathbf r_1 + \mathbf r_2\right|} }[/math]

Open source code

References

  1. E. R. Lancaster & R. C. Blanchard, A Unified Form of Lambert's Theorem, Goddard Space Flight Center, 1968
  2. James F. Jordon, The Application of Lambert's Theorem to the Solution of Interplanetary Transfer Problems, Jet Propulsion Laboratory, 1964

External links

  • Lambert's theorem through an affine lens. Paper by Alain Albouy containing a modern discussion of Lambert's problem and a historical timeline. arXiv:1711.03049
  • Revisiting Lambert's Problem. Paper by Dario Izzo containing an algorithm for providing an accurate guess for the householder iterative method that is as accurate as Gooding's Procedure while computationally more efficient. doi:10.1007/s10569-014-9587-y
  • Lambert's Theorem - A Complete Series Solution. Paper by James D. Thorne with a direct algebraic solution based on hypergeometric series reversion of all hyperbolic and elliptic cases of the Lambert Problem.[1]



  1. THORNE, JAMES (1990-08-17). "Series reversion/inversion of Lambert's time function". Astrodynamics Conference (Reston, Virigina: American Institute of Aeronautics and Astronautics). doi:10.2514/6.1990-2886. http://dx.doi.org/10.2514/6.1990-2886.