# Theory#

## Response theory#

Compared to atomic fields, the externally applied electromagnetic fields are several orders of magnitude weaker and perturbation theory is called for. Such an approach provide response functions a distinct separation of one-, two-, three-photon, *etc.*, optical processes, and virtually all spectroscopic properties are encompassed by the theory as possible perturbations include

Time-independent or time-dependent

Electric or magnetic

Internal or external

Geometric distortions

When an external field is applied to a molecular system the system interacts with this field and responds to the applied perturbation. If such field is of sufficiently small field strength, *i.e.* sufficiently small intensity, we can address the response using perturbation theory with the perturbed Hamiltonian

where \(\hat{H}_0\) is the Hamiltonian of the isolated system and \(\hat{V}(t)\) described the quantum mechanical field-coupling. The requirement of a weak perturbation is met for most externally applied fields — for example, a conventional laser with an intensity of 0.3 GW/cm\(^3\) corresponds to an electric field amplitude of \(\sim\)\(5 \times 10^{-5}\) a.u., which indeed has a small influence on a molecular system.

If the perturbing field is taken as a static field, the problem is reduced to the time-independent case. The energy can then be considered with a Taylor expansion at zero perturbing field strength

with implied summation over indices. Molecular properties are identified as field derivatives of different orders and different perturbing fields, as the observables associated with the properties changes according to these derivatives. For example, the polarizability may be obtained through the second derivative of the energy with respect to a perturbing electric field, while the first derivative corresponds to the permanent dipole moment, both at zero field strength.

For time-dependent perturbing fields, the interaction between the field and the molecular system yields ill-defined energies due to exchange of energy between the field and the molecule. Here we move instead to a slightly different approach, where the time-dependent molecular properties can be defined through the time-dependent expectation value of an observable, associated with an operator \(\hat{\Omega}\). We first expand the wave function in orders of the perturbation

noting that this wave function is to be normalized at all times. The expectation value of the operator is expanded with terms collecting corrections to the different orders

In the case of a molecule irradiated by light, we are interested in computing the polarizability \(\alpha_{\alpha\beta}(-\omega; \omega)\), and in the electric-dipole approximation the coupling between the molecular system and external electric field is provided by minus the electric dipole moment operator

where \(F(t)\) is the electric field amplitude. \(\alpha_{\alpha\beta}(-\omega; \omega)\) then corresponds to the response with \(\hat{\Omega} = \hat{\mu}_\alpha\) and \(\hat{V}^\omega = - \hat{\mu}_\beta\), where \(\alpha, \beta \in \{x,y,z\}\). For simplicity, we assume the external electric field to be monochromatic and adiabatically switched on at time zero according to

The first terms in the expectation value of a general operator is

And we now seek to calculate \(\langle \! \langle \hat{\Omega}; \hat{V}^{\omega} \rangle\).

### In SCF theory#

The derivation of expressions for response functions can appear very different from one source to another and the vast number of technicalities can at first appear overwhelming. The principle, however, is quite straightforward and clear: Form a well-defined quantity of interest, e.g., the electric dipole moment, \(\mu(t)\), and identify response functions in the order expansions of these quantities. In Hartree–Fock and Kohn–Sham density functional theory, the reference state is described by a single Slater determinant, and we parameterize the time-dependent wave function as a single phase-isolated Slater determinant

with the time-dependent Hermitian operator

where the creation, \(\hat{a}^\dagger\), and annihilation, \(\hat{a}\), operators act on unoccupied, secondary, \(a\) and occupied, inactive, \(i\) molecular orbitals.

The time evolution of the SCF state is determined from the Ehrenfest theorem

Adopting perturbation theory

we eventually obtain the following expression

The vector \(\boldsymbol{\kappa}^{(1)}\) collects the set of parameters and their complex conjugate and matrices \(\mathbf{E}^{[2]}\) and \(\mathbf{S}^{[2]}\) are known as the electronic Hessian and overlap matrices, respectively, and \(\mathbf{V}^{\omega, [1]}\) is known as the property gradient of the perturbation operator. We are then able to identify the following expression for the linear response function

where \(\boldsymbol{\Omega}^{[1]}\) (analogously to \(\mathbf{V}^{\omega, [1]}\)) is known as the property gradient associated with the observable. This expression for the linear response functions is also known as the random phase approximation (RPA) equation in the case a Hartree-Fock reference state. It is the principal equation to be solved in time-dependent Hartree-Fock (TDHF) and time-dependent density functional theory (TDDFT) theories.