Here’s a step-by-step outline of how most quantum-chemistry packages compute vibrational (IR) spectra at the DFT level:
-
Born–Oppenheimer & Harmonic Approximation
• We assume electronic and nuclear motions separate (Born–Oppenheimer).
• The potential energy surface (PES) near the equilibrium geometry is approximated as a quadratic Taylor expansion (harmonic oscillator).
-
Geometry Optimization
• Find the minimum‐energy geometry R₀ by solving ∂E/∂R = 0.
• At R₀, you’ll compute second derivatives of the energy w.r.t. nuclear displacements.
-
Constructing the Hessian
• The Hessian matrix H (in Cartesian coordinates) has elements
Hᵢⱼ = ∂²E / ∂xᵢ ∂xⱼ ∣{R₀}
• Two common ways to get H:
– Analytic second derivatives (available for many functionals/basis sets)
– Numerical differentiation of analytic gradients:
∂²E/∂xᵢ∂xⱼ ≈ [∂E/∂xᵢ|{xⱼ+Δ} – ∂E/∂xᵢ|_{xⱼ–Δ}] / (2Δ)
-
Mass‐Weighting & Diagonalization
• Convert to mass‐weighted coordinates qᵢ = √mᵢ ⋅ xᵢ so that nuclear masses are “built in.”
• Define the mass‐weighted Hessian Fᵢⱼ = Hᵢⱼ / √(mᵢ mⱼ).
• Solve the secular equation
F · L = L · Λ
– L is the matrix of normal‐mode eigenvectors
– Λ = diag(λ₁,λ₂,…λ₃N–6) are the eigenvalues
-
Frequencies from Eigenvalues
• Each eigenvalue λₖ = ωₖ² (in atomic units)
• Convert to wavenumbers (cm⁻¹):
νₖ = ωₖ · (hartree→cm⁻¹ conversion factor)¹ᐟ²
• Discard the six zero (or near-zero) roots for overall translation/rotation.
-
IR Intensities via Dipole Derivatives
• IR intensity of mode k ∝ |∂μ/∂Qₖ|², where μ is the molecular dipole.
• Compute the derivative either analytically or by finite differences of μ:
∂μ_α/∂Qₖ = Σᵢ (∂μ_α/∂xᵢ) Lᵢₖ / √mᵢ
• In SI‐like units the “integrated cross‐section” Iₖ is often given by:
Iₖ = (πN_A)/(3c²) ∑_{α=x,y,z} (∂μ_α/∂Qₖ)²
-
Simulating the Spectrum
• Assign each mode k a stick at νₖ with height ∝ Iₖ.
• Convolute sticks with a lineshape (Gaussian or Lorentzian) to mimic experimental broadening.
• Optionally apply a scaling factor (∼0.95–0.99) to harmonic ν’s to account for anharmonicity.
—
Putting it all together, the workflow in pseudocode is:
# 1. Optimize geometry R0
R0 = optimize_geometry(DFT functional, basis)
# 2. Compute Hessian H at R0
H = compute_hessian(R0) # analytic or finite‐difference
# 3. Mass‐weight and diagonalize
F = mass_weight(H, masses)
{ω², L} = diagonalize(F)
# 4. Frequencies in cm⁻¹
ν = sqrt(ω²) * conversion_factor
# 5. Dipole‐derivative for IR intensities
dμ_dQ = compute_dipole_derivatives(R0, L, masses)
I = prefactor * sum_over_xyz(dμ_dQ²)
# 6. Generate spectrum
spectrum = stick_spectrum(ν, I)
spectrum = broaden(spectrum, lineshape, width)
That’s essentially how DFT codes turn your molecular structure into a set of νₖ (cm⁻¹) and Iₖ (intensities)—your infrared spectrum!