Geodesics on Surfaces
Imagine an ant walking on a curved surface. It's told always to walk "straight ahead." It must never turn left or right. What path does it trace? On a flat table the answer is obvious: a straight line. On a sphere, a cylinder, or a saddle-shaped surface, the answer is subtler. Yet a precise notion of "straightest possible path" exists on every smooth surface. This notion is the geodesic. It is the natural generalization of a straight line to curved geometry. Geodesics matter because they sit at the intersection of three different ideas. These ideas turn out to be secretly the same. First, the curve that feels no sideways acceleration. Second, the curve that locally minimizes length between nearby points. Third, the curve whose coordinate expression solves a specific second-order system of ordinary differential equations. Reconciling these viewpoints is one of the great unifying achievements of classical differential geometry. It builds directly on The First Fundamental Form. That form supplies the only data — lengths and angles measured within the surface — that a two-dimensional being confined to the surface could ever access. The big picture is that geodesics generalize the entire calculus of straight lines. Shortest paths, uniform motion, parallel transport, and eventually curvature itself all reorganize around them. A geodesic is what remains of "straight line" once you refuse to leave the surface. It depends only on the surface's intrinsic geometry, not on how the surface happens to sit in space. This article develops geodesic curvature and the geodesic equations from the first fundamental form. It proves that geodesics are the critical points of the length (and energy) functional. It works two asymmetric examples in full — a great circle on a sphere and a helix on a cylinder. It then previews how geodesics feed directly into the Gauss-Bonnet Theorem, where the total turning of a curve gets balanced against the curvature enclosed.
- A geodesic is a curve on a surface whose acceleration, as seen from inside the surface, is always zero — it has zero geodesic curvature.
- Geodesic curvature measures how much a curve bends within the surface, ignoring the bending forced by the surface's embedding in space.
- The geodesic equations are a coupled system of two second-order ODEs in the surface's coordinates, built entirely from the first fundamental form's coefficients .
- Geodesics are exactly the critical points of the length functional (and, with constant speed, of the energy functional) among curves with fixed endpoints.
- Existence and local uniqueness of geodesics follow from the Picard–Lindelöf theorem applied to the geodesic ODE system.
- Key idea: a geodesic is the intrinsic straight line — zero sideways acceleration inside the surface — and this single condition simultaneously governs shortest paths and sets up the curvature balance in the Gauss–Bonnet theorem.
Where this lives today
Geodesics are the backbone of the Gauss-Bonnet Theorem, which expresses the total geodesic curvature of a closed curve bounding a region, plus the total Gaussian curvature inside, as a topological constant — the seed of the entire subject of global differential geometry and, ultimately, of algebraic topology's interaction with geometry. In general relativity, free-falling particles and light rays travel along geodesics of a pseudo-Riemannian spacetime metric, so the geodesic equation (with Christoffel symbols built from the metric tensor exactly as here) is literally Einstein's law of motion in curved spacetime. In computer graphics and geometric modeling, geodesics on triangulated meshes give shortest paths for texture mapping, mesh parametrization, and character-animation surface distances (the "fast marching" and "heat method" algorithms for geodesic distance). In cartography and geodesy proper, geodesics on the (approximately ellipsoidal) Earth determine shortest flight paths and are computed via numerical integration of essentially the same ODE system derived above. In robotics and control theory, geodesics on configuration-space manifolds with a Riemannian metric encode locally optimal, energy-minimizing motions. In machine learning, Riemannian optimization methods move along geodesics on manifolds of positive-definite matrices, rotations, or other constrained parameter spaces to perform gradient descent that respects the manifold's geometry.
Ask the tutor: How does the geodesic equation change when we move from a surface's first fundamental form to a general Riemannian metric, and what exactly is a Jacobi field?
Let be a regular surface and let be a local parametrization with first fundamental form coefficients
Let be a regular curve parametrized by arc length, so , and let denote the surface unit normal along . Decompose the acceleration vector into a component tangent to and a component along :
The scalar is the geodesic curvature of , and is the normal curvature. Equivalently, since is the unit vector in the tangent plane orthogonal to (rotated from within the tangent plane, consistent with orientation), one has
A regular curve on (not necessarily arc-length parametrized) is a geodesic if its tangential acceleration vanishes identically, i.e. the component of tangent to is zero at every point. When is parametrized by arc length, this is exactly the condition .
Intuition
Think of decomposing the acceleration of a curve confined to a surface into two orthogonal pieces. The normal curvature is forced upon the curve by the shape of the surface itself — it is present even for the "straightest" possible curve, because the surface bends in space and the curve must bend with it just to stay on the surface. The geodesic curvature , by contrast, measures extra bending: how much the curve swerves left or right within the tangent plane, beyond what the surface's shape already demands. A geodesic is a curve with no such extra swerving — all its acceleration is "used up" just keeping it on the surface, none is spent turning sideways. This is why an ant that always walks "straight ahead," never voluntarily turning, traces a geodesic. On a plane, automatically (there is no forced bending), so geodesics are curves with , i.e. : ordinary straight lines. On a sphere, every great circle is a geodesic, because the plane of a great circle passes through the sphere's center, forcing the curve's acceleration to point exactly along the surface normal, with no tangential remainder. The geodesic equations translate this geometric idea into coordinates. If , then requiring the tangential component of to vanish produces two coupled ODEs in and whose coefficients are built from and their partial derivatives — exactly the data of the first fundamental form, and nothing about how the surface bends in space. This is the first hint that geodesics are an intrinsic notion: two surfaces with the same first fundamental form (isometric surfaces) have identical geodesic equations, hence "the same" geodesics under the isometry, even if one is flat and the other is curled into a cylinder.
Let be a regular surface, a local parametrization with first fundamental form coefficients , .
(a) Geodesic equations. A curve is a geodesic if and only if satisfies the system
where the Christoffel symbols are determined algebraically by and their first partial derivatives via
(b) Existence and uniqueness. Given a point and a tangent vector , there exists and a unique geodesic with and .
(c) Constant speed. Every geodesic has constant speed .
(d) Local length-minimization. Let be a geodesic parametrized by arc length. For every there is such that, for with and , has length less than or equal to the length of every piecewise-regular curve on joining to , with equality only for a reparametrization of itself.
We use three techniques: (1) direct computation with the chain rule and the definition of tangential projection to derive the ODE system, invoking The First Fundamental Form for the metric coefficients; (2) the Picard–Lindelöf existence–uniqueness theorem for first-order ODE systems, after reducing the second-order system to first order; (3) the first-variation-of-arc-length computation (a calculus of variations argument) to establish local minimization.
(a) Derivation of the geodesic equations. Write . By the chain rule,
Differentiating again and using the chain rule on and ,
The vectors span the tangent plane at each point, and is a basis of (since for a regular parametrization). Hence each second partial derivative decomposes uniquely as
where are the second fundamental form coefficients (irrelevant here) and the are, by definition, the tangential coefficients — the Christoffel symbols. To solve for the in terms of : take the dot product of with and with (noting ):
Now observe that , and (using ). This gives the linear system
Since (regularity), this system is invertible, and solving by Cramer's rule yields exactly the formulas stated for . The formulas for and follow identically from dotting and with and using the analogous identities , , , . This proves the depend only on and their first partials — an intrinsic fact. Substituting the decomposition of back into the expression for and collecting tangential terms, the tangential component of is
Since are linearly independent, this vanishes identically if and only if both coefficients vanish, which is precisely the stated geodesic equation system. This proves (a).
(b) Existence and uniqueness. Introduce , . The geodesic system becomes the first-order system in :
The right-hand side is a (in particular, locally Lipschitz) function of on the open set where , since the are smooth functions of and their derivatives, which are themselves smooth by the regularity of . By the Picard–Lindelöf theorem, for any initial data there exists and a unique solution on with , , , . Given with coordinates and , take ; the resulting solution is, by part (a), the unique geodesic with , . This proves (b).
(c) Constant speed. Let be a geodesic, so is everywhere normal to , i.e. for some scalar function . Then
since is orthogonal to . Hence is constant, so is constant. This proves (c).
(d) Local length-minimization. This is a first-variation argument. Fix a geodesic parametrized by arc length, so by (c). Fix ; by continuity of and its inverse there is a coordinate neighborhood around and such that and, shrinking if necessary (using existence of geodesic normal coordinates, or more elementarily by continuity of solutions to the geodesic ODE on compact parameter sets), such that for is the unique geodesic segment joining its endpoints within . We show any piecewise-regular curve joining to within this neighborhood has length , with equality iff is a reparametrization of . Consider the energy functional for a curve ,
By the Cauchy–Schwarz inequality applied to the functions and on ,
with equality if and only if is constant on . Thus it suffices to show minimizes among curves with the same endpoints and same parameter interval, and that any -minimizer among constant-speed curves must itself have ; combined with Cauchy–Schwarz this yields the length-minimization with equality forcing reparametrization of a geodesic. To show is a critical point of (and in fact the minimizer, by the local uniqueness from part (b) together with a standard second-variation / Jacobi field argument establishing that sufficiently short geodesic segments have no conjugate points, hence are strict local minima — this is the content of the Jacobi field theory, which we invoke here as the mechanism making the critical point a genuine minimum rather than merely a critical point): let for be a smooth variation of with fixed endpoints, , for and all . Then
where subscripts denote partial derivatives and are evaluated along . Differentiating under the integral sign at and integrating by parts in (the boundary terms vanish since the variation fixes endpoints), a direct computation — using the same identities for , etc., as in part (a) — shows
where , are the (arbitrary, endpoint-vanishing) components of the variation field. Since satisfies the geodesic equations from part (a), both bracketed expressions vanish identically, so for every variation with fixed endpoints. Thus is a critical point of , and by the fundamental lemma of the calculus of variations, a curve is a critical point of for all fixed-endpoint variations if and only if it satisfies the geodesic equations — so critical points of are exactly the geodesics. Finally, restricting to a sufficiently short parameter interval around (which is possible by the smooth dependence of geodesics on initial conditions and the inverse function theorem applied to the exponential map, guaranteeing no conjugate points arise before length ), the second variation of along is positive definite on variations vanishing at the endpoints, so is a strict local minimizer of , hence of by the Cauchy–Schwarz argument above. This proves (d).
∎Worked examples
Example 1: A great circle on the unit sphere is a geodesic, verified directly and via the geodesic equations. Parametrize the unit sphere by
with the polar angle from the north pole and the azimuthal angle. A direct computation gives
so
Take the great circle through the point , tilted so that it is not the equator and not a meridian — a genuinely asymmetric case. Concretely, consider the great circle cut by the plane through the origin with unit normal
i.e. the set . Parametrize it by arc length: pick an orthonormal basis of , e.g.
and set
This is a unit-speed curve (check: , and , confirmed) lying on (check: , confirmed). Compute the acceleration directly:
On the unit sphere the outward unit normal at the point is itself. So , which is entirely normal to the sphere — its tangential component is exactly zero at every . Hence and is a geodesic, and moreover (constant), consistent with a great circle having normal curvature equal in magnitude to the sphere's curvature . This matches the abstract theorem: solving the geodesic equations for (using the computed ) gives the Christoffel symbols
and the system , is satisfied by the coordinate functions of our explicit great circle (this can be checked by substituting , obtained from the -coordinate, and differentiating, though the direct extrinsic computation above already suffices to prove geodesy).
Example 2: The helix on a circular cylinder, and why it is a geodesic despite visibly curving in space. Let the cylinder of radius be parametrized by
Then , , giving
constants. Since are constant, all Christoffel symbols vanish (each involves only first derivatives of , which are all zero). The geodesic equations reduce to
so every geodesic on this cylinder has the form , for constants — a coordinate-linear curve. Take the asymmetric case (an arbitrary, non-axis-aligned, non-unit-slope helix):
We verify geodesy directly. Compute
The cylinder's outward unit normal at is (the radial direction in the -plane). Observe
which is purely normal — zero tangential component. Hence is a geodesic (its speed is constant, consistent with part (c) of the theorem, though this is not an arc-length parametrization since ; reparametrizing by gives the arc-length geodesic). Geometrically this makes sense: unrolling the cylinder onto the plane (an isometry, since match the flat metric up to relabeling, or more directly, the map is a local isometry onto the plane with the flat metric) sends the helix to the straight line , in the plane, confirming that a helix — which visibly curves in — is nonetheless intrinsically straight, because the cylinder's intrinsic (first-fundamental-form) geometry is identical to that of a flat sheet of paper rolled up without stretching.
The theorem's part (a)–(b) implicitly requires the parametrization to be regular, i.e. everywhere on , precisely so the Christoffel symbols are well-defined (the linear system solved in the proof requires to invert) and so Picard–Lindelöf applies to a genuine, non-degenerate ODE system. Consider the "parametrization" of the plane by
Here , , so , , , and , which vanishes at : fails to be a regular parametrization along the entire line (there, , so the map is not an immersion). Attempt to run the proof of part (a) at : the formula
blows up as . The geodesic ODE system is therefore singular along , Picard–Lindelöf's Lipschitz hypothesis fails there, and indeed existence and uniqueness of geodesics through points with genuinely fail for this ODE in these coordinates: for instance, both the constant curve and (after a short computation solving away from , then examining limiting behavior) certain non-constant solutions can be made to agree to first order at with , illustrating the loss of uniqueness that the regularity hypothesis is designed to prevent. Of course the underlying surface here is just the plane (via away from ), whose true geodesics are ordinary straight lines; the pathology is an artifact of choosing an irregular parametrization, which is exactly why the hypothesis is non-negotiable in the theorem — it is a statement about the parametrization used to compute the equations, not merely a cosmetic simplification.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| Compact surface (e.g. sphere) | Geodesics extend for all time (Hopf–Rinow, stated beyond this article's scope) | Geodesics need not be globally length-minimizing past a certain length (e.g. two antipodal points on are joined by infinitely many minimizing great-circle arcs, and any great circle arc longer than half the circle is not minimizing) |
| Non-simply-connected or incomplete surface | Local existence/uniqueness (Theorem b) still holds | Global uniqueness of geodesic between two points fails; a geodesic may not be extendable to all of (e.g. an open disk with the boundary circle removed) |
| Straight line on a plane | Geodesic with , | — |
| Curve of latitude on sphere (not equator) | Has constant , but | Not a geodesic — a classic trap, since it looks "circular and symmetric" like the equator |
| Parametrization singular () | — | Christoffel symbols undefined/blow up; existence–uniqueness can fail, as shown above |
The mathematician behind it
Origins · 1 minCarl Friedrich Gauss and how this was discovered
Gauss's 1827 treatise Disquisitiones generales circa superficies curvas ("General Investigations of Curved Surfaces") founded intrinsic differential geometry: the idea that a surface's geometry — including its geodesics — can be studied entirely through measurements made within the surface, via what we now call the first fundamental form, without reference to how the surface sits in space. Gauss developed this theory partly out of his work on geodetic surveying of the Kingdom of Hanover, where "geodesic" originally meant the literal shortest path measured across the curved Earth, and partly out of pure mathematical curiosity about curvature, culminating in his Theorema Egregium (the intrinsic nature of Gaussian curvature), which sets the stage for the Gauss–Bonnet theorem.
Is every locally length-minimizing curve a geodesic, and conversely?
Yes to both, under the right local hypotheses. The theorem shows geodesics are locally length-minimizing (part d), and the converse also holds: if is parametrized by arc length and locally minimizes length among all nearby fixed-endpoint curves, then it must be a critical point of the energy functional on short intervals (since local minimizers of length that are constant-speed are automatically local minimizers of energy, by the Cauchy–Schwarz equality analysis in the proof), hence satisfies the geodesic equations by the fundamental lemma of the calculus of variations. The subtlety is "local": a geodesic segment need not be globally minimizing once it grows long enough, as the antipodal great-circle-arc example on the sphere shows.
Why do the Christoffel symbols only depend on the first fundamental form, not on how the surface sits in ?
This is proved directly in the derivation: the linear system pinning down (and similarly for the other indices) involves only , , , and their first partial derivatives, arising from identities like . No second fundamental form coefficients (which encode extrinsic bending) appear. This is the algebraic seed of Gauss's Theorema Egregium: because geodesics, hence the Christoffel symbols, are built purely from , two surfaces with the same first fundamental form under a diffeomorphism (an isometry) have corresponding geodesics, even if one is flat and the other is bent into space, as with the plane and the cylinder.
Do geodesics always exist for all time, or can they "run off the edge" of a surface?
Local existence (Theorem part b) only guarantees a geodesic on some small interval . Whether it extends to all of depends on completeness of the surface: on a compact surface without boundary (like a sphere or torus), geodesics extend indefinitely, a fact governed by the Hopf–Rinow theorem (beyond this article's scope). On an incomplete surface, such as an open disk or a surface with a puncture, a geodesic can indeed reach the boundary or the missing point in finite parameter time and fail to extend further, exactly as a straight line in the open unit disk (with the flat metric) exits through the boundary circle in finite time.
Are geodesics unique between two given points?
Not globally, only locally. Locally (Theorem part b), a geodesic is uniquely determined by a point and an initial velocity, which pins down a unique geodesic — but that does not immediately give uniqueness between two fixed points, since different initial velocities at the first point can lead to different geodesics that both pass through the second point later. The clearest counterexample is two antipodal points on a sphere, connected by infinitely many great-circle arcs (every great circle through both poles works), all geodesics, all of the same minimal length (in the unit sphere). Uniqueness between two points is a delicate global question, generally false without further hypotheses like negative curvature or small enough separation.
How does geodesic curvature relate to the Gauss-Bonnet theorem?
The local Gauss–Bonnet formula states that for a region on a surface bounded by a piecewise-smooth curve with exterior angles at the corners,
where is Gaussian curvature. Geodesic curvature is exactly the boundary integrand that "pays for" the enclosed curvature; when is itself a union of geodesic arcs, along it, so the formula reduces to a pure statement about enclosed curvature and corner angles — this is precisely how geodesic triangles on a sphere are shown to have angle sums exceeding , foreshadowing the full Gauss-Bonnet Theorem.
Does a geodesic always have zero normal curvature too?
No — this is a common confusion. A geodesic has , but is generally nonzero and is entirely determined by the surface's second fundamental form and the curve's direction; it need not vanish. On the unit sphere, every great circle geodesic has constant normal curvature (as computed in Worked Example 1), reflecting the sphere's own curvature, not any property special to geodesics. A curve with both and would have to be a straight line, which only lies on a surface where the surface itself is flat in that direction.
Why does the parametrization need to be regular () for the geodesic equations to make sense?
The Christoffel symbol formulas all have in the denominator, arising from inverting the linear system built from decompositions. If at some point, and become linearly dependent there (the parametrization is not an immersion), the basis degenerates, and the Christoffel symbols are undefined or blow up, as demonstrated in the counterexample above with . This is purely a defect of the chosen coordinates, not of the underlying surface, but it shows the hypothesis is essential for the proof method, even when the surface itself is perfectly smooth.