Euler shows that any discrete system obeys the Maupertuis principle  from this result  he derives the general equation for the balance of moments in a plane elastica  which includes the general catenary as a special case