skoro v0.0.0

Smooth manifolds, smooth maps, and retractions

Smooth manifolds, tangent vectors and the tangent bundle as Lee defines them; a basis of each tangent space, which makes every differential a matrix; and a retraction, which moves a point along a tangent vector, makes each tangent space a chart, and gives the notation ⊕\oplus, ⊖\ominus and D\D that every later note uses.

Updated 2026-11-25 · 10 min read

Estimation moves points. On Rd\R^\dimension a step is an addition, x+v\point + \tangent. On a curved manifold, such as the rotations or the unit sphere, there is no addition, and a retraction takes its place. A retraction is defined by its derivative, so this note first recalls what a derivative on a manifold is. It then fixes the coordinates in which tangent vectors are written, defines a retraction, shows how it turns every tangent space into a chart, and ends with the notation that the later notes use. After this note, a tangent vector is a column of numbers and a derivative is a matrix.

Smooth manifolds and smooth maps#

The theory of smooth manifolds is set out in [Lee13, Chapters 1 and 2]. This note recalls only what it uses, and proves none of it.

A smooth manifold X\manifold of dimension d\dimension is a topological manifold with a smooth structure: a maximal atlas of charts (U,φ)(U, \varphi), each a homeomorphism from an open U⊆XU \subseteq \manifold onto an open subset of Rd\R^\dimension, whose transition maps are smooth. Let Y\otherManifold be a second smooth manifold, and write dx\dimx and dy\dimy for the dimensions of X\manifold and Y\otherManifold. A map F:X→Y\map : \manifold \to \otherManifold is of class CkC^k when it is continuous and, for every chart (U,φ)(U, \varphi) of X\manifold and every chart (V,ψ)(V, \psi) of Y\otherManifold, its coordinate representation

ψ∘F∘φ−1:φ(U∩F−1(V))→Ryd \psi \circ \map \circ \varphi^{-1} : \varphi\bigl(U \cap \map^{-1}(V)\bigr) \to \R^\dimy

is of class CkC^k. Continuity makes U∩F−1(V)U \cap \map^{-1}(V) open, so the representation is a map between open subsets of Euclidean spaces. Because the transition maps are smooth, it is enough to check this for the charts of any one atlas. These maps form Ck(X,Y)C^k(\manifold, \otherManifold), and a smooth map is one of class C∞C^\infty. A diffeomorphism is a smooth bijection whose inverse is smooth, and a map from an open subset of X\manifold onto an open subset of Rd\R^\dimension is a chart of the smooth structure exactly when it is a diffeomorphism.

Tangent vectors and the tangent bundle#

Tangent vectors are set out in [Lee13, Chapter 3]. This note uses four facts from it.

  1. Each point x\point has a tangent space TxX\T_\point\manifold, a real vector space of dimension d\dimension. A smooth map F\map has at each point a differential dFx:TxX→TF(x)Y\dd\map_\point : \T_\point\manifold \to \T_{\map(\point)}\otherManifold, a linear map, and the differentials obey the chain rule, d(G∘F)x=dGF(x)∘dFx\dd(G \circ \map)_\point = \dd G_{\map(\point)} \circ \dd\map_\point.
  2. A chart (U,φ)(U, \varphi) around x\point gives a basis of TxX\T_\point\manifold, its coordinate basis. In the coordinate bases of charts around x\point and F(x)\map(\point), the matrix of dFx\dd\map_\point is the Jacobian of the coordinate representation at φ(x)\varphi(\point).
  3. A finite-dimensional vector space EE has each tangent space TeE\T_e E identified with EE itself, canonically. On Rn\R^n this makes the differential of a map the Jacobian.
  4. The tangent bundle TX\T\manifold, the disjoint union of the tangent spaces, is a smooth manifold of dimension 2d2\dimension. Its charts are built from those of X\manifold: a point read in a chart, paired with the components of a tangent vector in that chart’s coordinate basis. It contains the zero section, the zero vectors 0x∈TxX0_\point \in \T_\point\manifold.

Tangent coordinates#

A computation does not handle derivations. It writes a tangent vector as a column of d\dimension numbers, so every tangent space needs a basis. Fix, for each point x\point, a linear isomorphism

ιx:Rd→TxX,(1) \basis_\point : \R^\dimension \to \T_\point\manifold , \tag{1}
(1)

whose columns ιxe1,…,ιxed\basis_\point e_1, \dots, \basis_\point e_\dimension are a basis of the tangent space at x\point. The coordinate basis of a chart around x\point is one choice, and every choice is the coordinate basis of some chart. On Rn\R^n, and on any vector space, the convention is the canonical identification of fact 3.

No regularity in x\point is asked of the convention, and it need not be defined everywhere. It may be given on an open subset of X\manifold only, and everything below is then said of points of that subset, with every computation kept inside it. The unit sphere S2⊂R3S^2 \subset \R^3 is an example: by the hairy ball theorem it has no continuous basis of its tangent planes, so a convention that is smooth must leave out a point, such as the south pole. On a Lie group, the left translations of one basis at the identity give a convention that is defined and smooth everywhere.

In these coordinates the differential of a smooth map is a matrix, the derivative

DF(x)≔ιF(x)−1∘dFx∘ιx∈Rdy×dx.(2) \D\map(\point) \defeq \basis_{\map(\point)}^{-1} \circ \dd\map_\point \circ \basis_\point \in \R^{\dimy \times \dimx} . \tag{2}
(2)

On Rn\R^n it is the Jacobian. The chain rule of fact 1 becomes a product of matrices, since the bases at F(x)\map(\point) cancel.

Proposition 3(The chain rule in tangent coordinates).

For smooth F:X→Y\map : \manifold \to \otherManifold and G:Y→ZG : \otherManifold \to \bbZ, D(G∘F)(x)=DG(F(x)) DF(x)\D(G \circ \map)(\point) = \D G(\map(\point))\,\D \map(\point).

A convention without regularity serves everything that happens at one point: the derivative, the chain rule and, below, the tangent chart at x\point. It does not serve what compares the coordinates at nearby points, such as differentiating a function of x\point that is read in the coordinates at x\point. The convention is smooth near x\point when, on an open W∋xW \ni \point, the map (y,v)↦ιyv(\otherPoint, \tangent) \mapsto \basis_\otherPoint \tangent is smooth from W×RdW \times \R^\dimension to TX\T\manifold. Equivalently, its columns form a smooth local frame on WW [Lee13, Chapter 8]. Results that compare nearby points assume this, and Proposition 7 restates it in terms of the retraction.

Retractions#

A retraction is defined on the tangent bundle, without reference to any basis, as it is in optimization on manifolds [Absi08, Section 4.1].

Definition 4(Retraction).

A retraction on a smooth manifold X\manifold is a smooth map retract⁡:TX→X\retr : \T\manifold \to \manifold such that, for every x∈X\point \in \manifold, its restriction retract⁡x\retr_\point to TxX\T_\point\manifold satisfies

  1. retract⁡x(0x)=x\retr_\point(0_\point) = \point, and
  2. d(retract⁡x)0x=idTxX\dd(\retr_\point)_{0_\point} = \mathrm{id}_{\T_\point\manifold}, where T0x(TxX)\T_{0_\point}(\T_\point\manifold) is identified with TxX\T_\point\manifold canonically.

The retraction at x\point is the restriction retract⁡x\retr_\point of retract⁡\retr to TxX\T_\point\manifold. Its condition on the differential is coordinate-free, so it holds whatever the convention. Read in the coordinates (1), the retraction at x\point is a map from Rd\R^\dimension, written as an addition:

Rx≔retract⁡x∘ιx:Rd→X,x⊕v≔Rx(v).(5) R_\point \defeq \retr_\point \circ \basis_\point : \R^\dimension \to \manifold , \qquad \point \oplus \tangent \defeq R_\point(\tangent) . \tag{5}
(5)

The two conditions of the definition become, for every convention,

x⊕0=xandDRx(0)=ιx−1∘d(retract⁡x)0x∘ιx=Id,(6) \point \oplus 0 = \point \qquad \text{and} \qquad \D R_\point(0) = \basis_\point^{-1} \circ \dd(\retr_\point)_{0_\point} \circ \basis_\point = I_\dimension , \tag{6}
(6)

where Rd\R^\dimension carries its canonical convention. The derivative of a retraction at the origin is the identity, in the sense of (2).

Proposition 7(A smooth convention is a smooth retraction).

Let W⊆XW \subseteq \manifold be open. The convention is smooth on WW if and only if (x,v)↦x⊕v(\point, \tangent) \mapsto \point \oplus \tangent is smooth on W×RdW \times \R^\dimension.

Proof.

If the convention is smooth on WW, then (x,v)↦x⊕v(\point, \tangent) \mapsto \point \oplus \tangent is the composite of the smooth map (x,v)↦ιxv(\point, \tangent) \mapsto \basis_\point \tangent with retract⁡\retr. If instead ⊕\oplus is smooth on W×RdW \times \R^\dimension, then by (6) ιxv=d(retract⁡x)0x(ιxv)\basis_\point \tangent = \dd(\retr_\point)_{0_\point}(\basis_\point \tangent) is the velocity at t=0t = 0 of the curve t↦x⊕tvt \mapsto \point \oplus t\tangent. That velocity is the differential of ⊕\oplus at (x,0)(\point, 0) applied to (0,v)(0, \tangent), and so depends smoothly on (x,v)(\point, \tangent).

∎

The definition is the one used in optimization on manifolds, where retractions replace the exponential map of a Riemannian manifold. The exponential map is a retraction, but so is any map that agrees with it to first order, which is usually cheaper. Nothing here needs a metric.

Two examples show the retraction and the convention apart.

  1. On Rd\R^\dimension, with the canonical convention, the retraction is retract⁡x(w)=x+w\retr_\point(w) = \point + w, so x⊕v=x+v\point \oplus \tangent = \point + \tangent. This is the addition that retractions replace on curved manifolds.
  2. On the positive reals R>0=(0,∞)\positive = (0, \infty), each TxR>0\T_\point\positive is R\R canonically, and retract⁡x(w)=x ew/x\retr_\point(w) = \point\, e^{w / \point} is a retraction: it is defined for every ww, never leaves the positive reals, and has derivative 11 at w=0w = 0. With the convention ιx(v)=x v\basis_\point(\tangent) = \point\, \tangent, which measures a tangent vector as a relative change, x⊕v=x ev\point \oplus \tangent = \point\, e^{\tangent}.

Tangent charts#

By (6), the differential of RxR_\point at 00 is ιx\basis_\point, an isomorphism. The inverse function theorem for manifolds [Lee13, Chapter 4] makes RxR_\point a diffeomorphism from an open neighbourhood of 0∈Rd0 \in \R^\dimension onto an open neighbourhood of x\point. Its inverse is a chart of X\manifold centred at x\point, the tangent chart at x\point, and every point near x\point has coordinates in it. We write

y⊖x≔Rx−1(y)(8) \otherPoint \ominus \point \defeq R_\point^{-1}(\otherPoint) \tag{8}
(8)

for y\otherPoint in the neighbourhood where RxR_\point is invertible. In words, y⊖x\otherPoint \ominus \point is where y\otherPoint sits in the chart at x\point. By construction,

(x⊕v)⊖x=v(9) (\point \oplus \tangent) \ominus \point = \tangent \tag{9}
(9)

for every v\tangent in the chart’s domain, and x⊕(y⊖x)=y\point \oplus (\otherPoint \ominus \point) = \otherPoint for every y\otherPoint in its image. On Rd\R^\dimension, ⊕\oplus and ⊖\ominus are addition and subtraction; on the positive reals above, y⊖x=log⁡(y/x)\otherPoint \ominus \point = \log(\otherPoint / \point).

The coordinate basis of the tangent chart at its centre is ιx\basis_\point, again by (6). So the tangent chart reproduces the convention at x\point, though at other points its coordinate basis need not be the convention’s.

Derivatives through the retraction#

Since DRx(0)=Id\D R_\point(0) = I_\dimension, its inverse has D(⋅⊖x)(x)=Id\D(\cdot \ominus \point)(\point) = I_\dimension too, and the chain rule turns the derivative (2) into an ordinary Jacobian. This is how every later note computes a derivative.

Proposition 10(Derivatives through the retraction).

For smooth F:X→Y\map : \manifold \to \otherManifold and y=F(x)\otherPoint = \map(\point), DF(x)\D\map(\point) is the Jacobian at 00 of (⋅⊖y)∘F∘(x⊕⋅)(\cdot \ominus \otherPoint) \circ \map \circ (\point \oplus \cdot), a map between neighbourhoods of 00 in Euclidean spaces.

Proof.

Near 00, (⋅⊖y)∘F∘(x⊕⋅)(\cdot \ominus \otherPoint) \circ \map \circ (\point \oplus \cdot) is a composite of three smooth maps, and Proposition 3 gives its derivative at 00 as D(⋅⊖y)(y) DF(x) DRx(0)=DF(x)\D(\cdot \ominus \otherPoint)(\otherPoint)\, \D\map(\point)\, \D R_\point(0) = \D\map(\point). Its domain and codomain are open subsets of Euclidean spaces with their canonical conventions, so this derivative is the Jacobian.

∎

The local representative of F\map at x\point is F^x=(⋅⊖y)∘F∘(x⊕⋅)\hat\map_\point = (\cdot \ominus \otherPoint) \circ \map \circ (\point \oplus \cdot), and Proposition 10 says that DF(x)\D\map(\point) is its Jacobian at 00. Applied to a direction, it is a derivative along a curve,

DF(x) v=ddt∣t=0(F(x⊕tv)⊖y),(11) \D\map(\point)\, \tangent = \frac{\dd}{\dd t}\Big|_{t=0} \bigl(\map(\point \oplus t\tangent) \ominus \otherPoint\bigr) , \tag{11}
(11)

which is also how it is checked by finite differences. To derive one by hand:

  1. perturb the input, xt=x⊕tv\point_t = \point \oplus t \tangent;
  2. push it through, yt=F(xt)\otherPoint_t = \map(\point_t);
  3. solve yt=y⊕v(t)\otherPoint_t = \otherPoint \oplus \otherTangent(t) for v(t)\otherTangent(t);
  4. the Jacobian–vector product is v′(0)\otherTangent'(0), and the vector–Jacobian product is its transpose.

The mirror identity#

On Rd\R^\dimension, x⊖(x⊕v)=−v\point \ominus (\point \oplus \tangent) = -\tangent as well: the step back from x⊕v\point \oplus \tangent to x\point is the reverse of the step forward. On a curved manifold it generally is not, because the left side is measured in the chart at the moved point x⊕v\point \oplus \tangent, not at x\point. So it also compares the coordinates at two points, and holds even to first order only when the convention is smooth.

Lemma 12(The mirror identity holds to first order).

If ⊕\oplus is smooth near x\point, then for v\tangent small enough, x⊖(x⊕v)=−v+O(∣v∣2)\point \ominus (\point \oplus \tangent) = -\tangent + O(\lvert\tangent\rvert^2).

Proof.

Write φ(v,c)=Rx−1(Rx⊕v(c))\varphi(\tangent, c) = R_\point^{-1}(R_{\point \oplus \tangent}(c)), the chart at x⊕v\point \oplus \tangent read in the chart at x\point. It is smooth near (0,0)(0, 0), because ⊕\oplus is smooth near x\point, with φ(v,0)=v\varphi(\tangent, 0) = \tangent and, since Rx⊕0=RxR_{\point \oplus 0} = R_\point, φ(0,c)=c\varphi(0, c) = c. Hence φ(v,c)=v+c+O(∣v∣ ∣c∣)\varphi(\tangent, c) = \tangent + c + O(\lvert\tangent\rvert\,\lvert c\rvert). The coordinate c=x⊖(x⊕v)c = \point \ominus (\point \oplus \tangent) is the one with φ(v,c)=Rx−1(x)=0\varphi(\tangent, c) = R_\point^{-1}(\point) = 0, so c=−v+O(∣v∣ ∣c∣)c = -\tangent + O(\lvert\tangent\rvert\,\lvert c\rvert), and ∣c∣=O(∣v∣)\lvert c \rvert = O(\lvert\tangent\rvert) gives the claim.

∎

The identity holds exactly in some cases: on Rd\R^\dimension, on the positive reals above, and on any Lie group whose retraction is Rx(v)=xExp⁡(v)R_\point(\tangent) = \point \operatorname{Exp}(\tangent), since then x⊖(x⊕v)=Log⁡(Exp⁡(v)−1)=−v\point \ominus (\point \oplus \tangent) = \operatorname{Log}(\operatorname{Exp}(\tangent)^{-1}) = -\tangent. It fails at second order for other retractions, and a computation that needs “the point whose coordinate is −v-\tangent” must not assume it.

A manifold whose retraction is x+v\point + \tangent, so that both identities hold exactly and every chart is the same affine chart, is called flat in these notes.

Notation from here on#

The later notes never write retract⁡\retr, dFx\dd\map_\point or ιx\basis_\point. They write a tangent vector as a column of numbers attached to a point, and keep the name TxX\T_\point\manifold for the space of those columns, so that it stays visible which point a vector belongs to. Inside this note TxX\T_\point\manifold is the space of fact 1; after it, it is its coordinate space Rd\R^\dimension. Every such abuse of notation stands for an object of this note read through the convention (1), and this table lists them all.

written later asstands forfirst used in
TxX=Rd\T_\point\manifold = \R^\dimension, the tangent space at x\pointTxX\T_\point\manifold, read through ιx\basis_\pointevery later note
v∈TxX\tangent \in \T_\point\manifold, a column of d\dimension numbersthe tangent vector ιxv\basis_\point \tangentevery later note
a frame, a d×n\dimension \times n matrix of tangent vectors at x\pointnn tangent vectors, each read through ιx\basis_\pointautomatic differentiation; gradients and Hessians
a cotangent α∈Rd\alpha \in \R^\dimension, a column acting by α⊤v\alpha\transpose \tangentthe covector α⊤ιx−1\alpha\transpose \basis_\point^{-1} on TxX\T_\point\manifoldgradients and Hessians
DF(x)∈Rdy×dx\D\map(\point) \in \R^{\dimy \times \dimx}the differential dFx\dd\map_\point, by (2)this note, and every later one
DF(x)⊤\D\map(\point)\transpose, applied to a cotangentthe pull-back of a covector by dFx\dd\map_\pointgradients and Hessians
the gradient g(x)=Df(x)⊤1g(\point) = \D f(\point)\transpose 1the differential dfx\dd f_\point, not a Riemannian gradientgradients and Hessians
x⊕v\point \oplus \tangent, y⊖x\otherPoint \ominus \point, RxR_\point, Rx−1R_\point^{-1}retract⁡(ιxv)\retr(\basis_\point \tangent) and its local inversethis note, and every later one
pairs (x,v)(\point, \tangent) with v∈Rd\tangent \in \R^\dimensionthe tangent bundle TX\T\manifold over the convention’s domainthis note
”⊕\oplus is smooth near x\point”the convention is a smooth local frame near x\pointthis note; gradients and Hessians; densities in tangent charts
TxX=Tx1X1⊕⋯⊕TxkXk\T_\point\manifold = \T_{\point_1}\manifold_1 \oplus \cdots \oplus \T_{\point_k}\manifold_k, stacked columnsthe direct sum, with the convention that is each factor’s on its blockproduct manifolds
Lebesgue measure on TxX\T_\point\manifold, and densities with respect to itLebesgue measure on Rd\R^\dimension, carried to TxX\T_\point\manifold by ιx\basis_\pointdensities in tangent charts; the normal

The last row is where the convention matters most. A density on a tangent space changes by the absolute determinant of a change of basis, so a density “on TxX\T_\point\manifold” is always one in the coordinates the convention gives.

References

  1. [Absi08] P.-A. Absil, R. Mahony and R. Sepulchre. Optimization Algorithms on Matrix Manifolds. Princeton University Press, 2008.
  2. [Lee13] John M. Lee. Introduction to Smooth Manifolds. Second edition. Springer, 2013.

Built on by