I was wondering how to compute the principal curvatures when working with a local parametrization. (Context: Surfaces, i.e. 2-dim Manifolds). Since I have formulas for the Gaussian and the mean curvature, I used them to derive:
$$k_i = H \pm \sqrt{H^2 - K} \, ,$$
where the $k_i$ denote the two principal curvatures, K the Gaussian curvature and H the mean curvature. Now when looking through the Wikipedia page about Differential geometry of surfaces I saw a different formula (in the bottom row of the table I have linked):
$$k_i = \frac{H \pm \sqrt{H^2 - 4K}}{2}.$$
Now I have two questions:
Why is the formula different? Is it a different context? As far as I could tell everything else matches what I am working with...
Is there a better way to compute the principal curvatures when working with local coordinates? Using the formulas for the Gaussian and mean curvature is pretty straight forward, which I like, but it does involve a lot of computation. Maybe there is a more effective way to do it?
Thanks!
It seems that in your formulas the definition of the mean curvature differs. There is a choice to be made and both options are equally valid and are used in the literature. One way would be be $$\frac{\kappa_1+\kappa_2}{2}=H,$$ i.e. $H$ is the mean of the principal curvatures. The other option is that $H$ is the sum of the principal curvatures, i.e. $$\kappa_1+\kappa_2=H.$$ Wikipedia uses this version. Since the underlying math and geometry is not really changed, both version are valid. Only the calculations may differ here and there.
You could calculate the principal curvatures as the eigenvalues of the second fundamental form. It may be a bit shorter, see https://en.wikipedia.org/wiki/Principal_curvature