3.2.28Orbital Mechanics & Astrodynamics

Lambert's problem — connecting two positions in given time

2,343 words11 min readdifficulty · medium4 backlinks

WHY do we even need this?


WHAT is actually given and unknown?

The magic fact that makes this solvable:


HOW to derive the time-of-flight equation

We'll build the classic Lagrange / universal-variable form from geometry.

Step 1 — Geometry: the chord and the space triangle

Place both radii and the chord:

c=r2r1=r12+r222r1r2cosΔθc = |\vec r_2 - \vec r_1| = \sqrt{r_1^2 + r_2^2 - 2\,r_1 r_2 \cos\Delta\theta}

Why this step? Δθ\Delta\theta is the transfer angle between the two positions; the chord is just the law of cosines on the triangle Earth–r1\vec r_1r2\vec r_2. The short way uses 0<Δθ<π0<\Delta\theta<\pi, the long way uses π<Δθ<2π\pi<\Delta\theta<2\pi.

Define the semiperimeter of that space triangle: s=12(r1+r2+c)s = \tfrac12 (r_1 + r_2 + c)

Why? Because Lambert's theorem tells us time depends on r1+r2r_1+r_2 and cc — and those combine most naturally as ss.

Step 2 — Introduce the auxiliary angles

For an elliptical transfer (a>0a>0) we parametrize with two angles α,β\alpha,\beta: sin2α2=s2a,sin2β2=sc2a\sin^2\frac{\alpha}{2} = \frac{s}{2a}, \qquad \sin^2\frac{\beta}{2} = \frac{s-c}{2a}

Why this step? These come from writing the eccentric-anomaly difference across the arc in terms of the geometry. α,β\alpha,\beta are exactly the combinations of eccentric anomalies at the two ends that survive after the geometry is folded in — they package a,c,sa,c,s into pure angles.

Step 3 — Kepler's time law across the arc

Kepler's equation says the swept "mean anomaly" between two eccentric anomalies E1,E2E_1,E_2 is μa3Δt=(E2esinE2)(E1esinE1).\sqrt{\frac{\mu}{a^3}}\,\Delta t = (E_2 - e\sin E_2) - (E_1 - e\sin E_1).

Why? This is literally Kepler's equation M=EesinEM = E - e\sin E applied at both endpoints and subtracted — mean anomaly advances uniformly with time, so its change equals nΔtn\,\Delta t with n=μ/a3n=\sqrt{\mu/a^3}.

Substituting the half-angle identities and doing the trig collapse (the eccentricity ee drops out into the α,β\alpha,\beta combination — this is the miracle), we obtain Lambert's time-of-flight equation:

Why this is the whole game: the right side is a known function of the single unknown aa. Everything else (s,c,μs,c,\mu) is geometry. So Lambert reduces to: find aa such that this equals the given Δt\Delta t, then reconstruct velocities.

Step 4 — The minimum-energy orbit (a key landmark)

There is a smallest ellipse that can connect the two points at all: amin=s2a_{\min} = \frac{s}{2} At amina_{\min}, α=π\alpha=\pi, and the time of flight is the minimum-energy time — any faster or slower transfer needs a larger aa (more energy). This gives you a sanity check and a starting guess.

Why a=s/2a=s/2? From sin(α/2)=s/2a\sin(\alpha/2)=\sqrt{s/2a}, the argument can't exceed 1, so 2as2a \ge s, i.e. as/2a\ge s/2. Equality is the extreme (thinnest) allowed ellipse.

Step 5 — Recover the velocities (Lagrange coefficients)

Once aa is found, use the f and g functions to get velocity: r2=fr1+gv1    v1=r2fr1g,v2=g˙r2r1g\vec r_2 = f\,\vec r_1 + g\,\vec v_1 \;\Rightarrow\; \vec v_1 = \frac{\vec r_2 - f\,\vec r_1}{g},\qquad \vec v_2 = \frac{\dot g\,\vec r_2 - \vec r_1}{g}

Why? The Lagrange coefficients express the future state as a linear combination of the initial position and velocity. Since we now know f,g,g˙f,g,\dot g (functions of a,Δθ,a,\Delta\theta,\ldots) and both positions, we algebraically solve for v1\vec v_1, then v2\vec v_2. These velocities are the answer the mission planner wants.

Figure — Lambert's problem — connecting two positions in given time

Worked Example 1 — Short-way elliptic transfer

Given (canonical units, μ=1\mu=1): r1=1r_1=1, r2=1.5r_2=1.5, Δθ=90\Delta\theta=90^\circ, Δt=1.2\Delta t = 1.2.

Step A — chord & semiperimeter. c=12+1.522(1)(1.5)cos90=1+2.250=3.25=1.803c=\sqrt{1^2+1.5^2-2(1)(1.5)\cos 90^\circ}=\sqrt{1+2.25-0}=\sqrt{3.25}=1.803. s=12(1+1.5+1.803)=2.152s=\tfrac12(1+1.5+1.803)=2.152. Why: geometry first — everything downstream depends on s,cs,c.

Step B — minimum-energy check. amin=s/2=1.076a_{\min}=s/2=1.076. Compute its time to see if our Δt\Delta t needs aa above or below (recall two branches exist per a>amina>a_{\min}). Why: it frames the root search and prevents picking a nonphysical aa.

Step C — solve Lambert's equation for aa (numerically, e.g. Newton on the boxed equation) so that RHS =Δt=1.2=\Delta t=1.2. Suppose it yields a1.30a\approx 1.30. Why: aa is the single unknown; one scalar root-find.

Step D — velocities via f,gf,g with this aa and Δθ\Delta\theta. Output v1,v2\vec v_1,\vec v_2; the departure burn is Δv=v1vpark\Delta v = |\vec v_1 - \vec v_{\text{park}}|. Why: velocities → Δv\Delta v → fuel, the deliverable.


Worked Example 2 — Why the transfer direction changes the answer

Same r1,r2r_1,r_2 but choose the long way, Δθ=270\Delta\theta = 270^\circ. c=1+2.252(1.5)cos270=3.250=1.803c=\sqrt{1+2.25-2(1.5)\cos270^\circ}=\sqrt{3.25-0}=1.803 (same chord!) — but the arc is now the big side, so β\beta takes the negative branch: use ββ\beta \to -\beta in Lambert's equation.

Why this step? The chord is symmetric, but which way you go around changes how much area/angle is swept, hence different Δt\Delta t for the same aa. The sign of β\beta encodes short-vs-long way. Forgetting it gives a wildly wrong time.


Common Mistakes


Active Recall

Recall Feynman: explain to a 12-year-old

Imagine you throw a ball to your friend, and you also say "it must land in exactly 2 seconds." There are actually different ways to throw it — a fast flat throw or a high loopy throw — and only some of them take exactly 2 seconds. Lambert's problem is the math that says: "Here's the exact throw (how hard and in what direction) so the ball goes from here to there in exactly that time." In space, gravity curves the "throw" into an orbit, and mission planners use it to hit a moving planet on time.


Flashcards

What does Lambert's problem take as input and produce as output?
Input: two position vectors, time of flight, μ\mu, transfer direction. Output: the connecting conic orbit and both velocities v1,v2\vec v_1,\vec v_2.
State Lambert's theorem.
Transfer time depends only on aa, chord c=r2r1c=|\vec r_2-\vec r_1|, and r1+r2r_1+r_2 (equivalently the semiperimeter ss), not on the arc's individual shape.
Write the elliptic Lambert time-of-flight equation.
μΔt=a3/2[(αsinα)(βsinβ)]\sqrt\mu\,\Delta t = a^{3/2}[(\alpha-\sin\alpha)-(\beta-\sin\beta)] with sin(α/2)=s/2a\sin(\alpha/2)=\sqrt{s/2a}, sin(β/2)=(sc)/2a\sin(\beta/2)=\sqrt{(s-c)/2a}.
What is the minimum-energy semi-major axis and why is it a floor?
amin=s/2a_{\min}=s/2; because sin(α/2)=s/2a1\sin(\alpha/2)=\sqrt{s/2a}\le1 forces 2as2a\ge s.
Why does eccentricity drop out of Lambert's equation?
When Kepler's equation is applied at both endpoints and differenced, the geometry folds ee into the auxiliary angles α,β\alpha,\beta, leaving time as a function of a,c,sa,c,s only.
How are velocities recovered after finding aa?
Via Lagrange coefficients: v1=(r2fr1)/g\vec v_1=(\vec r_2-f\vec r_1)/g and v2=(g˙r2r1)/g\vec v_2=(\dot g\,\vec r_2-\vec r_1)/g.
What does the sign of β\beta select physically?
The transfer direction: β>0\beta>0 for short-way (Δθ<π\Delta\theta<\pi), β<0\beta<0 for long-way (Δθ>π\Delta\theta>\pi).
Formula for chord length between the two positions.
c=r12+r222r1r2cosΔθc=\sqrt{r_1^2+r_2^2-2r_1r_2\cos\Delta\theta}.
Why can there be multiple Lambert solutions?
Two focus placements per aa, short/long-way choice, and multi-revolution (NN) solutions all satisfy the same endpoints+time.
Which classic equation supplies the time law used in the derivation?
Kepler's equation M=EesinEM=E-e\sin E, applied and differenced across the two endpoints.

Connections

  • Kepler's Equation and Time of Flight — the time law Lambert differences across the arc.
  • Lagrange Coefficients (f and g functions) — used to reconstruct velocities.
  • Hohmann Transfer — a special optimal case of Lambert (tangential, Δθ=π\Delta\theta=\pi).
  • Universal Variable Formulation — the unified (ellipse/parabola/hyperbola) way to solve Lambert.
  • Porkchop Plots and Launch Windows — Lambert solved over a grid of dates.
  • Orbital Rendezvous and Targeting — Lambert delivers the intercept velocity.

Concept Map

motivates

contrasts with

defines

solves for

yields

gives

enables

time depends only on

reduces to

gives

feeds

build

solves

Boundary value problem

Lambert problem

Kepler propagator IVP

Given r1 r2 dt mu direction

Conic orbit a e

Velocities v1 v2

Delta v for maneuver

Transfers rendezvous targeting

Lambert theorem

a, chord c, r1+r2

Chord law of cosines

Semiperimeter s

Auxiliary angles alpha beta

Time-of-flight equation

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, Lambert ka problem ekdum simple idea hai lekin missions ke liye bahut zaroori. Tumhare paas do points hain space mein — abhi tum yahan ho (r1\vec r_1) aur ek fixed time Δt\Delta t ke baad tumhe wahan pahunchna hai (r2\vec r_2). Sawaal ye hai: kaunsi orbit (kis speed aur direction se) tumhe exactly utne hi time mein connect karegi? Yehi Lambert solve karta hai, aur output milti hai v1\vec v_1 aur v2\vec v_2 — yani kitna aur kis direction mein burn karna hai. Isi se Mars transfer, docking, sab plan hote hain.

Sabse deep baat (Lambert's theorem): transfer ka time sirf teen cheezon pe depend karta hai — semi-major axis aa, chord length c=r2r1c=|\vec r_2-\vec r_1|, aur radii ka sum r1+r2r_1+r_2 (inko s=12(r1+r2+c)s=\tfrac12(r_1+r_2+c) mein pack karte hain). Eccentricity ka koi direct role nahi! Isliye poora problem ek scalar equation ban jaata hai: aisa aa dhoondo jisse Lambert ki time equation ka value diye gaye Δt\Delta t ke barabar ho. Ye kaafi magic hai — pehle lagta hai bahut variables honge, par sab ek unknown mein simat jaata hai.

Ek zaroori sanity check: sabse chhoti possible ellipse ka amin=s/2a_{\min}=s/2 hota hai, isse chhota aa possible hi nahi (kyunki sin(α/2)=s/2a\sin(\alpha/2)=\sqrt{s/2a} 1 se zyada nahi ho sakta). Aur yaad rakhna — "short way" aur "long way" alag answers dete hain (yehi β\beta ke sign se decide hota hai), aur ek hi time ke liye ek se zyada orbit ho sakti hain (multiple branches, multi-revolution). Toh direction hamesha explicitly choose karo.

Jab aa mil gaya, to Lagrange ke f,gf, g functions se velocities nikaalte ho: v1=(r2fr1)/g\vec v_1=(\vec r_2 - f\vec r_1)/g. Bas — yehi v1\vec v_1, v2\vec v_2 tumhare rocket ke Δv\Delta v ka source hain. Exam mein: pehle geometry (c,sc, s), phir Lambert equation se aa, phir velocities — is order mein socho, galti nahi hogi.

Go deeper — visual, from zero

Test yourself — Orbital Mechanics & Astrodynamics

Connections