Cartan-Janet theorem

Theorem
Let (M,g) be a real-analytic Riemannian manifold of dimension n, and let N=12n(n+1). Every point of M has a neighbourhood which has a real-analytic isometric embedding into RN.

Proof
See this. It uses exterior differential systems.

Keep an eye: the smooth case is still open even in dimension 2.

Specifically, for the case n=2 it means that locally any Riemannian surface can be isometrically embedded in R3.

To find the isometric embedding φ:MRN we have to solve a system of fully non-linear first-order PDEs for u. Namely, if the coordinates of M are (xi) and the metric is g=gijdxidxj then u is an isometric embedding if and only if

gij=φxiφxj

For example, in the case n=2 we have, for U(x,u) an open subset of R2 and a metric g:

g11=φ1,x2+φ2,x2+φ3,x2g12=φ1,xφ1,u+φ2,xφ2,u+φ3,xφ3,ug22=φ1,u2+φ2,u2+φ3,u2