Chapter 2 Riemannian Metrics on Parameter Spaces
The Gaussian family is described by the open set in which the parameter varies (Definition 1.1). In this chapter we introduce the tool for measuring lengths and distances on such an open set, namely a Riemannian metric. The Fisher metric of Chapter 3 and the Wasserstein metric of Chapter 5 are both Riemannian metrics in the sense of this chapter. The chapter covers the following.
-
•
Riemannian metrics, lengths of curves, distance, isometries and changes of coordinates (Section 2.1).
-
•
Gradients and gradient flows (Section 2.2).
-
•
Christoffel symbols, geodesics and the first variation of energy (Section 2.3).
-
•
The curvature of an orthogonal metric in dimension , and constant multiples of a metric (Section 2.4).
-
•
The Euclidean plane and the Poincaré upper half-plane (Section 2.5).
We assume only open subsets of finite-dimensional real vector spaces, smooth maps on them and the calculus of several variables, and the existence and uniqueness of solutions of ordinary differential equations. We do not use manifolds. Every space in this book is an open subset of a vector space, so this suffices. For the differential geometry of surfaces in , see Kobayashi’s book [KOB95] (in Japanese). The hyperbolic geometry of the upper half-plane is treated in detail in Surfaces of Curvature [KEI26a], in the same series.
2.1 Riemannian Metrics and Distance
Throughout this chapter, is an -dimensional real vector space and is an open set. Typical examples are and , where is the space of real symmetric matrices. In the latter case is an open subset of , and . Fixing a basis identifies with , and in proofs we do so without comment. For a point , a vector and , we write the derivative of at in the direction as
In coordinates , where is the vector of partial derivatives.
Definition 2.1 (Riemannian metric).
Consider an assignment of an inner product on to each point of . If, for a basis of , the components are all functions of , we call a Riemannian metric on . We call the pair an open set with a Riemannian metric. We write the length of as .
A change of basis changes the components linearly, so this condition does not depend on the choice of basis. In coordinates, is a symmetric matrix that is positive definite at each point, and . We sometimes write the metric as
This is shorthand for . For example, on the upper half-plane denotes the metric with and . The metric on with is called the Euclidean metric. For it, is the usual length .
Definition 2.2 (Length of a curve).
Let be a piecewise curve. Its length is
Here is the derivative of , defined except at finitely many points. When we need to specify the metric we write .
Length does not depend on the parametrisation. That is, if is a monotone surjection, then . This follows by substitution, since .
Definition 2.3 (Distance and completeness).
Let be connected. For we take the infimum of lengths over all piecewise curves from to :
When we need to specify the metric we write . We say that is complete if every Cauchy sequence for converges, with respect to , to a point of .
Any two points of a connected open set can be joined by a polygonal path, so is finite. In fact is a metric. The next proposition shows this, and also compares locally with the Euclidean distance .
Proposition 2.4 (Metric axioms and local comparison).
Let be connected and let be a Riemannian metric on .
-
1.
is a metric on . That is, , , and if and only if .
-
2.
Take and such that the closed ball is contained in . Take such that for every point of and every . Then for all . Moreover, if then .
-
3.
For a sequence in and , if and only if .
The constants , in (2) exist. Indeed, the smallest and largest eigenvalues of the matrix are positive continuous functions of , so they attain positive minimum and maximum values on the compact set .
Proof.
We prove (2) first. Put and let be a piecewise curve from to . Since , the number is defined. By continuity , and on . Therefore
Taking the infimum over gives the lower bound. If , the segment () lies in . Its length is at most , which gives the upper bound.
(1) Traversing a curve from to backwards gives a curve from to of the same length, so . Concatenating a curve from to with one from to gives a curve from to whose length is the sum; taking infima gives the triangle inequality. A constant curve has length , so . If , the right-hand side of the lower bound in (2) is positive, so .
(3) This follows at once from the two bounds in (2). ∎
Definition 2.5 (Isometry).
Let and be open sets with Riemannian metrics (, ). A map is an isometry if the following two conditions hold.
-
1.
is a bijection whose inverse is also . Such a map is called a diffeomorphism.
-
2.
For each point and all , .
Here is the derivative of at (in coordinates, the Jacobian matrix).
In coordinates, condition (2) says that the Jacobian matrix satisfies . Conversely, given a diffeomorphism and a metric on , the left-hand side of this equation defines a metric on . This is the change-of-coordinates formula.
Proposition 2.6 (Change of coordinates).
Let be a diffeomorphism and let be a Riemannian metric on . For put
In coordinates .
-
1.
is a Riemannian metric on , and is an isometry from to .
-
2.
For an isometry and a piecewise curve in , . If is connected, then for all .
Proof.
(1) Since is invertible, implies , and so . The components are functions of . That is an isometry is the definition itself.
(2) By the chain rule . By the definition of an isometry, ; integrating, the lengths are equal. If is connected, so is its image . The map is a bijection between piecewise curves from to and piecewise curves from to (its inverse is composition with ). Since lengths are equal, so are the infima. ∎
Hence expressing the same metric in other coordinates changes neither lengths nor distances. In Chapter 3 we show that the Fisher metric transforms under a change of coordinates by this formula.
2.2 Gradients and Gradient Flows
In this section is .
Definition 2.7 (Gradient).
The gradient of at is the vector satisfying
for all . When we need to specify the metric we write .
In coordinates the condition is that for all . Since is an invertible symmetric matrix, there is exactly one such vector, namely
| (2.1) |
where is regarded as a column vector. For the Euclidean metric . For the same , a different metric gives a different gradient.
Proposition 2.8 (Properties of the gradient).
Let .
-
1.
.
-
2.
For with , .
-
3.
If , then equality holds in (2) only for .
Items (2) and (3) say that, among the directions of length measured by the metric , the direction in which decreases fastest is . If , then and in every direction.
Proof.
(1) By (2.1), .
(2) By the definition of the gradient and the Cauchy–Schwarz inequality for the inner product ,
(3) Equality in the Cauchy–Schwarz inequality holds only when is a non-positive real multiple of . Together with , this gives . ∎
Definition 2.9 (Gradient flow).
If a curve () satisfies
we call a gradient flow of (with respect to the metric ).
Since is , (2.1) shows that is a vector field. So the existence and uniqueness theorem for ordinary differential equations gives the following. For each , a gradient flow with exists for some . Two gradient flows with the same agree on their common domain. In this book time runs only in the direction .
Proposition 2.10 (Decrease along a gradient flow).
Let be a gradient flow of . Then
In particular is non-increasing in .
Proof.
By the chain rule and the definition of the gradient,
∎
Gradients and gradient flows are compatible with changes of coordinates: computing in other coordinates gives the same curve.
Proposition 2.11 (Gradient flows under a change of coordinates).
Let be a diffeomorphism, a Riemannian metric on , and a function.
-
1.
For , .
-
2.
A curve is a gradient flow of with respect to if and only if is a gradient flow of with respect to .
Proof.
(1) Put . By the chain rule . By (2.1),
(2) We have , and is invertible. So by (1), is equivalent to . ∎
Remark 2.12 (Gradient flows depend on the metric).
For the same function, different metrics give different gradient flows. For example, consider on . With respect to the Euclidean metric the gradient is . The gradient flow is , and its trajectory is a segment heading to the origin. With respect to the metric , on the other hand, the gradient is by (2.1). The gradient flow is , . If , its trajectory is part of the curve , which is not a segment. Note that multiplying a metric by a positive function does not change the direction of the gradient, only the speed. The subject of Chapter 6 is the two gradient flows of the same function on the Gaussian family, with respect to the Fisher metric and to the Wasserstein metric. They differ not merely in speed: in general they have different trajectories.
2.3 Geodesics
In this section we use coordinates , and denotes the entries of the inverse matrix . We write for the partial derivative .
Definition 2.13 (Christoffel symbols).
The Christoffel symbols of a Riemannian metric are
They satisfy . For vectors we write for the vector whose th component is .
When with coordinates and the metric has the orthogonal form (),
| (2.2) | ||||
where the subscripts denote partial derivatives.
Definition 2.14 (Geodesic).
A curve on an interval is a geodesic if
In components, (). This equation is called the geodesic equation.
The geodesic equation is a first-order system of ordinary differential equations in with coefficients. So the existence and uniqueness theorem for ordinary differential equations gives the following. For each and , a geodesic with and exists on some open interval containing . Two geodesics with the same initial conditions agree on their common domain. Moreover, the equation is quadratic in . Hence if is a geodesic, so is for constants . For the Euclidean metric , and the geodesics are the straight lines traversed at constant speed.
Lemma 2.15 (Geodesics have constant speed).
For a curve ,
In particular, the speed of a geodesic does not depend on .
Proof.
Differentiating gives
On the other hand, by the definition of the Christoffel symbols,
The last equality holds because, after summation, the three terms in the brackets all give the same value. Comparing the two expressions gives the claim. ∎
Geodesics arise as curves that locally minimise length. To show this, we define the energy of a curve as
By the Cauchy–Schwarz inequality,
| (2.3) |
with equality only when the speed is constant. A map (, ) with , and is called a variation of with fixed endpoints. For example, if is with , then is a variation with fixed endpoints. Here is compact, so lies in once is small enough.
Proposition 2.16 (First variation of energy).
Let be a curve.
-
1.
Let be a variation of with fixed endpoints, and put . Then is differentiable, and
-
2.
is a geodesic on if and only if the value in (1) is for every variation of with fixed endpoints.
-
3.
Suppose that has constant speed. Suppose moreover that for each variation of with fixed endpoints there is such that whenever . Then is a geodesic.
Proof.
(1) The integrand is in , so we may differentiate under the integral sign. Since is , , which equals at . Therefore
We integrate the first term by parts. The endpoints are fixed, so and the boundary terms vanish. Hence the first term equals
Rewrite and combine with the second term. Then the coefficient of becomes
where the last equality is the definition of the Christoffel symbols. This is the claimed formula.
(2) If is a geodesic, the integrand in (1) is . For the converse, put ; this is a continuous -valued function on . Suppose that for some and some . Changing sign, we may assume . By continuity on some open interval containing . Take a function that vanishes outside and is positive on , and put ( is the th unit vector). For the variation , the value in (1) is , contradicting the assumption. Hence on , and by continuity on . Since is invertible, satisfies the geodesic equation.
Conversely, geodesics minimise length over short intervals. Precisely: for each in the domain of a geodesic there is an interval containing such that the restriction of to that interval has the least length among nearby curves joining its endpoints. This is not proved in this book (for surfaces in , see Kobayashi’s book [KOB95]). Whenever we compute a distance in this book, we prove the bounds we need directly, on the spot.
Proposition 2.17 (Isometries preserve geodesics).
Let be an isometry and a curve. Then is a geodesic of if and only if is a geodesic of .
Proof.
The geodesic equation is an identity at each time, so it suffices to check it on each closed interval contained in . If is a variation of with fixed endpoints, then is a variation of with fixed endpoints. Composing with goes back, so this is a bijection between the variations of the two curves. As in the proof of Proposition 2.6, the definition of an isometry gives . Hence . Therefore the condition of Proposition 2.16 (2) holds for if and only if it holds for . ∎
2.4 Curvature
We define curvature only in dimension . The only curvatures computed in this book are those of orthogonal metrics in dimension .
Definition 2.18 (Curvature).
Let be an open set with coordinates . Let be positive functions on , and consider the orthogonal metric . Its curvature (Gaussian curvature) is
| (2.4) |
where the subscripts denote partial derivatives.
If and are constant, then . Metrics that are not orthogonal also have a curvature formula in terms of and their partial derivatives up to order , but this book does not use it.
Remark 2.19 (Gauss’s Theorema Egregium).
Let be a map whose partial derivatives are nonzero and orthogonal to each other at each point. Put and . Then the of (2.4) equals the Gaussian curvature of the surface (Gauss’s Theorema Egregium). In particular, the Gaussian curvature of a surface is determined by its first fundamental form alone. This is not proved in this book (see Kobayashi’s book [KOB95]). It is the reason for the name curvature. In this book we always compute curvature in specific coordinates by (2.4), so the theorem is not used in any proof. For metrics in dimension or more, curvature becomes a family of quantities called sectional curvatures. We do not define sectional curvature; we only use the name in Chapter 5 when quoting results.
Multiplying a metric by a constant changes lengths, gradients and curvature in a simple way. In Chapter 3 we use this to reduce the Fisher metric to a constant multiple of the metric of the Poincaré upper half-plane.
Proposition 2.20 (Constant multiples of a metric).
Let be a Riemannian metric on and a constant.
-
1.
. If is connected, then , and is complete if and only if is complete.
-
2.
For a function , .
-
3.
The Christoffel symbols of equal those of . In particular, and have the same geodesics.
-
4.
If and , the curvature of is .
Proof.
(1) The length of each vector is multiplied by , so the length of each curve is too. Taking infima gives . Cauchy sequences and convergence are unchanged when a metric is multiplied by a positive constant.
(2) In (2.1), becomes .
(3) In the definition of the Christoffel symbols, is multiplied by , and and the other derivatives by .
(4) Replacing by multiplies by and leaves and unchanged. So only the leading factor in (2.4) is multiplied by . ∎
2.5 Two Examples
Example 2.21 (The Euclidean plane).
Let be a convex open set with the Euclidean metric. The Christoffel symbols are , and the geodesics are straight lines traversed at constant speed. If , then , so by (2.4). The distance is . Indeed, for any piecewise curve from to ,
Moreover, since is convex, the segment joining and lies in , and its length is . In particular, the upper half-plane with the Euclidean metric has the Euclidean distance. This metric appears on the one-dimensional Gaussian family in Chapter 5.
Example 2.22 (The Poincaré upper half-plane).
Consider the upper half-plane . This is of Definition 1.1 with the coordinates renamed from to . The metric
on it is called the Poincaré metric, and the upper half-plane with this metric is called the Poincaré upper half-plane.
-
1.
Curvature. We have , , and . Hence , and by (2.4)
-
2.
The geodesic equation. By (2.2), , , , and the others are . So the geodesic equation for a curve is
(2.5) -
3.
Examples of geodesics. For , the curve () on a vertical line is a geodesic. Indeed, , and . For and , the curve
on the semicircle with centre and radius is also a geodesic. Indeed, and , so . The first equation follows from and . The second follows from and . Both curves have speed . Also, and satisfy .
-
4.
There are no other geodesics. Let be a non-constant geodesic. Then there are , and a curve from (3) such that on the domain of . Hence the image of a geodesic is contained in a vertical line or in a semicircle centred on (Figure 2.1). We prove this. We may assume that the domain of contains ; put and . The curve is also a geodesic. So by uniqueness of solutions it suffices to find , , with and . If , take , and . If , put and . The point lies on the semicircle with centre and radius . Since , the vector points along the tangent to this circle at . Let be the curve from (3) on this semicircle and define by ; then (note that since ). Since is also a nonzero vector along the same tangent, for some .
-
5.
Distance. The distance between two points and is
(2.6) (not proved in this book; see Surfaces of Curvature [KEI26a]). The following lower bound, however, can be shown directly. If is a piecewise curve joining the two points, then . Hence
and so . If , the vertical segment has length exactly , so equality holds.
In the Poincaré upper half-plane, points with are infinitely far away. Indeed, the lower bound of Example 2.22 (5) diverges as . For the Euclidean metric of Example 2.21, on the other hand, the boundary is at finite distance. As we shall see in Chapters 3 and 5, these two metrics are the models of the two geometries on the Gaussian family.
Problems
-
1.
The map is a diffeomorphism from to . Show that, for the Euclidean metric, . Also check by (2.4) that its curvature is .
Hint: The Jacobian matrix satisfies . Since and , we have .
-
2.
For an open interval and a positive function , show that the metric on has curvature .
Hint: Putting , and in (2.4), we have .
-
3.
Check by (2.4) that the metric on has curvature .
Hint: When , (2.4) becomes .
-
4.
Check that the right-hand side of (2.6) equals when . This agrees with the value shown directly in Example 2.22 (5).
Hint: With , .
-
5.
Consider the function on the upper half-plane. Show that the gradient flow with respect to the Euclidean metric reaches the boundary at time . Also show that the gradient flow with respect to the Poincaré metric is , defined for all .
Hint: By (2.1), the gradient with respect to the Poincaré metric is . Solve .