Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Measuring on curved spaces
An aeroplane flying from New York to Tokyo heads north over Alaska. On a flat map that looks like a detour, but on the globe it’s the shortest route: a great circle. On curved surfaces, “straight” means don’t turn left or right, and such paths are called geodesics.
Curved spaces break flat-geometry rules. Draw a triangle on a ball and its angles add up to more than 180°. You can detect the curvature without ever leaving the surface.
Spacecraft attitude, robot orientations, camera directions, probability distributions and the weights of some neural networks all live on curved spaces. Averaging, interpolating or optimizing them as if they were flat gives wrong answers: off-manifold points, uneven motion and wasted fuel. Riemannian geometry gives the correct versions of these operations.
- 1. The shortest path between two points on a sphere is part of a…
- 2. On a sphere, the angles of a triangle add up to…
- 3. A geodesic is a path that…
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.The metric tensor
A Riemannian metric gives an inner product on each tangent space, with G(x) symmetric positive definite and varying smoothly. The length of a curve is
Distance is the infimum of lengths over all curves joining the two points.
- Polar coordinates in the plane: , so .
- Unit sphere in colatitude θ and longitude φ: . A circle of colatitude θ has length .
- Embedded surfaces inherit their metric from the ambient dot product.
Geodesics
Geodesics are locally length-minimizing curves with constant speed. On the unit sphere they are great circles: .
- 1. In polar coordinates, the metric is…
- 2. Length of the latitude circle at colatitude 90° (the equator) on the unit sphere:
- 3. The metric tensor G(x) must be…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Exponential and logarithm maps
- follows the geodesic from p with initial velocity v for unit time.
- is its inverse: the tangent vector at p pointing to q, whose length is the distance .
On the unit sphere:
These maps turn flat formulas into manifold algorithms:
- Geodesic interpolation: . This is slerp.
- Karcher (Fréchet) mean: . Iterate .
- Riemannian gradient descent: the Riemannian gradient is the Euclidean gradient projected onto the tangent space (for an embedded submanifold). Step with , or with a cheaper retraction (Absil, Mahony and Sepulchre, 2008).
Curvature
The Gaussian curvature K of a surface measures how geodesics spread: the sphere has K = 1/R², the plane 0, and the hyperbolic plane −1. Gauss–Bonnet for a geodesic triangle T: . Equivalently, carrying a vector around T by parallel transport rotates it by (holonomy).
- 1. The length of log_p(q) equals…
- 2. On an embedded manifold, the Riemannian gradient is…
- 3. A triangle in the hyperbolic plane (K = −1) has angle sum…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Why exp and log are inverse on the sphere
Let with and unit . Then , because . So . ∎
The Riemannian gradient is the projection
For f restricted to a submanifold M, is the unique tangent vector with for all tangent v. Since for tangent v, we get . ∎ On the sphere, . For the Rayleigh quotient , the critical points are exactly the eigenvectors.
Holonomy of a latitude circle
Carry a vector around the circle of colatitude θ. It returns rotated by the enclosed cap area, . Up to a whole turn, this equals 2π times the sine of the latitude: the angle a Foucault pendulum’s swing plane turns in one sidereal day.
Exercise 3.1: holonomy at colatitude 60°
: the vector comes back pointing the opposite way.
- 1. Critical points of xᵀAx on the unit sphere are…
- 2. Holonomy around a geodesic triangle on the unit sphere equals…
- 3. The projection onto the tangent space of the sphere at x is…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Optimizing, averaging and interpolating on the sphere
- Eigenvector by optimization: Riemannian gradient ascent of xᵀAx on the unit sphere in R⁵⁰ reaches the top eigenvalue (8.9868) in 760 steps. Every iterate stays on the sphere to 1e−12; no penalty or renormalization is needed.
- Averaging directions: 40 widely spread unit direction measurements, as from a star tracker. The Karcher mean and the normalized Euclidean mean differ by 6.8°. The Karcher mean has the lower sum of squared geodesic distances (48.15 vs 48.70 rad²), as it must, because it is the minimizer.
- Interpolating: over a 160° turn, slerp moves at exactly constant angular speed. Normalized linear interpolation varies its speed by a factor of 32.8. That is why attitude controllers and animation systems slerp quaternions (a12-3).
Riemannian geometry in AI, robotics and aerospace
- Optimization on manifolds: orthogonality constraints (Stiefel manifolds), low-rank matrices, PCA and eigenproblems, and SPD covariance matrices (Absil et al., 2008; Boumal, 2023). Libraries: Manopt and Geoopt.
- Geometric deep learning: hyperbolic embeddings for hierarchies (Nickel and Kiela, 2017); diffusion models on manifolds.
- Robotics and aerospace: attitude estimation and control on SO(3); geodesic motion planning; averaging rotations and directions.
- Statistics: Fréchet means, principal geodesic analysis, and the information-geometric metric on distributions (a12-5).
References
- J. Lee (2018). Introduction to Riemannian Manifolds, 2nd ed. Springer.
- M. do Carmo (1992). Riemannian Geometry. Birkhäuser.
- P.-A. Absil, R. Mahony, R. Sepulchre (2008). Optimization Algorithms on Matrix Manifolds. Princeton.
- N. Boumal (2023). An Introduction to Optimization on Smooth Manifolds. Cambridge.
- H. Karcher (1977). “Riemannian center of mass and mollifier smoothing.” Comm. Pure Appl. Math., 30.
- K. Shoemake (1985). “Animating rotation with quaternion curves.” SIGGRAPH.
- M. Nickel, D. Kiela (2017). “Poincaré embeddings for learning hierarchical representations.” NeurIPS.