# Tensor density

In differential geometry, a tensor density or relative tensor is a generalization of the tensor field concept. A tensor density transforms as a tensor field when passing from one coordinate system to another (see tensor field), except that it is additionally multiplied or weighted by a power $W$ of the Jacobian determinant of the coordinate transition function or its absolute value. A tensor density with a single index is called a vector density. A distinction is made among (authentic) tensor densities, pseudotensor densities, even tensor densities and odd tensor densities. Sometimes tensor densities with a negative weight $W$ are called tensor capacity. A tensor density can also be regarded as a section of the tensor product of a tensor bundle with a density bundle.

## Motivation

In physics and related fields, it is often useful to work with the components of an algebraic object rather than the object itself. An example would be decomposing a vector into a sum of basis vectors weighted by some coefficients such as ${\vec {v}}=c_{1}{\vec {e}}_{1}+c_{2}{\vec {e}}_{2}+c_{3}{\vec {e}}_{3}$
where ${\vec {v}}$ is a vector in 3-dimensional Euclidean space, $c_{i}\in \mathbb {R} ^{1}{\text{ and }}{\vec {e}}_{i}$ are the usual standard basis vectors in Euclidean space. This is usually necessary for computational purposes, and can often be insightful when algebraic objects represent complex abstractions but their components have concrete interpretations. However, with this identification, one has to be careful to track changes of the underlying basis in which the quantity is expanded; it may in the course of a computation become expedient to change the basis while the vector ${\vec {v}}$ remains fixed in physical space. More generally, if an algebraic object represents a geometric object, but is expressed in terms of a particular basis, then it is necessary to, when the basis is changed, also change the representation. Physicists will often call this representation of a geometric object a tensor if it transforms under a sequence of linear maps given a linear change of basis (although confusingly others call the underlying geometric object which hasn't changed under the coordinate transformation a "tensor", a convention this article strictly avoids). In general there are representations which transform in arbitrary ways depending on how the geometric invariant is reconstructed from the representation. In certain special cases it is convenient to use representations which transform almost like tensors, but with an additional, nonlinear factor in the transformation. A prototypical example is a matrix representing the cross product (area of spanned parallelogram) on $\mathbb {R} ^{2}.$ The representation is given by in the standard basis by ${\vec {u}}\times {\vec {v}}={\begin{bmatrix}u_{1}&u_{2}\end{bmatrix}}{\begin{bmatrix}0&1\\-1&0\end{bmatrix}}{\begin{bmatrix}v_{1}\\v_{2}\end{bmatrix}}=u_{1}v_{2}-u_{2}v_{1}$
If we now try to express this same expression in a basis other than the standard basis, then the components of the vectors will change, say according to [u$_1$$^′$u$_2$$^′$]$^T$=A[u$_1$u$_2$]$^T${\textstyle {\begin{bmatrix}u'_{1}&u'_{2}\end{bmatrix}}^{\textsf {T}}=A{\begin{bmatrix}u_{1}&u_{2}\end{bmatrix}}^{\textsf {T}}} where $A$ is some 2 by 2 matrix of real numbers. Given that the area of the spanned parallelogram is a geometric invariant, it cannot have changed under the change of basis, and so the new representation of this matrix must be: $\left(A^{-1}\right)^{\textsf {T}}{\begin{bmatrix}0&1\\-1&0\end{bmatrix}}A^{-1}$ which, when expanded is just the original expression but multiplied by the determinant of $A^{-1},$ which is also 1/detA.{\textstyle {\frac {1}{\det A}}.} In fact this representation could be thought of as a two index tensor transformation, but instead, it is computationally easier to think of the tensor transformation rule as multiplication by 1/detA, {\textstyle {\frac {1}{\det A}}, } rather than as 2 matrix multiplications (In fact in higher dimensions, the natural extension of this is $n,n\times n$ matrix multiplications, which for large $n$ is completely infeasible). Objects which transform in this way are called tensor densities because they arise naturally when considering problems regarding areas and volumes, and so are frequently used in integration.

## Definition

Some authors classify tensor densities into the two types called (authentic) tensor densities and pseudotensor densities in this article. Other authors classify them differently, into the types called even tensor densities and odd tensor densities. When a tensor density weight is an integer there is an equivalence between these approaches that depends upon whether the integer is even or odd.
Note that these classifications elucidate the different ways that tensor densities may transform somewhat pathologically under orientation-reversing coordinate transformations. Regardless of their classifications into these types, there is only one way that tensor densities transform under orientation-preserving coordinate transformations.
In this article we have chosen the convention that assigns a weight of +2 to $g=\det \left(g_{\rho \sigma }\right)$, the determinant of the metric tensor expressed with covariant indices. With this choice, classical densities, like charge density, will be represented by tensor densities of weight +1. Some authors use a sign convention for weights that is the negation of that presented here.
In contrast to the meaning used in this article, in general relativity "pseudotensor" sometimes means an object that does not transform like a tensor or relative tensor of any weight.

### Tensor and pseudotensor densities

For example, a mixed rank-two (authentic) tensor density of weight $W$ transforms as:
    ${\mathfrak {T}}_{\beta }^{\alpha }=\left(\det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right)^{W}\,{\frac {\partial {x}^{\alpha }}{\partial {\bar {x}}^{\delta }}}\,{\frac {\partial {\bar {x}}^{\epsilon }}{\partial {x}^{\beta }}}\,{\bar {\mathfrak {T}}}_{\epsilon }^{\delta }\,,$ ((authentic) tensor density of (integer) weight $W$)
where ${\bar {\mathfrak {T}}}$ is the rank-two tensor density in the ${\bar {x}}$ coordinate system, ${\mathfrak {T}}$ is the transformed tensor density in the ${x}$ coordinate system; and we use the Jacobian determinant. Because the determinant can be negative, which it is for an orientation-reversing coordinate transformation, this formula is applicable only when $W$ is an integer. (However, see even and odd tensor densities below.)
We say that a tensor density is a pseudotensor density when there is an additional sign flip under an orientation-reversing coordinate transformation. A mixed rank-two pseudotensor density of weight $W$ transforms as
    ${\mathfrak {T}}_{\beta }^{\alpha }=\operatorname {sgn} \left(\det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right)\left(\det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right)^{W}\,{\frac {\partial {x}^{\alpha }}{\partial {\bar {x}}^{\delta }}}\,{\frac {\partial {\bar {x}}^{\epsilon }}{\partial {x}^{\beta }}}\,{\bar {\mathfrak {T}}}_{\epsilon }^{\delta }\,,$ (pseudotensor density of (integer) weight $W$)
where sgn($\cdot$) is a function that returns +1 when its argument is positive or −1 when its argument is negative.

### Even and odd tensor densities

The transformations for even and odd tensor densities have the benefit of being well defined even when $W$ is not an integer. Thus one can speak of, say, an odd tensor density of weight +2 or an even tensor density of weight −1/2.
When $W$ is an even integer the above formula for an (authentic) tensor density can be rewritten as
    ${\mathfrak {T}}_{\beta }^{\alpha }=\left\vert \det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right\vert ^{W}\,{\frac {\partial {x}^{\alpha }}{\partial {\bar {x}}^{\delta }}}\,{\frac {\partial {\bar {x}}^{\epsilon }}{\partial {x}^{\beta }}}\,{\bar {\mathfrak {T}}}_{\epsilon }^{\delta }\,.$ (even tensor density of weight $W$)
Similarly, when $W$ is an odd integer the formula for an (authentic) tensor density can be rewritten as
    ${\mathfrak {T}}_{\beta }^{\alpha }=\operatorname {sgn} \left(\det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right)\left\vert \det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right\vert ^{W}\,{\frac {\partial {x}^{\alpha }}{\partial {\bar {x}}^{\delta }}}\,{\frac {\partial {\bar {x}}^{\epsilon }}{\partial {x}^{\beta }}}\,{\bar {\mathfrak {T}}}_{\epsilon }^{\delta }\,.$ (odd tensor density of weight $W$)

### Weights of zero and one

A tensor density of any type that has weight zero is also called an absolute tensor. An (even) authentic tensor density of weight zero is also called an ordinary tensor.
If a weight is not specified but the word "relative" or "density" is used in a context where a specific weight is needed, it is usually assumed that the weight is +1.

### Algebraic properties

* A linear combination (also known as a weighted sum) of tensor densities of the same type and weight $W$ is again a tensor density of that type and weight.
* A product of two tensor densities of any types, and with weights $W_{1}$ and $W_{2}$, is a tensor density of weight $W_{1}+W_{2}.$
    A product of authentic tensor densities and pseudotensor densities will be an authentic tensor density when an even number of the factors are pseudotensor densities; it will be a pseudotensor density when an odd number of the factors are pseudotensor densities. Similarly, a product of even tensor densities and odd tensor densities will be an even tensor density when an even number of the factors are odd tensor densities; it will be an odd tensor density when an odd number of the factors are odd tensor densities.
* The contraction of indices on a tensor density with weight $W$ again yields a tensor density of weight $W.$
* Using (2) and (3) one sees that raising and lowering indices using the metric tensor (weight 0) leaves the weight unchanged.

### Matrix inversion and matrix determinant of tensor densities

If ${\mathfrak {T}}_{\alpha \beta }$ is a non-singular matrix and a rank-two tensor density of weight $W$ with covariant indices then its matrix inverse will be a rank-two tensor density of weight $-W$ with contravariant indices. Similar statements apply when the two indices are contravariant or are mixed covariant and contravariant.
If ${\mathfrak {T}}_{\alpha \beta }$ is a rank-two tensor density of weight $W$ with covariant indices then the matrix determinant $\det {\mathfrak {T}}_{\alpha \beta }$ will have weight $NW+2,$ where $N$ is the number of space-time dimensions. If ${\mathfrak {T}}^{\alpha \beta }$ is a rank-two tensor density of weight $W$ with contravariant indices then the matrix determinant $\det {\mathfrak {T}}^{\alpha \beta }$ will have weight $NW-2.$ The matrix determinant $\det {\mathfrak {T}}_{~\beta }^{\alpha }$ will have weight $NW.$

## General relativity

General relativity :
$G_{\mu \nu }+\Lambda g_{\mu \nu }={\kappa }T_{\mu \nu }$ :
Introduction
HistoryTimelineTests
Mathematical formulation :
Fundamental concepts
Equivalence principle
Special relativity
World line
Pseudo-Riemannian manifold :
Phenomena
Kepler problem
Gravitational lensing
Gravitational redshift
Gravitational time dilation
Gravitational waves
Frame-dragging
Geodetic effect
Event horizon
Singularity
Black hole
Spacetime
Spacetime diagrams
Minkowski spacetime
Einstein–Rosen bridge :
EquationsFormalisms
Equations
Linearized gravity
Einstein field equations
Friedmann
Geodesics
Mathisson–Papapetrou–Dixon
Hamilton–Jacobi–Einstein
Formalisms
ADM
BSSN
Post-Newtonian
Advanced theory
Kaluza–Klein theory
Quantum gravity :
Solutions
Schwarzschild (interior)
Reissner–Nordström
Einstein–Rosen waves
Wormhole
Gödel
Kerr
Kerr–Newman
Kerr–Newman–de Sitter
Kasner
Lemaître–Tolman
Taub–NUT
Milne
Robertson–Walker
Oppenheimer–Snyder
pp-wave
van Stockum dust
Weyl−Lewis−Papapetrou
Hartle–Thorne :
Scientists
Einstein
Lorentz
Hilbert
Poincaré
Schwarzschild
de Sitter
Reissner
Nordström
Weyl
Eddington
Friedmann
Milne
Zwicky
Lemaître
Oppenheimer
Gödel
Wheeler
Robertson
Bardeen
Walker
Kerr
Chandrasekhar
Ehlers
Penrose
Hawking
Raychaudhuri
Taylor
Hulse
van Stockum
Taub
Newman
Yau
Thorne
others :
Physics portal
 Category :
vte :

### Relation of Jacobian determinant and metric tensor

Any non-singular ordinary tensor $T_{\mu \nu }$ transforms as $T_{\mu \nu }={\frac {\partial {\bar {x}}^{\kappa }}{\partial {x}^{\mu }}}{\bar {T}}_{\kappa \lambda }{\frac {\partial {\bar {x}}^{\lambda }}{\partial {x}^{\nu }}}\,,$
where the right-hand side can be viewed as the product of three matrices. Taking the determinant of both sides of the equation (using that the determinant of a matrix product is the product of the determinants), dividing both sides by $\det \left({\bar {T}}_{\kappa \lambda }\right),$ and taking their square root gives $\left\vert \det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right\vert ={\sqrt {\frac {\det({T}_{\mu \nu })}{\det \left({\bar {T}}_{\kappa \lambda }\right)}}}\,.$
When the tensor $T$ is the metric tensor, ${g}_{\kappa \lambda },$ and ${\bar {x}}^{\iota }$ is a locally inertial coordinate system where ${\bar {g}}_{\kappa \lambda }=\eta _{\kappa \lambda }=$ diag(−1,+1,+1,+1), the Minkowski metric, then $\det \left({\bar {g}}_{\kappa \lambda }\right)=\det(\eta _{\kappa \lambda })=$ −1 and so $\left\vert \det {\left[{\frac {\partial {\bar {x}}^{\iota }}{\partial {x}^{\gamma }}}\right]}\right\vert ={\sqrt {-{g}}}\,,$
where ${g}=\det \left({g}_{\mu \nu }\right)$ is the determinant of the metric tensor ${g}_{\mu \nu }.$

### Use of metric tensor to manipulate tensor densities

Consequently, an even tensor density, ${\mathfrak {T}}_{\nu \dots }^{\mu \dots },$ of weight $W$, can be written in the form ${\mathfrak {T}}_{\nu \dots }^{\mu \dots }={\sqrt {-g}}\;^{W}T_{\nu \dots }^{\mu \dots }\,,$
where $T_{\nu \dots }^{\mu \dots }\,$ is an ordinary tensor. In a locally inertial coordinate system, where $g_{\kappa \lambda }=\eta _{\kappa \lambda },$ it will be the case that ${\mathfrak {T}}_{\nu \dots }^{\mu \dots }$ and $T_{\nu \dots }^{\mu \dots }\,$ will be represented with the same numbers.
When using the metric connection (Levi-Civita connection), the covariant derivative of an even tensor density is defined as ${\mathfrak {T}}_{\nu \dots ;\alpha }^{\mu \dots }={\sqrt {-g}}\;^{W}T_{\nu \dots ;\alpha }^{\mu \dots }={\sqrt {-g}}\;^{W}\left({\sqrt {-g}}\;^{-W}{\mathfrak {T}}_{\nu \dots }^{\mu \dots }\right)_{;\alpha }\,.$
For an arbitrary connection, the covariant derivative is defined by adding an extra term, namely $-W\,\Gamma _{~\delta \alpha }^{\delta }\,{\mathfrak {T}}_{\nu \dots }^{\mu \dots }$ to the expression that would be appropriate for the covariant derivative of an ordinary tensor.
Equivalently, the product rule is obeyed $\left({\mathfrak {T}}_{\nu \dots }^{\mu \dots }{\mathfrak {S}}_{\tau \dots }^{\sigma \dots }\right)_{;\alpha }=\left({\mathfrak {T}}_{\nu \dots ;\alpha }^{\mu \dots }\right){\mathfrak {S}}_{\tau \dots }^{\sigma \dots }+{\mathfrak {T}}_{\nu \dots }^{\mu \dots }\left({\mathfrak {S}}_{\tau \dots ;\alpha }^{\sigma \dots }\right)\,,$
where, for the metric connection, the covariant derivative of any function of $g_{\kappa \lambda }$ is always zero, ${\begin{aligned}g_{\kappa \lambda ;\alpha }&=0\\\left({\sqrt {-g}}\;^{W}\right)_{;\alpha }&=\left({\sqrt {-g}}\;^{W}\right)_{,\alpha }-W\Gamma _{~\delta \alpha }^{\delta }{\sqrt {-g}}\;^{W}={\frac {W}{2}}g^{\kappa \lambda }g_{\kappa \lambda ,\alpha }{\sqrt {-g}}\;^{W}-W\Gamma _{~\delta \alpha }^{\delta }{\sqrt {-g}}\;^{W}=0\,.\end{aligned}}$

## Examples

The expression ${\sqrt {-g}}$ is a scalar density. By the convention of this article it has a weight of +1.
The density of electric current ${\mathfrak {J}}^{\mu }$ (for example, ${\mathfrak {J}}^{2}$ is the amount of electric charge crossing the 3-volume element $dx^{3}\,dx^{4}\,dx^{1}$ divided by that element — do not use the metric in this calculation) is a contravariant vector density of weight +1. It is often written as ${\mathfrak {J}}^{\mu }=J^{\mu }{\sqrt {-g}}$ or ${\mathfrak {J}}^{\mu }=\varepsilon ^{\mu \alpha \beta \gamma }{\mathcal {J}}_{\alpha \beta \gamma }/3!,$ where $J^{\mu }\,$ and the differential form ${\mathcal {J}}_{\alpha \beta \gamma }$ are absolute tensors, and where $\varepsilon ^{\mu \alpha \beta \gamma }$ is the Levi-Civita symbol; see below.
The density of Lorentz force ${\mathfrak {f}}_{\mu }$ (that is, the linear momentum transferred from the electromagnetic field to matter within a 4-volume element $dx^{1}\,dx^{2}\,dx^{3}\,dx^{4}$ divided by that element — do not use the metric in this calculation) is a covariant vector density of weight +1.
In $N$-dimensional space-time, the Levi-Civita symbol may be regarded as either a rank-$N$ contravariant (odd) authentic tensor density of weight +1 ($\epsilon ^{\alpha _{1}\cdots \epsilon _{\alpha _{N}}}$) or a rank-$N$ covariant (odd) authentic tensor density of weight −1 ($\epsilon _{\alpha _{1}\cdots \epsilon _{\alpha _{N}}}$): $\epsilon ^{\alpha _{1}\cdots \epsilon _{\alpha _{N}}}={\bar {\epsilon }}^{\beta _{1}\cdots \epsilon _{\beta _{N}}}{\frac {\partial x^{\alpha _{1}}}{\partial {\bar {x}}^{\beta _{1}}}}\cdots {\frac {\partial x^{\alpha _{N}}}{\partial {\bar {x}}^{\beta _{N}}}}\left(\det \left[{\frac {\partial {\bar {x}}^{\beta }}{\partial x^{\alpha }}}\right]\right)^{+1}$ $\epsilon _{\alpha _{1}\cdots \epsilon _{\alpha _{N}}}={\bar {\epsilon }}_{\beta _{1}\cdots \epsilon _{\beta _{N}}}{\frac {\partial {\bar {x}}^{\beta _{1}}}{\partial x^{\alpha _{1}}}}\cdots {\frac {\partial {\bar {x}}^{\beta _{N}}}{\partial x^{\alpha _{N}}}}\left(\det \left[{\frac {\partial {\bar {x}}^{\beta }}{\partial x^{\alpha }}}\right]\right)^{-1}\,.$ Notice that the Levi-Civita symbol (so regarded) does not obey the usual convention for raising or lowering of indices with the metric tensor. That is, it is true that $\varepsilon ^{\alpha \beta \gamma \delta }\,g_{\alpha \kappa }\,g_{\beta \lambda }\,g_{\gamma \mu }g_{\delta \nu }\,=\,\varepsilon _{\kappa \lambda \mu \nu }\,g\,,$ but in general relativity, where $g=\det \left(g_{\rho \sigma }\right)$ is always negative, this is never equal to $\varepsilon _{\kappa \lambda \mu \nu }.$
The determinant of the metric tensor, $g=\det \left(g_{\rho \sigma }\right)={\frac {1}{4!}}\varepsilon ^{\alpha \beta \gamma \delta }\varepsilon ^{\kappa \lambda \mu \nu }g_{\alpha \kappa }g_{\beta \lambda }g_{\gamma \mu }g_{\delta \nu }\,,$ is an (even) authentic scalar density of weight +2, being the contraction of the product of 2 (odd) authentic tensor densities of weight +1 and four (even) authentic tensor densities of weight 0.