Part III: Functional Group Chemistry | Chapter 3

Amines & Nitrogen Chemistry

Amine basicity and pKa trends, nucleophilic substitution, reductive amination, Hofmann elimination, diazonium chemistry, and Sandmeyer reactions

1. Introduction to Amines

Amines are organic derivatives of ammonia in which one or more hydrogen atoms have been replaced by carbon-containing substituents. They are classified by the number of carbon groups attached to nitrogen: primary (RNH$_2$), secondary (R$_2$NH), and tertiary (R$_3$N). A quaternary ammonium salt (R$_4$N$^+$) bears four carbon groups and carries a permanent positive charge.

Amines are ubiquitous in biology โ€” they appear in amino acids, neurotransmitters (dopamine, serotonin, acetylcholine), nucleotide bases, alkaloids (morphine, quinine, caffeine), and countless pharmaceutical agents. The nitrogen lone pair is the key to their reactivity: it makes amines both basic (proton acceptors) and nucleophilic (electron pair donors to electrophilic carbon).

Structural Features of Amines

  • Geometry: Nitrogen in amines is sp$^3$ hybridized with a pyramidal geometry (bond angles $\approx 107^\circ$)
  • Inversion: Amines undergo rapid nitrogen inversion (barrier $\approx 25$ kJ/mol), interconverting enantiomeric pyramidal forms
  • Hydrogen bonding: Primary and secondary amines are both H-bond donors and acceptors; tertiary amines are acceptors only
  • Boiling points: Primary $>$ secondary $>$ tertiary (due to decreasing H-bonding ability)

2. Amine Basicity โ€” pKa Trends and Derivation

The basicity of an amine is quantified by the p$K_a$ of its conjugate acid (the ammonium ion). A higher p$K_\text{aH}$ means a stronger base (the conjugate acid is weaker, so the amine holds onto the proton less readily and is more willing to accept one):

$$\text{R-NH}_3^+ \rightleftharpoons \text{R-NH}_2 + \text{H}^+ \qquad K_a = \frac{[\text{R-NH}_2][\text{H}^+]}{[\text{R-NH}_3^+]}$$
$$pK_\text{aH} = -\log K_a \qquad pK_b = 14 - pK_\text{aH}$$

Factors Affecting Basicity

1. Alkyl substituent effects (induction and solvation): In the gas phase, basicity increases monotonically with alkyl substitution: R$_3$N $>$ R$_2$NH $>$ RNH$_2$ $>$ NH$_3$. This is because alkyl groups are electron-donating (inductive effect), stabilizing the positive charge on the ammonium ion. However, in aqueous solution, solvation effects complicate the picture: more substituted ammonium ions have fewer Nโ€“H bonds for hydrogen bonding with water, reducing the solvation stabilization of the cation.

The net result in water is that secondary amines are typically the most basicaliphatic amines, with the order: R$_2$NH $\gtrsim$ RNH$_2$ $>$ R$_3$N $>$ NH$_3$.

Representative pK$_\text{aH}$ Values

  • NH$_3$: p$K_\text{aH}$ = 9.25
  • CH$_3$NH$_2$ (methylamine): p$K_\text{aH}$ = 10.66
  • (CH$_3$)$_2$NH (dimethylamine): p$K_\text{aH}$ = 10.73
  • (CH$_3$)$_3$N (trimethylamine): p$K_\text{aH}$ = 9.81
  • Aniline (C$_6$H$_5$NH$_2$): p$K_\text{aH}$ = 4.63 (much weaker base due to resonance)
  • Pyridine: p$K_\text{aH}$ = 5.25
  • Guanidine: p$K_\text{aH}$ = 13.6 (very strong base, stabilized by Y-delocalization)

2. Resonance effects: When the nitrogen lone pair is delocalized into an adjacent $\pi$ system, basicity decreases dramatically. Aniline (p$K_\text{aH}$ = 4.63) is $\sim 10^6$ times less basic than cyclohexylamine (p$K_\text{aH}$ = 10.7) because the lone pair participates in resonance with the aromatic ring:

$$\text{PhNH}_2 \longleftrightarrow \text{Ph}=\text{N}^+\text{H}_2^{\ -} \quad \text{(resonance delocalization)}$$

The free energy relationship between p$K_\text{aH}$ and the Hammett substituent constant $\sigma$ provides a quantitative framework:

$$pK_\text{aH} = pK_\text{aH}^0 - \rho \cdot \sigma$$

For anilines, $\rho \approx 2.9$, meaning electron-withdrawing substituents on the ring significantly reduce basicity.

3. Hybridization effects: The basicity order for nitrogen in different hybridization states is: sp$^3$ $>$ sp$^2$ $>$ sp. An sp-hybridized nitrogen (as in a nitrile, Rโ€“C$\equiv$N) has its lone pair in an orbital with more s character, holding it closer to the nucleus and making it less available for protonation.

3. Nucleophilic Substitution on Amines โ€” Alkylation

Amines are nucleophiles and react with alkyl halides via S$_\text{N}$2 substitution. However, amine alkylation suffers from a fundamental problem: overalkylation. Each successive alkylation produces an amine that is still nucleophilic, so the reaction does not stop cleanly at monoalkylation.

$$\text{RNH}_2 \xrightarrow{\text{R'X}} \text{R'RNH}_2^+ \xrightarrow{-\text{H}^+} \text{R'RNH} \xrightarrow{\text{R'X}} \text{R'}_2\text{RNH}^+ \xrightarrow{-\text{H}^+} \text{R'}_2\text{RN} \xrightarrow{\text{R'X}} \text{R'}_3\text{RN}^+$$

The product mixture typically contains primary, secondary, tertiary amines, and quaternary ammonium salts. This makes direct alkylation an impractical method for selective amine synthesis except in special cases (large excess of amine, or when the product precipitates).

The Gabriel Synthesis โ€” A Solution to Overalkylation

The Gabriel synthesis solves the overalkylation problem by using potassium phthalimide as a "protected" nitrogen nucleophile. Phthalimide is acidic (p$K_a \approx 8.3$) and forms a potassium salt that alkylates cleanly at nitrogen. Subsequent hydrazinolysis liberates the primary amine:

$$\text{Phth-NK} \xrightarrow{\text{R-X}} \text{Phth-NR} \xrightarrow{\text{NH}_2\text{NH}_2} \text{RNH}_2 + \text{Phth-hydrazide}$$

Because the phthalimide nitrogen has no lone pair available for further alkylation (both lone pairs are involved in the imide resonance), overalkylation cannot occur. The Gabriel synthesis is limited to primary amines and works best with primary alkyl halides (S$_\text{N}$2 conditions).

Exhaustive Methylation and Quaternization

While overalkylation is usually undesirable, quaternary ammonium salts are intentionally prepared by exhaustive alkylation with excess methyl iodide:

$$\text{RNH}_2 \xrightarrow{\text{excess CH}_3\text{I}} \text{R-N(CH}_3\text{)}_3^+\text{I}^-$$

Quaternary ammonium salts are used as phase-transfer catalysts, surfactants (e.g., cetyltrimethylammonium bromide, CTAB), and as intermediates in the Hofmann elimination.

4. Reductive Amination

Reductive amination is the most practical and selective method for synthesizing amines. It combines an aldehyde or ketone with an amine in the presence of a reducing agent, proceeding through an imine (or iminium ion) intermediate:

$$\text{R}_1\text{C=O} + \text{R}_2\text{NH}_2 \xrightarrow{-\text{H}_2\text{O}} \text{R}_1\text{C=NR}_2 \xrightarrow{[\text{H}]} \text{R}_1\text{CH}_2\text{-NHR}_2$$

Mechanism in Detail

  1. Nucleophilic addition: The amine nitrogen attacks the carbonyl carbon of the aldehyde/ketone, forming a carbinolamine (hemiaminal) intermediate.
  2. Dehydration: The carbinolamine loses water to form an imine (Schiff base) if the amine is primary, or an iminium ion if secondary. This step is acid-catalyzed and favored at pH 4โ€“5.
  3. Reduction: The C=N double bond is reduced by a hydride source (NaBH$_3$CN, NaBH(OAc)$_3$, or H$_2$/Pd) to give the amine product.

The equilibrium for imine formation from the amine and carbonyl compound can be written as:

$$K_{\text{imine}} = \frac{[\text{Imine}]}{[\text{Carbonyl}][\text{Amine}]} \cdot [\text{H}_2\text{O}]$$

The key to selectivity is the choice of reducing agent. Sodium cyanoborohydride (NaBH$_3$CN) is ideal because it reduces imines and iminium ions selectively over aldehydes and ketones at pH 6โ€“7. This selectivity arises because NaBH$_3$CN is a milder reducing agent than NaBH$_4$: the electron-withdrawing cyano group reduces the hydridic character of the Bโ€“H bonds.

pH Dependence

Reductive amination exhibits a pH optimum near pH 6โ€“7. At low pH, the amine is protonated (non-nucleophilic), preventing imine formation. At high pH, the imine protonation that activates it for reduction is suppressed. The fraction of amine present as the free base follows:

$$f_{\text{free base}} = \frac{1}{1 + 10^{(pK_\text{aH} - \text{pH})}}$$

And the fraction of imine that is protonated (activated for reduction) is:

$$f_{\text{iminium}} = \frac{1}{1 + 10^{(\text{pH} - pK_\text{aH,imine})}}$$

The overall rate is proportional to $f_{\text{free base}} \times f_{\text{iminium}}$, which peaks at a pH between the two p$K_a$ values.

5. Hofmann Elimination

The Hofmann elimination converts an amine to an alkene through exhaustive methylation followed by base-promoted elimination. The key feature is that it gives the less substituted (Hofmann) alkene as the major product, in contrast to the Zaitsev product normally favored in E2 eliminations.

The Three-Step Sequence

  1. Exhaustive methylation: The amine is treated with excess CH$_3$I to form a quaternary ammonium salt:
    $$\text{RCH}_2\text{CH}_2\text{NH}_2 \xrightarrow{\text{xs CH}_3\text{I}} \text{RCH}_2\text{CH}_2\text{N(CH}_3\text{)}_3^+\text{I}^-$$
  2. Ion exchange: The iodide counterion is exchanged for hydroxide by treatment with silver oxide (Ag$_2$O) in water:
    $$\text{R-N(CH}_3\text{)}_3^+\text{I}^- \xrightarrow{\text{Ag}_2\text{O, H}_2\text{O}} \text{R-N(CH}_3\text{)}_3^+\text{OH}^-$$
  3. Thermal elimination: Heating the quaternary ammonium hydroxide induces E2 elimination:
    $$\text{RCH}_2\text{CH}_2\text{N(CH}_3\text{)}_3^+\text{OH}^- \xrightarrow{\Delta} \text{RCH=CH}_2 + \text{N(CH}_3\text{)}_3 + \text{H}_2\text{O}$$

Why Hofmann Selectivity?

The Hofmann product (less substituted alkene) is favored because the trimethylammonium group ($\text{-N(CH}_3\text{)}_3^+$) is an extremely bulky leaving group. In the E2 transition state, the base (OH$^-$) preferentially abstracts the less sterically hindered proton, leading to the less substituted alkene.

Additionally, the quaternary ammonium group is a powerful electron-withdrawing group. In the transition state, the developing double bond wants to be as far as possible from this destabilizing positive charge, again favoring the terminal alkene. The transition state energy can be modeled as:

$$\Delta G^\ddagger_{\text{Hofmann}} < \Delta G^\ddagger_{\text{Zaitsev}} \quad \text{(for bulky leaving groups)}$$

This contrasts with typical E2 eliminations where the more substituted (Zaitsev) alkene is thermodynamically more stable and kinetically preferred with small leaving groups like bromide.

6. Diazonium Chemistry

Diazonium salts ($\text{ArN}_2^+$) are among the most versatile intermediates in aromatic chemistry. They are prepared by diazotization โ€” the treatment of a primary aromatic amine with nitrous acid (HNO$_2$) at 0โ€“5 $^\circ$C:

$$\text{ArNH}_2 + \text{NaNO}_2 + 2\text{HCl} \xrightarrow{0\text{-}5\,^\circ\text{C}} \text{ArN}_2^+\text{Cl}^- + \text{NaCl} + 2\text{H}_2\text{O}$$

Mechanism of Diazotization

The active electrophile is the nitrosonium ion (NO$^+$), generated in situ from nitrous acid under acidic conditions:

$$\text{HNO}_2 + \text{H}^+ \rightleftharpoons \text{H}_2\text{ONO}^+ \rightleftharpoons \text{NO}^+ + \text{H}_2\text{O}$$

The amine nitrogen attacks the nitrosonium ion, followed by a series of proton transfers and loss of water to give the diazonium ion. The overall transformation involves conversion of the $\text{-NH}_2$ group to $\text{-N}_2^+$:

$$\text{ArNH}_2 \xrightarrow{\text{NO}^+} \text{Ar-NH-N=O} \xrightarrow{-\text{H}_2\text{O}} \text{Ar-N=N}^+ \equiv \text{ArN}_2^+$$

Stability Considerations

Aromatic diazonium salts are reasonably stable at 0โ€“5 $^\circ$C due to resonance stabilization with the aromatic ring. The N$_2$ group is one of the best leaving groups known ($\text{N}_2$ is an exceptionally stable molecule,$\Delta G^\circ_f \approx 0$), making diazonium salts highly reactive toward nucleophilic substitution.

Aliphatic diazonium salts ($\text{RN}_2^+$) are far too unstable to isolate; they decompose immediately to carbocations with loss of N$_2$. This limits diazonium chemistry primarily to aromatic substrates.

Azo Coupling

Diazonium salts are weak electrophiles that undergo electrophilic aromatic substitution with highly activated aromatic rings (phenols, anilines) to form azo compounds:

$$\text{ArN}_2^+ + \text{Ar'OH} \longrightarrow \text{Ar-N=N-Ar'(OH)} \quad \text{(azo dye)}$$

Azo dyes are the largest class of synthetic dyes, accounting for over 60% of all commercial dyes. The extended conjugation through the $\text{-N=N-}$ linkage produces intense colors across the visible spectrum, tunable by substituent effects.

7. Sandmeyer Reactions

The Sandmeyer reaction converts arenediazonium salts to aryl halides, cyanides, or other functional groups using copper(I) salts as catalysts. This reaction provides a critical synthetic route to substituted aromatics that are difficult to access by direct electrophilic aromatic substitution.

Key Sandmeyer Transformations

  • Chlorination: ArN$_2^+$ + CuCl $\rightarrow$ ArCl + N$_2$ + Cu$^{2+}$
  • Bromination: ArN$_2^+$ + CuBr $\rightarrow$ ArBr + N$_2$ + Cu$^{2+}$
  • Cyanation: ArN$_2^+$ + CuCN $\rightarrow$ ArCN + N$_2$ + Cu$^{2+}$
  • Iodination (no Cu needed): ArN$_2^+$ + KI $\rightarrow$ ArI + N$_2$ + K$^+$
  • Hydroxylation: ArN$_2^+$ + H$_2$O $\xrightarrow{\Delta}$ ArOH + N$_2$ + H$^+$
  • Reduction to ArH: ArN$_2^+$ + H$_3$PO$_2$ $\rightarrow$ ArH + N$_2$ + H$_3$PO$_3$
  • Schiemann reaction: ArN$_2^+$BF$_4^-$ $\xrightarrow{\Delta}$ ArF + N$_2$ + BF$_3$

Mechanism of Sandmeyer Reactions

The Sandmeyer reaction proceeds through a radical mechanism involving Cu(I) as a single-electron transfer (SET) agent:

$$\text{Cu(I)} + \text{ArN}_2^+ \longrightarrow \text{Cu(II)} + \text{Ar}\cdot + \text{N}_2$$
$$\text{Ar}\cdot + \text{Cu(II)X} \longrightarrow \text{ArX} + \text{Cu(I)}$$

The Cu(I) is regenerated in the second step, making it catalytic. The aryl radical abstracts the halide (or CN) from Cu(II), forming the product and regenerating Cu(I). This radical mechanism explains why the reaction works with Cu(I) but not with free halide ions alone (which would require a different mechanism).

Synthetic Strategy: NH$_2$ as a Directing Group Surrogate

The combination of diazotization and Sandmeyer reaction allows the NH$_2$ group to serve as a "traceless" directing group. The powerful ortho/para-directing effect of the amino group can be exploited for electrophilic aromatic substitution, and then the NH$_2$ can be replaced by any of the groups accessible through Sandmeyer chemistry. For example, to prepare m-bromochlorobenzene:

  1. Start with aniline (PhNH$_2$)
  2. Brominate para to NH$_2$ (strong ortho/para director)
  3. Diazotize the NH$_2$ group
  4. Sandmeyer with CuCl to replace N$_2^+$ with Cl
  5. Product: p-bromochlorobenzene (otherwise difficult to obtain directly)

8. Hofmann Rearrangement and Curtius Rearrangement

The Hofmann rearrangement converts a primary amide to a primary amine with loss of one carbon (degradation). It proceeds through a nitrene intermediate:

$$\text{RCONH}_2 \xrightarrow{\text{Br}_2, \text{NaOH}} \text{RNH}_2 + \text{CO}_2$$

Mechanism

  1. N-Bromination: Base deprotonates the amide Nโ€“H, and the resulting anion attacks Br$_2$ to form an N-bromoamide.
  2. Second deprotonation: The N-bromoamide is deprotonated again by base to form an N-bromo anion.
  3. 1,2-Rearrangement: The alkyl group migrates from carbon to nitrogen with simultaneous loss of bromide, forming an isocyanate (Rโ€“N=C=O). This is the key step โ€” a concerted [1,2]-shift.
  4. Hydrolysis: The isocyanate reacts with water (or hydroxide) to form a carbamic acid, which spontaneously decarboxylates to the primary amine.
$$\text{R-N=C=O} \xrightarrow{\text{H}_2\text{O}} \text{R-NH-COOH} \xrightarrow{-\text{CO}_2} \text{R-NH}_2$$

The Curtius rearrangement is a closely related reaction that converts an acyl azide to an isocyanate upon heating. The acyl azide is prepared from an acid chloride and sodium azide:

$$\text{RCOCl} \xrightarrow{\text{NaN}_3} \text{RCON}_3 \xrightarrow{\Delta} \text{R-N=C=O} + \text{N}_2$$

The advantage of the Curtius rearrangement is that the isocyanate can be trapped with various nucleophiles: water gives amines, alcohols give carbamates (urethanes), and amines give ureas.

8b. Beckmann Rearrangement

The Beckmann rearrangement converts an oxime to an amide (or lactam) via an acid-catalyzed 1,2-shift. The group that migrates is anti to the hydroxyl group of the oxime:

$$\text{R}_1\text{R}_2\text{C=N-OH} \xrightarrow{\text{H}^+} \text{R}_1\text{-CO-NH-R}_2$$

The mechanism involves protonation of the hydroxyl oxygen, departure of water as a leaving group, simultaneous 1,2-migration of the anti alkyl group to the electron-deficient nitrogen, and trapping of the resulting nitrilium ion by water to give the amide after tautomerization.

Industrially, the Beckmann rearrangement of cyclohexanone oxime to $\varepsilon$-caprolactam is performed on a scale of millions of tons per year. Caprolactam is the monomer for nylon-6, produced by ring-opening polymerization:

$$\text{Cyclohexanone oxime} \xrightarrow{\text{H}_2\text{SO}_4} \varepsilon\text{-caprolactam} \xrightarrow{\Delta} \text{Nylon-6}$$

8c. Nitro Compounds, Nitriles, and Related Nitrogen Functions

Beyond amines, nitrogen appears in numerous other functional groups, each with distinctive reactivity:

Important Nitrogen Functional Groups

  • Nitro group (Rโ€“NO$_2$): Strongly electron-withdrawing; can be reduced to amines (Zn/HCl or catalytic H$_2$); $\alpha$-hydrogens are acidic (p$K_a \approx 17$)
  • Nitriles (Rโ€“C$\equiv$N): Hydrolyzed to carboxylic acids or amides; reduced to primary amines with LiAlH$_4$; react with Grignard reagents to give ketones
  • Isocyanates (Rโ€“N=C=O): Highly electrophilic; react with alcohols to give carbamates, with amines to give ureas, with water to give amines + CO$_2$
  • Azides (Rโ€“N$_3$): Reduced to amines; undergo Curtius rearrangement when acyl azides; click chemistry with alkynes
  • Imines (R$_2$C=NR'): Electrophilic at carbon; nucleophilic at nitrogen; key intermediates in reductive amination

The Henry reaction (nitroaldol) illustrates the utility of nitro compounds in synthesis. The $\alpha$-carbon of a nitroalkane is deprotonated by base, and the resulting nitronate anion adds to an aldehyde:

$$\text{RCH}_2\text{NO}_2 + \text{R'CHO} \xrightarrow{\text{base}} \text{R'CH(OH)CH(R)NO}_2$$

The nitro group can then be removed by the Nef reaction (conversion to a carbonyl) or reduced to an amine, providing versatile synthetic access to $\beta$-hydroxy carbonyl compounds or $\beta$-amino alcohols.

9. Enamine Chemistry โ€” The Stork Enamine Synthesis

Enamines are the nitrogen analogs of enols. They are formed by the condensation of a secondary amine with an aldehyde or ketone:

$$\text{R}_2\text{C=O} + \text{R'}_2\text{NH} \xrightarrow{-\text{H}_2\text{O}} \text{R}_2\text{C=C-NR'}_2$$

The nitrogen lone pair is conjugated with the C=C double bond, making the$\beta$-carbon nucleophilic. Enamines therefore serve as carbon nucleophiles in alkylation and acylation reactions, providing a mild alternative to enolate chemistry:

$$\text{Enamine} + \text{R-X} \longrightarrow \text{Iminium salt} \xrightarrow{\text{H}_3\text{O}^+} \alpha\text{-alkylated ketone}$$

The Stork enamine synthesis avoids the overalkylation problems of direct enolate alkylation because the intermediate iminium salt is not nucleophilic. Hydrolysis of the iminium salt releases the product ketone and regenerates the secondary amine. Pyrrolidine and morpholine are the most commonly used secondary amines for enamine formation because they give high yields and react cleanly.

9b. Protecting Groups for Amines

In multi-step synthesis, the nucleophilic nitrogen of amines often requires protection to prevent unwanted reactions. The ideal protecting group is easy to install, stable under the reaction conditions, and easy to remove selectively at the end.

Common Amine Protecting Groups

  • Boc (tert-butyloxycarbonyl): Installed with Boc$_2$O; removed with acid (TFA or HCl/dioxane). Widely used in peptide synthesis (Boc strategy).
  • Cbz (benzyloxycarbonyl): Installed with CbzCl; removed by catalytic hydrogenolysis (H$_2$/Pd). Orthogonal to Boc.
  • Fmoc (9-fluorenylmethyloxycarbonyl): Installed with FmocCl; removed with base (piperidine). The standard protecting group for solid-phase peptide synthesis (SPPS).
  • Acetyl (Ac): Installed with Ac$_2$O; removed with base or acid hydrolysis. Simple but not always selective.
  • Tosyl (Ts): Installed with TsCl; removed with Na/naphthalene or SmI$_2$. Very stable but harsh removal conditions.

The concept of orthogonality is central to protecting group strategy: two protecting groups are orthogonal if each can be removed independently without affecting the other. In peptide synthesis, the Boc/Cbz and Fmoc/tBu pairs are orthogonal, enabling selective deprotection at each step of the chain assembly.

The kinetics of deprotection follow first-order kinetics:

$$[\text{Protected}] = [\text{Protected}]_0 \cdot e^{-k_\text{deprot} t}$$

For practical purposes, at least 5 half-lives ($>97\%$ deprotection) are required for clean removal.

10. Python Simulation

The following simulation models (i) amine basicity as a function of Hammett substituent constants, (ii) pH-dependent reductive amination rates, and (iii) Hofmann vs. Zaitsev elimination selectivity. Uses numpy only (no scipy).

Python
script.py152 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server