Esters, amides, and nitriles are carboxylic acid derivatives that can be prepared starting from either carboxylic acids or other carboxylic acid derivatives.
An ester is an organic compound that contains a carboxyl unit in which a hydroxyl group is replaced by an alkyl or aryl group, giving it or stoichiometry. Esters can be prepared via Fischer esterification. The oxygen from the carbonyl group attacks a proton and in doing so becomes a stronger electrophile. The alcohol attacks the carbocation via a nucleophilic attack. After a proton shift, an ester and a water molecule are produced. This reaction is catalyzed by a small amount of acid to protonate the carbonyl atom and make it more susceptible to nucleophilic attack by an alcohol. The reaction is in equilibrium and reversible depending upon the amount of water or alcohol present.
Esters are also prepared via a base-catalyzed alkylation of a carboxylic acid. Base-catalyzed alkylation refers to the adding of an alkyl group in the presence of a base. In this case, the base reacts with the proton on the hydroxyl group of the carboxylic acid. The carboxylate ion then attacks the alkyl chloride, which results in the chloride leaving. This results in an ester with the same number of carbons being added as was found in the alkyl chloride.
Esters are also prepared via transesterification of an ester into an ester with a different group. Transesterification is a reaction that trades the group of the ester with an group of an alcohol. This can result in a smaller ester or a larger ester depending on the alcohol used. In the presence of an acid catalyst and heat, the oxygen on the carbonyl carbon is protonated. The molecule rearranges to form a carbocation. The alcohol then attacks the carbocation to form a complex. The original ester's oxygen is protonated by the acid environment, and then the oxygen and its alkyl chain leave. This results in another carbocation, but the hydroxyl group donates electrons from the oxygen atom to form a double bond. The acidic environment grabs the hydrogen off the oxygen cation, yielding a new ester and a hydronium ion as well as a new alcohol.
Base-Catalyzed Alkylation of a Carboxylic Acid
Finally, esters are prepared via an alcohol attack on an acid halide or an anhydride. The alcohol group attacks the carbonyl carbon because it is partially positively charged. This forms a complex where the halide is the leaving group. This leaving group halide then grabs the proton from the oxygen cation, resulting in an ester.
Production of Biodiesel by Transesterification
An amide is an organic compound that contains a carbonyl () linked to nitrogen atoms through a bond. It has a general stoichiometry. Amides are prepared by adding N,N′-dicyclohexylcarbodiimide (DCC) and an amine (ammonia derivative in which one or more hydrogen atoms are replaced by alkyl or aryl units) to a carboxylic acid. The lone pair on one of the nitrogen atoms in DCC deprotonates the hydroxyl group of the carboxylic acid. The resulting carboxylate ion attacks the DCC cation via a nucleophilic attack. This forms a complex that the amine attacks in another nucleophilic attack. There is a proton transfer from one nitrogen atom to another. The complex rearranges, and the leaving group results in dicyclohexylurea and the amide.
Acid Halide Reaction with Alcohol to Produce Ester
Amides are also prepared by the addition of a primary or secondary amine, such as methyl amine or diethyl amine, to an acid chloride, anhydride, or ester. The amine is a nucleophile and attacks the acid chloride, anhydride, or ester. The leaving group leaves, and the nucleophile takes its place.
Preparation of an Amide via DCC
Amide preparation by the addition of an anhydride results in an amide and a carboxylic acid.
Preparation of an Amide with an Acid Chloride
Amide preparation by the addition of an ester results in an amide and an alcohol.
A familiar example of an amide is the antibiotic penicillin. Each form of penicillin contains a four-membered ring amide, called a lactam, bonded to a second amide. The lactam is fused to a five-membered ring, forming a strained ring, and a carboxylic acid. The R group on the second amide produces different forms of penicillin.
Amide Preparation via an Ester and an Amine
A nitrile, also called a cyano group, is an organic compound that has a carbon triple bonded to a nitrogen with RCN stoichiometry. Nitriles are prepared by adding sodium cyanide (NaCN) to an alkyl halide. The cyanide ion is a strong nucleophile, and it attacks the carbon adjacent to the halide in an SN2 reaction. The halide is the leaving group, and the resulting compounds are a nitrile and a sodium halide. Nitriles are also prepared by the dehydration of primary amides with thionyl chloride (SOCl2) via a nucleophilic attack. A primary amide is an organic compound that contains a carbonyl () linked to a nitrogen atom that has two hydrogen atoms (NH2). It has one carbon bonded to the nitrogen atom.