Lagrange Coefficients (f and g Functions)
Author: Tianjiang Shuo
Website: https://cislunarspace.cn
Definition
In the two-body problem, the position and velocity at any time can be written as a linear combination of the position and velocity at the initial epoch (Vallado 2022, §2.5; Battin 1999):
The four coefficients are the Lagrange coefficients (or f and g functions). Lagrange introduced this form for lunar-motion studies in the 18th century; it gives a linear statement of "how to compute the state at one epoch from the state at another in a central gravity field" — Kepler's problem — and underpins two-body propagation, initial orbit determination, and the Lambert problem.
Fundamental Identity
Because the angular momentum is conserved, substituting and into and expanding gives
This identity is a free accuracy check in numerical implementations: any closed-form or approximate expression for must satisfy it, on pain of violating angular-momentum conservation.
Closed Forms by Independent Variable
The explicit form of the Lagrange coefficients depends on "what is known" — typically some orbital-anomaly difference (Vallado 2022, §2.5).
By true-anomaly difference
with the semi-latus rectum.
By eccentric-anomaly difference (ellipse)
is fixed implicitly by Kepler's equation . This is the most widely used form for elliptic-orbit numerical propagation.
By parabolic anomaly (parabola)
By hyperbolic-anomaly difference (hyperbola)
By universal variable (unified form; Battin 1987; Vallado 2022 Eq. 2-68)
The universal-variable formulation unifies ellipse, parabola, and hyperbola, avoiding orbit-type branching:
where (signed) and are Stumpff functions. This form is the core of the universal-variable method.
Series Form (for Initial Orbit Determination)
When only the position magnitude at is known and orbital elements cannot be obtained directly (typical of Gauss's method in initial orbit determination), set and Taylor-expand about . The resulting series forms for and are (Escobal 1965; Vallado 2022, Eq. 2-69):
with and the derivatives of evaluated at . The series converges quickly for short (typically a small fraction of the observation arc) and provides a propagation tool using only position information.
Application Notes
- Two-body propagation: given and a flight time, solve Kepler's equation for (or ) and substitute into the corresponding closed form to obtain .
- Lambert's problem: Lambert's problem uses to turn the position relation into a single transcendental equation in the semi-major axis ; multi-revolution solutions and universal-variable algorithms (Battin-Vaughan, Gooding) are all built on the expressions.
- Initial orbit determination: Gauss's method uses the series form of to couple position-velocity at three observation epochs into an iteration over — the classical method for determining an orbit from angles-only (or angles-plus-some-ranges) observations.
- Accuracy check: after each propagation step, the residual of provides a free estimate of integration error.
Common Confusions
- Lagrange coefficients vs. Lagrange's planetary equations: the former is the linear transfer between two-body states; the latter are variational equations for the orbital elements under perturbing accelerations (resolved along R/S/W). Same name "Lagrange", different objects.
- f, g vs. universal variable: is the independent variable; and are coefficients expressed in terms of it. Saying "propagate with the universal-variable method" really means "propagate with the functions written in ".
- f, g in Lambert's problem: there, are known and are sought; from solve and then . This is the role of in boundary-value problems.
Related Concepts
References
- Vallado, D. A. (2022). Fundamentals of Astrodynamics and Applications, 5th ed., §2.5 (Classical Formulas Using f and g Functions) and §2.6 (Series Forms of f and g). Microcosm Press.
- Battin, R. H. (1999). An Introduction to the Mathematics and Methods of Astrodynamics, Revised Edition. AIAA.
- Bate, R. R., Mueller, D. D., & White, J. E. (1971). Fundamentals of Astrodynamics. Dover.
- Escobal, P. R. (1965, reprinted 1985). Methods of Orbit Determination, 2nd ed. Krieger.
- Herrick, S. (1971). Astrodynamics, Vol. 1. Van Nostrand Reinhold.
