# 4. IR and Raman spectra ## Infrared IR intensities (km/mol) are printed with every frequency calculation: the dipole derivatives are obtained together with the Hessian, analytically wherever the analytic Hessian is available (see {doc}`vibrations`). To get a spectrum, broaden the stick spectrum with Lorentzians; {doc}`Tutorial 3 <../tutorials/03_freq/index>` does this with the plotting tool shipped in `tutorials/tools/`. ## Raman `job: task: raman` (or `opt_raman`) runs the frequency analysis and then computes Raman activities in the double-harmonic, non-resonant approximation ([Porezag and Pederson 1996](#ref-porezag96); theory in [Long](#ref-long02)): the static polarizability $\alpha_{ij}=\partial\mu_i/\partial F_j$ is evaluated at geometries displaced by $\pm$`mode_step` along each normal mode, and its derivative gives the activity $S_k=45\bar a'^2+7\gamma'^2$ (Å⁴/amu), the depolarization ratio and a relative intensity at `laser_nm`. ```{literalinclude} ../tutorials/19_raman/files/ch4.yaml :language: yaml ``` | Key (`raman:`) | Default | Meaning | |---|---|---| | `polarizability` | `auto` | `analytic` (coupled-perturbed, where supported) or `finite_field` | | `field_step` | 0.002 | field step (a.u.) for finite fields | | `mode_step` | 0.01 | displacement (bohr) along each unit-norm mode | | `laser_nm` | 532 | excitation wavelength for relative intensities | | `min_frequency` | 50 | modes below this (cm⁻¹) are skipped | | `file` | none | table: mode, frequency, activity, depolarization ratio, relative intensity | Water, HF/aug-pc-1: activities 0.6120, 84.889 and 24.218 Å⁴/amu with the analytic polarizability, against 0.6116, 84.888 and 24.216 from a finite-field PySCF calculation, in 3.7 s instead of about 6 s. The analytic route is the default wherever the analytic Hessian exists; otherwise the finite-field route is used automatically. A uniform static field is available for any energy run as `scf: efield: fx fy fz`. Related tutorials: {doc}`../tutorials/19_raman/index` (water, CO₂, methane, selection rules), {doc}`../tutorials/04_polar/index`, {doc}`../tutorials/18_hyperpol/index`.