Riemannian volume form

Any oriented pseudo-Riemannian manifold (X,g) has a natural volume form Ωg.
Is the differential n-form whose integral over pieces of (X,g) computes the volume as measured by the metric g. Explicitly, is defined as follows. For pX let e1,,en be a positive orthonormal basis of TpX. Then

(Ωg)p=e1en

where {ei}TpM is the dual basis, i.e., ei(ej)=δji. It is easy to check that is well defined

In local coordinates (x1,,xn) it can be expressed as

Ωg=|g|dx1dxn

where |g| is the absolute value of the determinant of the matrix {gij} of the (pseudo)-Riemannian metric in these local coordinates: gij=g(xi,xj). This follows from the following idea. Given an orthonormal basis {ei} consider the matrix A whose columns are the coordinates of xi in this basis. Then it is the matrix to go from the dual basis {dxi} to {ei}. Therefore

(Ωg)p=e1en=det(A)dx1dxn

But, finally, observe that det(A)=det(AtA)=det({gij}) .

Induced volume in submanifolds

Suppose SX is a submanifold of codimension 1. We have an induced Riemannian metric gS on S. Therefore we have a volume form on S given by

ΩgS=NΩg

where N is a unit normal vector field to S, and we are considering the orientation in S induced by N.