Reaction:
C6H12O2 (ester) + NaOH (aq) --→ C6H11O2Na (salt) + H2O
C6H11O2Na (salt) + HCl (aq) --→ C6H12O2 (carboxylic acid) + NaCl
Explanation:
This reaction is an example of saponification, which is the base-catalyzed hydrolysis of an ester. The first step is the nucleophilic attack of the hydroxide ion on the carbonyl carbon of the ester, which results in the formation of a tetrahedral intermediate. This intermediate then collapses to form the salt of the carboxylic acid and an alcohol. In the second step, the salt of the carboxylic acid is protonated by hydrochloric acid to form the carboxylic acid and sodium chloride.