A polymer is produced by heating a mixture of ethane-1,2-diol and hexanedioic acid in the presence of a catalyst.
Explain the formation of this polymer, including the type of reaction, the functional groups involved, the chemical linkage formed, and the repeat unit of the polymer.