---
title: Densities in tangent charts
part: probability
order: 2
summary: A retraction's chart at a point carries the manifold's reference measure to a density on the tangent space, the chart's volume; with it, a random tangent vector pushed through the chart has a density on the manifold, given here for the charts of the rotations, the poses and the sphere.
depends_on: [retraction, product-manifold, quotient-manifold, rotations, rigid-motions, generative-models]
---

# Densities in tangent charts

A random point of a curved manifold is most easily made from a random tangent vector: draw $\varepsilon$ in $\R^\dimension$ and move a point $\mu$ by it, $\mu \oplus \varepsilon$.
A density of $\varepsilon$ is not, as it stands, a density of the point.
The chart at $\mu$ stretches some regions and compresses others, and the density of the point carries the factor by which it does, the chart's *volume*.
This note defines that factor, says what it does to a density pushed through a chart and to a point of a quotient, and works it out for the charts that the rotations, the rigid motions and the sphere are usually given.

## The volume of a chart

Let $\manifold$ be a manifold of dimension $\dimension$ with a [retraction](/math/retraction.md) $\point \oplus \tangent = R_\point(\tangent)$, and a *reference measure* $\nu$: a measure on $\manifold$ with a smooth positive density in every chart, against which densities on $\manifold$ are taken, as the densities of a [model built forward](/math/generative-models.md) are taken against the reference measure of each of its spaces.
On $\R^\dimension$ it is Lebesgue measure; on a Lie group, Haar measure; on a sphere, surface measure.

> **Definition (The volume of a chart).** Let $\manifold$ be a manifold of dimension $\dimension$ with a retraction and a reference measure $\nu$, let $\mu \in \manifold$, and let $U_\mu \subseteq \R^\dimension$ be an open set containing $0$ on which $R_\mu$ is a diffeomorphism onto an open set $V_\mu = R_\mu(U_\mu)$ of $\manifold$.
> The _volume_ of the chart at $\mu$ is the function $v_\mu : U_\mu \to \positive$ such that
>
> $$
> 	\nu\bigl(R_\mu(A)\bigr) = \int_A v_\mu(\tangent) \, \dd \tangent
> $$
>
> for every Borel set $A \subseteq U_\mu$, and its _log-volume_ is $\lambda_\mu = \log v_\mu$.
> The chart is _global_ if $U_\mu = \R^\dimension$, and _full_ if $\nu(\manifold \setminus V_\mu) = 0$.

On $V_\mu$, the point $\point \ominus \mu$ is $R_\mu^{-1}(\point)$, the inverse of the chart on its whole image, which may be larger than the neighbourhood in which the [retraction note](/math/retraction.md) first defines it.
In words, the image under the chart of the measure $v_\mu(\tangent)\, \dd \tangent$ on $U_\mu$ is $\nu$ restricted to $V_\mu$, and so, for every nonnegative measurable $g$ on $U_\mu$,

$$
	\int_{U_\mu} g(\tangent)\, v_\mu(\tangent) \, \dd \tangent = \int_{V_\mu} g(\point \ominus \mu) \, \dd \nu(\point), @tag(image)
$$

which follows from the definition for indicator functions, and for the rest by linearity and monotone limits.

Two examples.
On $\R^\dimension$ with Lebesgue measure, $R_\mu(\tangent) = \mu + \tangent$ is a translation, so $v_\mu = 1$, and the chart is global and full.
On the positive reals with Lebesgue measure, $R_\mu(\tangent) = \mu e^\tangent$ has derivative $\mu e^\tangent$, so $v_\mu(\tangent) = \mu e^\tangent$, the point itself: the chart is again global and full, but its volume is not $1$ at $\tangent = 0$.
A chart's volume depends on the reference measure as much as on the retraction, and on the positive reals with the measure $\dd \point / \point$ the same chart would have volume $1$.
On the positive orthant $\positive^n$, with $R_\mu(\tangent)$ acting coordinate by coordinate, the log-volume is $\sum_i (\log \mu_i + \tangent_i) = \sum_i \log (\mu \oplus \tangent)_i$: read at the coordinate of a point, it is $\sum_i \log \point_i$, whatever $\mu$ is.

Two consequences of [](eq:image) are used again and again.
With $g = 1$ it says that $\int_{U_\mu} v_\mu(\tangent)\, \dd \tangent = \nu(V_\mu)$, so the volume of a full chart integrates to the total mass $\nu(\manifold)$, the same at every $\mu$ and finite when $\manifold$ is compact.
And for a full chart it turns an integral over the manifold into one over the tangent space: with $g(\tangent) = h(\mu \oplus \tangent)$,

$$
	\int_\manifold h(\point)\, \dd \nu(\point) = \int_{U_\mu} h(\mu \oplus \tangent)\, e^{\lambda_\mu(\tangent)}\, \dd \tangent . @tag(chart-integral)
$$

An integral approximated in a chart is thus an integral of the integrand times the chart's volume, and an expansion of its logarithm about a point expands $\log h(\mu \oplus \tangent) + \lambda_\mu(\tangent)$, not $\log h(\mu \oplus \tangent)$ alone.

## A density pushed through a chart

> **Proposition (A density pushed through a chart).** With the chart of [%full](statement:chart-volume), let $\varepsilon$ be a random vector of $\R^\dimension$ with density $f$, and $\varepsilon \in U_\mu$ almost surely.
> Then $\randomPoint = \mu \oplus \varepsilon$ has, with respect to $\nu$, the density
>
> $$
> 	\density(\point) = \frac{f(\point \ominus \mu)}{v_\mu(\point \ominus \mu)}
> 	= \exp\bigl(\log f(\point \ominus \mu) - \lambda_\mu(\point \ominus \mu)\bigr)
> $$
>
> for $\point \in V_\mu$, and $\density(\point) = 0$ elsewhere.

<Proof>

Let $S \subseteq V_\mu$ be measurable and $A = R_\mu^{-1}(S) \subseteq U_\mu$.
Since $\varepsilon \in U_\mu$ almost surely, $\Pr(\randomPoint \in S) = \Pr(\varepsilon \in A) = \int_A f(\tangent)\, \dd \tangent$, which by [](eq:image), with $g = \mathbb 1_A f / v_\mu$, is $\int_S f(\point \ominus \mu) / v_\mu(\point \ominus \mu)\, \dd \nu(\point)$.
And $\Pr(\randomPoint \notin V_\mu) = \Pr(\varepsilon \notin U_\mu) = 0$.

</Proof>

So the log-density of the point is the log-density of its tangent coordinate, less the chart's log-volume there.
Where the chart compresses, $v_\mu < 1$, and the point's density is larger than its coordinate's, because the same probability sits on less of $\manifold$.

The condition $\varepsilon \in U_\mu$ is where the curvature of a space shows.
A global chart meets it for every $\varepsilon$.
A chart that is not global, such as the exponential chart of the rotations below, is a diffeomorphism only on a ball, while a normal $\varepsilon$ has mass outside any ball.
The retraction is still defined there, but it *wraps*: a vector outside $U_\mu$ reaches a point that a vector inside $U_\mu$ reaches too, and the law of $\mu \oplus \varepsilon$ has a density that sums $f / v$ over every vector reaching the point, an infinite sum on the rotations.
The single term of [%full](statement:pushforward) is then the density of part of that law, and the part it misses is no larger than the mass $f$ puts outside $U_\mu$.

> **Proposition (A density pushed through a local chart).** With the chart of [%full](statement:chart-volume), let $R_\mu$ be defined on all of $\R^\dimension$, let $\varepsilon$ have density $f$ on $\R^\dimension$, and let $p = \Pr(\varepsilon \notin U_\mu) < 1$.
> Let $P$ be the law of $\mu \oplus \varepsilon$, and $Q$ the law with density $\density / (1 - p)$ with respect to $\nu$, $\density$ as in [%full](statement:pushforward).
> Then $\density$ integrates to $1 - p$, $Q$ is the law of $\mu \oplus \varepsilon$ given $\varepsilon \in U_\mu$, and
>
> $$
> 	\sup_S \, \lvert P(S) - Q(S) \rvert \le p ,
> $$
>
> the supremum taken over the measurable sets $S$ of $\manifold$.

<Proof>

By [%full](statement:pushforward), applied to the sub-probability density $\mathbb 1_{U_\mu} f$, $\Pr(\mu \oplus \varepsilon \in S,\ \varepsilon \in U_\mu) = \int_S \density \, \dd \nu$ for every measurable $S$, so $\density$ integrates to $\Pr(\varepsilon \in U_\mu) = 1 - p$ and $Q$ is the conditional law.
If $p > 0$, let $P'$ be the law of $\mu \oplus \varepsilon$ given $\varepsilon \notin U_\mu$; then $P = (1 - p)\, Q + p\, P'$, so $P(S) - Q(S) = p\,\bigl(P'(S) - Q(S)\bigr)$, whose absolute value is at most $p$.
If $p = 0$, $P = Q$.

</Proof>

## The measure a retraction normalizes

A density is only meaningful against a measure that is fixed, and the measure a manifold carries most obviously is not always the right one.
A manifold stored as a submanifold $\manifold \subset \R^n$ has a measure at hand, the surface measure $\sigma$ that $\R^n$ induces, and its charts' volumes follow from the Jacobian of the retraction in storage.
That measure depends on the storage, though, and not only on the manifold: the rotations stored as $3 \times 3$ matrices and stored as unit quaternions have surface measures that differ by a constant factor, and for a type whose basis is not orthonormal, by a factor that varies from point to point.
The measure is better fixed by the retraction itself, as the one whose charts all have volume $1$ at their centre, and such a measure exists on every manifold with a retraction.

> **Proposition (The measure a retraction normalizes).** Let $\manifold$ be a manifold of dimension $\dimension$ with a retraction $\oplus$ smooth on an open $W \subseteq \manifold$.
> There is exactly one measure $\nu$ on $W$ with a continuous positive density in every chart such that every chart centred in $W$ has volume $v_\mu(0) = 1$ at its centre: the Riemannian volume measure of the metric
>
> $$
> 	g_\point(u, w) = u\transpose w , \qquad u, w \in \T_\point\manifold ,
> $$
>
> in which the tangent coordinates are orthonormal.
> It depends on the tangent coordinates alone: two retractions whose curves $t \mapsto \point \oplus t\tangent$ have the same velocities at $t = 0$ normalize the same measure, whatever their behaviour beyond first order and however the manifold is stored.

<Proof>

The metric $g$ is smooth because $\oplus$ is ([%full](statement:math/retraction/smoothness)), and positive definite.
In the chart at $\mu$, its volume measure has the density $\det G(\tangent)^{1/2}$ with respect to Lebesgue measure, where $G(\tangent) = \D R_\mu(\tangent)\transpose\, \D R_\mu(\tangent)$ is the metric read in the chart, with $\D R_\mu(\tangent)$ the derivative of the chart into the tangent coordinates at $\mu \oplus \tangent$.
At $\tangent = 0$, $\D R_\mu(0) = I$, so $G(0) = I$ and $v_\mu(0) = 1$.
Any other measure $\nu'$ with a continuous positive density in every chart has one with respect to $\nu$ too, $\dd \nu' = h \, \dd \nu$ with $h$ continuous, and its chart volumes are $v'_\mu = (h \circ R_\mu)\, v_\mu$, so $v'_\mu(0) = h(\mu)$.
They are all $1$ if and only if $h = 1$.
The metric is defined by the tangent coordinates alone, and so is its volume measure.

</Proof>

On $\R^\dimension$ it is Lebesgue measure.
On the positive reals, whose tangent coordinate measures relative change, a coordinate $u$ at $\point$ is the velocity $\point u$ of the line, so the metric is $u w / \point^2$ on velocities and the measure is $\dd \point / \point$, which is why the chart of the example above, with Lebesgue measure, does not have volume $1$ at its centre.
For an embedded manifold, the measure is computed from the storage.

> **Proposition (The normalized measure of an embedded manifold).** Let $\manifold \subset \R^n$ be a submanifold of dimension $\dimension$ with a retraction $\oplus$ smooth on an open $W \subseteq \manifold$, $B(\point) = \partial_\tangent R_\point(0) \in \R^{n \times \dimension}$ its tangent coordinates read in storage, and $\sigma$ the $\dimension$-dimensional surface measure induced by $\R^n$.
> The volume of the chart at $\mu$ with respect to $\sigma$ is
>
> $$
> 	v^\sigma_\mu(\tangent) = \sqrt{\det\bigl(\partial R_\mu(\tangent)\transpose\, \partial R_\mu(\tangent)\bigr)},
> $$
>
> with $\partial R_\mu(\tangent) \in \R^{n \times \dimension}$ the Jacobian of $R_\mu$ in storage.
> There is exactly one measure $\nu$ on $W$ with a continuous density with respect to $\sigma$ such that $v_\mu(0) = 1$ at every $\mu \in W$, namely
>
> $$
> 	\dd \nu(\point) = \det\bigl(B(\point)\transpose B(\point)\bigr)^{-1/2} \, \dd \sigma(\point),
> $$
>
> and its chart volumes, where $\mu \oplus \tangent \in W$, are
>
> $$
> 	v_\mu(\tangent) = \frac{v^\sigma_\mu(\tangent)}{v^\sigma_{\mu \oplus \tangent}(0)},
> 	\qquad v^\sigma_\point(0) = \det\bigl(B(\point)\transpose B(\point)\bigr)^{1/2},
> $$
>
> which is $v^\sigma_\mu(\tangent) / v^\sigma_\mu(0)$ when $\det(B\transpose B)$ is the same at every point.

<Proof>

The chart $R_\mu$ restricted to $U_\mu$ is a smooth embedding of an open set of $\R^\dimension$ into $\R^n$, with image in $\manifold$, and the surface measure of the image of a set $A$ under it is $\int_A \sqrt{\det(\partial R_\mu\transpose \partial R_\mu)}\, \dd \tangent$, the classical formula for the area of a parametrized surface.
That is $v^\sigma_\mu$.
A measure $\dd \nu = h \, \dd \sigma$ with $h$ continuous then has chart volumes $v_\mu(\tangent) = h(\mu \oplus \tangent)\, v^\sigma_\mu(\tangent)$, so $v_\mu(0) = 1$ at $\mu$ if and only if $h(\mu) = 1 / v^\sigma_\mu(0)$, and $\partial R_\mu(0) = B(\mu)$ gives $v^\sigma_\mu(0) = \det(B(\mu)\transpose B(\mu))^{1/2}$.
This fixes $h$ at every point, and substituting it gives the chart volumes $v_\mu(\tangent) = v^\sigma_\mu(\tangent) / v^\sigma_{\mu \oplus \tangent}(0)$.

</Proof>

The measure of [%full](statement:normalized) is that of [%full](statement:basis), read in storage.
When $\det(B\transpose B)$ is the same at every point, as it is for an orthonormal basis or a basis translated by a group, it is a constant multiple of $\sigma$.
For the rotations stored as matrices with the left-translated basis $B(\point) = (\point E_1, \point E_2, \point E_3)$, where $E_i$ is the skew matrix of the $i$th unit vector, each column has Frobenius norm $\sqrt 2$, so $v^\sigma_\mu(0) = 2\sqrt 2$; stored as unit quaternions, with the chart below, each column has norm $\tfrac12$, so $v^\sigma_\mu(0) = \tfrac18$.
The normalized measure is the same in both, as [%full](statement:basis) says it must be: the Haar measure that agrees with Lebesgue measure in the tangent coordinates at the identity.
For a sphere with an orthonormal basis of each tangent plane, it is surface measure itself.
Such a basis is smooth only off a point, as the [first note](/math/retraction.md#tangent-coordinates) allows, so the statements give a measure on the sphere without that point.
Giving the point measure zero extends it to the sphere, here as surface measure.
In general the metric of [%full](statement:basis) need not extend across the points where $\oplus$ is not smooth, and the measure is then defined only where it is.

## Charts of Lie groups

On a Lie group whose retraction translates a fixed chart of the identity, every chart is a translate of that one, and so is its volume.

> **Proposition (The volume of a chart on a Lie group).** Let $G$ be a Lie group of dimension $\dimension$ with a Haar measure $\nu$, invariant under left and right translations, and let $\varphi : \R^\dimension \to G$ be smooth, with $\varphi(0) = e$, a diffeomorphism of an open $U \ni 0$ onto an open subset of $G$.
> For the retraction $R_\mu(\tangent) = \mu\, \varphi(\tangent)$, and equally for $R_\mu(\tangent) = \varphi(\tangent)\, \mu$, the chart at every $\mu$ has the domain $U$ and the volume $v_\mu = v_e$, which does not depend on $\mu$.
> If $\varphi = \operatorname{Exp}$ and $\nu$ is normalized so that $v_e(0) = 1$, then
>
> $$
> 	v_e(\tangent) = \det J_r(\tangent) = \prod_{\alpha} \frac{1 - e^{-\alpha}}{\alpha},
> 	\qquad J_r(\tangent) = \sum_{k \ge 0} \frac{(-\operatorname{ad}_\tangent)^k}{(k + 1)!},
> $$
>
> the product taken over the eigenvalues $\alpha$ of $\operatorname{ad}_\tangent$, with multiplicity, and each factor read as $1$ where $\alpha = 0$.

<Proof>

For a measurable $A \subseteq U$, $\nu(\mu\, \varphi(A)) = \nu(\varphi(A))$ by the invariance of $\nu$ under left translation, and $\nu(\varphi(A)\, \mu) = \nu(\varphi(A))$ by its invariance under right translation, so both charts have the volume of the chart at $e$.
For the exponential, the derivative of $\operatorname{Exp}$ at $\tangent$ along $u$ is $\operatorname{Exp}(\tangent)\, (J_r(\tangent)\, u)^\wedge$, where $(\cdot)^\wedge$ maps $\R^\dimension$ to the Lie algebra in the basis of the tangent coordinates.
The normalized Haar measure is that of the left-invariant volume form taking the value $1$ on that basis at $e$, and its pull-back by $\operatorname{Exp}$ is therefore $\det J_r(\tangent)\, \dd \tangent$, positive on $U$ because $\operatorname{Exp}$ is a diffeomorphism there.
Since $J_r(\tangent) = g(\operatorname{ad}_\tangent)$ with $g(z) = (1 - e^{-z}) / z$, its eigenvalues are $g(\alpha)$, and its determinant their product.

</Proof>

Compact groups and the semidirect products of the rotations with a vector space are *unimodular*: their left Haar measure is invariant under right translation too.
The groups below are both, so a retraction that perturbs a point on the right, in its own frame, and one that perturbs it on the left, in a fixed frame of the world, have the same chart volume.

## Products of charts

A product of manifolds, with the product of their reference measures and the [product retraction](/math/product-manifold.md), has at every point the product of the factors' charts.

> **Proposition (The volume of a product chart).** For $i = 1, \dots, k$ let $\manifold_i$ be a manifold of dimension $\dimension_i$ with a retraction and a reference measure $\nu_i$, and let the chart at $\mu_i$ have domain $U_i$, image $V_i$ and volume $v_i$.
> Give $\manifold = \manifold_1 \times \cdots \times \manifold_k$ the product measure $\nu = \nu_1 \otimes \cdots \otimes \nu_k$ and the product retraction.
> The chart at $\mu = (\mu_1, \dots, \mu_k)$ has domain $U = U_1 \times \cdots \times U_k$, image $V = V_1 \times \cdots \times V_k$ and, at the stacked tangent $\tangent = (\tangent_1; \dots; \tangent_k)$,
>
> $$
> 	v_\mu(\tangent) = \prod_{i=1}^k v_i(\tangent_i), \qquad
> 	\lambda_\mu(\tangent) = \sum_{i=1}^k \lambda_i(\tangent_i) .
> $$
>
> It is global if and only if every factor's chart is, and full if and only if every factor's chart is.
> If every $\nu_i$ is the measure $\manifold_i$'s retraction normalizes, $\nu$ is the measure the product retraction normalizes.

<Proof>

The product retraction is $R_\mu(\tangent) = (R_{\mu_1}(\tangent_1), \dots, R_{\mu_k}(\tangent_k))$, a diffeomorphism of $U$ onto $V$ because each factor is one of $U_i$ onto $V_i$.
For a rectangle $A = A_1 \times \cdots \times A_k$ of Borel sets $A_i \subseteq U_i$, $\nu(R_\mu(A)) = \prod_i \nu_i(R_{\mu_i}(A_i)) = \prod_i \int_{A_i} v_i = \int_A \prod_i v_i(\tangent_i) \, \dd \tangent$, by Tonelli's theorem.
Both $A \mapsto \nu(R_\mu(A))$ and $A \mapsto \int_A \prod_i v_i$ are measures on the Borel sets of $U$, finite on the rectangles whose closures are compact in $U$, of which countably many cover $U$; they agree on the rectangles, which are closed under intersection and generate the Borel sets, so they agree everywhere.
The domain is all of $\R^\dimension$ if and only if every $U_i$ is all of $\R^{\dimension_i}$.
The complement of $V$ is the union of the sets in which the $i$th coordinate lies outside $V_i$, each of measure $\nu_i(\manifold_i \setminus V_i) \prod_{j \ne i} \nu_j(\manifold_j)$, so the chart is full if every factor's is; and if a factor's is not, the complement contains $(\manifold_i \setminus V_i) \times \prod_{j \ne i} V_j$, of positive measure since each open $V_j$ has.
Finally, the bases of the product retraction are block diagonal in the factors' bases, so the metric of [%full](statement:basis) is the product of the factors' metrics, whose volume measure is the product of theirs.

</Proof>

A Euclidean factor with Lebesgue measure adds nothing to the log-volume.
A pose stored as a rotation and a position in a fixed frame of the world, $SO(3) \times \R^3$, with the rotation retracted by any of the charts below and the position by addition, has the rotation's log-volume alone, which is what distinguishes it from $SE(3)$, whose exponential couples the two.

## Quotients

A manifold [divided by a finite group](/math/quotient-manifold.md) takes its measure, its densities and its charts' volumes from the manifold above it.

> **Proposition (Densities and charts on a quotient).** Let a finite group $G$ of $m$ elements act freely on $\manifold$ by diffeomorphisms that preserve the reference measure $\nu$, with quotient $N$ and quotient map $\varpi$, and give $N$ the measure $\nu_N = \tfrac1m\, \varpi_* \nu$.
>
> 1. If a random point $\randomPoint$ of $\manifold$ has the density $\density$ with respect to $\nu$, then $\varpi(\randomPoint)$ has, with respect to $\nu_N$, the density $[\point] \mapsto \sum_{g \in G} \density(g \point)$.
> 2. Let the retraction of $\manifold$ descend to $N$, and let its chart at $\mu$ be a diffeomorphism of $U$ onto a set $V$ on which $\varpi$ is injective.
>    Then the chart of $N$ at $[\mu]$ has, on $U$ and with respect to $\nu_N$, the volume $v_\mu$ of the chart of $\manifold$, the same at every representative.
>    If $\nu$ is the measure the retraction of $\manifold$ normalizes, $\nu_N$ is the measure the retraction of $N$ normalizes.

<Proof>

Let $B \subseteq \manifold$ be a measurable set that meets every orbit exactly once; one is made by covering $N$ with countably many open sets over each of which $\varpi$ has a local inverse, and taking the image of one local inverse over each, less the orbits already taken.
For a measurable $A \subseteq N$, write $B_A = B \cap \varpi^{-1}(A)$.
Then $\varpi^{-1}(A)$ is the disjoint union of the sets $g B_A$, so $\nu(\varpi^{-1}(A)) = m\, \nu(B_A)$ and $\nu_N(A) = \nu(B_A)$: the quotient map carries $\nu$ on $B$ to $\nu_N$.
And

$$
	\Pr\bigl(\varpi(\randomPoint) \in A\bigr) = \sum_{g \in G} \int_{g B_A} \density \, \dd \nu = \int_{B_A} \sum_{g \in G} \density(g \point) \, \dd \nu(\point) ,
$$

since each $g$ preserves $\nu$, which is the first claim.
For the second, the sets $g V$ are disjoint: if $\otherPoint = g \otherPoint'$ with both in $V$, then $\varpi(\otherPoint) = \varpi(\otherPoint')$, so $\otherPoint = \otherPoint'$ and $g$ is the identity, the action being free.
So for a Borel set $A' \subseteq U$,

$$
	\nu_N\bigl(\varpi(R_\mu(A'))\bigr) = \tfrac1m \sum_{g \in G} \nu\bigl(g\, R_\mu(A')\bigr) = \nu\bigl(R_\mu(A')\bigr) = \int_{A'} v_\mu(\tangent)\, \dd \tangent ,
$$

and $R_{g\mu}(A') = g R_\mu(A')$ gives the same at every representative.
If $\nu$ is normalized, $v_\mu(0) = 1$ at every $\mu$, so every chart of $N$ has volume $1$ at its centre, and $\nu_N$ is the one measure with that property ([%full](statement:basis)).

</Proof>

The measure a retraction normalizes is preserved by the group whenever the retraction commutes with it, since the action then has $\D g(\point) = I_\dimension$ at every point, and so preserves the metric of [%full](statement:basis).
So the hypotheses hold of the [rotations](/math/rotations.md) as the quotient of the unit quaternions by the sign, with $\nu_{SO(3)} = \tfrac12 \pi_* \nu$.

The two claims are the two ways of putting a law on the rotations.
A law on the unit quaternions with the density $\density$ is, as a law on the rotations, the law with the density $\density(q) + \density(-q)$: for a point drawn as $\mu \oplus \varepsilon$ in the stereographic chart, which is a chart of $S^3$, the second term is the density at the quaternion on the far side of $\mu$, reached exactly when $\lvert \varepsilon \rvert > 4$ ([%full](statement:math/rotations/antipode)).
It is negligible when $\varepsilon$ is concentrated and is not when $\varepsilon$ is broad.
A point drawn as $\mu \oplus \varepsilon$ in the Cayley chart, which descends to the rotations, has a density on the rotations with one term, [%full](statement:pushforward) with the Cayley chart's volume, at whichever quaternions the point and $\mu$ are given by.

## The usual charts

The charts of the [rotations](/math/rotations.md) and of the [rigid motions](/math/rigid-motions.md) are those of their notes, and this section gives their volumes.

Write $\theta = \lvert \phi \rvert$ for the angle of a rotation's tangent coordinate $\phi$ in the exponential chart, $\operatorname{sinc} u = \sin u / u$, and $[\phi]_\times$ for the skew matrix of $\phi$.
Each row is with respect to the normalized measure of [%full](statement:normalized): Haar measure on the groups, and surface measure on the sphere with an orthonormal basis $B(\point)$ of $\point^\perp$.

| space | chart $\mu \oplus \tangent$ | $\point \ominus \mu$ | $\lambda_\mu(\tangent)$ | global | full |
| --- | --- | --- | --- | --- | --- |
| $SO(3)$, exponential | $\mu \operatorname{Exp}(\phi)$ | $\operatorname{Log}(\mu\transpose \point)$ | $2 \log \operatorname{sinc}(\theta / 2)$ | no, $\theta < \pi$ | yes |
| $SE(3)$, exponential | $\mu \operatorname{Exp}(\phi, \rho)$ | $\operatorname{Log}(\mu^{-1} \point)$ | $4 \log \operatorname{sinc}(\theta / 2)$ | no, $\theta < \pi$ | yes |
| $SE_2(3)$, exponential | $\mu \operatorname{Exp}(\phi, w, \rho)$ | $\operatorname{Log}(\mu^{-1} \point)$ | $6 \log \operatorname{sinc}(\theta / 2)$ | no, $\theta < \pi$ | yes |
| $SO(3)$, Cayley | $\mu\, (I - \tfrac12 [\tangent]_\times)^{-1} (I + \tfrac12 [\tangent]_\times)$ | [](eq:cayley-inverse) | $-2 \log\bigl(1 + \tfrac14 \lvert \tangent \rvert^2\bigr)$ | yes | yes |
| $SO(3)$, polar | $\mu \operatorname{polar}(I + [\tangent]_\times)$ | $\frac{\operatorname{vee}(R - R\transpose)}{\operatorname{tr} R - 1}$, $R = \mu\transpose \point$ | [](eq:polar) | yes | no, angles $< \pi / 2$ |
| $S^3$, stereographic | $\mu \otimes \frac{(1 - s,\ \tangent / 2)}{1 + s}$, $s = \frac1{16} \lvert \tangent \rvert^2$ | $\frac{4 \operatorname{vec}(q)}{1 + w(q)}$, $q = \mu^{-1} \otimes \point$ | $-3 \log\bigl(1 + \tfrac1{16} \lvert \tangent \rvert^2\bigr)$ | yes | yes |
| $SE(3)$, translated | $(\mu_R \oplus \phi,\ \mu_p + \mu_R\, \rho)$ | $(R \ominus \mu_R,\ \mu_R^{-1} (p - \mu_p))$, $\point = (R, p)$ | the rotation chart's | as the rotation chart | as the rotation chart |
| $S^2$, stereographic | $\frac{(1 - s)\, \mu + B(\mu)\, \tangent}{1 + s}$, $s = \frac14 \lvert \tangent \rvert^2$ | $\frac{2 B(\mu)\transpose \point}{1 + \mu\transpose \point}$ | $-2 \log\bigl(1 + \tfrac14 \lvert \tangent \rvert^2\bigr)$ | yes | yes |
| $S^2$, normalization | $\frac{\mu + B(\mu)\, \tangent}{\lvert \mu + B(\mu)\, \tangent \rvert}$ | $\frac{B(\mu)\transpose \point}{\mu\transpose \point}$ | $-\tfrac32 \log\bigl(1 + \lvert \tangent \rvert^2\bigr)$ | yes | no, a hemisphere |

**The exponential charts.**
On $SO(3)$, $\operatorname{ad}_\phi = [\phi]_\times$ has the eigenvalues $0$ and $\pm i \theta$, so by [%full](statement:group)

$$
	v(\phi) = \frac{(1 - e^{-i\theta})(1 - e^{i\theta})}{\theta^2} = \frac{2 (1 - \cos \theta)}{\theta^2}
	= \operatorname{sinc}^2 \frac{\theta}{2},
	\qquad
	\lambda(\phi) = -\frac{\theta^2}{12} - \frac{\theta^4}{1440} + O(\theta^6) . @tag(so3-exp)
$$

$\operatorname{Exp}$ is a diffeomorphism of the open ball $\theta < \pi$ onto the rotations by an angle less than $\pi$, whose complement, the half-turns, has measure zero.
On $SE(3)$, with coordinates $(\phi, \rho)$ of rotation and translation, $\operatorname{ad}_{(\phi, \rho)}$ is block triangular with $[\phi]_\times$ twice on its diagonal, and on $SE_2(3)$, with a velocity $w$ besides, three times, so their volumes are the square and the cube of [](eq:so3-exp).
Their exponentials, $(\operatorname{Exp} \phi, V(\phi)\, \rho)$ and $(\operatorname{Exp} \phi, V(\phi)\, w, V(\phi)\, \rho)$ with $V(\phi)$ invertible for $\theta < 2\pi$, are diffeomorphisms of $\{\theta < \pi\}$ onto the motions whose rotation is by less than $\pi$.
In every one of them the chart wraps beyond $\theta = \pi$, and the volume depends on the rotation alone.

**The Cayley chart.**
The rotation $(I - \tfrac12 [\tangent]_\times)^{-1} (I + \tfrac12 [\tangent]_\times)$ is by the angle $\theta = 2 \arctan(\lvert \tangent \rvert / 2)$ about $\tangent$, and as a unit quaternion it is $(1, \tangent / 2) / \lvert (1, \tangent / 2) \rvert$: the chart is the familiar first-order quaternion update $\mu \otimes (1, \tangent / 2)$, normalized.
Its inverse needs no trigonometry,

$$
	\point \ominus \mu = \frac{2 \operatorname{vec}(q)}{w(q)}, \quad q = \mu^{-1} \otimes \point,
	\qquad\text{or}\qquad
	\point \ominus \mu = \frac{2 \operatorname{vee}(R - R\transpose)}{1 + \operatorname{tr} R}, \quad R = \mu\transpose \point, @tag(cayley-inverse)
$$

for a quaternion or a matrix, where $\operatorname{vec}(q)$ and $w(q)$ are the vector and scalar parts and $\operatorname{vee}$ inverts $[\cdot]_\times$; the first is the same for $q$ and $-q$.
The chart is a diffeomorphism of all of $\R^3$ onto the rotations by less than $\pi$.
In the exponential chart, in polar coordinates $(\theta, a)$ with $a$ a unit axis, the normalized Haar measure is $\operatorname{sinc}^2(\theta/2)\, \theta^2 \, \dd \theta \, \dd a = 4 \sin^2(\theta/2) \, \dd \theta \, \dd a$.
With $r = \lvert \tangent \rvert = 2 \tan(\theta / 2)$ along the same axis, $\dd \theta = \dd r / (1 + r^2/4)$ and $\sin^2(\theta/2) = (r^2/4) / (1 + r^2/4)$, so the measure is $r^2 \, \dd r \, \dd a / (1 + r^2/4)^2$, and Lebesgue measure in $\tangent$ is $r^2 \, \dd r \, \dd a$: $v(\tangent) = (1 + \lvert \tangent \rvert^2 / 4)^{-2}$.

**The polar chart.**
The polar factor of $I + [\tangent]_\times$, the rotation nearest it, which an SVD also gives, is the rotation by $\arctan \lvert \tangent \rvert$ about $\tangent$.
The same substitution as for the Cayley chart, with $\theta = \arctan r$, gives

$$
	v(\tangent) = \frac{2 \bigl(1 - (1 + r^2)^{-1/2}\bigr)}{r^2 (1 + r^2)}, \qquad r = \lvert \tangent \rvert . @tag(polar)
$$

The chart is global but reaches only the rotations by less than $\pi / 2$: a point $\mu \oplus \varepsilon$ is never further than a quarter turn from $\mu$, whatever $\varepsilon$ is.

**The quaternion stereographic chart.**
On the unit quaternions $S^3$, which cover the rotations twice, with Haar measure normalized at the identity by the same derivative, the quaternion $(1 - s, \tangent / 2) / (1 + s)$ is the rotation by the angle $\theta = 4 \arctan(\lvert \tangent \rvert / 4)$ about $\tangent$, so that $\lvert \tangent \rvert = \theta + \theta^3/48 + O(\theta^5)$: these are the modified Rodrigues parameters, scaled by $4$.
The chart is the inverse of the stereographic projection of $S^3$ from $-\mu$, at $\tangent / 4$, and reaches every quaternion but $-\mu$, so every rotation, $\theta$ running over $[0, 2\pi)$.
In the exponential chart, which on $S^3$ is a diffeomorphism of the ball $\theta < 2\pi$, the measure is $4 \sin^2(\theta/2)\, \dd \theta\, \dd a$ as on the rotations; with $r = 4 \tan(\theta/4)$, $\dd \theta = \dd r / (1 + r^2/16)$ and $\sin(\theta/2) = (r/2) / (1 + r^2/16)$, so the measure is $r^2 \, \dd r \, \dd a / (1 + r^2/16)^3$.
The normalized measure is $8$ times surface measure, since the chart's derivative at $0$, $\tangent \mapsto \mu \otimes (0, \tangent / 2)$, scales lengths by $\tfrac12$.

**The translated charts of the motions.**
A chart $\oplus$ of the rotations gives one of $SE(3)$, $(\mu_R, \mu_p) \oplus (\phi, \rho) = (\mu_R \oplus \phi, \mu_p + \mu_R\, \rho)$, which is the group product of $\mu$ with $(I \oplus \phi, \rho)$ when the rotation's chart is a left translation, and likewise on $SE_2(3)$ with a velocity besides.
Haar measure on the motions is the product of the rotations' with Lebesgue measure, and the chart's derivative is block triangular with $\mu_R$, of determinant $1$, in its translation block, so its log-volume is the rotation chart's, and it is global, or full, when the rotation's chart is.
It is not the group's exponential, $(\operatorname{Exp} \phi, V(\phi)\, \rho)$, though the two agree to first order.

**The stereographic chart.**
The chart is the inverse of the stereographic projection from $-\mu$, with coordinates halved so that its derivative at $0$ is $B(\mu)$.
The inverse stereographic projection $u \mapsto ((1 - \lvert u \rvert^2)\, \mu + 2 B(\mu)\, u) / (1 + \lvert u \rvert^2)$ is conformal, with scale factor $2 / (1 + \lvert u \rvert^2)$ and so area factor $4 / (1 + \lvert u \rvert^2)^2$, and $u = \tangent / 2$ multiplies it by $\tfrac14$.
The chart reaches every point but $-\mu$.

**The normalization chart.**
The point $\mu + B(\mu)\, \tangent$ of the tangent plane at $\mu$ lies at the distance $r = (1 + \lvert \tangent \rvert^2)^{1/2}$ from the centre, and the ray to it meets the plane's normal at an angle $\alpha$ with $\cos \alpha = 1/r$; a small area of the plane is projected along the ray onto the sphere with the factor $\cos \alpha / r^2 = r^{-3}$.
The chart, the gnomonic projection, reaches the open hemisphere around $\mu$ alone.

**Computing the log-volumes.**
The log-volume [](eq:so3-exp) has a [removable singularity](/math/removable-singularities.md) at $\theta = 0$, as $\operatorname{Exp}$ itself does, and is computed there from its series in $\theta^2$.
The Cayley and stereographic log-volumes are $-2 \log(1 + \lvert \tangent \rvert^2 / 4)$, the quaternion stereographic $-3 \log(1 + \lvert \tangent \rvert^2 / 16)$, and the normalization chart's is of the same kind, smooth everywhere as written.
