A condensation polymer is made by heating hexane-1,6-diamine with hexanedioic acid. A short section of the polymer chain is shown:
Explain how this polymer is formed and why it is classed as a condensation polymer. In your answer, describe the type of reaction that occurs, the functional groups involved, the linkage formed, the small molecule eliminated, and the repeat unit of the polymer.