Skip to content

Sources and Generating Functionals in QM

A source is an auxiliary function coupled linearly to a quantum variable. In a coordinate path integral, the source J(t)J(t) is introduced by replacing the action with

SJ[x]=S[x]+∫titfdt J(t)x(t).S_J[x] = S[x]+\int_{t_i}^{t_f}dt\,J(t)x(t).

The resulting source-dependent path integral is not usually introduced because J(t)J(t) is a physical force that will remain in the final problem. It is introduced because differentiation with respect to J(t)J(t) inserts factors of x(t)x(t):

δδJ(t)e(i/ℏ)∫dt′ J(t′)x(t′)=iℏx(t)e(i/ℏ)∫dt′ J(t′)x(t′).\frac{\delta}{\delta J(t)} e^{(i/\hbar)\int dt'\,J(t')x(t')} = \frac{i}{\hbar}x(t) e^{(i/\hbar)\int dt'\,J(t')x(t')}.

This small identity is the seed of generating functionals, correlation functions, Wick contractions, response theory, and the usual QFT source formalism. The quantum-mechanical case is the clean place to learn it because the integration variable is one coordinate history rather than a field over spacetime.

For a particle with

S[x]=∫titfdt [m2x˙2−V(x)],S[x] = \int_{t_i}^{t_f}dt\, \left[ \frac{m}{2}\dot x^2-V(x) \right],

the sourced action is

SJ[x]=∫titfdt [m2x˙2−V(x)+J(t)x(t)].S_J[x] = \int_{t_i}^{t_f}dt\, \left[ \frac{m}{2}\dot x^2-V(x)+J(t)x(t) \right].

If J(t)J(t) is interpreted physically, it is an externally applied generalized force. In the generating-functional use, it is a bookkeeping variable set to zero after differentiation. The corresponding Hamiltonian has the sign

HJ(t)=H−J(t)x,H_J(t)=H-J(t)x,

because adding JxJx to the Lagrangian subtracts JxJx from the Hamiltonian. This sign is a common source of confusion when translating between Lagrangian and Hamiltonian formulas.

For fixed endpoints, the sourced kernel is

KJ(xf,tf;xi,ti)=∫x(ti)=xix(tf)=xfDx(t) exp⁡[iℏ(S[x]+∫titfdt J(t)x(t))].K_J(x_f,t_f;x_i,t_i) = \int_{x(t_i)=x_i}^{x(t_f)=x_f} \mathcal D x(t)\, \exp\left[ \frac{i}{\hbar} \left( S[x]+\int_{t_i}^{t_f}dt\,J(t)x(t) \right) \right].

This object generates coordinate insertions inside a transition amplitude. It is not automatically a vacuum generating functional. Boundary conditions and external states determine what the derivatives mean.

A generating functional is a source-dependent object from which many related quantities are obtained by functional differentiation. For a fixed-endpoint kernel, one may use

Zfi[J]=KJ(xf,tf;xi,ti).Z_{fi}[J] = K_J(x_f,t_f;x_i,t_i).

Then

δZfi[J]δJ(t1)=iℏ∫xixfDx x(t1)e(i/ℏ)SJ[x],\frac{\delta Z_{fi}[J]}{\delta J(t_1)} = \frac{i}{\hbar} \int_{x_i}^{x_f}\mathcal D x\, x(t_1) e^{(i/\hbar)S_J[x]},

where the shorthand ∫xixfDx\int_{x_i}^{x_f}\mathcal D x means the same fixed-endpoint path integral as above. Repeating the differentiation gives

δnZfi[J]δJ(t1)⋯δJ(tn)=(iℏ)n∫xixfDx x(t1)⋯x(tn)e(i/ℏ)SJ[x].\frac{\delta^n Z_{fi}[J]} {\delta J(t_1)\cdots\delta J(t_n)} = \left(\frac{i}{\hbar}\right)^n \int_{x_i}^{x_f}\mathcal D x\, x(t_1)\cdots x(t_n) e^{(i/\hbar)S_J[x]}.

At J=0J=0,

(ℏi)nδnZfi[J]δJ(t1)⋯δJ(tn)∣J=0=∫xixfDx x(t1)⋯x(tn)eiS[x]/ℏ.\left( \frac{\hbar}{i} \right)^n \frac{\delta^n Z_{fi}[J]} {\delta J(t_1)\cdots\delta J(t_n)} \bigg\rvert_{J=0} = \int_{x_i}^{x_f}\mathcal D x\, x(t_1)\cdots x(t_n)e^{iS[x]/\hbar}.

Dividing by Zfi[0]Z_{fi}[0] produces an insertion normalized by the unsourced transition amplitude:

⟨x(t1)⋯x(tn)⟩fi=1Zfi[0](ℏi)nδnZfi[J]δJ(t1)⋯δJ(tn)∣J=0.\langle x(t_1)\cdots x(t_n)\rangle_{fi} = \frac{1}{Z_{fi}[0]} \left( \frac{\hbar}{i} \right)^n \frac{\delta^n Z_{fi}[J]} {\delta J(t_1)\cdots\delta J(t_n)} \bigg\rvert_{J=0}.

The notation ⟨⋯ ⟩fi\langle\cdots\rangle_{fi} is only a compact symbol for a normalized fixed-endpoint path-integral insertion. It is not an expectation value in a normalizable state unless the endpoints and limits have been chosen to represent one.

The same source can be described in operator language. Since HJ(t)=H−J(t)xH_J(t)=H-J(t)x, the source-dependent evolution operator may be written schematically as

UJ(tf,ti)=Texp⁡[−iℏ∫titfdt (H−J(t)x)],U_J(t_f,t_i) = \mathcal T \exp\left[ -\frac{i}{\hbar} \int_{t_i}^{t_f}dt\, \bigl(H-J(t)x\bigr) \right],

with the usual qualifications about interaction-picture notation when HH and xx do not commute at different times. Differentiating with respect to JJ inserts time-ordered Heisenberg-position operators:

(ℏi)nδnδJ(t1)⋯δJ(tn)⟨xf∣UJ(tf,ti)∣xi⟩∣J=0=⟨xf∣T{xH(t1)⋯xH(tn)}U(tf,ti)∣xi⟩,\left( \frac{\hbar}{i} \right)^n \frac{\delta^n}{\delta J(t_1)\cdots\delta J(t_n)} \langle x_f\rvert U_J(t_f,t_i)\lvert x_i\rangle \bigg\rvert_{J=0} = \langle x_f\rvert \mathcal T\{ x_H(t_1)\cdots x_H(t_n) \} U(t_f,t_i) \lvert x_i\rangle,

with the placement of U(tf,ti)U(t_f,t_i) understood according to the chosen Heisenberg-picture reference time. The important point is simpler than the notation: real-time source path integrals normally generate time-ordered insertions.

If the desired object is a vacuum correlator, one instead defines

Z0[J]=⟨0∣Texp⁡[iℏ∫dt J(t)xH(t)]∣0⟩,Z_0[J] = \langle 0\rvert \mathcal T \exp\left[ \frac{i}{\hbar}\int dt\,J(t)x_H(t) \right] \lvert 0\rangle,

or realizes the same object by path-integral boundary conditions and an iϵi\epsilon prescription that projects onto the ground state. Then

⟨0∣T{xH(t1)⋯xH(tn)}∣0⟩=(ℏi)n1Z0[0]δnZ0[J]δJ(t1)⋯δJ(tn)∣J=0.\langle 0\rvert \mathcal T\{ x_H(t_1)\cdots x_H(t_n) \} \lvert 0\rangle = \left( \frac{\hbar}{i} \right)^n \frac{1}{Z_0[0]} \frac{\delta^n Z_0[J]} {\delta J(t_1)\cdots\delta J(t_n)} \bigg\rvert_{J=0}.

This is the quantum-mechanical prototype of the QFT formula for time-ordered vacuum correlation functions.

The raw generating functional Z[J]Z[J] contains all moments. It is often convenient to remove the J=0J=0 normalization:

Z[J]=Z[J]Z[0].\mathcal Z[J] = \frac{Z[J]}{Z[0]}.

Then Z[0]=1\mathcal Z[0]=1, and derivatives of Z[J]\mathcal Z[J] give normalized correlators. For example,

⟨Tx(t1)x(t2)⟩=(ℏi)2δ2Z[J]δJ(t1)δJ(t2)∣J=0,\langle \mathcal T x(t_1)x(t_2)\rangle = \left( \frac{\hbar}{i} \right)^2 \frac{\delta^2 \mathcal Z[J]} {\delta J(t_1)\delta J(t_2)} \bigg\rvert_{J=0},

where the state, boundary condition, or projection convention is part of the definition of the brackets.

Connected correlation functions are generated by the logarithm. Define

W[J]=ℏilog⁡Z[J].\mathcal W[J] = \frac{\hbar}{i}\log Z[J].

The first derivative gives the one-point function:

δW[J]δJ(t)=⟨Tx(t)⟩J.\frac{\delta \mathcal W[J]}{\delta J(t)} = \langle \mathcal T x(t)\rangle_J.

The second connected correlator is

⟨Tx(t1)x(t2)⟩c,J=ℏiδ2W[J]δJ(t1)δJ(t2).\langle \mathcal T x(t_1)x(t_2)\rangle_{c,J} = \frac{\hbar}{i} \frac{\delta^2 \mathcal W[J]} {\delta J(t_1)\delta J(t_2)}.

At zero source, this becomes the usual connected part

⟨Tx(t1)x(t2)⟩c=⟨Tx(t1)x(t2)⟩−⟨x(t1)⟩⟨x(t2)⟩.\langle \mathcal T x(t_1)x(t_2)\rangle_c = \langle \mathcal T x(t_1)x(t_2)\rangle - \langle x(t_1)\rangle \langle x(t_2)\rangle.

Connected Correlation Functions owns the general moment–cumulant partition formula, clustering, and many-body subtraction diagnostics; this page retains the path-integral source derivation.

For a centered Gaussian system, the one-point function vanishes and the two-point function is already connected.

The functional formulas are the continuum version of a familiar finite-dimensional identity. Let q=(q1,…,qN)q=(q_1,\ldots,q_N) and introduce sources JiJ_i:

Z(J)=∫dNq exp⁡[iℏ(S(q)+∑i=1NJiqi)].Z(J) = \int d^Nq\, \exp\left[ \frac{i}{\hbar} \left( S(q)+\sum_{i=1}^N J_iq_i \right) \right].

Then

∂Z∂Jk=iℏ∫dNq qkexp⁡[iℏ(S(q)+∑i=1NJiqi)].\frac{\partial Z}{\partial J_k} = \frac{i}{\hbar} \int d^Nq\, q_k \exp\left[ \frac{i}{\hbar} \left( S(q)+\sum_{i=1}^N J_iq_i \right) \right].

The path-integral formula is obtained by replacing the discrete label kk by a continuous time tt:

Jkqk⟶J(t)x(t),J_kq_k \quad\longrightarrow\quad J(t)x(t),

and

∂∂Jk⟶δδJ(t).\frac{\partial}{\partial J_k} \quad\longrightarrow\quad \frac{\delta}{\delta J(t)}.

The Functional Derivatives page develops this replacement carefully using delta-function identities.

In imaginary time, one commonly writes the Euclidean path integral as

ZE[J]=∫Dx exp⁡[−1ℏSE[x]+1ℏ∫dτ J(τ)x(τ)].Z_E[J] = \int\mathcal D x\, \exp\left[ -\frac{1}{\hbar}S_E[x] +\frac{1}{\hbar}\int d\tau\,J(\tau)x(\tau) \right].

With this convention,

δZE[J]δJ(τ)=1ℏ∫Dx x(τ)exp⁡[−1ℏSE[x]+1ℏ∫dτ′ J(τ′)x(τ′)],\frac{\delta Z_E[J]}{\delta J(\tau)} = \frac{1}{\hbar} \int\mathcal D x\, x(\tau) \exp\left[ -\frac{1}{\hbar}S_E[x] +\frac{1}{\hbar}\int d\tau'\,J(\tau')x(\tau') \right],

so Euclidean correlators are generated by powers of ℏ\hbar, not by powers of ℏ/i\hbar/i:

⟨x(τ1)⋯x(τn)⟩E=ℏn1ZE[0]δnZE[J]δJ(τ1)⋯δJ(τn)∣J=0.\langle x(\tau_1)\cdots x(\tau_n)\rangle_E = \hbar^n \frac{1}{Z_E[0]} \frac{\delta^n Z_E[J]} {\delta J(\tau_1)\cdots\delta J(\tau_n)} \bigg\rvert_{J=0}.

Some books define SE,J=SE+∫JxS_{E,J}=S_E+\int Jx instead. Then the derivative formulas acquire signs. This is not a physical difference; it is a convention for where the minus sign is placed in the Euclidean exponent. See Euclidean and Imaginary-Time Path Integrals for the Wick-rotation and ground-state-projection context.

The harmonic oscillator is the central example because its path integral is Gaussian. For

S[x]=∫dt [m2x˙2−mω22x2],S[x] = \int dt\, \left[ \frac{m}{2}\dot x^2 - \frac{m\omega^2}{2}x^2 \right],

the sourced action is

SJ[x]=S[x]+∫dt J(t)x(t).S_J[x] = S[x]+\int dt\,J(t)x(t).

The classical sourced equation follows from the Euler–Lagrange equation:

m(d2dt2+ω2)xcl(t)=J(t).m\left( \frac{d^2}{dt^2}+\omega^2 \right)x_{\rm cl}(t) = J(t).

The real-time vacuum generating functional is fixed by the oscillator two-point function. With the ground-state prescription,

GF(t,t′)=⟨0∣T{xH(t)xH(t′)}∣0⟩=ℏ2mωe−iω∣t−t′∣.G_F(t,t') = \langle 0\rvert \mathcal T\{ x_H(t)x_H(t') \} \lvert 0\rangle = \frac{\hbar}{2m\omega} e^{-i\omega |t-t'|}.

The normalized source functional is

Z0[J]=Z0[J]Z0[0]=exp⁡[−12ℏ2∫dt dt′ J(t)GF(t,t′)J(t′)].\mathcal Z_0[J] = \frac{Z_0[J]}{Z_0[0]} = \exp\left[ -\frac{1}{2\hbar^2} \int dt\,dt'\, J(t)G_F(t,t')J(t') \right].

This compact formula encodes all vacuum time-ordered oscillator correlators. For example,

(ℏi)2δ2Z0[J]δJ(t)δJ(t′)∣J=0=GF(t,t′).\left( \frac{\hbar}{i} \right)^2 \frac{\delta^2 \mathcal Z_0[J]} {\delta J(t)\delta J(t')} \bigg\rvert_{J=0} = G_F(t,t').

The fourth derivative gives Wick’s theorem:

⟨0∣T{x(t1)x(t2)x(t3)x(t4)}∣0⟩=GF(t1,t2)GF(t3,t4)+GF(t1,t3)GF(t2,t4)+GF(t1,t4)GF(t2,t3).\begin{aligned} &\langle 0\rvert \mathcal T\{ x(t_1)x(t_2)x(t_3)x(t_4) \} \lvert 0\rangle \\ &\quad = G_F(t_1,t_2)G_F(t_3,t_4) +G_F(t_1,t_3)G_F(t_2,t_4) +G_F(t_1,t_4)G_F(t_2,t_3). \end{aligned}

The absence of higher connected correlators is the defining Gaussian feature. Interactions such as λx4\lambda x^4 spoil this exact Gaussian form and are handled perturbatively, semiclassically, or numerically.

The source response is governed by an inverse differential operator. After integration by parts, the oscillator quadratic action can be written schematically as

S[x]=12∫dt x(t)Dx(t),D=−m(d2dt2+ω2),S[x] = \frac12 \int dt\,x(t)D x(t), \qquad D=-m\left( \frac{d^2}{dt^2}+\omega^2 \right),

up to boundary terms fixed by the problem. The relevant Green function is an inverse of DD with a prescription:

D Δ(t,t′)=δ(t−t′).D\,\Delta(t,t')=\delta(t-t').

Different prescriptions give different physical objects: fixed-endpoint kernels, retarded response functions, advanced functions, Euclidean Green functions, or Feynman time-ordered functions. Source methods do not eliminate the need to specify the boundary condition; they make that dependence explicit.

This is why the word “Green function” must be read with context. The What Is a Green Function? page separates inverse kernels, response functions, resolvents, and propagators.

The field-theory replacement is structurally simple:

x(t)⟶ϕ(x),J(t)⟶J(x),∫dt⟶∫dd+1x.x(t) \longrightarrow \phi(x), \qquad J(t) \longrightarrow J(x), \qquad \int dt \longrightarrow \int d^{d+1}x.

A scalar-field generating functional has the schematic form

Z[J]=∫Dϕ exp⁡[iℏ(S[ϕ]+∫dd+1x J(x)ϕ(x))].Z[J] = \int\mathcal D\phi\, \exp\left[ \frac{i}{\hbar} \left( S[\phi]+\int d^{d+1}x\,J(x)\phi(x) \right) \right].

Functional derivatives insert fields:

⟨0∣T{ϕ(x1)⋯ϕ(xn)}∣0⟩=(ℏi)n1Z[0]δnZ[J]δJ(x1)⋯δJ(xn)∣J=0.\langle 0\rvert \mathcal T\{ \phi(x_1)\cdots\phi(x_n) \} \lvert 0\rangle = \left( \frac{\hbar}{i} \right)^n \frac{1}{Z[0]} \frac{\delta^n Z[J]} {\delta J(x_1)\cdots\delta J(x_n)} \bigg\rvert_{J=0}.

The analogy is exact at the level of notation, but QFT adds new issues: ultraviolet regularization, renormalization, local operator products, gauge redundancy, fermionic variables, and the definition of the continuum limit. The quantum-mechanical source formalism is therefore a bridge, not a substitute for a full QFT construction. See Path Integrals from QM to QFT for the broader translation map.

  • Treating J(t)J(t) as always physical. In generating functionals it is often only an auxiliary variable.
  • Forgetting that fixed-endpoint source derivatives generate insertions inside a transition amplitude, not automatically vacuum expectation values.
  • Dropping the normalization by Z[0]Z[0] when comparing correlators.
  • Mixing real-time factors of ℏ/i\hbar/i with Euclidean factors of ℏ\hbar.
  • Assuming every Green function produced by a source is retarded. Real-time path-integral source functionals usually generate time-ordered functions unless a different contour or prescription is specified.
  • Ignoring sign conventions in the Euclidean source term.
  • Writing down QFT source formulas before specifying whether the fields are real, complex, fermionic, gauge-fixed, Euclidean, or Lorentzian.
  • R. P. Feynman and A. R. Hibbs, Quantum Mechanics and Path Integrals, McGraw-Hill, 1965.
  • L. S. Schulman, Techniques and Applications of Path Integration, Wiley, 1981.
  • H. Kleinert, Path Integrals in Quantum Mechanics, Statistics, Polymer Physics, and Financial Markets, 5th ed., World Scientific, 2009.
  • J. Zinn-Justin, Path Integrals in Quantum Mechanics, Oxford University Press, 2005.
  • M. Srednicki, Quantum Field Theory, Cambridge University Press, 2007.
  • M. D. Schwartz, Quantum Field Theory and the Standard Model, Cambridge University Press, 2014.
  1. Show directly that differentiating Z[J]Z[J] twice inserts two factors of x(t)x(t).
Solution

Start from

Z[J]=∫Dx exp⁡[iℏ(S[x]+∫dt J(t)x(t))].Z[J] = \int\mathcal D x\, \exp\left[ \frac{i}{\hbar} \left( S[x]+\int dt\,J(t)x(t) \right) \right].

The first derivative gives

δZ[J]δJ(t1)=iℏ∫Dx x(t1)eiSJ[x]/ℏ.\frac{\delta Z[J]}{\delta J(t_1)} = \frac{i}{\hbar} \int\mathcal D x\, x(t_1)e^{iS_J[x]/\hbar}.

Differentiating again,

δ2Z[J]δJ(t1)δJ(t2)=(iℏ)2∫Dx x(t1)x(t2)eiSJ[x]/ℏ.\frac{\delta^2 Z[J]} {\delta J(t_1)\delta J(t_2)} = \left( \frac{i}{\hbar} \right)^2 \int\mathcal D x\, x(t_1)x(t_2)e^{iS_J[x]/\hbar}.

At J=0J=0 and after multiplying by (ℏ/i)2(\hbar/i)^2, this is the unnormalized two-point insertion.

  1. Explain why adding J(t)x(t)J(t)x(t) to the Lagrangian corresponds to subtracting J(t)xJ(t)x from the Hamiltonian.
Solution

For a Lagrangian

LJ(x,x˙,t)=L(x,x˙,t)+J(t)x,L_J(x,\dot x,t)=L(x,\dot x,t)+J(t)x,

the canonical momentum is unchanged if the source contains no x˙\dot x:

p=∂LJ∂x˙=∂L∂x˙.p=\frac{\partial L_J}{\partial \dot x} = \frac{\partial L}{\partial \dot x}.

The Hamiltonian is

HJ=px˙−LJ=px˙−L−J(t)x=H−J(t)x.H_J=p\dot x-L_J = p\dot x-L-J(t)x = H-J(t)x.

Thus the sign of the source term flips when moving from the Lagrangian to the Hamiltonian.

  1. For the normalized oscillator functional Z0[J]\mathcal Z_0[J], verify the two-point derivative formula.
Solution

Let

Z0[J]=exp⁡[−12ℏ2∫dt dt′ J(t)GF(t,t′)J(t′)].\mathcal Z_0[J] = \exp\left[ -\frac{1}{2\hbar^2} \int dt\,dt'\, J(t)G_F(t,t')J(t') \right].

Because the exponent is quadratic in JJ, the first derivative vanishes at J=0J=0. The second derivative at zero source is

δ2Z0[J]δJ(t)δJ(t′)∣J=0=−1ℏ2GF(t,t′).\frac{\delta^2\mathcal Z_0[J]} {\delta J(t)\delta J(t')} \bigg\rvert_{J=0} = -\frac{1}{\hbar^2}G_F(t,t').

Therefore

(ℏi)2δ2Z0[J]δJ(t)δJ(t′)∣J=0=GF(t,t′),\left( \frac{\hbar}{i} \right)^2 \frac{\delta^2\mathcal Z_0[J]} {\delta J(t)\delta J(t')} \bigg\rvert_{J=0} = G_F(t,t'),

because (ℏ/i)2=−ℏ2(\hbar/i)^2=-\hbar^2.

  1. Why does log⁡Z[J]\log Z[J] generate connected correlators rather than all correlators?
Solution

The logarithm removes products of statistically independent pieces in the same way that the logarithm of an ordinary moment-generating function produces cumulants. For example,

δ2log⁡ZδJ(t1)δJ(t2)=1Zδ2ZδJ(t1)δJ(t2)−1Z2δZδJ(t1)δZδJ(t2).\frac{\delta^2 \log Z}{\delta J(t_1)\delta J(t_2)} = \frac{1}{Z} \frac{\delta^2 Z}{\delta J(t_1)\delta J(t_2)} - \frac{1}{Z^2} \frac{\delta Z}{\delta J(t_1)} \frac{\delta Z}{\delta J(t_2)}.

After restoring the appropriate powers of ℏ/i\hbar/i, this subtracts

⟨x(t1)⟩⟨x(t2)⟩\langle x(t_1)\rangle\langle x(t_2)\rangle

from the full two-point function. Higher derivatives of log⁡Z\log Z similarly produce higher cumulants, which are the connected correlators.

  1. Translate the quantum-mechanical source term into scalar-field notation.
Solution

The quantum-mechanical source term is

∫dt J(t)x(t).\int dt\,J(t)x(t).

For a scalar field, the coordinate history x(t)x(t) is replaced by a field configuration ϕ(x)\phi(x) over spacetime, and the time integral is replaced by a spacetime integral:

∫dd+1x J(x)ϕ(x).\int d^{d+1}x\,J(x)\phi(x).

Functional derivatives with respect to J(x)J(x) insert ϕ(x)\phi(x), just as derivatives with respect to J(t)J(t) insert x(t)x(t) in quantum mechanics.