The first fundamental form of a surface of revolution is
The geodesic Lagrangian is consequently
The rotation angle is a cyclic coordinate, so its conjugate momentum is conserved by the Euler-Lagrange equation:
Thus is constant.
The positively oriented unit tangent to the parallel of a surface of revolution through is . Since has unit speed and is its angle with that parallel,
Multiplication by yields
which is Clairaut's relation.