Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Finite field method

The finite field method denotes the calculation of molecular properties of a given order by means of numerical differentiation of lower-order molecular properties. It is typically applied to the determination of electric properties since it is trivial to incorporate uniform static electric fields in the molecular Hamiltonian and carry out calculations in the presence of these fields.

Compared to analytic derivative techniques, finite field calculations are slower and less accurate but their appeal lies in the ease of implementation.

Energy expansion

In the presence of a uniform static electric field, the molecular energy becomes equal to

E(F)=E0−μαFα−12ααβFαFβ−16βαβγFαFβFγ−124γαβγδFαFβFγFδ−⋯E(F) = E_0 - \mu_{\alpha} F_\alpha - \frac{1}{2} \alpha_{\alpha\beta} F_\alpha F_\beta - \frac{1}{6} \beta_{\alpha\beta\gamma} F_\alpha F_\beta F_\gamma - \frac{1}{24} \gamma_{\alpha\beta\gamma\delta} F_\alpha F_\beta F_\gamma F_\delta - \cdots

where the molecular property tensors μ\mu, α\alpha, β\beta, and γ\gamma are the permanent dipole moment, polarizabilty, first-order hyperpolarizability, and second-order hyperpolarizability, respectively. These molecular properties refer to the isolated system and can thus be identified from derivatives of the energy in the limit of zero field strength:

μα=−∂E(F)∂Fα∣F=0ααβ(0;0)=−∂2E(F)∂Fα∂Fβ∣F=0βαβγ(0;0,0)=−∂3E(F)∂Fα∂Fβ∂Fγ∣F=0γαβγδ(0;0,0,0)=−∂4E(F)∂Fα∂Fβ∂Fγ∂Fδ∣F=0\begin{align*} \mu_{\alpha} & = - \left. \frac{\partial E(F)}{\partial F_\alpha} \right|_{F = 0} \\ \alpha_{\alpha\beta}(0;0) & = - \left. \frac{\partial^2 E(F)}{\partial F_\alpha \partial F_\beta} \right|_{F = 0} \\ \beta_{\alpha\beta\gamma}(0;0,0) & = - \left. \frac{\partial^3 E(F)}{\partial F_\alpha \partial F_\beta \partial F_\gamma} \right|_{F = 0} \\ \gamma_{\alpha\beta\gamma\delta}(0;0,0,0) & = - \left. \frac{\partial^4 E(F)}{\partial F_\alpha \partial F_\beta \partial F_\gamma \partial F_\delta} \right|_{F = 0} \end{align*}

Dipole moment expansion

It is also possible to define a dipole moment of the system in the presence of the external field. This field-dependent dipole moment takes the form

μαF=μα+ααβFβ+12βαβγFβFγ+16γαβγδFβFγFδ−⋯\mu_\alpha^F = \mu_\alpha + \alpha_{\alpha\beta} F_\beta + \frac{1}{2} \beta_{\alpha\beta\gamma} F_\beta F_\gamma + \frac{1}{6} \gamma_{\alpha\beta\gamma\delta} F_\beta F_\gamma F_\delta - \cdots

We then get

ααβ(0;0)=∂μαF∂Fβ∣F=0βαβγ(0;0,0)=∂2μαF∂Fβ∂Fγ∣F=0γαβγδ(0;0,0,0)=∂3μαF∂Fβ∂Fγ∂Fδ∣F=0\begin{align*} \alpha_{\alpha\beta}(0;0) & = \left. \frac{\partial \mu_\alpha^F}{\partial F_\beta } \right|_{F = 0} \\ \beta_{\alpha\beta\gamma}(0;0,0) & = \left. \frac{\partial^2 \mu_\alpha^F}{\partial F_\beta \partial F_\gamma} \right|_{F = 0} \\ \gamma_{\alpha\beta\gamma\delta}(0;0,0,0) & = \left. \frac{\partial^3 \mu_\alpha^F}{\partial F_\beta \partial F_\gamma \partial F_\delta} \right|_{F = 0} \end{align*}

Polarizability expansion

It is also possible to define a polarizability of the system in the presence of the external field. This field-dependent polarizability takes the form

ααβF(−ω;ω)=ααβ(−ω;ω)+βαβγ(−ω;ω,0)Fγ+12γαβγδ(−ω;ω,0,0)FγFδ−⋯\alpha_{\alpha\beta}^F(-\omega;\omega) = \alpha_{\alpha\beta}(-\omega;\omega) + \beta_{\alpha\beta\gamma}(-\omega;\omega,0) F_\gamma + \frac{1}{2} \gamma_{\alpha\beta\gamma\delta}(-\omega;\omega,0,0) F_\gamma F_\delta - \cdots

We then get

βαβγ(−ω;ω,0)=∂ααβF(−ω;ω)∂Fγ∣F=0γαβγδ(−ω;ω,0,0)=∂2ααβF(−ω;ω)∂Fγ∂Fδ∣F=0\begin{align*} \beta_{\alpha\beta\gamma}(-\omega;\omega,0) & = \left. \frac{\partial \alpha_{\alpha\beta}^F(-\omega;\omega)}{\partial F_\gamma} \right|_{F = 0} \\ \gamma_{\alpha\beta\gamma\delta}(-\omega;\omega,0,0) & = \left. \frac{\partial^2 \alpha_{\alpha\beta}^F(-\omega;\omega)}{\partial F_\gamma \partial F_\delta} \right|_{F = 0} \end{align*}

Hyperpolarizability expansion

It is also possible to define a hyperpolarizability of the system in the presence of the external field. This field-dependent hyperpolarizability takes the form

βαβγF(−ωσ;ω1,ω2)=βαβγ(−ωσ;ω1,ω2)+γαβγδ(−ωσ;ω1,ω2,0)Fδ−⋯\beta_{\alpha\beta\gamma}^F(-\omega_\sigma;\omega_1, \omega_2) = \beta_{\alpha\beta\gamma}(-\omega_\sigma;\omega_1,\omega_2) + \gamma_{\alpha\beta\gamma\delta}(-\omega_\sigma;\omega_1,\omega_2,0) F_\delta - \cdots

We then get

γαβγδ(−ωσ;ω1,ω2,0)=∂βαβγF(−ωσ;ω1,ω2)∂Fδ∣F=0\begin{align*} \gamma_{\alpha\beta\gamma\delta}(-\omega_\sigma;\omega_1,\omega_2,0) & = \left. \frac{\partial \beta_{\alpha\beta\gamma}^F(-\omega_\sigma;\omega_1,\omega_2)}{\partial F_\delta} \right|_{F = 0} \end{align*}

where ωσ=ω1+ω2\omega_\sigma = \omega_1+ \omega_2.

Numerical example

Let us illustrate the finite field method with practical example.

We define a water molecule with the dipole moment aligned along the positive z-axis.

Setting up drivers for:

  • SCF optimization

  • first-order properties (for now an explicit function, will be changed later)

  • linear response function (real)

  • quadratic response function (complex)

  • cubic response function (complex)

Source
Source
Source
Source
Source

Numerical differentiation

Up to fourth-order numerical derivatives are calculated with use of a one-dimensional five-point stencil.

Field-dependent molecular properties

The following static molecular properties are determined as functions of the strength, FF, of the electric field applied along the positive z-axis:

  • electronic energy, E(F)E(F)

  • dipole moment, μzF\mu_z^F

  • polarizability, αzzF(0;0)\alpha_{zz}^F(0;0)

  • first-order hyperpolarizaiblity, βzzzF(0;0,0)\beta_{zzz}^F(0;0,0)

  • second-order hyperpolarizaiblity, γzzzzF(0;0,0,0)\gamma_{zzzz}^F(0;0,0,0)

Calculate derivatives

Results

--------------------------------------------------
                    Molecular properties
          ----------------------------------------
Method            mu     alpha      beta     gamma
--------------------------------------------------
Analytic derivatives
            0.744762   9.34779  -6.73492   999.154

Numerical differentiation
 -energy    0.744763   9.34779  -6.71204  1046.544
 -mu                   9.34780  -6.73527   999.809
 -alpha                         -6.73499   999.151
 -beta                                     999.159
--------------------------------------------------

Using the results obtained with analytic derivatives as reference, we note that up to second-order derivatives are quite stable with the chosen thresholds of convergence (in the SCF optimization and response equation solvers) and strength of the applied field. Fourth-order derivatives are not reliable as seen in the result for γzzzz(0;0,0,0)\gamma_{zzzz}(0;0,0,0) based on differentiation of the energy.