For any surface, Eq. (2.20) can be rewritten in a more generalized form as
Here, R1 and R2 are the principal radii of curvature.
Mathematical derivation
Using the properties of similar triangles we get,