Substitute a curve parameterization \(\mathbf{r}(t) = (x(t), y(t))\) into f(x, y) to find the global maximum and minimum values along a given curve.