This video explains the use of chains to determine arch shape: https://www.youtube.com/watch?v=JlL6ZHChhQE
Wikipedia contains a derivation: https://en.m.wikipedia.org/wiki/Catenary (the one on the German Wikipedia is a bit more explicit)
NB, the line taken by the cables of a suspension bridge with a deck of uniform weight is a parabola. I think this is what causes the popular confusion.