Taylor series for local approximation. Lagrange multipliers for constrained optimization.
The Morse potential for a diatomic:
$$V(r) = D_e\left(1 - e^{-\beta(r-r_e)}\right)^2$$
But in introductory chemistry, you learned: $V(r) \approx \frac{1}{2}k(r - r_e)^2$
Why does the simple harmonic approximation work?
Answer: Near the minimum, ANY smooth function looks like a parabola. Taylor series tells us exactly how good the approximation is.
If f is smooth, we can approximate it near x = a using its derivatives at a:
$$f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{3!}(x-a)^3 + \cdots$$
Each term captures more detail about how f behaves near a.
Near a minimum, ANY potential V(r) can be expanded:
$$V(r) = V(r_e) + \underbrace{V'(r_e)}_{=0}(r-r_e) + \frac{V''(r_e)}{2}(r-r_e)^2 + \frac{V'''(r_e)}{6}(r-r_e)^3 + \cdots$$
At a minimum, V'(re) = 0, so:
$$V(r) \approx \frac{1}{2}k(r-r_e)^2 \quad \text{where } k = V''(r_e)$$
This is why the harmonic oscillator approximation works near equilibrium!
From Taylor series:
| Function | Approximation | Valid for |
|---|---|---|
| sin θ | θ | θ < 15° (~1% error) |
| cos θ | 1 − θ²/2 | θ < 30° |
| tan θ | θ | θ < 15° |
You want to maximize entropy:
$$S = -k_B \sum_i p_i \ln p_i$$
But there's a constraint — probabilities must sum to 1: $\sum_i p_i = 1$
You can't just set ∂S/∂pi = 0. The constraint couples everything together.
Lagrange multipliers handle optimization with constraints.
At a constrained extremum:
$$\nabla f = \lambda \nabla g$$
for some scalar λ (the Lagrange multiplier)
Step 1: Form the Lagrangian: $\mathcal{L}(x, y, \lambda) = f(x, y) - \lambda(g(x, y) - c)$
Step 2: Set all partials to zero: $\frac{\partial \mathcal{L}}{\partial x} = \frac{\partial \mathcal{L}}{\partial y} = \frac{\partial \mathcal{L}}{\partial \lambda} = 0$
Step 3: Solve the system of equations
Step 4: Evaluate f at each critical point to find max/min
Maximize: S = −kB ∑ pi ln pi
Subject to:
Result:
$$p_i = \frac{e^{-E_i/k_BT}}{Z}$$
The Boltzmann distribution maximizes entropy subject to fixed average energy!
The Lagrange multiplier tells you the sensitivity of the optimum to the constraint:
$$\lambda = \frac{d f^*}{d c}$$
where f* is the optimal value.
Example: In entropy maximization, β = 1/T. The multiplier associated with the energy constraint is the inverse temperature!
| Use | Formula |
|---|---|
| Approximate f(x) near a | f(a) + f'(a)(x−a) + f''(a)(x−a)²/2 + ... |
| Linearize | First-order term only |
| Harmonic approximation | Second-order at potential minimum |
| Small angles | sin θ ≈ θ, cos θ ≈ 1 |
| Step | Action |
|---|---|
| 1 | Form L = f − λ(g − c) |
| 2 | Set ∂L/∂x = ∂L/∂y = ∂L/∂λ = 0 |
| 3 | Solve the system |
| 4 | λ = sensitivity of optimum to constraint |