# Musical isomorphism

In mathematics—more specifically, in differential geometry—the musical isomorphism (or canonical isomorphism) is an isomorphism between the tangent bundle $\mathrm {T} M$ and the cotangent bundle $\mathrm {T} ^{*}M$ of a Riemannian or pseudo-Riemannian manifold induced by its metric tensor. There are similar isomorphisms on symplectic manifolds. The term musical refers to the use of the musical notation symbols $\flat$ (flat) and $\sharp$ (sharp).
In the notation of Ricci calculus, the idea is expressed as the raising and lowering of indices.
In certain specialized applications, such as on Poisson manifolds, the relationship may fail to be an isomorphism at singular points, and so, for these cases, is technically only a homomorphism.

## Motivation

In linear algebra, a finite-dimensional vector space is isomorphic to its dual space, but not canonically isomorphic to it. On the other hand, a finite-dimensional vector space $V$ endowed with a non-degenerate bilinear form $\langle \cdot ,\cdot \rangle$, is canonically isomorphic to its dual. The canonical isomorphism $V\to V^{*}$ is given by
    $v\mapsto \langle v,\cdot \rangle$.
The non-degeneracy of $\langle \cdot ,\cdot \rangle$ means exactly that the above map is an isomorphism.
An example is where $V=\mathbb {R} ^{n}$, and $\langle \cdot ,\cdot \rangle$ is the dot product.
The musical isomorphisms are the global version of this isomorphism and its inverse for the tangent bundle and cotangent bundle of a (pseudo-)Riemannian manifold $(M,g)$. They are canonical isomorphisms of vector bundles which are at any point p the above isomorphism applied to the tangent space of M at p endowed with the inner product $g_{p}$.
Because every paracompact manifold can be (non-canonically) endowed with a Riemannian metric, the musical isomorphisms show that a vector bundle on a paracompact manifold is (non-canonically) isomorphic to its dual.

## Discussion

Let (M, g) be a (pseudo-)Riemannian manifold. At each point p, the map g$_p$ is a non-degenerate bilinear form on the tangent space T$_p$M. If v is a vector in T$_p$M, its flat is the covector
    $v^{\flat }=g_{p}(v,\cdot )$
in T$^∗$ $_p$M. Since this is a smooth map that preserves the point p, it defines a morphism of smooth vector bundles $\flat :\mathrm {T} M\to \mathrm {T} ^{*}M$. By non-degeneracy of the metric, $\flat$ has an inverse $\sharp$ at each point, characterized by
    $g_{p}(\alpha ^{\sharp },v)=\alpha (v)$
for α in T$^∗$ $_p$M and v in T$_p$M. The vector $\alpha ^{\sharp }$ is called the sharp of α. The sharp map is a smooth bundle map $\sharp :\mathrm {T} ^{*}M\to \mathrm {T} M$.
Flat and sharp are mutually inverse isomorphisms of smooth vector bundles, hence, for each p in M, there are mutually inverse vector space isomorphisms between T$_p$M and T$^∗$ $_p$M.
The flat and sharp maps can be applied to vector fields and covector fields by applying them to each point. Hence, if X is a vector field and ω is a covector field,
    $X^{\flat }=g(X,\cdot )$
and
    $g(\omega ^{\sharp },X)=\omega (X)$.

### In a moving frame

Suppose {e$_i$} is a moving tangent frame (see also smooth frame) for the tangent bundle TM with, as dual frame (see also dual basis), the moving coframe (a moving tangent frame for the cotangent bundle $\mathrm {T} ^{*}M$; see also coframe) {e$^i$}. Then the pseudo-Riemannian metric, which is a symmetric and nondegenerate 2-covariant tensor field can be written locally in terms of this coframe as g = g$_{ij}$e$^i$ ⊗ e$^j$ using Einstein summation notation.
Given a vector field X = X$^i$e$_i$ and denoting g$_{ij}$ X$^i$ = X$_j$, its flat is
    $X^{\flat }=g_{ij}X^{i}\mathbf {e} ^{j}=X_{j}\mathbf {e} ^{j}$.
This is referred to as lowering an index.
In the same way, given a covector field ω = ω$_i$ e$^i$ and denoting g$^{ij}$ ω$_i$ = ω$^j$, its sharp is
    $\omega ^{\sharp }=g^{ij}\omega _{i}\mathbf {e} _{j}=\omega ^{j}\mathbf {e} _{j}$,
where g$^{ij}$ are the components of the inverse metric tensor (given by the entries of the inverse matrix to g$_{ij}$). Taking the sharp of a covector field is referred to as raising an index.

### Extension to tensor products

The musical isomorphisms may also be extended to the bundles $\bigotimes ^{k}{\rm {T}}M,\qquad \bigotimes ^{k}{\rm {T}}^{*}M.$
Which index is to be raised or lowered must be indicated. For instance, consider the (0, 2)-tensor field X = X$_{ij}$e$^i$ ⊗ e$^j$. Raising the second index, we get the (1, 1)-tensor field $X^{\sharp }=g^{jk}X_{ij}\,{\rm {e}}^{i}\otimes {\rm {e}}_{k}.$

### Extension to k-vectors and k-forms

In the context of exterior algebra, an extension of the musical operators may be defined on ⋀V and its dual ⋀$^∗$ V, which with minor abuse of notation may be denoted the same, and are again mutual inverses: $\flat :{\bigwedge }V\to {\bigwedge }^{*}V,\qquad \sharp :{\bigwedge }^{*}V\to {\bigwedge }V,$ defined by $(X\wedge \ldots \wedge Z)^{\flat }=X^{\flat }\wedge \ldots \wedge Z^{\flat },\qquad (\alpha \wedge \ldots \wedge \gamma )^{\sharp }=\alpha ^{\sharp }\wedge \ldots \wedge \gamma ^{\sharp }.$
In this extension, in which ♭ maps p-vectors to p-covectors and ♯ maps p-covectors to p-vectors, all the indices of a totally antisymmetric tensor are simultaneously raised or lowered, and so no index need be indicated: $Y^{\sharp }=(Y_{i\dots k}\mathbf {e} ^{i}\otimes \dots \otimes \mathbf {e} ^{k})^{\sharp }=g^{ir}\dots g^{kt}\,Y_{i\dots k}\,\mathbf {e} _{r}\otimes \dots \otimes \mathbf {e} _{t}.$

### Vector bundles with bundle metrics

More generally, musical isomorphisms always exist between a vector bundle endowed with a bundle metric and its dual.

## Trace of a tensor through a metric tensor

Given a type (0, 2) tensor field X = X$_{ij}$e$^i$ ⊗ e$^j$, we define the trace of X through the metric tensor g by $\operatorname {tr} _{g}(X):=\operatorname {tr} (X^{\sharp })=\operatorname {tr} (g^{jk}X_{ij}\,{\bf {e}}^{i}\otimes {\bf {e}}_{k})=g^{ij}X_{ij}.$
Observe that the definition of trace is independent of the choice of index to raise, since the metric tensor is symmetric.