# How to convert a linear dicarboxylate species to the dimethyl ester?

I was wondering about the ozonolysis of cyclohexane and further treatment with $\ce{H2O2}$. I understand that the product to this reaction is hexanedioic acid.

How could we substitute the $\ce{-H}$ on each carboxylic group to a methyl, as in the following structure:

I am pretty sure it would be by adding two moles of methanol (Fischer esterification). Is this procedure correct?

• I would try $\ce{NaOH}$ and then $\ce{MeI}$. And in one step but more dangerous you can prepare in a solution of $\ce{CH2N2}$. – ParaH2 Jan 17 '17 at 18:32
• I think I would prefer sodium hydride to sodium hydroxide. Otherwise, agree with everything else. – Zhe Jan 17 '17 at 18:50
• Oh, I see. But I thought Williamson synthesis was used for synthesising ethers from alcohols? – Bee Jan 17 '17 at 20:06