# Gauss–Codazzi equations

In Riemannian geometry and pseudo-Riemannian geometry, the Gauss–Codazzi equations (also called the Gauss–Codazzi–Weingarten-Mainardi equations or Gauss–Peterson–Codazzi formulas) are fundamental formulas that link together the induced metric and second fundamental form of a submanifold of (or immersion into) a Riemannian or pseudo-Riemannian manifold.
The equations were originally discovered in the context of surfaces in three-dimensional Euclidean space. In this context, the first equation, often called the Gauss equation (after its discoverer Carl Friedrich Gauss), says that the Gauss curvature of the surface, at any given point, is dictated by the derivatives of the Gauss map at that point, as encoded by the second fundamental form. The second equation, called the Codazzi equation or Codazzi-Mainardi equation, states that the covariant derivative of the second fundamental form is fully symmetric. It is named for Gaspare Mainardi (1856) and Delfino Codazzi (1868–1869), who independently derived the result, although it was discovered earlier by Karl Mikhailovich Peterson.

## Formal statement

Let $i\colon M\subset P$ be an n-dimensional embedded submanifold of a Riemannian manifold P of dimension $n+p$. There is a natural inclusion of the tangent bundle of M into that of P by the pushforward, and the cokernel is the normal bundle of M:
    $0\rightarrow T_{x}M\rightarrow T_{x}P|_{M}\rightarrow T_{x}^{\perp }M\rightarrow 0.$
The metric splits this short exact sequence, and so
    $TP|_{M}=TM\oplus T^{\perp }M.$
Relative to this splitting, the Levi-Civita connection $\nabla '$ of P decomposes into tangential and normal components. For each $X\in TM$ and vector field Y on M,
    $\nabla '_{X}Y=\top \left(\nabla '_{X}Y\right)+\bot \left(\nabla '_{X}Y\right).$
Let
    $\nabla _{X}Y=\top \left(\nabla '_{X}Y\right),\quad \alpha (X,Y)=\bot \left(\nabla '_{X}Y\right).$
The Gauss formula now asserts that $\nabla _{X}$ is the Levi-Civita connection for M, and $\alpha$ is a symmetric vector-valued form with values in the normal bundle. It is often referred to as the second fundamental form.
An immediate corollary is the Gauss equation for the curvature tensor. For $X,Y,Z,W\in TM$,
    $\langle R'(X,Y)Z,W\rangle =\langle R(X,Y)Z,W\rangle +\langle \alpha (X,Z),\alpha (Y,W)\rangle -\langle \alpha (Y,Z),\alpha (X,W)\rangle$
where $R'$ is the Riemann curvature tensor of P and R is that of M.
The Weingarten equation is an analog of the Gauss formula for a connection in the normal bundle. Let $X\in TM$ and $\xi$ a normal vector field. Then decompose the ambient covariant derivative of $\xi$ along X into tangential and normal components:
    $\nabla '_{X}\xi =\top \left(\nabla '_{X}\xi \right)+\bot \left(\nabla '_{X}\xi \right)=-A_{\xi }(X)+D_{X}(\xi ).$
Then
* Weingarten's equation: $\langle A_{\xi }X,Y\rangle =\langle \alpha (X,Y),\xi \rangle$
* D$_X$ is a metric connection in the normal bundle.
There are thus a pair of connections: ∇, defined on the tangent bundle of M; and D, defined on the normal bundle of M. These combine to form a connection on any tensor product of copies of TM and T$^⊥$M. In particular, they defined the covariant derivative of $\alpha$:
    $\left({\tilde {\nabla }}_{X}\alpha \right)(Y,Z)=D_{X}\left(\alpha (Y,Z)\right)-\alpha \left(\nabla _{X}Y,Z\right)-\alpha \left(Y,\nabla _{X}Z\right).$
The Codazzi–Mainardi equation is
    $\bot \left(R'(X,Y)Z\right)=\left({\tilde {\nabla }}_{X}\alpha \right)(Y,Z)-\left({\tilde {\nabla }}_{Y}\alpha \right)(X,Z).$
Since every immersion is, in particular, a local embedding, the above formulas also hold for immersions.

## Gauss–Codazzi equations in classical differential geometry
### Statement of classical equations

In classical differential geometry of surfaces, the Codazzi–Mainardi equations are expressed via the second fundamental form (L, M, N):
    $L_{v}-M_{u}=L\Gamma ^{1}_{12}+M\left({\Gamma ^{2}}_{12}-{\Gamma ^{1}}_{11}\right)-N{\Gamma ^{2}}_{11}$
    $M_{v}-N_{u}=L\Gamma ^{1}_{22}+M\left({\Gamma ^{2}}_{22}-{\Gamma ^{1}}_{12}\right)-N{\Gamma ^{2}}_{12}$
The Gauss formula, depending on how one chooses to define the Gaussian curvature, may be a tautology. It can be stated as
    $K={\frac {LN-M^{2}}{eg-f^{2}}},$
where (e, f, g) are the components of the first fundamental form.

### Derivation of classical equations

Consider a parametric surface in Euclidean 3-space,
    $\mathbf {r} (u,v)=(x(u,v),y(u,v),z(u,v))$
where the three component functions depend smoothly on ordered pairs (u,v) in some open domain U in the uv-plane. Assume that this surface is regular, meaning that the vectors r$_u$ and r$_v$ are linearly independent. Complete this to a basis {r$_u$,r$_v$,n}, by selecting a unit vector n normal to the surface. It is possible to express the second partial derivatives of r (vectors of $\mathbb {R^{3}}$) with the Christoffel symbols and the elements of the second fundamental form. We choose the first two components of the basis as they are intrinsic to the surface and intend to prove intrinsic property of the Gaussian curvature. The last term in the basis is extrinsic.
    $\mathbf {r} _{uu}={\Gamma ^{1}}_{11}\mathbf {r} _{u}+{\Gamma ^{2}}_{11}\mathbf {r} _{v}+L\mathbf {n}$
    $\mathbf {r} _{uv}={\Gamma ^{1}}_{12}\mathbf {r} _{u}+{\Gamma ^{2}}_{12}\mathbf {r} _{v}+M\mathbf {n}$
    $\mathbf {r} _{vv}={\Gamma ^{1}}_{22}\mathbf {r} _{u}+{\Gamma ^{2}}_{22}\mathbf {r} _{v}+N\mathbf {n}$
Clairaut's theorem states that partial derivatives commute:
    $\left(\mathbf {r} _{uu}\right)_{v}=\left(\mathbf {r} _{uv}\right)_{u}$
If we differentiate r$_{uu}$ with respect to v and r$_{uv}$ with respect to u, we get:
    $\left({\Gamma ^{1}}_{11}\right)_{v}\mathbf {r} _{u}+{\Gamma ^{1}}_{11}\mathbf {r} _{uv}+\left({\Gamma ^{2}}_{11}\right)_{v}\mathbf {r} _{v}+{\Gamma ^{2}}_{11}\mathbf {r} _{vv}+L_{v}\mathbf {n} +L\mathbf {n} _{v}$$=\left({\Gamma ^{1}}_{12}\right)_{u}\mathbf {r} _{u}+{\Gamma ^{1}}_{12}\mathbf {r} _{uu}+\left(\Gamma _{12}^{2}\right)_{u}\mathbf {r} _{v}+{\Gamma ^{2}}_{12}\mathbf {r} _{uv}+M_{u}\mathbf {n} +M\mathbf {n} _{u}$
Now substitute the above expressions for the second derivatives and equate the coefficients of n:
    $M{\Gamma ^{1}}_{11}+N{\Gamma ^{2}}_{11}+L_{v}=L{\Gamma ^{1}}_{12}+M{\Gamma ^{2}}_{12}+M_{u}$
Rearranging this equation gives the first Codazzi–Mainardi equation.
The second equation may be derived similarly.

## Mean curvature

Let M be a smooth m-dimensional manifold immersed in the (m + k)-dimensional smooth manifold P. Let $e_{1},e_{2},\ldots ,e_{k}$ be a local orthonormal frame of vector fields normal to M. Then we can write,
    $\alpha (X,Y)=\sum _{j=1}^{k}\alpha _{j}(X,Y)e_{j}.$
If, now, $E_{1},E_{2},\ldots ,E_{m}$ is a local orthonormal frame (of tangent vector fields) on the same open subset of M, then we can define the mean curvatures of the immersion by
    $H_{j}=\sum _{i=1}^{m}\alpha _{j}(E_{i},E_{i}).$
In particular, if M is a hypersurface of P, i.e. $k=1$, then there is only one mean curvature to speak of. The immersion is called minimal if all the $H_{j}$ are identically zero.
Observe that the mean curvature is a trace, or average, of the second fundamental form, for any given component. Sometimes mean curvature is defined by multiplying the sum on the right-hand side by $1/m$.
We can now write the Gauss–Codazzi equations as
    $\langle R'(X,Y)Z,W\rangle =\langle R(X,Y)Z,W\rangle +\sum _{j=1}^{k}\left(\alpha _{j}(X,Z)\alpha _{j}(Y,W)-\alpha _{j}(Y,Z)\alpha _{j}(X,W)\right).$
Contracting the $Y,Z$ components gives us
    $\operatorname {Ric} '(X,W)=\operatorname {Ric} (X,W)+\sum _{j=1}^{k}\langle R'(X,e_{j})e_{j},W\rangle +\sum _{j=1}^{k}\left(\sum _{i=1}^{m}\alpha _{j}(X,E_{i})\alpha _{j}(E_{i},W)-H_{j}\alpha _{j}(X,W)\right).$
When M is a hypersurface, this simplifies to
    $\operatorname {Ric} '(X,W)=\operatorname {Ric} (X,W)+\langle R'(X,n)n,W\rangle +\sum _{i=1}^{m}h(X,E_{i})h(E_{i},W)-Hh(X,W)$
where $n=e_{1},$ $h=\alpha _{1}$ and $H=H_{1}$. In that case, one more contraction yields,
    $R'=R+2\operatorname {Ric} '(n,n)+\|h\|^{2}-H^{2}$
where $R'$ and $R$ are the scalar curvatures of P and M respectively, and
    $\|h\|^{2}=\sum _{i,j=1}^{m}h(E_{i},E_{j})^{2}.$
If $k>1$, the scalar curvature equation might be more complicated.
We can already use these equations to draw some conclusions. For example, any minimal immersion into the round sphere $x_{1}^{2}+x_{2}^{2}+\cdots +x_{m+k+1}^{2}=1$ must be of the form
    $\Delta x_{j}+\lambda x_{j}=0$
where $j$ runs from 1 to $m+k+1$ and
    $\Delta =\sum _{i=1}^{m}\nabla _{E_{i}}\nabla _{E_{i}}$
is the Laplacian on M, and $\lambda >0$ is a positive constant.