Part II: Reaction Mechanisms | Chapter 1

Nucleophilic Substitution Reactions (SN1 & SN2)

A rigorous treatment of bimolecular and unimolecular nucleophilic substitution at spÂł carbon, including mechanistic derivations, stereochemical outcomes, solvent effects, nucleophilicity parameters, and leaving group correlations.

1. Introduction: Substitution at spÂł Carbon

Nucleophilic substitution is one of the most fundamental reaction types in organic chemistry. In these reactions, a nucleophile (an electron-rich species) replaces a leaving group bonded to an spÂł-hybridized carbon. The general transformation is:

$\text{Nu}^{-} + \text{R-LG} \longrightarrow \text{Nu-R} + \text{LG}^{-}$

Two limiting mechanisms describe this transformation. The SN2 mechanism is a concerted, one-step process where bond formation and bond breaking occur simultaneously. The SN1 mechanism is a two-step process involving prior ionization to form a carbocation intermediate, followed by nucleophilic capture.

The "S" stands for substitution, "N" for nucleophilic, and the numeral (1 or 2) denotes the molecularity of the rate-determining step — that is, how many species appear in the transition state of the slow step.

Understanding which mechanism operates for a given substrate requires analyzing steric effects, electronic effects, solvent polarity, nucleophile strength, and leaving group ability. This chapter derives the kinetic rate laws, stereochemical predictions, and thermodynamic factors that govern each pathway.

2. Derivation 1: The SN2 Mechanism

2.1 Bimolecular Rate Law

The SN2 reaction is bimolecular: both the nucleophile and the substrate appear in the rate-determining (and only) transition state. Experimentally, the rate depends on the concentration of both species:

$\text{rate} = k_2 [\text{Nu}^{-}][\text{R-X}]$

This second-order rate law (first order in each reactant) is the defining kinetic signature of SN2. Doubling either the nucleophile or substrate concentration doubles the rate. Doubling both quadruples it.

2.2 Transition State Theory Derivation

From Eyring's transition state theory (TST), the rate constant for any elementary reaction is:

$k = \frac{k_B T}{h} \exp\!\left(-\frac{\Delta G^{\ddagger}}{RT}\right)$

where $k_B$ is Boltzmann's constant, $T$ is temperature, $h$ is Planck's constant, and $\Delta G^{\ddagger}$ is the Gibbs free energy of activation. For the SN2 reaction, the activated complex is a pentacoordinate species:

$\text{Nu}^{-} + \text{R-X} \rightleftharpoons{K^{\ddagger}} [\text{Nu} \cdots \text{R} \cdots \text{X}]^{\ddagger} \longrightarrow \text{Nu-R} + \text{X}^{-}$

The pseudo-equilibrium constant for forming the transition state is:

$K^{\ddagger} = \frac{[\text{TS}]}{[\text{Nu}^{-}][\text{R-X}]} = \exp\!\left(-\frac{\Delta G^{\ddagger}}{RT}\right)$

The rate of product formation equals the frequency of barrier crossing times the transition state concentration:

$\text{rate} = \frac{k_B T}{h} [\text{TS}] = \frac{k_B T}{h} K^{\ddagger} [\text{Nu}^{-}][\text{R-X}]$

Therefore the second-order rate constant is:

$k_2 = \frac{k_B T}{h} \exp\!\left(-\frac{\Delta G^{\ddagger}}{RT}\right)$

Expanding $\Delta G^{\ddagger} = \Delta H^{\ddagger} - T \Delta S^{\ddagger}$ gives the Eyring equation. For SN2, the activation entropy $\Delta S^{\ddagger}$ is typically large and negative (around $-80$ to $-120 \;\text{J mol}^{-1}\text{K}^{-1}$) because two particles combine into one transition state, losing translational freedom.

2.3 Backside Attack and Walden Inversion

The SN2 mechanism proceeds through backside attack: the nucleophile approaches the electrophilic carbon from the side opposite the leaving group. This geometry is dictated by orbital symmetry — the nucleophile's HOMO (highest occupied molecular orbital) must overlap with the $\sigma^{*}$ antibonding orbital of the C–X bond.

Orbital Picture

The HOMO of the nucleophile (e.g., a lone pair on $\text{HO}^{-}$) donates electron density into the $\sigma^{*}_{\text{C-X}}$ orbital, which has its larger lobe on the side opposite the leaving group. This HOMO → $\sigma^{*}$ interaction simultaneously forms the new Nu–C bond and breaks the C–X bond:

$\text{HOMO}(\text{Nu}^{-}) \;\longrightarrow\; \sigma^{*}(\text{C-X})$

The stereochemical consequence is Walden inversion (also called "inversion of configuration"). If the substrate carbon is a stereocenter, the product has the opposite configuration:

$(R)\text{-substrate} \xrightarrow{\text{S}_N 2} (S)\text{-product}$

This is analogous to an umbrella inverting in the wind — the three substituents flip to the opposite face as the nucleophile pushes through.

2.4 Steric Effects on SN2 Rates

Because the SN2 transition state is pentacoordinate, steric crowding at the reaction center dramatically raises $\Delta G^{\ddagger}$ and slows the reaction. The relative rates for alkyl bromides reacting with a common nucleophile are:

SubstrateStructureRelative Rate
Methyl$\text{CH}_3\text{Br}$30
Primary (1°)$\text{CH}_3\text{CH}_2\text{Br}$1.0
Secondary (2°)$(\text{CH}_3)_2\text{CHBr}$0.025
Tertiary (3°)$(\text{CH}_3)_3\text{CBr}$≈ 0

The trend is clear: methyl > 1° > 2° >> 3°. Tertiary substrates effectively do not undergo SN2 because the three bulky substituents block backside approach of the nucleophile. Each additional alkyl group on the reaction center introduces 1,3-diaxial-type steric interactions with the incoming nucleophile.

2.5 Energy Diagram: SN2

The SN2 energy profile has a single transition state and no intermediate. The reaction coordinate diagram shows reactants climbing directly to the pentacoordinate transition state, then descending to products. The height of the barrier ($\Delta G^{\ddagger}$) determines the rate. For an exergonic SN2 reaction, the products lie lower in energy than the reactants ($\Delta G^{\circ} < 0$).

3. Derivation 2: The SN1 Mechanism

3.1 Unimolecular Rate Law

The SN1 reaction is unimolecular: only the substrate appears in the rate-determining step. The experimental rate law is first order:

$\text{rate} = k_1 [\text{R-X}]$

The rate does not depend on nucleophile concentration. This is the defining kinetic signature of SN1 and tells us the nucleophile is not involved in the rate-determining step.

3.2 Two-Step Mechanism

The SN1 mechanism proceeds in two distinct steps:

Step 1 (slow, rate-determining): Ionization

$\text{R-X} \xrightarrow{k_1} \text{R}^{+} + \text{X}^{-}$

Step 2 (fast): Nucleophilic capture

$\text{R}^{+} + \text{Nu}^{-} \xrightarrow{k_2} \text{Nu-R}$

3.3 Steady-State Derivation of the Rate Law

We can rigorously derive the SN1 rate law using the steady-state approximation on the carbocation intermediate $\text{R}^{+}$. The full mechanism includes the reverse of step 1:

$\text{R-X} \underset{k_{-1}}{\overset{k_1}{\rightleftharpoons}} \text{R}^{+} + \text{X}^{-}$

$\text{R}^{+} + \text{Nu}^{-} \xrightarrow{k_2} \text{Nu-R}$

Applying the steady-state approximation to $[\text{R}^{+}]$:

$\frac{d[\text{R}^{+}]}{dt} = k_1[\text{R-X}] - k_{-1}[\text{R}^{+}][\text{X}^{-}] - k_2[\text{R}^{+}][\text{Nu}^{-}] = 0$

Solving for $[\text{R}^{+}]$:

$[\text{R}^{+}] = \frac{k_1[\text{R-X}]}{k_{-1}[\text{X}^{-}] + k_2[\text{Nu}^{-}]}$

The rate of product formation is:

$\text{rate} = k_2[\text{R}^{+}][\text{Nu}^{-}] = \frac{k_1 k_2 [\text{R-X}][\text{Nu}^{-}]}{k_{-1}[\text{X}^{-}] + k_2[\text{Nu}^{-}]}$

Now we apply the SN1 limiting condition: the nucleophilic capture step is much faster than recombination with $\text{X}^{-}$, i.e., $k_2[\text{Nu}^{-}] \gg k_{-1}[\text{X}^{-}]$. The denominator simplifies:

$\text{rate} \approx \frac{k_1 k_2 [\text{R-X}][\text{Nu}^{-}]}{k_2[\text{Nu}^{-}]} = k_1[\text{R-X}]$

The nucleophile concentration cancels, yielding the characteristic first-order rate law. This is the mathematical proof that when ionization is rate-determining, the observed rate depends only on substrate concentration.

3.4 Carbocation Stability and Substrate Effects

Since the rate-determining step of SN1 is carbocation formation, anything that stabilizes the carbocation lowers $\Delta G^{\ddagger}$ and accelerates the reaction. By Hammond's postulate, the transition state for an endergonic ionization step resembles the carbocation intermediate. The stability order is:

$\text{3}^{\circ} > \text{2}^{\circ} > \text{1}^{\circ} > \text{methyl}$

This ordering arises from hyperconjugation: adjacent C–H $\sigma$ bonding orbitals donate electron density into the empty p orbital on the carbocation center. More alkyl groups provide more hyperconjugative stabilization:

$\sigma_{\text{C-H}} \;\longrightarrow\; p^{+}_{\text{empty}}$

Additionally, alkyl groups are weakly electron-donating by induction, further stabilizing the positive charge. The combined effect means tertiary substrates are approximately $10^3$–$10^6$ times more reactive in SN1 than primary substrates.

3.5 Stereochemistry: Racemization

The carbocation intermediate is spÂČ-hybridized and planar. The nucleophile can attack from either face of the empty p orbital with roughly equal probability:

$\text{R}^{+}\text{ (planar)} + \text{Nu}^{-} \longrightarrow \begin{cases} (R)\text{-product} & (50\%) \\ (S)\text{-product} & (50\%) \end{cases}$

In practice, SN1 reactions at a stereocenter give predominantly racemization, though slight excess inversion is sometimes observed due to ion-pair effects — the departing leaving group partially shields one face of the carbocation (front-side shielding).

3.6 Energy Diagram: SN1

The SN1 energy profile has two transition states and a carbocation intermediate between them. The first transition state (ionization, the rate-determining step) has the highest energy. The intermediate sits in a local energy minimum. The second transition state (nucleophilic capture) is lower in energy. The overall barrier $\Delta G^{\ddagger}_1$ determines the observed rate.

4. Derivation 3: Solvent Effects (Hughes–Ingold Rules)

4.1 The Hughes–Ingold Framework

Edward D. Hughes and Christopher K. Ingold developed a systematic framework in the 1930s for predicting how solvent polarity affects substitution and elimination rates. The key principle is:

"An increase in solvent polarity accelerates reactions that develop charge in the transition state and decelerates reactions that disperse charge in the transition state."

4.2 Derivation: Solvation Free Energy Analysis

The observed rate constant depends on the difference in solvation free energy between the transition state and the reactants:

$\Delta G^{\ddagger}_{\text{solution}} = \Delta G^{\ddagger}_{\text{gas}} + \Delta G_{\text{solv}}(\text{TS}) - \Delta G_{\text{solv}}(\text{reactants})$

Case 1: SN1 (charge generation)

In SN1, the rate-determining step converts a neutral substrate into a transition state with developing positive and negative charges:

$\underbrace{\text{R-X}}_{\text{neutral}} \longrightarrow \underbrace{[\delta^{+}\text{R} \cdots \text{X}^{\delta^{-}}]^{\ddagger}}_{\text{charge developing}} \longrightarrow \text{R}^{+} + \text{X}^{-}$

The transition state is more polar than the reactants. Therefore:

$|\Delta G_{\text{solv}}(\text{TS})| > |\Delta G_{\text{solv}}(\text{reactants})|$

In a more polar solvent, the transition state is preferentially stabilized relative to the reactants, lowering $\Delta G^{\ddagger}_{\text{solution}}$ and increasing the rate. Polar protic solvents (water, methanol, formic acid) are particularly effective because they stabilize both the cation and the anion through hydrogen bonding and electrostatic interactions.

Case 2: SN2 (charge dispersal)

In the typical SN2 case (anionic nucleophile + neutral substrate), the charge is localized on the nucleophile in the reactants but dispersed across two atoms in the transition state:

$\underbrace{\text{Nu}^{-}}_{\text{localized charge}} + \text{R-X} \longrightarrow \underbrace{[\text{Nu}^{\delta^{-}} \cdots \text{R} \cdots \text{X}^{\delta^{-}}]^{\ddagger}}_{\text{dispersed charge}} \longrightarrow \text{Nu-R} + \text{X}^{-}$

Here the reactant anion has a larger solvation energy than the diffuse transition state. In polar protic solvents, the nucleophile is tightly solvated by hydrogen bonds, which must be partially stripped away to reach the transition state. This raises the effective barrier:

$\Delta G^{\ddagger}_{\text{protic}} = \Delta G^{\ddagger}_{\text{gas}} + \underbrace{\Delta G_{\text{solv}}(\text{TS})}_{\text{smaller}} - \underbrace{\Delta G_{\text{solv}}(\text{Nu}^{-})}_{\text{larger (more negative)}}$

Switching to a polar aprotic solvent (DMSO, DMF, acetonitrile, acetone) changes the picture. These solvents dissolve salts but cannot hydrogen-bond to anions. The nucleophile is poorly solvated — essentially "naked" — making it far more reactive:

$k_{\text{SN2}}(\text{DMSO}) \gg k_{\text{SN2}}(\text{MeOH})$

Rate enhancements of $10^3$ to $10^6$ are typical when switching from protic to aprotic solvents for SN2 reactions.

4.3 Summary of Hughes–Ingold Rules

MechanismCharge ChangePolar ProticPolar Aprotic
SN1GenerationFasterModerate
SN2 (NuÂč⁻)DispersalSlowerFaster

5. Derivation 4: Nucleophilicity vs Basicity

5.1 Kinetic vs Thermodynamic Measures

Nucleophilicity is a kinetic property: it measures the rate at which a Lewis base attacks an electrophilic carbon. It is quantified by how fast the species reacts in an SN2 displacement.

Basicity is a thermodynamic property: it measures the equilibrium affinity for a proton, quantified by $\text{p}K_a$ of the conjugate acid.

$\text{Nucleophilicity:} \quad \text{Nu}^{-} + \text{CH}_3\text{-X} \xrightarrow{k_{\text{Nu}}} \text{products} \quad (\text{rate-based})$

$\text{Basicity:} \quad \text{B}^{-} + \text{H}^{+} \rightleftharpoons \text{BH} \quad (K_a\text{-based})$

These two properties often correlate but can diverge. For example, $\text{I}^{-}$ is a weak base ($\text{p}K_a(\text{HI}) \approx -10$) but an excellent nucleophile because of its large, polarizable electron cloud.

5.2 The Swain–Scott Equation

In 1953, C. Gardner Swain and Carleton B. Scott proposed a linear free-energy relationship to quantify nucleophilicity. They defined a nucleophilicity parameter $n$ for each nucleophile by measuring its rate relative to water attacking methyl bromide:

$\log\!\left(\frac{k_{\text{Nu}}}{k_{\text{H}_2\text{O}}}\right) = s \cdot n$

where:

  • ●$k_{\text{Nu}}$ = rate constant for the nucleophile of interest
  • ●$k_{\text{H}_2\text{O}}$ = rate constant for water (the reference nucleophile, $n = 0$)
  • ●$n$ = nucleophilicity parameter (characteristic of the nucleophile)
  • ●$s$ = substrate sensitivity parameter ($s = 1.00$ for CH₃Br by definition)

5.3 Derivation from Free Energy

The Swain–Scott equation is a linear free-energy relationship (LFER). Starting from transition state theory:

$\ln k_{\text{Nu}} = \ln\!\left(\frac{k_B T}{h}\right) - \frac{\Delta G^{\ddagger}_{\text{Nu}}}{RT}$

$\ln k_{\text{H}_2\text{O}} = \ln\!\left(\frac{k_B T}{h}\right) - \frac{\Delta G^{\ddagger}_{\text{H}_2\text{O}}}{RT}$

Subtracting:

$\ln\!\left(\frac{k_{\text{Nu}}}{k_{\text{H}_2\text{O}}}\right) = -\frac{\Delta G^{\ddagger}_{\text{Nu}} - \Delta G^{\ddagger}_{\text{H}_2\text{O}}}{RT} = -\frac{\delta\Delta G^{\ddagger}}{RT}$

Converting to log base 10 and identifying $s \cdot n = -\delta\Delta G^{\ddagger} / (2.303\,RT)$:

$\log\!\left(\frac{k_{\text{Nu}}}{k_{\text{H}_2\text{O}}}\right) = s \cdot n$

The parameter $n$ thus encodes the differential stabilization of the transition state by the nucleophile relative to water. High $n$ values (e.g., $n \approx 5$ for I⁻, CN⁻, RS⁻) indicate powerful nucleophiles. The substrate sensitivity $s$ measures how responsive a given electrophilic center is to nucleophile quality.

5.4 Factors Affecting Nucleophilicity

Charge

Anions are stronger nucleophiles than their neutral counterparts:$\text{HO}^{-} \gg \text{H}_2\text{O}$ and $\text{NH}_2^{-} \gg \text{NH}_3$.

Polarizability

Larger atoms with more diffuse electron clouds form better overlap with $\sigma^{*}_{\text{C-X}}$. Down a column: $\text{I}^{-} > \text{Br}^{-} > \text{Cl}^{-} > \text{F}^{-}$ in protic solvents.

Electronegativity

Less electronegative atoms hold their electrons more loosely, making them better nucleophiles. Across a row: C > N > O > F.

Steric Effects

Bulky nucleophiles react more slowly even if strongly basic.$t$-BuO⁻ is a strong base but poor nucleophile due to steric bulk.

6. Derivation 5: Leaving Group Ability

6.1 Correlation with Conjugate Acid pKa

A good leaving group must be able to depart with the bonding electrons and stabilize itself as a free anion or neutral molecule. The key thermodynamic predictor is the pKa of the conjugate acid of the leaving group:

Good leaving groups are the conjugate bases of strong acids (low pKa).

The reasoning is straightforward: if HX is a strong acid (low pKa), then X⁻ is a stable, weak base that is thermodynamically comfortable bearing a negative charge. This same stability makes X⁻ a good leaving group because the C–X bond heterolysis produces a stable anion.

6.2 Derivation: Why I⁻ > Br⁻ > Cl⁻ > F⁻

For the halide leaving groups, we can derive the ordering from two physical factors: bond dissociation energies and solvation energies.

Factor 1: C–X Bond Strength

The enthalpy required to break the C–X bond heterolytically (in the gas phase) decreases as we go down the group:

BondBDE (kJ/mol)pKa(HX)
C–F4853.2
C–Cl339−7
C–Br285−9
C–I222−10

Weaker bonds (lower BDE) are easier to break. The C–I bond is the weakest because iodine's large atomic radius gives poor overlap with carbon's 2p orbital, producing a long, weak bond.

Factor 2: Solvation of X⁻

In solution, the leaving group anion must be stabilized by solvation. The total energy for leaving group departure is:

$\Delta G_{\text{departure}} = \text{BDE}(\text{C-X}) - \Delta G_{\text{solv}}(\text{X}^{-}) - \text{EA}(\text{X})$

where EA is the electron affinity of X. Although F⁻ has the largest solvation energy in protic solvents (due to its high charge density), this does not compensate for the very strong C–F bond. The net effect across the series is:

$\Delta G_{\text{departure}}(\text{I}^{-}) < \Delta G_{\text{departure}}(\text{Br}^{-}) < \Delta G_{\text{departure}}(\text{Cl}^{-}) < \Delta G_{\text{departure}}(\text{F}^{-})$

Therefore: I⁻ > Br⁻ > Cl⁻ > F⁻ as leaving groups. The bond strength factor dominates the trend. Fluoride is an exceptionally poor leaving group because the C–F bond is the strongest single bond to carbon.

6.3 Common Leaving Groups Ranked

Leaving GroupConjugate AcidpKaQuality
N₂ (diazonium)——Superb
OTs, OMsTsOH, MsOH−1 to −2Excellent
I⁻HI−10Excellent
Br⁻HBr−9Good
Cl⁻HCl−7Moderate
H₂OH₃Oâș−1.7Moderate
F⁻HF3.2Poor
HO⁻H₂O15.7Very poor

7. Applications

7.1 Williamson Ether Synthesis

The Williamson ether synthesis is a classic SN2 reaction used to prepare ethers from an alkoxide nucleophile and a primary alkyl halide:

$\text{R-O}^{-} + \text{R}'\text{-X} \xrightarrow{\text{S}_N 2} \text{R-O-R}' + \text{X}^{-}$

The alkoxide (strong nucleophile, strong base) attacks the primary or methyl halide via backside attack. The reaction must use primary or methyl halides to avoid elimination (E2) as a competing pathway with bulky alkoxides. For example, diethyl ether is synthesized from sodium ethoxide and ethyl bromide:

$\text{CH}_3\text{CH}_2\text{O}^{-}\text{Na}^{+} + \text{CH}_3\text{CH}_2\text{Br} \longrightarrow \text{CH}_3\text{CH}_2\text{-O-CH}_2\text{CH}_3 + \text{NaBr}$

7.2 Alkyl Halide Transformations

Nucleophilic substitution is the principal method for converting alkyl halides into other functional groups. By choosing different nucleophiles, a single alkyl halide can be transformed into alcohols, ethers, amines, nitriles, thiols, and more:

$\text{R-Br} + \text{NaOH} \longrightarrow \text{R-OH} + \text{NaBr} \quad \text{(alcohol)}$

$\text{R-Br} + \text{NaCN} \longrightarrow \text{R-CN} + \text{NaBr} \quad \text{(nitrile, extends C chain)}$

$\text{R-Br} + \text{NaN}_3 \longrightarrow \text{R-N}_3 + \text{NaBr} \quad \text{(azide)}$

$\text{R-Br} + \text{NaSH} \longrightarrow \text{R-SH} + \text{NaBr} \quad \text{(thiol)}$

The cyanide reaction is particularly valuable because it creates a new C–C bond, extending the carbon chain by one atom. The azide reaction is used extensively in "click chemistry" for bioconjugation.

7.3 Drug Metabolism: Glutathione Conjugation

In biochemistry, nucleophilic substitution plays a critical role in Phase II drug metabolism. The tripeptide glutathione (GSH, $\gamma$-Glu-Cys-Gly) acts as a biological nucleophile through its cysteine thiol group:

$\text{GS}^{-} + \text{R-X} \xrightarrow{\text{GST}} \text{GS-R} + \text{X}^{-}$

The enzyme glutathione S-transferase (GST) catalyzes this SN2 reaction, detoxifying electrophilic metabolites (including drug intermediates and epoxides) by conjugating them with glutathione. The thiolate $\text{GS}^{-}$ is an excellent nucleophile due to sulfur's high polarizability ($n \approx 5.1$ on the Swain–Scott scale).

This detoxification pathway is essential for clearing reactive electrophiles that would otherwise damage DNA and proteins. Genetic polymorphisms in GST enzymes contribute to individual variation in drug sensitivity and cancer susceptibility.

8. Historical Context

Ingold & Hughes (1930s)

Christopher K. Ingold and Edward D. Hughes at University College London established the mechanistic framework for nucleophilic substitution and elimination reactions. They introduced the SN1, SN2, E1, and E2 nomenclature that remains standard today, and developed the Hughes–Ingold solvent rules based on extensive kinetic studies of hundreds of reactions.

Saul Winstein (1950s–60s)

Winstein at UCLA discovered neighboring group participation and the concept of ion pairs as intermediates in SN1 reactions. He showed that the simple free carbocation model was incomplete: contact ion pairs, solvent-separated ion pairs, and free ions represent a continuum that explains the partial racemization and partial inversion often observed in SN1.

Swain & Scott (1953)

C. Gardner Swain and Carleton B. Scott at MIT introduced the quantitative nucleophilicity scale that bears their name. Their linear free-energy relationship provided the first systematic way to predict SN2 rates from nucleophile and substrate parameters, paralleling the Hammett equation for aromatic reactivity.

Paul von RaguĂ© Schleyer (1960s–2000s)

Schleyer used computational chemistry to challenge and refine the SN1/SN2 dichotomy. His work showed that many reactions have "borderline" mechanisms with characteristics of both pathways, and helped establish the modern view that SN1 and SN2 represent extremes on a mechanistic continuum.

Related Video Lectures

Nucleophiles, Electrophiles, and the SN2 Reaction

SN1 Reaction

Choosing Between SN1/SN2/E1/E2

9. Python Simulation: Energy Diagrams & Rate Comparisons

The simulation below generates three sets of plots: (1) SN1 vs SN2 reaction coordinate energy diagrams showing the contrasting energy profiles, (2) bar charts comparing relative rates for different substrate types under each mechanism, and (3) nucleophilicity parameters (Swain–Scott) and leaving group ability correlated with conjugate acid pKa.

Uses numpy only. No scipy.

Simulation

Python
script.py231 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server