# Differential geometry of surfaces

In mathematics, the differential geometry of surfaces deals with the differential geometry of smooth surfaces with various additional structures, most often, a Riemannian metric.
Surfaces have been extensively studied from various perspectives: extrinsically, relating to their embedding in Euclidean space and intrinsically, reflecting their properties determined solely by the distance within the surface as measured along curves on the surface. One of the fundamental concepts investigated is the Gaussian curvature, first studied in depth by Carl Friedrich Gauss, who showed that curvature was an intrinsic property of a surface, independent of its isometric embedding in Euclidean space.
Surfaces naturally arise as graphs of functions of a pair of variables, and sometimes appear in parametric form or as loci associated to space curves. An important role in their study has been played by Lie groups (in the spirit of the Erlangen program), namely the symmetry groups of the Euclidean plane, the sphere and the hyperbolic plane. These Lie groups can be used to describe surfaces of constant Gaussian curvature; they also provide an essential ingredient in the modern approach to intrinsic differential geometry through connections. On the other hand, extrinsic properties relying on an embedding of a surface in Euclidean space have also been extensively studied. This is well illustrated by the non-linear Euler–Lagrange equations in the calculus of variations: although Euler developed the one variable equations to understand geodesics, defined independently of an embedding, one of Lagrange's main applications of the two variable equations was to minimal surfaces, a concept that can only be defined in terms of an embedding.

## History

The volumes of certain quadric surfaces of revolution were calculated by Archimedes. The development of calculus in the seventeenth century provided a more systematic way of computing them. Curvature of general surfaces was first studied by Euler. In 1760 he proved a formula for the curvature of a plane section of a surface and in 1771 he considered surfaces represented in a parametric form. Monge laid down the foundations of their theory in his classical memoir L'application de l'analyse à la géometrie which appeared in 1795. The defining contribution to the theory of surfaces was made by Gauss in two remarkable papers written in 1825 and 1827. This marked a new departure from tradition because for the first time Gauss considered the intrinsic geometry of a surface, the properties which are determined only by the geodesic distances between points on the surface independently of the particular way in which the surface is located in the ambient Euclidean space. The crowning result, the Theorema Egregium of Gauss, established that the Gaussian curvature is an intrinsic invariant, i.e. invariant under local isometries. This point of view was extended to higher-dimensional spaces by Riemann and led to what is known today as Riemannian geometry. The nineteenth century was the golden age for the theory of surfaces, from both the topological and the differential-geometric point of view, with most leading geometers devoting themselves to their study. Darboux collected many results in his four-volume treatise Théorie des surfaces (1887–1896).

## Overview

It is intuitively quite familiar to say that the leaf of a plant, the surface of a glass, or the shape of a face, are curved in certain ways, and that all of these shapes, even after ignoring any distinguishing markings, have certain geometric features which distinguish one from another. The differential geometry of surfaces is concerned with a mathematical understanding of such phenomena. The study of this field, which was initiated in its modern form in the 1700s, has led to the development of higher-dimensional and abstract geometry, such as Riemannian geometry and general relativity.
The essential mathematical object is that of a regular surface. Although conventions vary in their precise definition, these form a general class of subsets of three-dimensional Euclidean space (ℝ$^3$) which capture part of the familiar notion of "surface." By analyzing the class of curves which lie on such a surface, and the degree to which the surfaces force them to curve in ℝ$^3$, one can associate to each point of the surface two numbers, called the principal curvatures. Their average is called the mean curvature of the surface, and their product is called the Gaussian curvature.
There are many classic examples of regular surfaces, including:
* familiar examples such as planes, cylinders, and spheres
* minimal surfaces, which are defined by the property that their mean curvature is zero at every point. The best-known examples are catenoids and helicoids, although many more have been discovered. Minimal surfaces can also be defined by properties to do with surface area, with the consequence that they provide a mathematical model for the shape of soap films when stretched across a wire frame
* ruled surfaces, which are surfaces that have at least one straight line running through every point; examples include the cylinder and the hyperboloid of one sheet.
A surprising result of Carl Friedrich Gauss, known as the Theorema Egregium, showed that the Gaussian curvature of a surface, which by its definition has to do with how curves on the surface change directions in three dimensional space, can actually be measured by the lengths of curves lying on the surfaces together with the angles made when two curves on the surface intersect. Terminologically, this says that the Gaussian curvature can be calculated from the first fundamental form (also called metric tensor) of the surface. The second fundamental form, by contrast, is an object which encodes how lengths and angles of curves on the surface are distorted when the curves are pushed off of the surface.
Despite measuring different aspects of length and angle, the first and second fundamental forms are not independent from one another, and they satisfy certain constraints called the Gauss–Codazzi equations. A major theorem, often called the fundamental theorem of the differential geometry of surfaces, asserts that whenever two objects satisfy the Gauss-Codazzi constraints, they will arise as the first and second fundamental forms of a regular surface.
Using the first fundamental form, it is possible to define new objects on a regular surface. Geodesics are curves on the surface which satisfy a certain second-order ordinary differential equation which is specified by the first fundamental form. They are very directly connected to the study of lengths of curves; a geodesic of sufficiently short length will always be the curve of shortest length on the surface which connects its two endpoints. Thus, geodesics are fundamental to the optimization problem of determining the shortest path between two given points on a regular surface.
One can also define parallel transport along any given curve, which gives a prescription for how to deform a tangent vector to the surface at one point of the curve to tangent vectors at all other points of the curve. The prescription is determined by a first-order ordinary differential equation which is specified by the first fundamental form.
The above concepts are essentially all to do with multivariable calculus. The Gauss–Bonnet theorem is a more global result, which relates the Gaussian curvature of a surface together with its topological type. It asserts that the average value of the Gaussian curvature is completely determined by the Euler characteristic of the surface together with its surface area.
Any regular surface is an example both of a Riemannian manifold and Riemann surface. Essentially all of the theory of regular surfaces as discussed here has a generalization in the theory of Riemannian manifolds and their submanifolds.

## Regular surfaces in Euclidean space
### Definition

It is intuitively clear that a sphere is smooth, while a cone or a pyramid, due to their vertex or edges, are not. The notion of a "regular surface" is a formalization of the notion of a smooth surface. The definition utilizes the local representation of a surface via maps between Euclidean spaces. There is a standard notion of smoothness for such maps; a map between two open subsets of Euclidean space is smooth if its partial derivatives of every order exist at every point of the domain.
A regular surface in Euclidean space ℝ$^3$ is a subset S of ℝ$^3$ such that every point of S admits any of the following three concepts: local parametrizations, Monge patches, or implicit functions. The following table gives definitions of such objects; Monge patches is perhaps the most visually intuitive, as it essentially says that a regular surface is a subset of ℝ$^3$ which is locally the graph of a smooth function (whether over a region in the yz plane, the xz plane, or the xy plane).
| Objects | Definition |
| Local parametrizations | An open neighborhood U ⊂ S for which there is an open subset V of ℝ$^2$ and a homeomorphism f : V → U such that f, as a function V → ℝ$^3$, is infinitely differentiable (i.e. smooth) for each point of V, the two partial derivatives ∂$_u$f and ∂$_v$f are linearly independent as elements of ℝ$^3$. |
| Monge patches | An open neighborhood U ⊂ ℝ$^3$ for which there is an open subset V of ℝ$^2$ and a smooth function h : V → ℝ such that one of the following holds: S ∩ U = {(h(u, v), u, v) : (u, v) ∈ V} S ∩ U = {(u, h(u, v), v) : (u, v) ∈ V} S ∩ U = {(u, v, h(u, v)) : (u, v) ∈ V}. |
| Implicit functions | An open neighborhood U ⊂ ℝ$^3$ for which there is a smooth function F : U → ℝ with: S ∩ U = {(x, y, z) ∈ U : F(x, y, z) = 0} at each point of S ∩ U, at least one partial derivative of F is nonzero. |
The homeomorphisms appearing in the first definition are known as local parametrizations or local coordinate systems or local charts on S. The equivalence of the first two definitions asserts that, around any point on a regular surface, there always exist local parametrizations of the form (u, v) ↦ (h(u, v), u, v), (u, v) ↦ (u, h(u, v), v), or (u, v) ↦ (u, v, h(u, v)), known as Monge patches. Functions F as in the third definition are called local defining functions. The equivalence of all three definitions follows from the implicit function theorem.
Given any two local parametrizations f : V → U and f ′ : V ′→ U ′ of a regular surface, the composition f$^{−1}$ ∘ f ′ is necessarily smooth as a map between open subsets of ℝ$^2$. This shows that any regular surface naturally has the structure of a smooth manifold, with a smooth atlas being given by the inverses of local parametrizations.
In the classical theory of differential geometry, surfaces are usually studied only in the regular case. It is, however, also common to study non-regular surfaces, in which the two partial derivatives ∂$_u$f and ∂$_v$f of a local parametrization may fail to be linearly independent. In this case, S may have singularities such as cuspidal edges. Such surfaces are typically studied in singularity theory. Other weakened forms of regular surfaces occur in computer-aided design, where a surface is broken apart into disjoint pieces, with the derivatives of local parametrizations failing to even be continuous along the boundaries.
Simple examples. A simple example of a regular surface is given by the 2-sphere {(x, y, z) | x$^2$ + y$^2$ + z$^2$ = 1}; this surface can be covered by six Monge patches (two of each of the three types given above), taking h(u, v) = ± (1 − u$^2$ − v$^2$)$^{1/2}$. It can also be covered by two local parametrizations, using stereographic projection. The set {(x, y, z) : ((x$^2$ + y$^2$)$^{1/2}$ − r)$^2$ + z$^2$ = R$^2$} is a torus of revolution with radii r and R. It is a regular surface; local parametrizations can be given of the form
    $f(s,t)={\big(R\cos s+r)\cos t,(R\cos s+r)\sin t,R\sin s{\big )}.$
The hyperboloid on two sheets {(x, y, z) : z$^2$ = 1 + x$^2$ + y$^2$} is a regular surface; it can be covered by two Monge patches, with h(u, v) = ±(1 + u$^2$ + v$^2$)$^{1/2}$. The helicoid appears in the theory of minimal surfaces. It is covered by a single local parametrization, f(u, v) = (u sin v, u cos v, v).

### Tangent vectors and normal vectors

Let S be a regular surface in ℝ$^3$, and let p be an element of S. Using any of the above definitions, one can single out certain vectors in ℝ$^3$ as being tangent to S at p, and certain vectors in ℝ$^3$ as being orthogonal to S at p.
| Objects used in definition | A vector X in ℝ$^3$ is tangent to S at p if... | A vector n in ℝ$^3$ is normal to S at p if... |
| Local parametrizations | ... given any local parametrization f : V → S with p ∈ f(V), X is a linear combination of $\textstyle {\frac {\partial f}{\partial u}}{\big |}_{f^{-1}(p)}$ and $\textstyle {\frac {\partial f}{\partial v}}{\big |}_{f^{-1}(p)}$ | ... it is orthogonal to every tangent vector to S at p |
| Monge patches | ... for any Monge patch (u, v) ↦ (u, v, h(u, v)) whose range includes p, one has $X^{1}{\frac {\partial h}{\partial u}}+X^{2}{\frac {\partial h}{\partial v}}-X^{3}=0,$ with the partial derivatives evaluated at the point (p$_1$, p$_2$). The analogous definition applies in the case of the Monge patches of the other two forms. | ... for any Monge patch (u, v) ↦ (u, v, h(u, v)) whose range includes p, n is a multiple of (⁠∂h/∂u⁠, ⁠∂h/∂v⁠, −1) as evaluated at the point (p$_1$, p$_2$). The analogous definition applies in the case of the Monge patches of the other two forms. |
| Implicit functions | ... for any local defining function F whose domain contains p, X is orthogonal to ∇F(p) | ... for any local defining function F whose domain contains p, n is a multiple of ∇F(p) |
One sees that the tangent space or tangent plane to S at p, which is defined to consist of all tangent vectors to S at p, is a two-dimensional linear subspace of ℝ$^3$; it is often denoted by T$_p$S. The normal space to S at p, which is defined to consist of all normal vectors to S at p, is a one-dimensional linear subspace of ℝ$^3$ which is orthogonal to the tangent space T$_p$S. As such, at each point p of S, there are two normal vectors of unit length (unit normal vectors). The unit normal vectors at p can be given in terms of local parametrizations, Monge patches, or local defining functions, via the formulas
    $\pm \left.{\frac {{\frac {\partial f}{\partial u}}\times {\frac {\partial f}{\partial v}}}{{\big \|}{\frac {\partial f}{\partial u}}\times {\frac {\partial f}{\partial v}}{\big \|}}}\right|_{f^{-1}(p)},\qquad \pm \left.{\frac {{\big{\frac {\partial h}{\partial u}},{\frac {\partial h}{\partial v}},-1{\big )}}{\sqrt {1+{\big{\frac {\partial h}{\partial u}}{\big )}^{2}+{\big{\frac {\partial h}{\partial v}}{\big )}^{2}}}}\right|_{(p_{1},p_{2})},\qquad {\text{or}}\qquad \pm {\frac {\nabla F(p)}{{\big \|}\nabla F(p){\big \|}}},$
following the same notations as in the previous definitions.
It is also useful to note an "intrinsic" definition of tangent vectors, which is typical of the generalization of regular surface theory to the setting of smooth manifolds. It defines the tangent space as an abstract two-dimensional real vector space, rather than as a linear subspace of ℝ$^3$. In this definition, one says that a tangent vector to S at p is an assignment, to each local parametrization f : V → S with p ∈ f(V), of two numbers X$^1$ and X$^2$, such that for any other local parametrization f ′ : V → S with p ∈ f(V) (and with corresponding numbers (X ′)$^1$ and (X ′)$^2$), one has
    ${\begin{pmatrix}X^{1}\\X^{2}\end{pmatrix}}=A_{f'(p)}{\begin{pmatrix}(X')^{1}\\(X')^{2}\end{pmatrix}},$
where A$_{f′(p)}$ is the Jacobian matrix of the mapping f$^{−1}$ ∘ f ′, evaluated at the point f ′(p). The collection of tangent vectors to S at p naturally has the structure of a two-dimensional vector space. A tangent vector in this sense corresponds to a tangent vector in the previous sense by considering the vector
    $X^{1}{\frac {\partial f}{\partial u}}+X^{2}{\frac {\partial f}{\partial v}}.$
in ℝ$^3$. The Jacobian condition on X$^1$ and X$^2$ ensures, by the chain rule, that this vector does not depend on f.
For smooth functions on a surface, vector fields (i.e. tangent vector fields) have an important interpretation as first order operators or derivations. Let $S$ be a regular surface, $U$ an open subset of the plane and $f:U\rightarrow S$ a coordinate chart. If $V=f(U)$, the space $C^{\infty }(U)$ can be identified with $C^{\infty }(V)$. Similarly $f$ identifies vector fields on $U$ with vector fields on $V$. Taking standard variables u and v, a vector field has the form $X=a\partial _{u}+b\partial _{v}$, with a and b smooth functions. If $X$ is a vector field and $g$ is a smooth function, then $Xg$ is also a smooth function. The first order differential operator $X$ is a derivation, i.e. it satisfies the Leibniz rule $X(gh)=(Xg)h+g(Xh).$
For vector fields X and Y it is simple to check that the operator $[X,Y]=XY-YX$ is a derivation corresponding to a vector field. It is called the Lie bracket $[X,Y]$. It is skew-symmetric $[X,Y]=-[Y,X]$ and satisfies the Jacobi identity:
    $[[X,Y],Z]+[[Y,Z],X]+[[Z,X],Y]=0.$
In summary, vector fields on $U$ or $V$ form a Lie algebra under the Lie bracket.

### First and second fundamental forms, the shape operator, and the curvature

Let S be a regular surface in ℝ$^3$. Given a local parametrization f : V → S and a unit normal vector field n to f(V), one defines the following objects as real-valued or matrix-valued functions on V. The first fundamental form depends only on f, and not on n. The fourth column records the way in which these functions depend on f, by relating the functions E ′, F ′, G ′, L ′, etc., arising for a different choice of local parametrization, f ′ : V ′ → S, to those arising for f. Here A denotes the Jacobian matrix of f$^{–1}$ ∘ f ′. The key relation in establishing the formulas of the fourth column is then
    ${\begin{pmatrix}{\frac {\partial f'}{\partial u}}\\{\frac {\partial f'}{\partial v}}\end{pmatrix}}=A{\begin{pmatrix}{\frac {\partial f}{\partial u}}\\{\frac {\partial f}{\partial v}}\end{pmatrix}},$
as follows by the chain rule.
| Terminology | Notation | Definition | Dependence on local parametrization |
| First fundamental form | E | $E={\frac {\partial f}{\partial u}}\cdot {\frac {\partial f}{\partial u}}$ | ${\begin{pmatrix}E'&F'\\F'&G'\end{pmatrix}}=A{\begin{pmatrix}E&F\\F&G\end{pmatrix}}A^{T}$ |
| First fundamental form | F | $F={\frac {\partial f}{\partial u}}\cdot {\frac {\partial f}{\partial v}}$ | ${\begin{pmatrix}E'&F'\\F'&G'\end{pmatrix}}=A{\begin{pmatrix}E&F\\F&G\end{pmatrix}}A^{T}$ |
| First fundamental form | G | $G={\frac {\partial f}{\partial v}}\cdot {\frac {\partial f}{\partial v}}$ | ${\begin{pmatrix}E'&F'\\F'&G'\end{pmatrix}}=A{\begin{pmatrix}E&F\\F&G\end{pmatrix}}A^{T}$ |
| Second fundamental form | L | $L={\frac {\partial ^{2}f}{\partial u^{2}}}\cdot n$ | ${\begin{pmatrix}L'&M'\\M'&N'\end{pmatrix}}=A{\begin{pmatrix}L&M\\M&N\end{pmatrix}}A^{T}$ |
| Second fundamental form | M | $M={\frac {\partial ^{2}f}{\partial u\partial v}}\cdot n$ | ${\begin{pmatrix}L'&M'\\M'&N'\end{pmatrix}}=A{\begin{pmatrix}L&M\\M&N\end{pmatrix}}A^{T}$ |
| Second fundamental form | N | $N={\frac {\partial ^{2}f}{\partial v^{2}}}\cdot n$ | ${\begin{pmatrix}L'&M'\\M'&N'\end{pmatrix}}=A{\begin{pmatrix}L&M\\M&N\end{pmatrix}}A^{T}$ |
| Shape operator | P | $P={\begin{pmatrix}E&F\\F&G\end{pmatrix}}^{-1}{\begin{pmatrix}L&M\\M&N\end{pmatrix}}$ | $P'=APA^{-1}$ |
| Gaussian curvature | K | $K={\frac {LN-M^{2}}{EG-F^{2}}}$ | $K'=K$ |
| Mean curvature | H | $H={\frac {GL-2FM+EN}{2(EG-F^{2})}}$ | $H'=H$ |
| Principal curvatures | $\kappa _{\pm }$ | $H\pm {\sqrt {H^{2}-K}}$ | $\kappa _{\pm }'=\kappa _{\pm }$ |
By a direct calculation with the matrix defining the shape operator, it can be checked that the Gaussian curvature is the determinant of the shape operator, the mean curvature is half of the trace of the shape operator, and the principal curvatures are the eigenvalues of the shape operator; moreover the Gaussian curvature is the product of the principal curvatures and the mean curvature is their sum. These observations can also be formulated as definitions of these objects. These observations also make clear that the last three rows of the fourth column follow immediately from the previous row, as similar matrices have identical determinant, trace, and eigenvalues. It is fundamental to note E, G, and EG − F$^2$ are all necessarily positive. This ensures that the matrix inverse in the definition of the shape operator is well-defined, and that the principal curvatures are real numbers.
Note also that a negation of the choice of unit normal vector field will negate the second fundamental form, the shape operator, the mean curvature, and the principal curvatures, but will leave the Gaussian curvature unchanged. In summary, this has shown that, given a regular surface S, the Gaussian curvature of S can be regarded as a real-valued function on S; relative to a choice of unit normal vector field on all of S, the two principal curvatures and the mean curvature are also real-valued functions on S.
Geometrically, the first and second fundamental forms can be viewed as giving information on how f(u, v) moves around in ℝ$^3$ as (u, v) moves around in V. In particular, the first fundamental form encodes how quickly f moves, while the second fundamental form encodes the extent to which its motion is in the direction of the normal vector n. In other words, the second fundamental form at a point p encodes the length of the orthogonal projection from S to the tangent plane to S at p; in particular it gives the quadratic function which best approximates this length. This thinking can be made precise by the formulas
    ${\begin{aligned}\lim _{(h,k)\to (0,0)}{\frac {{\big |}f(u+h,v+k)-f(u,v){\big |}^{2}-{\bigEh^{2}+2Fhk+Gk^{2}{\big )}}{h^{2}+k^{2}}}&=0\\\lim _{(h,k)\to (0,0)}{\frac {{\bigf(u+h,v+k)-f(u,v){\big )}\cdot n-{\frac {1}{2}}{\bigLh^{2}+2Mhk+Nk^{2}{\big )}}{h^{2}+k^{2}}}&=0,\end{aligned}}$
as follows directly from the definitions of the fundamental forms and Taylor's theorem in two dimensions. The principal curvatures can be viewed in the following way. At a given point p of S, consider the collection of all planes which contain the orthogonal line to S. Each such plane has a curve of intersection with S, which can be regarded as a plane curve inside of the plane itself. The two principal curvatures at p are the maximum and minimum possible values of the curvature of this plane curve at p, as the plane under consideration rotates around the normal line.
The following summarizes the calculation of the above quantities relative to a Monge patch f(u, v) = (u, v, h(u, v)). Here h$_u$ and h$_v$ denote the two partial derivatives of h, with analogous notation for the second partial derivatives. The second fundamental form and all subsequent quantities are calculated relative to the given choice of unit normal vector field.
| Quantity | Formula |
| A unit normal vector field | $n={\frac {(-h_{u},-h_{v},1)}{\sqrt {1+h_{u}^{2}+h_{v}^{2}}}}$ |
| First fundamental form | ${\begin{pmatrix}E&F\\F&G\end{pmatrix}}={\begin{pmatrix}1+h_{u}^{2}&h_{u}h_{v}\\h_{u}h_{v}&1+h_{v}^{2}\end{pmatrix}}$ |
| Second fundamental form | ${\begin{pmatrix}L&M\\M&N\end{pmatrix}}={\frac {1}{\sqrt {1+h_{u}^{2}+h_{v}^{2}}}}{\begin{pmatrix}h_{uu}&h_{uv}\\h_{uv}&h_{vv}\end{pmatrix}}$ |
| Shape operator | $P={\frac {1}{(1+h_{u}^{2}+h_{v}^{2})^{3/2}}}{\begin{pmatrix}h_{uu}(1+h_{v}^{2})-h_{uv}h_{u}h_{v}&h_{uv}(1+h_{v}^{2})-h_{vv}h_{u}h_{v}\\h_{uv}(1+h_{u}^{2})-h_{uu}h_{u}h_{v}&h_{vv}(1+h_{u}^{2})-h_{uv}h_{u}h_{v}\end{pmatrix}}$ |
| Gaussian curvature | $K={\frac {h_{uu}h_{vv}-h_{uv}^{2}}{(1+h_{u}^{2}+h_{v}^{2})^{2}}}$ |
| Mean curvature | $H={\frac {(1+h_{v}^{2})h_{uu}-2h_{u}h_{v}h_{uv}+(1+h_{u}^{2})h_{vv}}{2(1+h_{u}^{2}+h_{v}^{2})^{3/2}}}$ |

### Christoffel symbols, Gauss–Codazzi equations, and the Theorema Egregium

Let S be a regular surface in ℝ$^3$. The Christoffel symbols assign, to each local parametrization f : V → S, eight functions on V, defined by
    ${\begin{pmatrix}\Gamma _{11}^{1}&\Gamma _{12}^{1}&\Gamma _{21}^{1}&\Gamma _{22}^{1}\\\Gamma _{11}^{2}&\Gamma _{12}^{2}&\Gamma _{21}^{2}&\Gamma _{22}^{2}\end{pmatrix}}={\begin{pmatrix}E&F\\F&G\end{pmatrix}}^{-1}{\begin{pmatrix}{\frac {1}{2}}{\frac {\partial E}{\partial u}}&{\frac {1}{2}}{\frac {\partial E}{\partial v}}&{\frac {1}{2}}{\frac {\partial E}{\partial v}}&{\frac {\partial F}{\partial v}}-{\frac {1}{2}}{\frac {\partial G}{\partial u}}\\{\frac {\partial F}{\partial u}}-{\frac {1}{2}}{\frac {\partial E}{\partial v}}&{\frac {1}{2}}{\frac {\partial G}{\partial u}}&{\frac {1}{2}}{\frac {\partial G}{\partial u}}&{\frac {1}{2}}{\frac {\partial G}{\partial v}}\end{pmatrix}}.$
They can also be defined by the following formulas, in which n is a unit normal vector field along f(V) and L, M, N are the corresponding components of the second fundamental form:
    ${\begin{aligned}{\frac {\partial ^{2}f}{\partial u^{2}}}&=\Gamma _{11}^{1}{\frac {\partial f}{\partial u}}+\Gamma _{11}^{2}{\frac {\partial f}{\partial v}}+Ln\\{\frac {\partial ^{2}f}{\partial u\partial v}}&=\Gamma _{12}^{1}{\frac {\partial f}{\partial u}}+\Gamma _{12}^{2}{\frac {\partial f}{\partial v}}+Mn\\{\frac {\partial ^{2}f}{\partial v^{2}}}&=\Gamma _{22}^{1}{\frac {\partial f}{\partial u}}+\Gamma _{22}^{2}{\frac {\partial f}{\partial v}}+Nn.\end{aligned}}$
The key to this definition is that ⁠∂f/∂u⁠, ⁠∂f/∂v⁠, and n form a basis of ℝ$^3$ at each point, relative to which each of the three equations uniquely specifies the Christoffel symbols as coordinates of the second partial derivatives of f. The choice of unit normal has no effect on the Christoffel symbols, since if n is exchanged for its negation, then the components of the second fundamental form are also negated, and so the signs of Ln, Mn, Nn are left unchanged.
The second definition shows, in the context of local parametrizations, that the Christoffel symbols are geometrically natural. Although the formulas in the first definition appear less natural, they have the importance of showing that the Christoffel symbols can be calculated from the first fundamental form, which is not immediately apparent from the second definition. The equivalence of the definitions can be checked by directly substituting the first definition into the second, and using the definitions of E, F, G.
The Codazzi equations assert that
    ${\begin{aligned}{\frac {\partial L}{\partial v}}-{\frac {\partial M}{\partial u}}&=L\Gamma _{12}^{1}+M(\Gamma _{12}^{2}-\Gamma _{11}^{1})-N\Gamma _{11}^{2}\\{\frac {\partial M}{\partial v}}-{\frac {\partial N}{\partial u}}&=L\Gamma _{22}^{1}+M(\Gamma _{22}^{2}-\Gamma _{12}^{1})-N\Gamma _{12}^{2}.\end{aligned}}$
These equations can be directly derived from the second definition of Christoffel symbols given above; for instance, the first Codazzi equation is obtained by differentiating the first equation with respect to v, the second equation with respect to u, subtracting the two, and taking the dot product with n. The Gauss equation asserts that
    ${\begin{aligned}KE&={\frac {\partial \Gamma _{11}^{2}}{\partial v}}-{\frac {\partial \Gamma _{21}^{2}}{\partial u}}+\Gamma _{21}^{2}\Gamma _{11}^{1}+\Gamma _{22}^{2}\Gamma _{11}^{2}-\Gamma _{11}^{2}\Gamma _{21}^{1}-\Gamma _{12}^{2}\Gamma _{21}^{2}\\KF&={\frac {\partial \Gamma _{12}^{2}}{\partial v}}-{\frac {\partial \Gamma _{22}^{2}}{\partial u}}+\Gamma _{21}^{2}\Gamma _{12}^{1}-\Gamma _{11}^{2}\Gamma _{22}^{1}\\KG&={\frac {\partial \Gamma _{22}^{1}}{\partial u}}-{\frac {\partial \Gamma _{12}^{1}}{\partial v}}+\Gamma _{11}^{1}\Gamma _{22}^{1}+\Gamma _{12}^{1}\Gamma _{22}^{2}-\Gamma _{21}^{1}\Gamma _{12}^{1}-\Gamma _{22}^{1}\Gamma _{12}^{2}\end{aligned}}$
These can be similarly derived as the Codazzi equations, with one using the Weingarten equations instead of taking the dot product with n. Although these are written as three separate equations, they are identical when the definitions of the Christoffel symbols, in terms of the first fundamental form, are substituted in. There are many ways to write the resulting expression, one of them derived in 1852 by Brioschi using a skillful use of determinants:
    $K={\frac {1}{(EG-F^{2})^{2}}}\det {\begin{pmatrix}-{1 \over 2}{\frac {\partial ^{2}E}{\partial v^{2}}}+{\frac {\partial ^{2}F}{\partial u\partial v}}-{1 \over 2}{\frac {\partial ^{2}G}{\partial u^{2}}}&{1 \over 2}{\frac {\partial E}{\partial u}}&{\frac {\partial F}{\partial u}}-{1 \over 2}{\frac {\partial E}{\partial v}}\\{\frac {\partial F}{\partial v}}-{1 \over 2}{\frac {\partial G}{\partial u}}&E&F\\{1 \over 2}{\frac {\partial G}{\partial v}}&F&G\end{pmatrix}}-{\frac {1}{(EG-F^{2})^{2}}}\det {\begin{pmatrix}0&{1 \over 2}{\frac {\partial E}{\partial v}}&{1 \over 2}{\frac {\partial G}{\partial u}}\\{1 \over 2}{\frac {\partial E}{\partial v}}&E&F\\{1 \over 2}{\frac {\partial G}{\partial u}}&F&G\end{pmatrix}}.$
When the Christoffel symbols are considered as being defined by the first fundamental form, the Gauss and Codazzi equations represent certain constraints between the first and second fundamental forms. The Gauss equation is particularly noteworthy, as it shows that the Gaussian curvature can be computed directly from the first fundamental form, without the need for any other information; equivalently, this says that LN − M$^2$ can actually be written as a function of E, F, G, even though the individual components L, M, N cannot. This is known as the theorema egregium, and was a major discovery of Carl Friedrich Gauss. It is particularly striking when one recalls the geometric definition of the Gaussian curvature of S as being defined by the maximum and minimum radii of osculating circles; they seem to be fundamentally defined by the geometry of how S bends within ℝ$^3$. Nevertheless, the theorem shows that their product can be determined from the "intrinsic" geometry of S, having only to do with the lengths of curves along S and the angles formed at their intersections. As said by Marcel Berger:
   This theorem is baffling. [...] It is the kind of theorem which could have waited dozens of years more before being discovered by another mathematician since, unlike so much of intellectual history, it was absolutely not in the air. [...] To our knowledge there is no simple geometric proof of the theorema egregium today.
The Gauss-Codazzi equations can also be succinctly expressed and derived in the language of connection forms due to Élie Cartan. In the language of tensor calculus, making use of natural metrics and connections on tensor bundles, the Gauss equation can be written as H$^2$ − |h|$^2$ = R and the two Codazzi equations can be written as ∇$_1$ h$_{12}$ = ∇$_2$ h$_{11}$ and ∇$_1$ h$_{22}$ = ∇$_2$ h$_{12}$; the complicated expressions to do with Christoffel symbols and the first fundamental form are completely absorbed into the definitions of the covariant tensor derivative ∇h and the scalar curvature R. Pierre Bonnet proved that two quadratic forms satisfying the Gauss-Codazzi equations always uniquely determine an embedded surface locally. For this reason the Gauss-Codazzi equations are often called the fundamental equations for embedded surfaces, precisely identifying where the intrinsic and extrinsic curvatures come from. They admit generalizations to surfaces embedded in more general Riemannian manifolds.

### Isometries

A diffeomorphism $\varphi$ between open sets $U$ and $V$ in a regular surface $S$ is said to be an isometry if it preserves the metric, i.e. the first fundamental form. Thus for every point $p$ in $U$ and tangent vectors $w_{1},\,\,w_{2}$ at $p$, there are equalities
    $E(p)w_{1}\cdot w_{1}+2F(p)w_{1}\cdot w_{2}+G(p)w_{2}\cdot w_{2}=E(\varphi (p))\varphi ^{\prime }(w_{1})\cdot \varphi ^{\prime }(w_{1})+2F(\varphi (p))\varphi ^{\prime }(w_{1})\cdot \varphi ^{\prime }(w_{2})+G(\varphi (p))\varphi ^{\prime }(w_{1})\cdot \varphi ^{\prime }(w_{2}).$
In terms of the inner product coming from the first fundamental form, this can be rewritten as
    $(w_{1},w_{2})_{p}=(\varphi ^{\prime }(w_{1}),\varphi ^{\prime }(w_{2}))_{\varphi (p)}$.
On the other hand, the length of a parametrized curve $\gamma (t)=(x(t),y(t))$ can be calculated as
    $L(\gamma )=\int _{a}^{b}{\sqrt {E{\dot {x}}\cdot {\dot {x}}+2F{\dot {x}}\cdot {\dot {y}}+G{\dot {y}}\cdot {\dot {y}}}}\,dt$
and, if the curve lies in $U$, the rules for change of variables show that
    $L(\varphi \circ \gamma )=L(\gamma ).$
Conversely if $\varphi$ preserves the lengths of all parametrized in curves then $\varphi$ is an isometry. Indeed, for suitable choices of $\gamma$, the tangent vectors ${\dot {x}}$ and ${\dot {y}}$ give arbitrary tangent vectors $w_{1}$ and $w_{2}$. The equalities must hold for all choice of tangent vectors $w_{1}$ and $w_{2}$ as well as $\varphi ^{\prime }(w_{1})$ and $\varphi ^{\prime }(w_{2})$, so that $(\varphi ^{\prime }(w_{1}),\varphi ^{\prime }(w_{2}))_{\varphi (p)}=(w_{1},w_{1})_{p}$.
A simple example of an isometry is provided by two parametrizations $f_{1}$ and $f_{2}$ of an open set $U$ into regular surfaces $S_{1}$ and $S_{2}$. If $E_{1}=E_{2}$, $F_{1}=F_{2}$ and $G_{1}=G_{2}$, then $\varphi =f_{2}\circ f_{1}^{-1}$ is an isometry of $f_{1}(U)$ onto $f_{2}(U)$.
The cylinder and the plane give examples of surfaces that are locally isometric but which cannot be extended to an isometry for topological reasons. As another example, the catenoid and helicoid are locally isometric.

### Covariant derivatives

A tangential vector field X on S assigns, to each p in S, a tangent vector X$_p$ to S at p. According to the "intrinsic" definition of tangent vectors given above, a tangential vector field X then assigns, to each local parametrization f : V → S, two real-valued functions X$^1$ and X$^2$ on V, so that
    $X_{p}=X^{1}{\bigf^{-1}(p){\big )}{\frac {\partial f}{\partial u}}{\Big |}_{f^{-1}(p)}+X^{2}{\bigf^{-1}(p){\big )}{\frac {\partial f}{\partial v}}{\Big |}_{f^{-1}(p)}$
for each p in S. One says that X is smooth if the functions X$^1$ and X$^2$ are smooth, for any choice of f. According to the other definitions of tangent vectors given above, one may also regard a tangential vector field X on S as a map X : S → ℝ$^3$ such that X(p) is contained in the tangent space T$_p$S ⊂ ℝ$^3$ for each p in S. As is common in the more general situation of smooth manifolds, tangential vector fields can also be defined as certain differential operators on the space of smooth functions on S.
The covariant derivatives (also called "tangential derivatives") of Tullio Levi-Civita and Gregorio Ricci-Curbastro provide a means of differentiating smooth tangential vector fields. Given a tangential vector field X and a tangent vector Y to S at p, the covariant derivative ∇$_Y$X is a certain tangent vector to S at p. Consequently, if X and Y are both tangential vector fields, then ∇$_Y$X can also be regarded as a tangential vector field; iteratively, if X, Y, and Z are tangential vector fields, the one may compute ∇$_Z$∇$_Y$X, which will be another tangential vector field. There are a few ways to define the covariant derivative; the first below uses the Christoffel symbols and the "intrinsic" definition of tangent vectors, and the second is more manifestly geometric.
Given a tangential vector field X and a tangent vector Y to S at p, one defines ∇$_Y$X to be the tangent vector to p which assigns to a local parametrization f : V → S the two numbers
    $(\nabla _{Y}X)^{k}=D_{(Y^{1},Y^{2})}X^{k}{\Big |}_{f^{-1}(p)}+\sum _{i=1}^{2}\sum _{j=1}^{2}{\big\Gamma _{ij}^{k}X^{j}{\big )}{\Big |}_{f^{-1}(p)}Y^{i},\qquad (k=1,2)$
where D$_{(Y1,Y2)}$ is the directional derivative. This is often abbreviated in the less cumbersome form (∇$_Y$X)$^k$ = ∂$_Y$(X$^k$) + Y$^i$Γ$^k$ $_{ij}$X$^j$, making use of Einstein notation and with the locations of function evaluation being implicitly understood. This follows a standard prescription in Riemannian geometry for obtaining a connection from a Riemannian metric. It is a fundamental fact that the vector
    $(\nabla _{Y}X)^{1}{\frac {\partial f}{\partial u}}+(\nabla _{Y}X)^{2}{\frac {\partial f}{\partial v}}$
in ℝ$^3$ is independent of the choice of local parametization f, although this is rather tedious to check.
One can also define the covariant derivative by the following geometric approach, which does not make use of Christoffel symbols or local parametrizations. Let X be a vector field on S, viewed as a function S → ℝ$^3$. Given any curve c : (a, b) → S, one may consider the composition X ∘ c : (a, b) → ℝ$^3$. As a map between Euclidean spaces, it can be differentiated at any input value to get an element (X ∘ c)′(t) of ℝ$^3$. The orthogonal projection of this vector onto T$_{c(t)}$S defines the covariant derivative ∇$_{c′(t)}$X. Although this is a very geometrically clean definition, it is necessary to show that the result only depends on c′(t) and X, and not on c and X; local parametrizations can be used for this small technical argument.
It is not immediately apparent from the second definition that covariant differentiation depends only on the first fundamental form of S; however, this is immediate from the first definition, since the Christoffel symbols can be defined directly from the first fundamental form. It is straightforward to check that the two definitions are equivalent. The key is that when one regards X$^1$⁠∂f/∂u⁠ + X$^2$⁠∂f/∂v⁠ as a ℝ$^3$-valued function, its differentiation along a curve results in second partial derivatives ∂$^2$f; the Christoffel symbols enter with orthogonal projection to the tangent space, due to the formulation of the Christoffel symbols as the tangential components of the second derivatives of f relative to the basis ⁠∂f/∂u⁠, ⁠∂f/∂v⁠, n. This is discussed in the above section.
The right-hand side of the three Gauss equations can be expressed using covariant differentiation. For instance, the right-hand side
    ${\frac {\partial \Gamma _{11}^{2}}{\partial v}}-{\frac {\partial \Gamma _{21}^{2}}{\partial u}}+\Gamma _{21}^{2}\Gamma _{11}^{1}+\Gamma _{22}^{2}\Gamma _{11}^{2}-\Gamma _{11}^{2}\Gamma _{21}^{1}-\Gamma _{12}^{2}\Gamma _{21}^{2}$
can be recognized as the second coordinate of
    $\nabla _{\frac {\partial f}{\partial v}}\nabla _{\frac {\partial f}{\partial u}}{\frac {\partial f}{\partial u}}-\nabla _{\frac {\partial f}{\partial u}}\nabla _{\frac {\partial f}{\partial v}}{\frac {\partial f}{\partial u}}$
relative to the basis ⁠∂f/∂u⁠, ⁠∂f/∂v⁠, as can be directly verified using the definition of covariant differentiation by Christoffel symbols. In the language of Riemannian geometry, this observation can also be phrased as saying that the right-hand sides of the Gauss equations are various components of the Ricci curvature of the Levi-Civita connection of the first fundamental form, when interpreted as a Riemannian metric.

## Examples
### Surfaces of revolution

A surface of revolution is obtained by rotating a curve in the xz-plane about the z-axis. Such surfaces include spheres, cylinders, cones, tori, and the catenoid. The general ellipsoids, hyperboloids, and paraboloids are not. Suppose that the curve is parametrized by
    $x=c_{1}(s),\,\,z=c_{2}(s)$
with s drawn from an interval (a, b). If c$_1$ is never zero, if c$_1$′ and c$_2$′ are never both equal to zero, and if c$_1$ and c$_2$ are both smooth, then the corresponding surface of revolution
    $S={\Big \{\bigc_{1}(s)\cos t,c_{1}(s)\sin t,c_{2}(s){\big )}\colon s\in (a,b){\text{ and }}t\in \mathbb {R} {\Big \}}$
will be a regular surface in ℝ$^3$. A local parametrization f : (a, b) × (0, 2π) → S is given by
    $f(s,t)={\bigc_{1}(s)\cos t,c_{1}(s)\sin t,c_{2}(s){\big )}.$
Relative to this parametrization, the geometric data is:
| Quantity | Formula |
| A unit normal vector field | $n={\frac {{\big-c_{2}'(s)\cos t,-c_{2}'(s)\sin t,c_{1}'(s){\big )}}{\sqrt {c_{1}'(s)^{2}+c_{2}'(s)^{2}}}}$ |
| First fundamental form | ${\begin{pmatrix}E&F\\F&G\end{pmatrix}}={\begin{pmatrix}c_{1}'(s)^{2}+c_{2}'(s)^{2}&0\\0&c_{1}(s)^{2}\end{pmatrix}}$ |
| Second fundamental form | ${\begin{pmatrix}L&M\\M&N\end{pmatrix}}={\begin{pmatrix}{\frac {c_{1}'(s)c_{2}''(s)-c_{2}'(s)c_{1}''(s)}{\sqrt {c_{1}'(s)^{2}+c_{2}'(s)^{2}}}}&0\\0&{\frac {c_{1}(s)c_{2}'(s)}{\sqrt {c_{1}'(s)^{2}+c_{2}'(s)^{2}}}}\end{pmatrix}}$ |
| Principal curvatures | ${\frac {c_{1}'(s)c_{2}''(s)-c_{2}'(s)c_{1}''(s)}{{\bigc_{1}'(s)^{2}+c_{2}'(s)^{2}{\big )}^{3/2}}}\quad {\text{and}}\quad {\frac {c_{2}'(s)}{c_{1}(s){\sqrt {c_{1}'(s)^{2}+c_{2}'(s)^{2}}}}}$ |
| Gaussian curvature | $K={\frac {c_{2}'(s){\bigc_{1}'(s)c_{2}''(s)-c_{2}'(s)c_{1}''(s){\big )}}{c_{1}(s){\bigc_{1}'(s)^{2}+c_{2}'(s)^{2}{\big )}^{2}}}$ |
| Mean curvature | $H={\frac {1}{2}}{\frac {c_{1}'(s)c_{2}''(s)-c_{2}'(s)c_{1}''(s)}{{\bigc_{1}'(s)^{2}+c_{2}'(s)^{2}{\big )}^{3/2}}}+{\frac {1}{2}}{\frac {c_{2}'(s)}{c_{1}(s){\sqrt {c_{1}'(s)^{2}+c_{2}'(s)^{2}}}}}.$ |
In the special case that the original curve is parametrized by arclength, i.e. (c$_1$′(s))$^2$ + (c$_2$′(s))$^2$ = 1, one can differentiate to find c$_1$′(s)c$_1$′′(s) + c$_2$′(s)c$_2$′′(s) = 0. On substitution into the Gaussian curvature, one has the simplified
    $K=-{\frac {c_{1}''(s)}{c_{1}(s)}}\qquad {\text{and}}\qquad H=c_{1}'(s)c_{2}''(s)-c_{2}'(s)c_{1}''(s)+{\frac {c_{2}'(s)}{c_{1}(s)}}.$
The simplicity of this formula makes it particularly easy to study the class of rotationally symmetric surfaces with constant Gaussian curvature. By reduction to the alternative case that c$_2$(s) = s, one can study the rotationally symmetric minimal surfaces, with the result that any such surface is part of a plane or a scaled catenoid.
Each constant-t curve on S can be parametrized as a geodesic; a constant-s curve on S can be parametrized as a geodesic if and only if c$_1$′(s) is equal to zero. Generally, geodesics on S are governed by Clairaut's relation.

### Quadric surfaces

Consider the quadric surface defined by
    ${x^{2} \over a}+{y^{2} \over b}+{z^{2} \over c}=1.$
This surface admits a parametrization
    $x={\sqrt {a(a-u)(a-v) \over (a-b)(a-c)}},\,\,y={\sqrt {b(b-u)(b-v) \over (b-a)(b-c)}},\,\,z={\sqrt {c(c-u)(c-v) \over (c-b)(c-a)}}.$
The Gaussian curvature and mean curvature are given by
    $K={abc \over u^{2}v^{2}},\,\,K_{m}=-(u+v){\sqrt {abc \over u^{3}v^{3}}}.$

### Ruled surfaces

A ruled surface is one which can be generated by the motion of a straight line in E$^3$. Choosing a directrix on the surface, i.e. a smooth unit speed curve c(t) orthogonal to the straight lines, and then choosing u(t) to be unit vectors along the curve in the direction of the lines, the velocity vector v = c$_t$ and u satisfy
    $u\cdot v=0,\,\,\|u\|=1,\,\,\|v\|=1.$
The surface consists of points
    $c(t)+s\cdot u(t)$
as s and t vary.
Then, if
    $a=\|u_{t}\|,\,\,b=u_{t}\cdot v,\,\,\alpha =-{\frac {b}{a^{2}}},\,\,\beta ={\frac {\sqrt {a^{2}-b^{2}}}{a^{2}}},$
the Gaussian and mean curvature are given by
    $K=-{\beta ^{2} \over ((s-\alpha )^{2}+\beta ^{2})^{2}},\,\,K_{m}=-{r[(s-\alpha )^{2}+\beta ^{2})]+\beta _{t}(s-\alpha )+\beta \alpha _{t} \over [(s-\alpha )^{2}+\beta ^{2}]^{\frac {3}{2}}}.$
The Gaussian curvature of the ruled surface vanishes if and only if u$_t$ and v are proportional, This condition is equivalent to the surface being the envelope of the planes along the curve containing the tangent vector v and the orthogonal vector u, i.e. to the surface being developable along the curve. More generally a surface in E$^3$ has vanishing Gaussian curvature near a point if and only if it is developable near that point. (An equivalent condition is given below in terms of the metric.)

### Minimal surfaces

In 1760 Lagrange extended Euler's results on the calculus of variations involving integrals in one variable to two variables. He had in mind the following problem:
   Given a closed curve in E$^3$, find a surface having the curve as boundary with minimal area.
Such a surface is called a minimal surface.
In 1776 Jean Baptiste Meusnier showed that the differential equation derived by Lagrange was equivalent to the vanishing of the mean curvature of the surface:
   A surface is minimal if and only if its mean curvature vanishes.
Minimal surfaces have a simple interpretation in real life: they are the shape a soap film will assume if a wire frame shaped like the curve is dipped into a soap solution and then carefully lifted out. The question as to whether a minimal surface with given boundary exists is called Plateau's problem after the Belgian physicist Joseph Plateau who carried out experiments on soap films in the mid-nineteenth century. In 1930 Jesse Douglas and Tibor Radó gave an affirmative answer to Plateau's problem (Douglas was awarded one of the first Fields medals for this work in 1936).
Many explicit examples of minimal surface are known explicitly, such as the catenoid, the helicoid, the Scherk surface and the Enneper surface. There has been extensive research in this area, summarised in Osserman (2002). In particular a result of Osserman shows that if a minimal surface is non-planar, then its image under the Gauss map is dense in S$^2$.

### Surfaces of constant Gaussian curvature

If a surface has constant Gaussian curvature, it is called a surface of constant curvature.
* The unit sphere in E$^3$ has constant Gaussian curvature +1.
* The Euclidean plane and the cylinder both have constant Gaussian curvature 0.
* A unit pseudosphere has constant Gaussian curvature -1 (apart from its equator, that is singular). Pseudosphere can be obtained by rotating a tractrix around its asymptote. In 1868 Eugenio Beltrami showed that the geometry of the pseudosphere was directly related to that of the more abstract hyperbolic plane, discovered independently by Lobachevsky (1830) and Bolyai (1832). Already in 1840, F. Minding, a student of Gauss, had obtained trigonometric formulas for the pseudosphere identical to those for the hyperbolic plane. The intrinsic geometry of this surface is now better understood in terms of the Poincaré metric on the upper half plane or the unit disc, and has been described by other models such as the Klein model or the hyperboloid model, obtained by considering the two-sheeted hyperboloid q(x, y, z) = −1 in three-dimensional Minkowski space, where q(x, y, z) = x$^2$ + y$^2$ – z$^2$.
The sphere, the plane and the hyperbolic plane have transitive Lie group of symmetries. This group theoretic fact has far-reaching consequences, all the more remarkable because of the central role these special surfaces play in the geometry of surfaces, due to Poincaré's uniformization theorem (see below).
Other examples of surfaces with Gaussian curvature 0 include cones, tangent developables, and more generally any developable surface.

## Local metric structure

For any surface embedded in Euclidean space of dimension 3 or higher, it is possible to measure the length of a curve on the surface, the angle between two curves and the area of a region on the surface. This structure is encoded infinitesimally in a Riemannian metric on the surface through line elements and area elements. Classically in the nineteenth and early twentieth centuries only surfaces embedded in R$^3$ were considered and the metric was given as a 2×2 positive definite matrix varying smoothly from point to point in a local parametrization of the surface. The idea of local parametrization and change of coordinate was later formalized through the current abstract notion of a manifold, a topological space where the smooth structure is given by local charts on the manifold, exactly as the planet Earth is mapped by atlases today. Changes of coordinates between different charts of the same region are required to be smooth. Just as contour lines on real-life maps encode changes in elevation, taking into account local distortions of the Earth's surface to calculate true distances, so the Riemannian metric describes distances and areas "in the small" in each local chart. In each local chart a Riemannian metric is given by smoothly assigning a 2×2 positive definite matrix to each point; when a different chart is taken, the matrix is transformed according to the Jacobian matrix of the coordinate change. The manifold then has the structure of a 2-dimensional Riemannian manifold.

### Shape operator

The differential dn of the Gauss map n can be used to define a type of extrinsic curvature, known as the shape operator or Weingarten map. This operator first appeared implicitly in the work of Wilhelm Blaschke and later explicitly in a treatise by Burali-Forti and Burgati. Since at each point x of the surface, the tangent space is an inner product space, the shape operator S$_x$ can be defined as a linear operator on this space by the formula
    $(S_{x}v,w)=(dn(v),w)$
for tangent vectors v, w (the inner product makes sense because dn(v) and w both lie in E$^3$). The right hand side is symmetric in v and w, so the shape operator is self-adjoint on the tangent space. The eigenvalues of S$_x$ are just the principal curvatures k$_1$ and k$_2$ at x. In particular the determinant of the shape operator at a point is the Gaussian curvature, but it also contains other information, since the mean curvature is half the trace of the shape operator. The mean curvature is an extrinsic invariant. In intrinsic geometry, a cylinder is developable, meaning that every piece of it is intrinsically indistinguishable from a piece of a plane since its Gauss curvature vanishes identically. Its mean curvature is not zero, though; hence extrinsically it is different from a plane.
Equivalently, the shape operator can be defined as a linear operator on tangent spaces, S$_p$: T$_p$M→T$_p$M. If n is a unit normal field to M and v is a tangent vector then
    $S(v)=\pm \nabla _{v}n$
(there is no standard agreement whether to use + or − in the definition).
In general, the eigenvectors and eigenvalues of the shape operator at each point determine the directions in which the surface bends at each point. The eigenvalues correspond to the principal curvatures of the surface and the eigenvectors are the corresponding principal directions. The principal directions specify the directions that a curve embedded in the surface must travel to have maximum and minimum curvature, these being given by the principal curvatures.

## Geodesic curves on a surface

Curves on a surface which minimize length between the endpoints are called geodesics; they are the shape that an elastic band stretched between the two points would take. Mathematically they are described using ordinary differential equations and the calculus of variations. The differential geometry of surfaces revolves around the study of geodesics. It is still an open question whether every Riemannian metric on a 2-dimensional local chart arises from an embedding in 3-dimensional Euclidean space: the theory of geodesics has been used to show this is true in the important case when the components of the metric are analytic.

### Geodesics

Given a piecewise smooth path c(t) = (x(t), y(t)) in the chart for t in [a, b], its length is defined by
    $L(c)=\int _{a}^{b}(E{\dot {x}}^{2}+2F{\dot {x}}{\dot {y}}+G{\dot {y}}^{2})^{\frac {1}{2}}\,dt$
and energy by
    $E(c)=\int _{a}^{b}(E{\dot {x}}^{2}+2F{\dot {x}}{\dot {y}}+G{\dot {y}}^{2})\,dt.$
The length is independent of the parametrization of a path. By the Euler–Lagrange equations, if c(t) is a path minimising length, parametrized by arclength, it must satisfy the Euler equations
    ${\ddot {x}}+\Gamma _{11}^{1}{\dot {x}}^{2}+2\Gamma _{12}^{1}{\dot {x}}{\dot {y}}+\Gamma _{22}^{1}{\dot {y}}^{2}=0$
    ${\ddot {y}}+\Gamma _{11}^{2}{\dot {x}}^{2}+2\Gamma _{12}^{2}{\dot {x}}{\dot {y}}+\Gamma _{22}^{2}{\dot {y}}^{2}=0$
where the Christoffel symbols Γ$^k$ $_{ij}$ are given by
    $\Gamma _{ij}^{k}={\tfrac {1}{2}}g^{km}(\partial _{j}g_{im}+\partial _{i}g_{jm}-\partial _{m}g_{ij})$
where g$_{11}$ = E, g$_{12}$ = F, g$_{22}$ = G and g$^{ij}$ is the inverse matrix to g$_{ij}$. A path satisfying the Euler equations is called a geodesic. By the Cauchy–Schwarz inequality a path minimising energy is just a geodesic parametrised by arc length; and, for any geodesic, the parameter t is proportional to arclength.

### Geodesic curvature

The geodesic curvature k$_g$ at a point of a curve c(t), parametrised by arc length, on an oriented surface is defined to be
    $k_{g}={\ddot {c}}(t)\cdot \mathbf {n} (t).$
where n(t) is the "principal" unit normal to the curve in the surface, constructed by rotating the unit tangent vector ċ(t) through an angle of +90°.
* The geodesic curvature at a point is an intrinsic invariant depending only on the metric near the point.
* A unit speed curve on a surface is a geodesic if and only if its geodesic curvature vanishes at all points on the curve.
* A unit speed curve c(t) in an embedded surface is a geodesic if and only if its acceleration vector c̈(t) is normal to the surface.
The geodesic curvature measures in a precise way how far a curve on the surface is from being a geodesic.

### Orthogonal coordinates

When F = 0 throughout a coordinate chart, such as with the geodesic polar coordinates discussed below, the images of lines parallel to the x- and y-axes are orthogonal and provide orthogonal coordinates. If H = (EG)$^{1⁄2}$, then the Gaussian curvature is given by
    $K=-{1 \over 2H}\left[\partial _{x}\left({\frac {G_{x}}{H}}\right)+\partial _{y}\left({\frac {E_{y}}{H}}\right)\right].$
If in addition E = 1, so that H = G$^{1⁄2}$, then the angle φ at the intersection between geodesic (x(t),y(t)) and the line y = constant is given by the equation
    $\tan \varphi =H\cdot {\frac {\dot {y}}{\dot {x}}}.$
The derivative of φ is given by a classical derivative formula of Gauss:
    ${\dot {\varphi }}=-H_{x}\cdot {\dot {y}}.$

## Geodesic polar coordinates

Once a metric is given on a surface and a base point is fixed, there is a unique geodesic connecting the base point to each sufficiently nearby point. The direction of the geodesic at the base point and the distance uniquely determine the other endpoint. These two bits of data, a direction and a magnitude, thus determine a tangent vector at the base point. The map from tangent vectors to endpoints smoothly sweeps out a neighbourhood of the base point and defines what is called the exponential map, defining a local coordinate chart at that base point. The neighbourhood swept out has similar properties to balls in Euclidean space, namely any two points in it are joined by a unique geodesic. This property is called "geodesic convexity" and the coordinates are called normal coordinates. The explicit calculation of normal coordinates can be accomplished by considering the differential equation satisfied by geodesics. The convexity properties are consequences of Gauss's lemma and its generalisations. Roughly speaking this lemma states that geodesics starting at the base point must cut the spheres of fixed radius centred on the base point at right angles. Geodesic polar coordinates are obtained by combining the exponential map with polar coordinates on tangent vectors at the base point. The Gaussian curvature of the surface is then given by the second order deviation of the metric at the point from the Euclidean metric. In particular the Gaussian curvature is an invariant of the metric, Gauss's celebrated Theorema Egregium. A convenient way to understand the curvature comes from an ordinary differential equation, first considered by Gauss and later generalized by Jacobi, arising from the change of normal coordinates about two different points. The Gauss–Jacobi equation provides another way of computing the Gaussian curvature. Geometrically it explains what happens to geodesics from a fixed base point as the endpoint varies along a small curve segment through data recorded in the Jacobi field, a vector field along the geodesic. One and a quarter centuries after Gauss and Jacobi, Marston Morse gave a more conceptual interpretation of the Jacobi field in terms of second derivatives of the energy function on the infinite-dimensional Hilbert manifold of paths.

### Exponential map

The theory of ordinary differential equations shows that if f(t, v) is smooth then the differential equation ⁠dv/dt⁠ = f(t, v) with initial condition v(0) = v$_0$ has a unique solution for |t| sufficiently small and the solution depends smoothly on t and v$_0$. This implies that for sufficiently small tangent vectors v at a given point p = (x$_0$, y$_0$), there is a geodesic c$_v$(t) defined on (−2, 2) with c$_v$(0) = (x$_0$, y$_0$) and ċ$_v$(0) = v. Moreover, if |s| ≤ 1, then c$_{sv}$ = c$_v$(st). The exponential map is defined by
    exp$_p$(v) = c$_v$ (1)
and gives a diffeomorphism between a disc ‖v‖ < δ and a neighbourhood of p; more generally the map sending (p, v) to exp$_p$(v) gives a local diffeomorphism onto a neighbourhood of (p, p). The exponential map gives geodesic normal coordinates near p.

### Computation of normal coordinates

There is a standard technique (see for example Berger (2004)) for computing the change of variables to normal coordinates u, v at a point as a formal Taylor series expansion. If the coordinates x, y at (0,0) are locally orthogonal, write
    x(u,v) = αu + L(u,v) + λ(u,v) + …
    y(u,v) = βv + M(u,v) + μ(u,v) + …
where L, M are quadratic and λ, μ cubic homogeneous polynomials in u and v. If u and v are fixed, x(t) = x(tu,tv) and y(t) = y(tu, tv) can be considered as formal power series solutions of the Euler equations: this uniquely determines α, β, L, M, λ and μ.

### Gauss's lemma

In these coordinates the matrix g(x) satisfies g(0) = I and the lines t ↦ tv are geodesics through 0. Euler's equations imply the matrix equation
    g(v)v = v,
a key result, usually called the Gauss lemma. Geometrically it states that
    the geodesics through 0 cut the circles centred at 0 orthogonally.
Taking polar coordinates (r,θ), it follows that the metric has the form
    ds$^2$ = dr$^2$ + G(r,θ) dθ$^2$.
In geodesic coordinates, it is easy to check that the geodesics through zero minimize length. The topology on the Riemannian manifold is then given by a distance function d(p,q), namely the infimum of the lengths of piecewise smooth paths between p and q. This distance is realised locally by geodesics, so that in normal coordinates d(0,v) = ‖v‖. If the radius δ is taken small enough, a slight sharpening of the Gauss lemma shows that the image U of the disc ‖v‖ < δ under the exponential map is geodesically convex, i.e. any two points in U are joined by a unique geodesic lying entirely inside U.

### Theorema Egregium

Gauss's Theorema Egregium, the "Remarkable Theorem", shows that the Gaussian curvature of a surface can be computed solely in terms of the metric and is thus an intrinsic invariant of the surface, independent of any isometric embedding in E$^3$ and unchanged under coordinate transformations. In particular, isometries and local isometries of surfaces preserve Gaussian curvature.
This theorem can expressed in terms of the power series expansion of the metric, ds, is given in normal coordinates (u, v) as
    ds$^2$ = du$^2$ + dv$^2$ − K(u dv – v du)$^2$/12 + ….

### Gauss–Jacobi equation

Taking a coordinate change from normal coordinates at p to normal coordinates at a nearby point q, yields the Sturm–Liouville equation satisfied by H(r,θ) = G(r,θ)$^{1⁄2}$, discovered by Gauss and later generalised by Jacobi,
    H$_{rr}$ = –KH.
The Jacobian of this coordinate change at q is equal to H$_r$. This gives another way of establishing the intrinsic nature of Gaussian curvature. Because H(r,θ) can be interpreted as the length of the line element in the θ direction, the Gauss–Jacobi equation shows that the Gaussian curvature measures the spreading of geodesics on a geometric surface as they move away from a point.

### Laplace–Beltrami operator

On a surface with local metric
    $ds^{2}=E\,dx^{2}+2F\,dx\,dy+G\,dy^{2}$
and Laplace–Beltrami operator
    $\Delta f={1 \over H}\left(\partial _{x}{G \over H}\partial _{x}f-\partial _{x}{F \over H}\partial _{y}f-\partial _{y}{F \over H}\partial _{x}f+\partial _{y}{E \over H}\partial _{y}f\right),$
where H$^2$ = EG − F$^2$, the Gaussian curvature at a point is given by the formula
    $K=-3\lim _{r\rightarrow 0}\Delta (\log r),$
where r denotes the geodesic distance from the point.
In isothermal coordinates, first considered by Gauss, the metric is required to be of the special form
    $ds^{2}=e^{\varphi }(dx^{2}+dy^{2}).\,$
In this case the Laplace–Beltrami operator is given by
    $\Delta =e^{-\varphi }\left({\frac {\partial ^{2}}{\partial x^{2}}}+{\frac {\partial ^{2}}{\partial y^{2}}}\right)$
and φ satisfies Liouville's equation
    $\Delta \varphi =-2K.\,$
Isothermal coordinates are known to exist in a neighbourhood of any point on the surface, although all proofs to date rely on non-trivial results on partial differential equations. There is an elementary proof for minimal surfaces.

## Gauss–Bonnet theorem

On a sphere or a hyperboloid, the area of a geodesic triangle, i.e. a triangle all the sides of which are geodesics, is proportional to the difference of the sum of the interior angles and π. The constant of proportionality is just the Gaussian curvature, a constant for these surfaces. For the torus, the difference is zero, reflecting the fact that its Gaussian curvature is zero. These are standard results in spherical, hyperbolic and high school trigonometry (see below). Gauss generalised these results to an arbitrary surface by showing that the integral of the Gaussian curvature over the interior of a geodesic triangle is also equal to this angle difference or excess. His formula showed that the Gaussian curvature could be calculated near a point as the limit of area over angle excess for geodesic triangles shrinking to the point. Since any closed surface can be decomposed up into geodesic triangles, the formula could also be used to compute the integral of the curvature over the whole surface. As a special case of what is now called the Gauss–Bonnet theorem, Gauss proved that this integral was remarkably always 2π times an integer, a topological invariant of the surface called the Euler characteristic. This invariant is easy to compute combinatorially in terms of the number of vertices, edges, and faces of the triangles in the decomposition, also called a triangulation. This interaction between analysis and topology was the forerunner of many later results in geometry, culminating in the Atiyah-Singer index theorem. In particular properties of the curvature impose restrictions on the topology of the surface.

### Geodesic triangles

Gauss proved that, if Δ is a geodesic triangle on a surface with angles α, β and γ at vertices A, B and C, then
    $\int _{\Delta }K\,dA=\alpha +\beta +\gamma -\pi .$
In fact taking geodesic polar coordinates with origin A and AB, AC the radii at polar angles 0 and α:
    ${\begin{aligned}\int _{\Delta }K\,dA&=\int _{\Delta }KH\,dr\,d\theta =-\int _{0}^{\alpha }\int _{0}^{r_{\theta }}\!H_{rr}\,dr\,d\theta \\&=\int _{0}^{\alpha }1-H_{r}(r_{\theta },\theta )\,d\theta =\int _{0}^{\alpha }d\theta +\int _{\pi -\beta }^{\gamma }\!\!d\varphi \\&=\alpha +\beta +\gamma -\pi ,\end{aligned}}$
where the second equality follows from the Gauss–Jacobi equation and the fourth from Gauss's derivative formula in the orthogonal coordinates (r,θ).
Gauss's formula shows that the curvature at a point can be calculated as the limit of angle excess α + β + γ − π over area for successively smaller geodesic triangles near the point. Qualitatively a surface is positively or negatively curved according to the sign of the angle excess for arbitrarily small geodesic triangles.

### Gauss–Bonnet theorem

Since every compact oriented 2-manifold M can be triangulated by small geodesic triangles, it follows that
    $\int _{M}KdA=2\pi \,\chi (M)$
where χ(M) denotes the Euler characteristic of the surface.
In fact if there are F faces, E edges and V vertices, then 3F = 2E and the left hand side equals 2πV – πF = 2π(V – E + F) = 2πχ(M).
This is the celebrated Gauss–Bonnet theorem: it shows that the integral of the Gaussian curvature is a topological invariant of the manifold, namely the Euler characteristic. This theorem can be interpreted in many ways; perhaps one of the most far-reaching has been as the index theorem for an elliptic differential operator on M, one of the simplest cases of the Atiyah-Singer index theorem. Another related result, which can be proved using the Gauss–Bonnet theorem, is the Poincaré-Hopf index theorem for vector fields on M which vanish at only a finite number of points: the sum of the indices at these points equals the Euler characteristic, where the index of a point is defined as follows: on a small circle round each isolated zero, the vector field defines a map into the unit circle; the index is just the winding number of this map.)

### Curvature and embeddings

If the Gaussian curvature of a surface M is everywhere positive, then the Euler characteristic is positive so M is homeomorphic (and therefore diffeomorphic) to S$^2$. If in addition the surface is isometrically embedded in E$^3$, the Gauss map provides an explicit diffeomorphism. As Hadamard observed, in this case the surface is convex; this criterion for convexity can be viewed as a 2-dimensional generalisation of the well-known second derivative criterion for convexity of plane curves. Hilbert proved that every isometrically embedded closed surface must have a point of positive curvature. Thus a closed Riemannian 2-manifold of non-positive curvature can never be embedded isometrically in E$^3$; however, as Adriano Garsia showed using the Beltrami equation for quasiconformal mappings, this is always possible for some conformally equivalent metric.

## Surfaces of constant curvature

The simply connected surfaces of constant curvature 0, +1 and –1 are the Euclidean plane, the unit sphere in E$^3$, and the hyperbolic plane. Each of these has a transitive three-dimensional Lie group of orientation preserving isometries G, which can be used to study their geometry. Each of the two non-compact surfaces can be identified with the quotient G / K where K is a maximal compact subgroup of G. Here K is isomorphic to SO(2). Any other closed Riemannian 2-manifold M of constant Gaussian curvature, after scaling the metric by a constant factor if necessary, will have one of these three surfaces as its universal covering space. In the orientable case, the fundamental group Γ of M can be identified with a torsion-free uniform subgroup of G and M can then be identified with the double coset space Γ \ G / K. In the case of the sphere and the Euclidean plane, the only possible examples are the sphere itself and tori obtained as quotients of R$^2$ by discrete rank 2 subgroups. For closed surfaces of genus g ≥ 2, the moduli space of Riemann surfaces obtained as Γ varies over all such subgroups, has real dimension 6g − 6. By Poincaré's uniformization theorem, any orientable closed 2-manifold is conformally equivalent to a surface of constant curvature 0, +1 or –1. In other words, by multiplying the metric by a positive scaling factor, the Gaussian curvature can be made to take exactly one of these values (the sign of the Euler characteristic of M).

### Euclidean geometry

In the case of the Euclidean plane, the symmetry group is the Euclidean motion group, the semidirect product of the two dimensional group of translations by the group of rotations. Geodesics are straight lines and the geometry is encoded in the elementary formulas of trigonometry, such as the cosine rule for a triangle with sides a, b, c and angles α, β, γ:
    $c^{2}=a^{2}+b^{2}-2ab\,\cos \gamma .$
Flat tori can be obtained by taking the quotient of R$^2$ by a lattice, i.e. a free Abelian subgroup of rank 2. These closed surfaces have no isometric embeddings in E$^3$. They do nevertheless admit isometric embeddings in E$^4$; in the easiest case this follows from the fact that the torus is a product of two circles and each circle can be isometrically embedded in E$^2$.

### Spherical geometry

The isometry group of the unit sphere S$^2$ in E$^3$ is the orthogonal group O(3), with the rotation group SO(3) as the subgroup of isometries preserving orientation. It is the direct product of SO(3) with the antipodal map, sending x to –x. The group SO(3) acts transitively on S$^2$. The stabilizer subgroup of the unit vector (0,0,1) can be identified with SO(2), so that S$^2$ = SO(3)/SO(2).
The geodesics between two points on the sphere are the great circle arcs with these given endpoints. If the points are not antipodal, there is a unique shortest geodesic between the points. The geodesics can also be described group theoretically: each geodesic through the North pole (0,0,1) is the orbit of the subgroup of rotations about an axis through antipodal points on the equator.
A spherical triangle is a geodesic triangle on the sphere. It is defined by points A, B, C on the sphere with sides BC, CA, AB formed from great circle arcs of length less than π. If the lengths of the sides are a, b, c and the angles between the sides α, β, γ, then the spherical cosine law states that
    $\cos c=\cos a\,\cos b+\sin a\,\sin b\,\cos \gamma .$
The area of the triangle is given by
    Area = α + β + γ − π.
Using stereographic projection from the North pole, the sphere can be identified with the extended complex plane C ∪ {∞}. The explicit map is given by
    $\pi (x,y,z)={x+iy \over 1-z}\equiv u+iv.$
Under this correspondence every rotation of S$^2$ corresponds to a Möbius transformation in SU(2), unique up to sign. With respect to the coordinates (u, v) in the complex plane, the spherical metric becomes
    $ds^{2}={4(du^{2}+dv^{2}) \over (1+u^{2}+v^{2})^{2}}.$
The unit sphere is the unique closed orientable surface with constant curvature +1. The quotient SO(3)/O(2) can be identified with the real projective plane. It is non-orientable and can be described as the quotient of S$^2$ by the antipodal map (multiplication by −1). The sphere is simply connected, while the real projective plane has fundamental group Z$_2$. The finite subgroups of SO(3), corresponding to the finite subgroups of O(2) and the symmetry groups of the platonic solids, do not act freely on S$^2$, so the corresponding quotients are not 2-manifolds, just orbifolds.

### Hyperbolic geometry

Non-Euclidean geometry was first discussed in letters of Gauss, who made extensive computations at the turn of the nineteenth century which, although privately circulated, he decided not to put into print. In 1830 Lobachevsky and independently in 1832 Bolyai, the son of one Gauss's correspondents, published synthetic versions of this new geometry, for which they were severely criticized. However it was not until 1868 that Beltrami, followed by Klein in 1871 and Poincaré in 1882, gave concrete analytic models for what Klein dubbed hyperbolic geometry. The four models of 2-dimensional hyperbolic geometry that emerged were:
* the Beltrami-Klein model;
* the Poincaré disk;
* the Poincaré upper half-plane;
* the hyperboloid model of Wilhelm Killing in 3-dimensional Minkowski space.
The first model, based on a disk, has the advantage that geodesics are actually line segments (that is, intersections of Euclidean lines with the open unit disk). The last model has the advantage that it gives a construction which is completely parallel to that of the unit sphere in 3-dimensional Euclidean space. Because of their application in complex analysis and geometry, however, the models of Poincaré are the most widely used: they are interchangeable thanks to the Möbius transformations between the disk and the upper half-plane.
Let
    $D=\{z\,\colon |z|<1\}$
be the Poincaré disk in the complex plane with Poincaré metric
    $ds^{2}={4(dx^{2}+dy^{2}) \over (1-x^{2}-y^{2})^{2}}.$
In polar coordinates (r, θ) the metric is given by
    $ds^{2}={4(dr^{2}+r^{2}\,d\theta ^{2}) \over (1-r^{2})^{2}}.$
The length of a curve γ:[a,b] → D is given by the formula
    $\ell (\gamma )=\int _{a}^{b}{2|\gamma ^{\prime }(t)|\,dt \over 1-|\gamma (t)|^{2}}.$
The group G = SU(1,1) given by
    $G=\left\{{\begin{pmatrix}\alpha &\beta \\{\overline {\beta }}&{\overline {\alpha }}\end{pmatrix}}:\alpha ,\beta \in \mathbf {C} ,\,|\alpha |^{2}-|\beta |^{2}=1\right\}$
acts transitively by Möbius transformations on D and the stabilizer subgroup of 0 is the rotation group
    $K=\left\{{\begin{pmatrix}\zeta &0\\0&{\overline {\zeta }}\end{pmatrix}}:\zeta \in \mathbf {C} ,\,|\zeta |=1\right\}.$
The quotient group SU(1,1)/±I is the group of orientation-preserving isometries of D. Any two points z, w in D are joined by a unique geodesic, given by the portion of the circle or straight line passing through z and w and orthogonal to the boundary circle. The distance between z and w is given by
    $d(z,w)=2\tanh ^{-1}{\frac {|z-w|}{|1-{\overline {w}}z|}}.$
In particular d(0,r) = 2 tanh$^{−1}$ r and c(t) = ⁠1/2⁠tanh t is the geodesic through 0 along the real axis, parametrized by arclength.
The topology defined by this metric is equivalent to the usual Euclidean topology, although as a metric space (D,d) is complete.
A hyperbolic triangle is a geodesic triangle for this metric: any three points in D are vertices of a hyperbolic triangle. If the sides have length a, b, c with corresponding angles α, β, γ, then the hyperbolic cosine rule states that
    $\cosh c=\cosh a\,\cosh b-\sinh a\,\sinh b\,\cos \gamma .$
The area of the hyperbolic triangle is given by
    Area = π – α – β – γ.
The unit disk and the upper half-plane
    $H=\{w=x+iy\,\colon \,y>0\}$
are conformally equivalent by the Möbius transformations
    $w=i{1+z \over 1-z},\,\,z={w-i \over w+i}.$
Under this correspondence the action of SL(2,R) by Möbius transformations on H corresponds to that of SU(1,1) on D. The metric on H becomes
    $ds^{2}={dx^{2}+dy^{2} \over y^{2}}.$
Since lines or circles are preserved under Möbius transformations, geodesics are again described by lines or circles orthogonal to the real axis.
The unit disk with the Poincaré metric is the unique simply connected oriented 2-dimensional Riemannian manifold with constant curvature −1. Any oriented closed surface M with this property has D as its universal covering space. Its fundamental group can be identified with a torsion-free concompact subgroup Γ of SU(1,1), in such a way that
    $M=\Gamma \backslash G/K.$
In this case Γ is a finitely presented group. The generators and relations are encoded in a geodesically convex fundamental geodesic polygon in D (or H) corresponding geometrically to closed geodesics on M.
Examples.
* the Bolza surface of genus 2;
* the Klein quartic of genus 3;
* the Macbeath surface of genus 7;
* the First Hurwitz triplet of genus 14.

### Uniformization

Given an oriented closed surface M with Gaussian curvature K, the metric on M can be changed conformally by scaling it by a factor e$^{2u}$. The new Gaussian curvature K′ is then given by
    $K^{\prime }(x)=e^{-2u}(K(x)-\Delta u),$
where Δ is the Laplacian for the original metric. Thus to show that a given surface is conformally equivalent to a metric with constant curvature K′ it suffices to solve the following variant of Liouville's equation:
    $\Delta u=K^{\prime }e^{2u}+K(x).$
When M has Euler characteristic 0, so is diffeomorphic to a torus, K′ = 0, so this amounts to solving
    $\Delta u=K(x).$
By standard elliptic theory, this is possible because the integral of K over M is zero, by the Gauss–Bonnet theorem.
When M has negative Euler characteristic, K′ = −1, so the equation to be solved is:
    $\Delta u=-e^{2u}+K(x).$
Using the continuity of the exponential map on Sobolev space due to Neil Trudinger, this non-linear equation can always be solved.
Finally in the case of the 2-sphere, K′ = 1 and the equation becomes:
    $\Delta u=e^{2u}+K(x).$
So far this non-linear equation has not been analysed directly, although classical results such as the Riemann–Roch theorem imply that it always has a solution. The method of Ricci flow, developed by Richard S. Hamilton, gives another proof of existence based on non-linear partial differential equations to prove existence. In fact the Ricci flow on conformal metrics on S$^2$ is defined on functions u(x, t) by
    $u_{t}=4\pi -K'(x,t)=4\pi -e^{-2u}(K(x)-\Delta u).$
After finite time, Chow showed that K′ becomes positive; previous results of Hamilton could then be used to show that K′ converges to +1. Prior to these results on Ricci flow, Osgood, Phillips & Sarnak (1988) had given an alternative and technically simpler approach to uniformization based on the flow on Riemannian metrics g defined by log det Δ$_g$.
A proof using elliptic operators, discovered in 1988, can be found in Ding (2001). Let G be the Green's function on S$^2$ satisfying ΔG = 1 + 4πδ$_P$, where δ$_P$ is the point measure at a fixed point P of S$^2$. The equation Δv = 2K – 2, has a smooth solution v, because the right hand side has integral 0 by the Gauss–Bonnet theorem. Thus φ = 2G + v satisfies Δφ = 2K away from P. It follows that g$_1$ = e$^φ$g is a complete metric of constant curvature 0 on the complement of P, which is therefore isometric to the plane. Composing with stereographic projection, it follows that there is a smooth function u such that e$^{2u}$g has Gaussian curvature +1 on the complement of P. The function u automatically extends to a smooth function on the whole of S$^2$.

## Riemannian connection and parallel transport

The classical approach of Gauss to the differential geometry of surfaces was the standard elementary approach which predated the emergence of the concepts of Riemannian manifold initiated by Bernhard Riemann in the mid-nineteenth century and of connection developed by Tullio Levi-Civita, Élie Cartan and Hermann Weyl in the early twentieth century. The notion of connection, covariant derivative and parallel transport gave a more conceptual and uniform way of understanding curvature, which not only allowed generalisations to higher dimensional manifolds but also provided an important tool for defining new geometric invariants, called characteristic classes. The approach using covariant derivatives and connections is nowadays the one adopted in more advanced textbooks.

### Covariant derivative

Connections on a surface can be defined from various equivalent but equally important points of view. The Riemannian connection or Levi-Civita connection. is perhaps most easily understood in terms of lifting vector fields, considered as first order differential operators acting on functions on the manifold, to differential operators on the tangent bundle or frame bundle. In the case of an embedded surface, the lift to an operator on vector fields, called the covariant derivative, is very simply described in terms of orthogonal projection. Indeed, a vector field on a surface embedded in R$^3$ can be regarded as a function from the surface into R$^3$. Another vector field acts as a differential operator component-wise. The resulting vector field will not be tangent to the surface, but this can be corrected taking its orthogonal projection onto the tangent space at each point of the surface. As Ricci and Levi-Civita realised at the turn of the twentieth century, this process depends only on the metric and can be locally expressed in terms of the Christoffel symbols.

### Parallel transport

Parallel transport of tangent vectors along a curve in the surface was the next major advance in the subject, due to Levi-Civita. It is related to the earlier notion of covariant derivative, because it is the monodromy of the ordinary differential equation on the curve defined by the covariant derivative with respect to the velocity vector of the curve. Parallel transport along geodesics, the "straight lines" of the surface, can also easily be described directly. A vector in the tangent plane is transported along a geodesic as the unique vector field with constant length and making a constant angle with the velocity vector of the geodesic. For a general curve, this process has to be modified using the geodesic curvature, which measures how far the curve departs from being a geodesic.
A vector field v(t) along a unit speed curve c(t), with geodesic curvature k$_g$(t), is said to be parallel along the curve if
* it has constant length
* the angle θ(t) that it makes with the velocity vector ċ(t) satisfies
    ${\dot {\theta }}(t)=-k_{g}(t)$
This recaptures the rule for parallel transport along a geodesic or piecewise geodesic curve, because in that case k$_g$ = 0, so that the angle θ(t) should remain constant on any geodesic segment. The existence of parallel transport follows because θ(t) can be computed as the integral of the geodesic curvature. Since it therefore depends continuously on the L$^2$ norm of k$_g$, it follows that parallel transport for an arbitrary curve can be obtained as the limit of the parallel transport on approximating piecewise geodesic curves.
The connection can thus be described in terms of lifting paths in the manifold to paths in the tangent or orthonormal frame bundle, thus formalising the classical theory of the "moving frame", favoured by French authors. Lifts of loops about a point give rise to the holonomy group at that point. The Gaussian curvature at a point can be recovered from parallel transport around increasingly small loops at the point. Equivalently curvature can be calculated directly at an infinitesimal level in terms of Lie brackets of lifted vector fields.

### Connection 1-form

The approach of Cartan and Weyl, using connection 1-forms on the frame bundle of M, gives a third way to understand the Riemannian connection. They noticed that parallel transport dictates that a path in the surface be lifted to a path in the frame bundle so that its tangent vectors lie in a special subspace of codimension one in the three-dimensional tangent space of the frame bundle. The projection onto this subspace is defined by a differential 1-form on the orthonormal frame bundle, the connection form. This enabled the curvature properties of the surface to be encoded in differential forms on the frame bundle and formulas involving their exterior derivatives.
This approach is particularly simple for an embedded surface. Thanks to a result of Kobayashi (1956), the connection 1-form on a surface embedded in Euclidean space E$^3$ is just the pullback under the Gauss map of the connection 1-form on S$^2$. Using the identification of S$^2$ with the homogeneous space SO(3)/SO(2), the connection 1-form is just a component of the Maurer–Cartan 1-form on SO(3).

## Global differential geometry of surfaces

Although the characterisation of curvature involves only the local geometry of a surface, there are important global aspects such as the Gauss–Bonnet theorem, the uniformization theorem, the von Mangoldt-Hadamard theorem, and the embeddability theorem. There are other important aspects of the global geometry of surfaces. These include:
* Injectivity radius, defined as the largest r such that two points at a distance less than r are joined by a unique geodesic. Wilhelm Klingenberg proved in 1959 that the injectivity radius of a closed surface is bounded below by the minimum of δ = ⁠π/√sup K⁠ and the length of its smallest closed geodesic. This improved a theorem of Bonnet who showed in 1855 that the diameter of a closed surface of positive Gaussian curvature is always bounded above by δ; in other words a geodesic realising the metric distance between two points cannot have length greater than δ.
* Rigidity. In 1927 Cohn-Vossen proved that two ovaloids – closed surfaces with positive Gaussian curvature – that are isometric are necessarily congruent by an isometry of E$^3$. Moreover, a closed embedded surface with positive Gaussian curvature and constant mean curvature is necessarily a sphere; likewise a closed embedded surface of constant Gaussian curvature must be a sphere (Liebmann 1899). Heinz Hopf showed in 1950 that a closed embedded surface with constant mean curvature and genus 0, i.e. homeomorphic to a sphere, is necessarily a sphere; five years later Alexandrov removed the topological assumption. In the 1980s, Wente constructed immersed tori of constant mean curvature in Euclidean 3-space.
* Carathéodory conjecture: This conjecture states that a closed convex three times differentiable surface admits at least two umbilic points. The first work on this conjecture was in 1924 by Hans Hamburger, who noted that it follows from the following stronger claim: the half-integer valued index of the principal curvature foliation of an isolated umbilic is at most one. It was proven for smooth surfaces by Brendan Guilfoyle and Wilhelm Klingenberg in three parts concluding in 2024, the centenary of the conjecture.
* Zero Gaussian curvature: a complete surface in E$^3$ with zero Gaussian curvature must be a cylinder or a plane.
* Hilbert's theorem (1901): no complete surface with constant negative curvature can be immersed isometrically in E$^3$.
* The Willmore conjecture. This conjecture states that the integral of the square of the mean curvature of a torus immersed in E$^3$ should be bounded below by 2π$^2$. It is known that the integral is Moebius invariant. It was solved in 2012 by Fernando Codá Marques and André Neves.
* Isoperimetric inequalities. In 1939 Schmidt proved that the classical isoperimetric inequality for curves in the Euclidean plane is also valid on the sphere or in the hyperbolic plane: namely he showed that among all closed curves bounding a domain of fixed area, the perimeter is minimized by when the curve is a circle for the metric. In one dimension higher, it is known that among all closed surfaces in E$^3$ arising as the boundary of a bounded domain of unit volume, the surface area is minimized for a Euclidean ball.
* Systolic inequalities for curves on surfaces. Given a closed surface, its systole is defined to be the smallest length of any non-contractible closed curve on the surface. In 1949 Loewner proved a torus inequality for metrics on the torus, namely that the area of the torus over the square of its systole is bounded below by ⁠√3/2⁠, with equality in the flat (constant curvature) case. A similar result is given by Pu's inequality for the real projective plane from 1952, with a lower bound of ⁠2/π⁠ also attained in the constant curvature case. For the Klein bottle, Blatter and Bavard later obtained a lower bound of ⁠√8/π⁠. For a closed surface of genus g, Hebda and Burago showed that the ratio is bounded below by ⁠1/2⁠. Three years later Mikhail Gromov found a lower bound given by a constant times g$^{1⁄2}$, although this is not optimal. Asymptotically sharp upper and lower bounds given by constant times ⁠g/(log g)$^2$⁠ are due to Gromov and Buser-Sarnak, and can be found in Katz (2007). There is also a version for metrics on the sphere, taking for the systole the length of the smallest closed geodesic. Gromov conjectured a lower bound of ⁠1/2√3⁠ in 1980: the best result so far is the lower bound of ⁠1/8⁠ obtained by Regina Rotman in 2006.

## Reading guide

One of the most comprehensive introductory surveys of the subject, charting the historical development from before Gauss to modern times, is by Berger (2004). Accounts of the classical theory are given in Eisenhart (2004), Kreyszig (1991) and Struik (1988); the more modern copiously illustrated undergraduate textbooks by Gray, Abbena & Salamon (2006), Pressley (2001) and Wilson (2008) might be found more accessible. An accessible account of the classical theory can be found in Hilbert & Cohn-Vossen (1952). More sophisticated graduate-level treatments using the Riemannian connection on a surface can be found in Singer & Thorpe (1967), do Carmo (2016) and O'Neill (2006).