Derivation and Geometry of the Catenary Curve