Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    A Gaussian Integral with a Source

    A fluctuating quantity can average to zero and still have a nonzero typical size. How do we calculate both its mean and its fluctuations? A Gaussian distribution gives a setting where every step can be done exactly. Adding an auxiliary variable called a source packages all its moments into one function.

    You will need to complete a square and differentiate an exponential. One oscillator’s ground-state position has a Gaussian distribution. Changing the source will let you move the mean while tracking the spread. To practice forming a mean and subtracting its square from the second moment, calculate a thermal fluctuation.

    Normalize the distribution first

    Let xx be a real, dimensionless variable and let a>0a>0. Define

    p0(x)=a2π e−ax2/2,⟨f(x)⟩0=∫−∞∞dx p0(x)f(x).p_0(x)=\sqrt{\frac a{2\pi}}\,e^{-ax^2/2},\qquad \langle f(x)\rangle_0=\int_{-\infty}^{\infty}dx\,p_0(x)f(x).

    The subscript 00 denotes zero source. The constant makes ⟨1⟩0=1\langle1\rangle_0=1. To check it, start with I=∫−∞∞e−u2/2duI=\int_{-\infty}^{\infty}e^{-u^2/2}du. Squaring this positive integral gives a plane integral. In polar coordinates,

    I2=∫02πdϑ∫0∞r dr e−r2/2=2π.I^2=\int_0^{2\pi}d\vartheta\int_0^\infty r\,dr\,e^{-r^2/2}=2\pi.

    Therefore I=2πI=\sqrt{2\pi}. Setting u=a xu=\sqrt a\,x supplies the extra factor a−1/2a^{-1/2}. Larger aa suppresses large ∣x∣|x| more strongly, so we should expect smaller fluctuations.

    Now introduce a real dimensionless source JJ and define

    Z(J)=⟨eJx⟩0=a2π∫−∞∞dx e−ax2/2+Jx.Z(J)=\langle e^{Jx}\rangle_0 =\sqrt{\frac a{2\pi}}\int_{-\infty}^{\infty}dx\, e^{-ax^2/2+Jx}.

    Z(0)=1Z(0)=1 by construction. Each derivative with respect to JJ brings down a factor of xx.

    Complete the square without losing the constant

    Rewrite the exponent as

    −a2x2+Jx=−a2(x−Ja)2+J22a.-\frac a2x^2+Jx =-\frac a2\left(x-\frac Ja\right)^2+\frac{J^2}{2a}.

    Expanding the square on the right recovers the left. The last term is independent of xx, so it comes outside the integral. The change of variable y=x−J/ay=x-J/a leaves the real integration range and dx=dydx=dy unchanged. The remaining integral is precisely the normalized zero-source integral. Thus

    Z(J)=eJ2/(2a).Z(J)=e^{J^2/(2a)}.

    The unnormalized integral would instead be 2π/a eJ2/(2a)\sqrt{2\pi/a}\,e^{J^2/(2a)}. We divided by its value at zero source. That division is why no determinant or square-root prefactor appears in ZZ.

    Positivity of aa is essential. At a=0a=0 there is no decay at infinity; for a<0a<0 the integrand grows. Neither case defines this normalized probability distribution.

    Differentiate to obtain moments

    Since dneJx/dJn=xneJxd^n e^{Jx}/dJ^n=x^ne^{Jx},

    dnZdJn∣J=0=⟨xn⟩0.\left.\frac{d^n Z}{dJ^n}\right|_{J=0}=\langle x^n\rangle_0.

    For this Gaussian the interchange of differentiation and integration is valid: on any bounded range of JJ, the Gaussian decay controls the additional polynomial factors. The first two derivatives are

    Z′(J)=JaZ(J),Z′′(J)=(1a+J2a2)Z(J).Z'(J)=\frac Ja Z(J),\qquad Z''(J)=\left(\frac1a+\frac{J^2}{a^2}\right)Z(J).

    At zero source this gives ⟨x⟩0=0\langle x\rangle_0=0 and ⟨x2⟩0=1/a\langle x^2\rangle_0=1/a. The mean vanishes because positive and negative xx occur equally often. The root-mean-square size is 1/a1/\sqrt a, which does decrease with aa as expected.

    You can check the variance even if you have forgotten the Gaussian normalization. Let I(a)=∫dx e−ax2/2I(a)=\int \mathrm dx\,e^{-ax^2/2} on the real line. The substitution u=a xu=\sqrt a\,x gives I(a)=I(1)/aI(a)=I(1)/\sqrt a. Differentiating under the integral inserts −x2/2-x^2/2, so

    I′(a)I(a)=−12⟨x2⟩0,⟨x2⟩0=−2ddalog⁡I(a)=1a.\frac{I'(a)}{I(a)}=-\frac12\langle x^2\rangle_0, \qquad \langle x^2\rangle_0=-2\frac{\mathrm d}{\mathrm da}\log I(a)=\frac1a.

    Try this check when a source calculation gives a different variance. An answer of 1/(2a)1/(2a) from the width derivative has lost the factor of two relating the derivative to the observable. The first exercise gives an independent check by integration by parts.

    For higher moments it is easier to compare Taylor coefficients:

    Z(J)=1+J22a+J48a2+J648a3+⋯ .Z(J)=1+\frac{J^2}{2a}+\frac{J^4}{8a^2}+\frac{J^6}{48a^3}+\cdots.

    The coefficient of JnJ^n is ⟨xn⟩0/n!\langle x^n\rangle_0/n!, not the moment itself. Therefore

    ⟨x4⟩0=3a2,⟨x6⟩0=15a3.\langle x^4\rangle_0=\frac3{a^2},\qquad \langle x^6\rangle_0=\frac{15}{a^3}.

    There are no odd powers, so all odd moments vanish. More generally,

    ⟨x2r⟩0=(2r)!2rr!ar,r=0,1,2,….\langle x^{2r}\rangle_0=\frac{(2r)!}{2^r r!a^r},\qquad r=0,1,2,\ldots.

    For example, a=2a=2 gives variance 1/21/2 and fourth moment 3/43/4. Here ⟨x4⟩\langle x^4\rangle exceeds ⟨x2⟩2\langle x^2\rangle^2 because x2x^2 itself fluctuates.

    How the source moves the mean

    To ask about the distribution at source JJ, normalize again:

    pJ(x)=p0(x)eJxZ(J),⟨f⟩J=∫dx pJ(x)f(x).p_J(x)=\frac{p_0(x)e^{Jx}}{Z(J)},\qquad \langle f\rangle_J=\int dx\,p_J(x)f(x).

    Square completion shows that this is the same Gaussian shape centered at J/aJ/a. Hence

    ⟨x⟩J=Ja,⟨x2⟩J=1a+J2a2.\langle x\rangle_J=\frac Ja,\qquad \langle x^2\rangle_J=\frac1a+\frac{J^2}{a^2}.

    To isolate the fluctuation about the mean, subtract its square:

    ⟨x2⟩J−⟨x⟩J2=1a.\langle x^2\rangle_J-\langle x\rangle_J^2=\frac1a.

    Equivalently, for a Gaussian centered at any real bb, set y=x−by=x-b. Then ⟨x⟩=b\langle x\rangle=b, ⟨x2⟩=b2+1/a\langle x^2\rangle=b^2+1/a, and the variance about bb is 1/a1/a. The subtraction of the product of means gives the connected correlation. The logarithm performs it automatically. Let W(J)=log⁡Z(J)W(J)=\log Z(J). The quotient rule gives

    W′(J)=Z′Z=⟨x⟩J,W′′(J)=Z′′Z−(Z′Z)2.W'(J)=\frac{Z'}Z=\langle x\rangle_J, \qquad W''(J)=\frac{Z''}Z-\left(\frac{Z'}Z\right)^2.

    Thus W′′W'' is the variance. Here W=J2/(2a)W=J^2/(2a), so W′′=1/aW''=1/a and every derivative of WW above second order vanishes. The fourth moment is nonzero even though the fourth connected moment vanishes.

    As a numerical check, take a=2a=2 and J=1J=1. The mean is 1/21/2, the raw second moment is 3/43/4, and their connected combination is 3/4−1/4=1/23/4-1/4=1/2.

    The covariance of two coupled variables

    A field has many coupled variables. We can see the relevant algebra with just two. Put x=(x1,x2)Tx=(x_1,x_2)^{\mathsf T} and define a zero-source distribution proportional to e−xTAx/2e^{-x^{\mathsf T}Ax/2}, with

    A=(2−1−12),A−1=13(2112).A=\begin{pmatrix}2&-1\\-1&2\end{pmatrix},\qquad A^{-1}=\frac13\begin{pmatrix}2&1\\1&2\end{pmatrix}.

    The transpose symbol T\mathsf T turns a column into a row. Both eigenvalues of AA, namely 11 and 33, are positive, so the real integral converges. The quadratic exponent is −(x12−x1x2+x22)-(x_1^2-x_1x_2+x_2^2); its mixed term favors equal-sign fluctuations.

    For a source column J=(J1,J2)TJ=(J_1,J_2)^{\mathsf T}, the square completion is

    −12xTAx+JTx=−12(x−A−1J)TA(x−A−1J)+12JTA−1J.-\frac12x^{\mathsf T}Ax+J^{\mathsf T}x =-\frac12(x-A^{-1}J)^{\mathsf T}A(x-A^{-1}J) +\frac12J^{\mathsf T}A^{-1}J.

    Dividing by the zero-source integral gives

    Z(J1,J2)=exp⁡(J12+J1J2+J223).Z(J_1,J_2)=\exp\left(\frac{J_1^2+J_1J_2+J_2^2}{3}\right).

    One derivative with respect to each source gives ⟨x1x2⟩0=1/3\langle x_1x_2\rangle_0=1/3. Two derivatives with respect to J1J_1 give ⟨x12⟩0=2/3\langle x_1^2\rangle_0=2/3. The covariance matrix is A−1A^{-1}.

    You can check this without matrix differentiation. The coordinates u=(x1+x2)/2u=(x_1+x_2)/\sqrt2 and w=(x1−x2)/2w=(x_1-x_2)/\sqrt2 have independent Gaussian variances 11 and 1/31/3. Therefore

    ⟨x1x2⟩0=12(⟨u2⟩0−⟨w2⟩0)=13.\langle x_1x_2\rangle_0 =\frac12(\langle u^2\rangle_0-\langle w^2\rangle_0) =\frac13.

    Which matrix belongs in this calculation for the coupled springs? In the potential V=qTKq/2V=q^{\mathsf T}Kq/2 of unit masses, a mode with stiffness eigenvalue ω2\omega^2 oscillates at frequency ω\omega. Its ground-state position density is proportional to e−ωQ2e^{-\omega Q^2} in units ℏ=1\hbar=1. Comparing with e−aQ2/2e^{-aQ^2/2} gives a=2ωa=2\omega. Thus in each mode the matrix AA in the probability density has eigenvalue 2ω2\omega, and the variance is 1/(2ω)1/(2\omega). This recovers the weight used to measure two neighboring sites.

    For a free Euclidean field, the quadratic matrix in the action becomes a differential operator, and its inverse gives a two-point kernel. A real-time path integral has an oscillatory weight and requires a boundary prescription. Tong, Statistical Field Theory, Example Sheet 2, problem 8 (PDF)

    Exercises

    1. A moment without a source

    Integrate the derivative of xn+1e−ax2/2x^{n+1}e^{-ax^2/2} over the real line. Use it to relate ⟨xn+2⟩0\langle x^{n+2}\rangle_0 to ⟨xn⟩0\langle x^n\rangle_0 for nonnegative integer nn.

    Solution

    The Gaussian makes the boundary values vanish. Differentiation therefore gives

    0=(n+1)∫dx xne−ax2/2−a∫dx xn+2e−ax2/2.0=(n+1)\int dx\,x^n e^{-ax^2/2} -a\int dx\,x^{n+2}e^{-ax^2/2}.

    After dividing by the zero-source integral,

    ⟨xn+2⟩0=n+1a⟨xn⟩0.\langle x^{n+2}\rangle_0=\frac{n+1}{a}\langle x^n\rangle_0.

    Starting from ⟨1⟩0=1\langle1\rangle_0=1 gives the second moment 1/a1/a, then 3/a23/a^2, then 15/a315/a^3. Starting from the odd mean zero gives every odd moment zero. This independently checks the factorials obtained from the source expansion.

    2. A connected fourth moment

    At zero source, calculate ⟨x4⟩0−3⟨x2⟩02\langle x^4\rangle_0-3\langle x^2\rangle_0^2. What changes for a variable taking only the values +1+1 and −1-1 with equal probability?

    Solution

    For the Gaussian the result is 3/a2−3/a2=03/a^2-3/a^2=0. For the two-valued variable, both its second and fourth moments are one, so the result is 1−3=−21-3=-2. Symmetry makes odd moments vanish in both examples, but does not make a distribution Gaussian. The connected fourth moment can distinguish these two distributions even when their variances are matched by taking a=1a=1.

    Next lesson

    The source generates moments, its logarithm generates connected moments, and the inverse quadratic matrix gives the Gaussian covariance. Continue to An Oscillator Green Function to construct an inverse with a physical time boundary condition. For a change of sign, predict what happens to the cross covariance if the mixed term in the exponent favors opposite displacements. Coupling produces anticorrelation.

    References

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.