I'm looking at Problem 1.6 in Mathematics for physics: A guided tour for graduate students by Stone & Goldbart, which rederives the equation for the catenary by parametrizing the arc by $x(s)$ and $y(s)$, where $s$ is the arc length, and considering the potential energy functional
$$ U = \int_0^L ds \, \rho g y(s)$$
subject to the constraint $$\dot{x}^2 + \dot{y}^2 = 1$$ everywhere along the chain. I can solve the problem just fine, but I'm confused by the fact that we've introduced a very strange non-holonomic constraint here, where I would have thought that the Lagrange multiplier method fails, cf. e.g. this Phys.SE post. I'm generally very confused by when the Lagrange multiplier method works and when it doesn't when it comes to different kinds of non-holonomic constraints, so any help on that would be appreciated.