---
title: "Carboxylic Acid Derivatives"
book: "University Chemistry — Year 2"
subject: chemistry
language: en
chapter: 24
exercises: 12
source: https://one-course.com/books/chemistry/3/en/chapter/24-carboxylic-acid-derivatives
license: CC-BY-NC-SA-4.0
credit: "One Chemistry Book, One Course (one-course.com)"
---

# Chapter 24 — Carboxylic Acid Derivatives

Boil olive oil with sodium hydroxide and you get soap and glycerol: the oldest organic reaction run on purpose. The oil is an ester of glycerol and long-chain acids, and the hydroxide cuts each ester at one bond, always the same one, between the carbonyl carbon and the oxygen of the alcohol. Esters, acids, amides, anhydrides and [acyl chlorides](#def-b2-acyl-substitution-derivative) all react in this way: a nucleophile adds to the carbonyl carbon, and a group leaves. Ranking these compounds by how well their group leaves tells which can be turned into which, and in which direction a chemist must go uphill.

**You already know.**

The Year 1 volume: electrophilic activation of a carbonyl group, the mechanisms of hemiacetal and acetal formation, organomagnesium additions, hydride donors and their scope, leaving groups, $\mathrm pK_a$, $Q$ and $K$. [Chapter 23](https://one-course.com/books/chemistry/3/en/chapter/23-amines-and-nitrogen-compounds#ch-b2-amines): [nucleophilic addition](https://one-course.com/books/chemistry/3/en/chapter/23-amines-and-nitrogen-compounds#def-b2-amines-nucleophilic-addition), amines. [Chapter 4](https://one-course.com/books/chemistry/3/en/chapter/4-equilibrium-constants-and-shifts#ch-b2-equilibrium-shifts): shifting an equilibrium. The school volume: esters, carboxylic acids and amides.

![Bars of olive-oil soap drying on wooden racks. Soap is the sodium salt of the fatty acids released when the oil, an ester, is boiled with sodium hydroxide.](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/img-b0cc722eee04.jpg)

*Bars of olive-oil soap drying on wooden racks. Soap is the sodium salt of the fatty acids released when the oil, an ester, is boiled with sodium hydroxide.*

## 24.1 The family and its reactivity

**Definition 24.1 (Carboxylic acid derivatives).**

A *carboxylic acid derivative* is a compound $\ce{R-CO-Z}$ in which the $\ce{OH}$ of a carboxylic acid is replaced by another group Z. The *acyl group* $\mathrm{R{-}CO{-}}$ is common to all of them. In an *acyl chloride*, Z is Cl; in an *acid anhydride*, Z is $\mathrm{O{-}CO{-}R'}$, two acyl groups sharing one oxygen; in an ester Z is $\mathrm{OR'}$, in an amide $\mathrm{NR'_2}$.

**Proposition 24.2 (Reactivity scale).**

Towards nucleophiles, the derivatives react in the order [acyl chloride](#def-b2-acyl-substitution-derivative) $>$ anhydride $>$ ester $\approx$ acid $>$ amide.

**Argument.** Two effects add up. The leaving group $\ce{Z-}$ leaves the more easily the weaker a base it is: $\ce{Cl-}$ (conjugate acid $\ce{HCl}$, $\mathrm pK_a$ about $-7$) much better than a carboxylate ($\mathrm pK_a$ about 5), an alkoxide (about 16) or an amide ion (about 35). And the group Z gives electron density to the carbonyl by mesomeric donation of its lone pair, which makes the carbonyl carbon less electrophilic: weak for Cl, strongest for nitrogen. The amide is both the poorest electrophile and the poorest leaving group. ∎

## 24.2 Nucleophilic acyl substitution

**Definition 24.3 (Nucleophilic acyl substitution).**

A *nucleophilic acyl substitution* replaces the group Z of an acyl compound by a nucleophile. It proceeds by addition of the nucleophile to the carbonyl carbon, giving a *tetrahedral intermediate*, followed by elimination of the leaving group, which restores the $\ce{C=O}$ bond.

**Proposition 24.4 (Addition–elimination).**

Acyl substitution goes through a [tetrahedral intermediate](#def-b2-acyl-substitution-nas); it is accelerated in base by a stronger nucleophile and in acid by activation of the carbonyl.

**Argument.** The carbonyl carbon, planar and electrophilic, accepts the nucleophile from above or below its plane, as in the additions of [Chapter 23](https://one-course.com/books/chemistry/3/en/chapter/23-amines-and-nitrogen-compounds#ch-b2-amines); with a group Z able to leave, the intermediate expels it instead of being protonated. In base the nucleophile is an anion ($\ce{HO-}$, $\ce{RO-}$); in acid the carbonyl oxygen is protonated and a neutral nucleophile (water, an alcohol) suffices. Esters labelled with $\ce{^{18}O}$ in the alcohol part give, on hydrolysis, labelled alcohol and unlabelled acid: the bond broken is the acyl–oxygen bond, as the mechanism requires. ∎

![Saponification of an ester. Hydroxide adds to the carbonyl carbon, giving the tetrahedral intermediate; the alkoxide leaves and the C=O bond reforms; the alkoxide, a strong base, then takes the proton of the acid. This last step makes the reaction complete.](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-44f48e1e67ee.svg)

![Saponification of an ester. Hydroxide adds to the carbonyl carbon, giving the tetrahedral intermediate; the alkoxide leaves and the C=O bond reforms; the alkoxide, a strong base, then takes the proton of the acid. This last step makes the reaction complete.](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-c61600dca6f7.svg)

*[Saponification](#def-b2-acyl-substitution-saponification) of an ester. Hydroxide adds to the carbonyl carbon, giving the [tetrahedral intermediate](#def-b2-acyl-substitution-nas); the alkoxide leaves and the $\ce{C=O}$ bond reforms; the alkoxide, a strong base, then takes the proton of the acid. This last step makes the reaction complete.*

**Method 24.5 (Drawing an acyl substitution).**

1. In base: the anionic nucleophile adds to the carbonyl carbon; the negative charge goes to oxygen; the $\ce{C=O}$ bond reforms and Z leaves; finish with any acid–base step.
2. In acid: protonate the carbonyl oxygen; the neutral nucleophile adds; transfer a proton to the leaving group; it leaves as a neutral molecule; deprotonate the carbonyl.
3. Count the steps: every intermediate is either tetrahedral or a carbonyl compound.

## 24.3 Esters

**Definition 24.6 (Esterification).**

An *esterification* forms an ester from a carboxylic acid (or a more reactive derivative) and an alcohol. The direct reaction of an acid with an alcohol, catalysed by a strong acid, is the Fischer esterification.

**Proposition 24.7 (Fischer esterification).**

The Fischer [esterification](#def-b2-acyl-substitution-esterification) is a slow equilibrium, with a constant near 4 for primary alcohols; it is driven forward by an excess of one reagent or by removing water as it forms.

**Argument.** Equimolar ethanol and ethanoic acid stop when two thirds of the acid is esterified: $K =
(2/3)^2/(1/3)^2 = 4$. With $Q < K$ maintained by an excess of alcohol, or by distilling water off (the Dean–Stark trap of the Year 1 volume), the reaction proceeds further ([Chapter 4](https://one-course.com/books/chemistry/3/en/chapter/4-equilibrium-constants-and-shifts#ch-b2-equilibrium-shifts)). The six steps of the mechanism are those of [Method 24.5](#met-b2-acyl-substitution-nas-mechanism) in acid, all reversible. ∎

**Definition 24.8 (Saponification).**

A *saponification* is the hydrolysis of an ester by a hydroxide, giving the carboxylate salt and the alcohol.

**Proposition 24.9 (Saponification is complete).**

[Saponification](#def-b2-acyl-substitution-saponification) goes to completion: its last step, the proton transfer from the carboxylic acid to the alkoxide, has an equilibrium constant of order $10^{11}$.

**Proof.** For $\mathrm{RCOOH + R'O^- \to RCOO^- + R'OH}$,

$$
K = \frac{K_a(\ce{RCOOH})}{K_a(\mathrm{R'OH})} = 10^{\mathrm pK_a(\mathrm{R'OH}) - \mathrm pK_a(\ce{RCOOH})} ;
$$

with ethanoic acid (4.76) and ethanol (15.93), $K = 10^{11.2}$. The carboxylate, a poor electrophile, is not attacked by the alcohol: the overall reaction does not go back. ∎

![Saponification of a triglyceride: the three ester bonds are cut, giving glycerol and three molecules of the sodium carboxylate, the soap (R a long chain, C17H33 for the oleate of olive oil).](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-80a50f44be53.svg)

*[Saponification](#def-b2-acyl-substitution-saponification) of a triglyceride: the three ester bonds are cut, giving glycerol and three molecules of the sodium carboxylate, the soap (R a long chain, $\ce{C17H33}$ for the oleate of olive oil).*

**Definition 24.10 (Transesterification).**

A *transesterification* exchanges the alcohol part of an ester, $\mathrm{RCOOR' + R''OH \rightleftharpoons RCOOR'' + R'OH}$, under acid or base catalysis.

**Definition 24.11 (Lactones and lactams).**

A *lactone* is a cyclic ester, formed by internal [esterification](#def-b2-acyl-substitution-esterification) of a hydroxy acid; a *lactam* is a cyclic amide.

## 24.4 Activated derivatives

Going down the reactivity scale is easy: an [acyl chloride](#def-b2-acyl-substitution-derivative) gives an anhydride, an ester or an amide with the right nucleophile, often at room temperature. Going up needs activation: a carboxylic acid is turned into its chloride by thionyl chloride,

$$
\ce{RCOOH + SOCl2 -> RCOCl + SO2 + HCl} ,
$$

whose by-products are gases. The [acyl chloride](#def-b2-acyl-substitution-derivative) then reacts with an alcohol or an amine; a base (pyridine, triethylamine, or a second equivalent of the amine) traps the $\ce{HCl}$ formed, which would otherwise protonate the amine.

**Method 24.12 (Moving along the derivatives).**

1. Down the scale (chloride $\to$ anhydride $\to$ ester, acid $\to$ amide): treat with the nucleophile, with a base to take up the acid released.
2. Up the scale: convert the acid into the chloride first ( $\ce{SOCl2}$ ); an ester or amide is first hydrolysed to the acid.
3. Between an acid and an ester: Fischer [esterification](#def-b2-acyl-substitution-esterification) (equilibrium) or [saponification](#def-b2-acyl-substitution-saponification) (complete) followed by acidification.

![The reactivity ladder of carboxylic acid derivatives. Any derivative can be turned into one below it by a nucleophile; climbing goes through the acid and its chloride.](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-0636412a3b27.svg)

*The reactivity ladder of [carboxylic acid derivatives](#def-b2-acyl-substitution-derivative). Any derivative can be turned into one below it by a nucleophile; climbing goes through the acid and its chloride.*

## 24.5 Organometallics and hydrides

**Proposition 24.13 (Two Grignard additions).**

An ester treated with excess organomagnesium reagent gives a tertiary alcohol bearing two identical groups from the reagent.

**Argument.** The first addition gives a [tetrahedral intermediate](#def-b2-acyl-substitution-nas) that expels the alkoxide: a ketone. A ketone is more electrophilic than an ester (no mesomeric donation from an $\mathrm{OR'}$ group) and reacts with the reagent faster than the remaining ester; the second addition, to the ketone, gives the alkoxide of a tertiary alcohol, which acid work-up protonates. The reaction cannot be stopped at the ketone. ∎

**Proposition 24.14 (Hydride reductions).**

Lithium aluminium hydride reduces esters and acids to primary alcohols, and amides to amines; sodium borohydride reduces aldehydes and ketones but not esters, acids or amides. A bulky aluminium hydride (DIBAL-H) at $-78{}^{\circ}\mathrm{C}$ reduces an ester to the aldehyde.

**Argument.** $\ce{LiAlH4}$ is a strong hydride donor: like the Grignard reagent it adds twice to an ester (through the aldehyde). Borohydride is too weak for the less electrophilic ester carbonyl. With DIBAL-H at low temperature the [tetrahedral intermediate](#def-b2-acyl-substitution-nas), held by aluminium, does not expel the alkoxide until the aqueous work-up, when no hydride is left: the aldehyde survives. In an amide, the oxygen, bound to aluminium, is eliminated instead of the nitrogen, leaving an iminium ion that the hydride reduces to the amine. ∎

**History — Chevreul and the fats.**

![](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/img-60dedbf1ed70.jpg)

Michel Eugène Chevreul showed, in a study published in 1823, that fats are compounds of glycerol with fatty acids, which he isolated and named (stearic, oleic, butyric acids), and that [saponification](#def-b2-acyl-substitution-saponification) splits them into these two parts. His work turned soap- and candle-making into chemistry; he lived to be 102. (Portrait by Nicolas Eustache Maurin, public domain, Wikimedia Commons.)

**Safety.**

![](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-4b496db0d6c3.svg)

![](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-afc03563fb34.svg)

![](https://one-course.com/images/onecourse/chapters/chemistry-3/b2-acyl-substitution/fig-58320b3f229b.svg)

Thionyl chloride and [acyl chlorides](#def-b2-acyl-substitution-derivative) react violently with water and release corrosive gases; they are handled dry, in a fume hood. Lithium aluminium hydride ignites in contact with water; its excess is destroyed carefully at the end. Concentrated sodium hydroxide is corrosive to skin and eyes. Methanol is toxic and flammable.

## 24.6 Exercises

**Exercise 24.1 ★.**

Rank by reactivity towards water: ethyl ethanoate, ethanoyl chloride, ethanamide, ethanoic anhydride.

**Solution of Exercise 24.1.**

Ethanamide $<$ ethyl ethanoate $<$ ethanoic anhydride $<$ ethanoyl chloride.

**Exercise 24.2 ★.**

Give the products of ethanoyl chloride with: water; ethanol; ammonia (2 equivalents); sodium ethanoate; dimethylamine with triethylamine.

**Solution of Exercise 24.2.**

Ethanoic acid (+ $\ce{HCl}$); ethyl ethanoate; ethanamide (+ ammonium chloride, the second equivalent of ammonia trapping $\ce{HCl}$); ethanoic anhydride (+ $\ce{NaCl}$); *N*,*N*-dimethylethanamide (+ triethylammonium chloride).

**Exercise 24.3 ★.**

Write the [saponification](#def-b2-acyl-substitution-saponification) of methyl benzoate by sodium hydroxide and compute the mass of sodium hydroxide needed for $13.6\,\mathrm{g}$ of the ester.

**Solution of Exercise 24.3.**

$\ce{C6H5COOCH3 + NaOH -> C6H5COONa + CH3OH}$. $13.6/136.15 = 0.0999\,\mathrm{mol}$, as much $\ce{NaOH}$: $4.00\,\mathrm{g}$.

**Exercise 24.4 ★.**

Draw the [lactone](#def-b2-acyl-substitution-lactone) formed by 4-hydroxybutanoic acid and give the size of its ring.

**Solution of Exercise 24.4.**

$\gamma$-Butyrolactone (oxolan-2-one): a five-membered ring of four carbons and one oxygen.

**Exercise 24.5 ★★.**

Write the mechanism of the reaction of ethyl ethanoate with ammonia.

**Solution of Exercise 24.5.**

Ammonia adds to the carbonyl carbon; a proton moves from the nitrogen to the oxygen (or to the leaving group); ethoxide (as ethanol, after proton transfer) leaves and the $\ce{C=O}$ reforms: ethanamide and ethanol.

**Exercise 24.6 ★★.**

Aspirin is made from salicylic acid (2-hydroxybenzoic acid) and ethanoic anhydride. Which group of salicylic acid reacts, and what is the by-product?

**Solution of Exercise 24.6.**

The phenolic $\ce{OH}$ is acylated (acid catalysis): 2-acetoxybenzoic acid; by-product ethanoic acid.

**Exercise 24.7 ★★.**

Ethyl ethanoate is treated with excess methylmagnesium bromide, then with dilute acid. Give the product and explain why the ketone cannot be isolated.

**Solution of Exercise 24.7.**

2-Methylpropan-2-ol. The first addition gives propanone, more electrophilic than the ester, which takes the second methyl at once.

**Exercise 24.8 ★★.**

Give the product of the reduction of the [lactone](#def-b2-acyl-substitution-lactone) of exercise 4 by $\ce{LiAlH4}$.

**Solution of Exercise 24.8.**

Butane-1,4-diol: the ester is reduced to two primary alcohols, the ring being opened.

**Exercise 24.9 ★★.**

With $K = 4$, compute the fraction of ethanoic acid esterified with one, then with three equivalents of ethanol. Which other method drives the reaction?

**Solution of Exercise 24.9.**

One equivalent: $x^2/(1 - x)^2 = 4$, $x = 2/3$. Three equivalents: $x^2/[(1 - x)(3 - x)] = 4$, $3x^2 - 16x
+ 12 = 0$, $x = 0.90$. Removing the water as it forms (Dean–Stark) drives it further.

**Exercise 24.10 ★★★.**

Prepare *N*,*N*-diethylbenzamide from benzoic acid, and explain why mixing the acid with diethylamine and heating mildly gives a salt instead.

**Solution of Exercise 24.10.**

$\ce{SOCl2}$ gives benzoyl chloride; with two equivalents of diethylamine (or one plus triethylamine) it gives the amide. Acid and amine mixed directly undergo an acid–base reaction: diethylammonium benzoate, which gives the amide only on strong heating.

**Exercise 24.11 ★★★.**

The [saponification](#def-b2-acyl-substitution-saponification) value of a fat is the mass of potassium hydroxide, in mg, needed to saponify $1\,\mathrm{g}$ of it. Compute it for triolein ($885.4\,\mathrm{g}/\mathrm{mol}$; KOH $56.11\,\mathrm{g}/\mathrm{mol}$).

**Solution of Exercise 24.11.**

Three KOH per triolein: $3 \times 56.11/885.4 = 0.190\,\mathrm{g}$ per gram, a [saponification](#def-b2-acyl-substitution-saponification) value of 190.

**Exercise 24.12 ★★★.**

A molecule carries an ester, an amide and a ketone. Which group(s) does $\ce{NaBH4}$ reduce, and which $\ce{LiAlH4}$? What do you obtain in each case?

**Solution of Exercise 24.12.**

$\ce{NaBH4}$: only the ketone, to a secondary alcohol. $\ce{LiAlH4}$: the ketone to the secondary alcohol, the ester to a primary alcohol (and releases the alcohol part), the amide to an amine.

## 24.7 Problem: Biodiesel from Frying Oil

**Problem 24.1.**

Weekend problem — triolein and its molar mass, its transesterification with methanol and the role of the base, the side reaction with free acids and water, and the yields per tonne of oil

Model the oil as pure triolein, the triglyceride of oleic acid ($\ce{C17H33COOH}$). Molar masses ($\mathrm{g}/\mathrm{mol}$): C 12.011, H 1.008, O 15.999, Na 22.990. Glycerol is propane-1,2,3-triol.

**Part I — Triolein.**

1. Give the formula of oleic acid and of glycerol.
2. Write the formula of triolein and compute its molar mass.
3. How many ester groups does it contain?
4. Oleic acid has one cis double bond. Why are oils rich in it liquid at room temperature?
5. What would [saponification](#def-b2-acyl-substitution-saponification) of triolein give?
6. What is biodiesel, chemically?

**Part II — [Transesterification](#def-b2-acyl-substitution-transesterification).**

7. Write the [transesterification](#def-b2-acyl-substitution-transesterification) of triolein with methanol.
8. Why is a base (sodium methoxide or hydroxide) used as catalyst?
9. Draw the [tetrahedral intermediate](#def-b2-acyl-substitution-nas) of the first exchange.
10. Why is methanol used in excess (six equivalents rather than three)?
11. Glycerol is not miscible with the methyl esters. How does this help?
12. Is the catalyst consumed in the ideal reaction?

**Part III — Free acids and water.**

13. Used frying oil contains free oleic acid. What does it do to the base?
14. What does water do to the methyl esters in the presence of the base?
15. Why is the soap formed a nuisance?
16. How can the free acids be removed first, without base?
17. Why must the oil be dried before the reaction?

**Part IV — Per tonne of oil.**

18. Compute the amount of triolein in one tonne.
19. Compute the mass of methanol consumed.
20. Compute the mass of methyl oleate formed.
21. Check the conservation of mass.
22. An oil with 2 % free oleic acid by mass is treated with sodium hydroxide: compute the mass of sodium hydroxide consumed by the acid per tonne.
23. Compute the mass of glycerol co-produced per tonne of triolein.

**Solution of Problem 24.1.**

**1.** Oleic acid $\ce{C18H34O2}$; glycerol $\ce{C3H8O3}$. **2.** $\ce{C57H104O6}$: $57 \times 12.011 + 104 \times 1.008 + 6 \times 15.999 = 885.45\,\mathrm{g}/\mathrm{mol}$. **3.** Three. **4.** The cis double bond kinks the chains, which pack poorly: weak intermolecular forces, a low melting point. **5.** Glycerol and three sodium oleate, a soap. **6.** A mixture of methyl esters of fatty acids. **7.** $\ce{C57H104O6 + 3CH3OH -> C3H8O3 + 3C19H36O2}$. **8.** The methoxide ion, formed from methanol and the base, is a far stronger nucleophile than methanol; it attacks the ester carbonyls. **9.** The carbonyl carbon of one ester group bearing $\ce{O-}$, the $\ce{OCH3}$ of methoxide and the glyceryl oxygen: tetrahedral. **10.** [Transesterification](#def-b2-acyl-substitution-transesterification) is an equilibrium with a constant near 1; excess methanol shifts it towards the methyl esters. **11.** Glycerol separates as a lower layer: removing a product drives the equilibrium. **12.** No: methoxide is regenerated in each exchange. **13.** It neutralises the base, giving sodium oleate (soap): the catalyst is consumed. **14.** It saponifies them: hydroxide (from water and methoxide) cuts the esters to soap and methanol, irreversibly. **15.** It consumes base, emulsifies the mixture and prevents the glycerol layer from separating. **16.** By an acid-catalysed [esterification](#def-b2-acyl-substitution-esterification) with methanol first, which turns the free acids into methyl esters. **17.** Water hydrolyses esters and converts the catalyst into hydroxide, which saponifies. **18.** $10^6/885.45 = 1129\,\mathrm{mol}$. **19.** $3 \times 1129 \times 32.04 = 108.6\,\mathrm{kg}$. **20.** $3 \times 1129 \times 296.50 = 1004.6\,\mathrm{kg}$. **21.** $1000 + 108.6 = 1108.6\,\mathrm{kg}$ in; $104.0 + 1004.6 = 1108.6\,\mathrm{kg}$ out. **22.** $20\,\mathrm{kg}$ of oleic acid, $20\,000/282.47 = 70.8\,\mathrm{mol}$, as much $\ce{NaOH}$: $2.83\,\mathrm{kg}$. **23.** $1129 \times 92.09 = \boldsymbol{\approx 104\,\mathrm{kg}}$ of glycerol per tonne.
