Definition (curvature on surface in R3)

Let $S$ be a smooth surface in $\R^3$ and $p\in S$.

The principal curvatures of $S$ at $p$ are $$ \begin{align*} k_1 &:= \max_{\substack{v\in T_pS:\\ \I_p(v,v ) = 1}} \II_p(v,v), \\ k_2 &:= \min_{\substack{v\in T_pS:\\ \I_p(v,v ) = 1}} \II_p(v,v), \end{align*} $$ where $\I$ and $\II$ are the first and second fundamental forms. Equivalently, $k_1, k_2$ are the eigenvalues of the shape operator $\mathbb{S}_p$ (since $\mathbb{S}_p$ is self-adjoint so spectral theorem holds).

If $k_1\neq k_2$, then the eigenvectors of $\mathbb{S}_p$ are called the principal directions.

The mean curvature at $p$ is $$ \begin{align*} H(p) := \frac{1}{2} \tr \mathbb{S}_p = \frac{1}{2}(k_1 + k_2) \end{align*} $$ and the Gauss/Gaussian curvature at $p$ is $$ \begin{align*} K(p) := \det \mathbb{S}_p = k_1 k_2. \end{align*} $$

In a local parametrisation, the matrix relation $\II_p = \mathbb{S}_p^T \I_p$ implies $$ \begin{align*} K &= \frac{\det \II_p}{\det \I_p} = \frac{eg - f^2}{EG - F^2}, \\ H &= \frac{eG + 2fF + gE}{2(EG - F^2)}. \end{align*} $$