Assume for simplicity that \(\gamma\) is a curve on a two-dimensional surface \(\Sigma^2\subset\mathbb{R}^3\) parametrized by arc-length. Then \(\gamma\) is a geodesic if and only if \(\nabla_{\gamma'}\gamma'\equiv 0\). Therefore, the quantity \(|\nabla_{\gamma'}\gamma'|\) somehow measures the deviation from being a geodesic. This quantity, more or less, is called the geodesic curvature — however, we hope to ensure this quantity is differentiable too. Similar to the definition of signed curvature of plane curves, we define the geodesic curvature using the dot product instead of taking norm. The detail is as follows:
Let \(\Sigma^2\subset\mathbb{R}^3\) be a regular surface, and \(\gamma(s):[0,L]\to\Sigma\) be an arc-length parametrized curve on \(\Sigma\). We denote and define the geodesic curvature of \(\gamma\) on \(\Sigma\) at point \(\gamma(s)\) as: \[k_g(s):=\langle\gamma''(s),\nu(\gamma(s))\times\gamma'(s)\rangle,\] or in short, \(k_g=\langle\gamma'',\nu\times\gamma'\rangle\).
Here is the explanation why \(k_g\) is related to \(|\nabla_{\gamma'}\gamma'|\). Note that \(\gamma'(s)\) is unit since \(\gamma(s)\) is arc-length parametrized. It is a standard fact that then \(\gamma''(s)\) is orthogonal to \(\gamma'(s)\). Denote \(\nu\) to be the Gauss map of \(\Sigma\); then \(\gamma'(s)\) being a tangent vector to \(\Sigma\) implies \(\gamma'(s)\) and \(\nu(\gamma(s))\) are orthogonal. Therefore, for any \(s\), the vectors \(\{\gamma'(s),\nu(\gamma(s)),\nu(\gamma(s))\times\gamma'(s)\}\) form an orthonormal basis of \(\mathbb{R}^3\).
For simplicity write \(\gamma',\gamma''\) and \(\nu\) for \(\gamma'(s),\gamma''(s)\) and \(\nu(\gamma(s))\). Expressing \(\gamma''\) in this basis and recalling \(\gamma''\perp\gamma'\), we have \[\gamma''=\langle\gamma'',\nu\rangle\nu+\langle\gamma'',\nu\times\gamma'\rangle(\nu\times\gamma').\] Interpreting \(\gamma''=D_{\gamma'}\gamma'\) and projecting onto the tangent plane gives \[\nabla_{\gamma'}\gamma'=\langle\gamma'',\nu\times\gamma'\rangle(\nu\times\gamma').\] This shows \(|\nabla_{\gamma'}\gamma'|=|k_g|\) since \(\nu\times\gamma'\) is unit. Therefore \(k_g\) is a quantity whose absolute value measures how much the curve deviates from being a geodesic. By this observation, we have proved:
Let \(\gamma(s)\) be an arc-length parametrized curve on a regular surface \(\Sigma^2\subset\mathbb{R}^3\). Then \(\gamma\) is a geodesic on \(\Sigma\) if and only if its geodesic curvature \(k_g\) on \(\Sigma\) is identically zero.
\(k_g\) depends on the direction of the curve \(\gamma\) and the choice of Gauss map. If \(\gamma\) and \(\tilde{\gamma}\) are the same curve but in opposite directions, say \(\tilde{\gamma}(s)=\gamma(L-s)\), then \(\tilde{\gamma}'(s)=-\gamma'(L-s)\) and \(\tilde{\gamma}''(s)=\gamma''(L-s)\). The tangent reverses sign, so \(k_g\) changes sign when the direction of the curve is reversed (with \(\nu\) fixed).
Some textbooks may define the geodesic curvature as \(\langle\gamma'',\gamma'\times\nu\rangle\), which is the negative of our definition. It is just a matter of taste, but then the integral of the geodesic curvature in the Gauss-Bonnet's Theorem should bear an opposite sign from our version.
Consider a longitude \(\gamma(\theta)=(\cos\theta\sin\varphi_0,\sin\theta\sin\varphi_0,\cos\varphi_0)\) on a unit sphere, with fixed \(\varphi_0\in(0,\pi)\). We want to find the geodesic curvature of \(\gamma\) in terms of \(\varphi_0\).
Since \(|\gamma'(\theta)|=\sin\varphi_0\), we reparametrize: \[\gamma(s)=\left(\cos\!\left(\frac{s}{\sin\varphi_0}\right)\sin\varphi_0,\;\sin\!\left(\frac{s}{\sin\varphi_0}\right)\sin\varphi_0,\;\cos\varphi_0\right).\] The unit normal \(\nu(\gamma(s))\) of the unit sphere at \(\gamma(s)\) is the position vector \(\gamma(s)\) itself. Therefore \[k_g(s)=\langle\gamma''(s),\gamma(s)\times\gamma'(s)\rangle.\] As \(\gamma(s)\) and \(\gamma'(s)\) are both unit with angle \(\frac{\pi}{2}\) between them, \(\gamma(s)\times\gamma'(s)\) is a unit vector tangent to a latitude. A simple sketch shows \(\gamma''(s)\) makes angle \(\varphi_0\) with \(\gamma(s)\times\gamma'(s)\), so \[k_g(s)=|\gamma''(s)|\cos\varphi_0=\frac{\cos\varphi_0}{\sin\varphi_0}.\] Here we use that \(\gamma(s)\) is a circle of radius \(\sin\varphi_0\), so \(|\gamma''(s)|=\frac{1}{\sin\varphi_0}\).
Consider the surface of revolution \(\Sigma\) parametrized by \[F(t,\theta)=(x(t)\cos\theta,\,x(t)\sin\theta,\,z(t)),\] and consider the curve \(\gamma(\theta)=F(t_0,\theta)\) where \(t_0\) is fixed. Find the geodesic curvature of \(\gamma\).