<<

Math Methods for Polymer Science Lecture 2: Transforms, Delta Functions and Gaussian

In the first lecture, we reviewed the Taylor and Fourier . These where both essentially ways of decomposing a given into a differ- ent, more convenient, or more meaningful form. In this lecture, we review the generalization of the to the Fourier transformation. In the context, it is also natural to review 2 , Dirac delta functions and Gaussian functions, as these functions commonly arise in problems of Fourier and are otherwise essential in polymer . For addi- tional reading on Fourier transforms, delta functions and Gaussian integrals see Chapters 15, 1 and 8 of Arken and Weber’s text, Mathematical Methods for Physicists.

1 Fourier Transforms

Conceptually, Fourier transforms are a straightforward generalizations of Fourier series which represent a function on finite domain of size L by an 2πn  2πn  infinite sum over a discrete sets of functions, sin L x and cos L x . In the , that size of the domain is taken to ∞ so that the domain becomes the all positive and negative values of x (see Fig. 1). The key differences between Taylor series, Fourier series and Fourier transforms are summarized as follows:

Taylor Series - series representation in , “local” representation

Fourier Series - series representation in sines and cosines, “global” repre- sentation (over finite or periodic domain)

Fourier transform - representationin sines and cosines over infi- nite domain (L → ∞)

How do we generalize a Fourier series to an infinite domain? For the Fourier transform it’s more convenient to use complex representation of sine and cosine: eix = cos x + i sin x (1)

1 Figure 1: Schematic of Fourier transform of function f(x), where f(x) = ∞   ∞   a0 X 2πn X 2πn + a cos x + b sin x . 2 n L n L n=1 n=1

Using this we can rewrite the Fourier series: ∞   ∞   a0 X 2πn X 2πn f(x) = + a cos x + b sin x 2 n L n L n=1 n=1 ∞ X i2πnx = c exp (2) n L n=−∞ where ( an − ibn n > 0 cn = 2 (3) an + ibn 2 n < 0 a c = 0 . (4) 0 2 Notice also that complex functions ei2πnx/L, are also orthogonal.

L L/2 Z 2 i2πm  i2πn  L 2π(m + n)i  dx exp x exp x = exp x −L L L 2π(m + n)i L 2 −L/2 L π(m + n) = sin π(m + n) L  0 for m + n 6= 0 = (5) L for m + n = 0

Using this, we can extract Fourier coefficients by

L 1 Z 2  2πn  cn = dx exp − x f(x) (6) L −L L 2 Note that the complex notation takes care of factors of 2, etc.

2 We want to define Fourier transform as the L → ∞ of a Fourier series. This limit is unusual because we take L → ∞ while 2πn lim ≡ k (finite). (7) L→∞ L

Here, k is referred to as the wavenumber of the Fourier , eikx. The Fourier transform of a function, f(x), is defined as: Z ∞ −ikx f˜(k) = lim (cnL) = dx e f(x). (8) L→∞ −∞ Often the Fourier transform is written as

F [f(x)] = f˜(k) (9) where F Fourier transform. Notice that the Fourier transform takes f(x), function of “real space” variables, x, and outputs f˜(k), a function of “Fourier space” variables, k. The Fourier transform can be inverted using the definition of the Fourier series ∞ ∞ X X 1 f(x) = c e−ik(n)x = (c L)eik(n)x. (10) n L n n=−∞ n=−∞ Now as L → ∞ k takes on a continuum of values 2π 2π lim ∆k = k(n + 1) − k(n) = [(n + 1) − n] = → 0 L→∞ L L That is, δk becomes infinitely narrow in the L → ∞ limit. This means we can write the sum as ∞ ∞ X 1 1 X 1 Z ∞ lim = lim ∆k = dk (11) L→∞ L 2π ∆k→0 2π n=−∞ n=−∞ −∞

The last step is the is Riemann’s definition of an integral (see Fig. 2). And thus we get Z ∞ dk f(x) = f˜(k)eikx (12) −∞ 2π Eq. (12) is the inverse Fourier transform or h i F −1 f˜(k) = f(x) (13) where F −1 means inverse Fourier transform, f˜(x) is function of “Fourier space”, and f(k) is function of “real space”.

3 Figure 2: A figure showing that Fourier series becomes an integral of con- tinuous function f˜(k) in limit that ∆k → 0 (area).

1.1 Delta Function Related to the Fourier transform is a special function called the , δ(x). It’s essential properties can be deduced by the Fourier trans- form and inverse Fourier transform. Here, we simply insert the definition of the Fourier transform, eq. (8), into equation for the inverse transform, eq. (12),

∞ ∞ ∞ Z dk Z dk Z 0 f(x) = f˜(k)eikx = eikx dx0 eikx f(x0) −∞ 2π −∞ 2π −∞ ∞  ∞  Z Z dk 0 = dx0 eik(x−x ) f(x0) −∞ −∞ 2π Z ∞ = dx0 δ(x − x0)f(x0) = f(x) (14) −∞ This last line defines the properties of delta function, which is defined im- plicitly by the integral in the parentheses on the second line. When you integrate the product of the Dirac delta function with another function, it returns the value of that function at the point where the argument of δ(x) vanishes. Geometrically, you can think of it as an infinitely tall and narrowly peeked function, with area 1 under the curve (see Fig. ??). Using this definition of δ(x) we can derive the Fourier transform of os- cillatory functions.

4 Figure 3: Sketch of a Dirac delta function.

Figure 4: Plot of f(x), which is only non-zero near x = 0.

Example 1: Compute Fourier transform of A cos(qx). Z ∞ f˜(k) = dx A cos(qx)eikx −∞ A Z ∞ = dx eiqx + e−iqx eikx 2 −∞ A Z ∞ h i = dx ei(q+k)x + e−i(q−k)x 2 −∞ = πA [δ(q + k) + δ(q − k)] which is only non-zero for k = ±q. The Fourier transform is particularly useful for studying the properties of a function which is non-zero only over a finite region of space. For example, density or for polymer chain. For this case, we can use Taylor series expansion to cast light on what

5 Figure 5: Plot of f(x). the Fourier transform tells us. Z ∞ f˜(k) = dx e−ikxf(x) −∞ Z ∞  1 i 1  = dx 1 − ikx − k2x2 + k3x3 + k4x4 + ... f(x) (15) −∞ 2! 3! 4! Clearly, Z ∞ f˜(k = 0) = dx f(x) (16) −∞ which is the total area under curve, named N. But we see from Taylor series that various powers of k represent certain averages. That is,

 1 i 1  f˜(k) = N 1 − ikhxi − k2hx2i + k3hx3i + k4hx4i + ... (17) 2! 3! 4! where Z ∞ dx xnf(x) n −∞ hx i = Z ∞ (18) dx f(x) −∞ is an average of xn weighted by f(x). That is what I when we say that f˜(k) is something of a global representation. f˜(k) seems to encodes properties of the function over its entire not just locally. Let’s try an example. Compute Fourier transform of

 A |x| ≤ a f(x) = 0 |x| > a

6 Figure 6: Plot of Gaussian function.

Z ∞ Z a f˜(k) = dx f(x)e−ikx = A dx e−ikx −∞ −a A h i 2A sin(ka) = e−ika − eika = (19) ik k Now that we have full expression, let’s examine small k behavior.

sin(ka) ka − 1 (ka)3 + ... lim f˜(k) = 2A = 2A 3! k→0 k k  1  = 2Aa 1 − (ka)2 + ... (20) 3!

This is just the form we derived above. Note that 2Aa = N(area), and you can check that Z a a 1 3 dx x2 x 3 a2 hx2i = −a = −a = (21) Z a 2a 3 dx −a

1.2 Let’s use the Fourier transform to study an important function, the Gaussian bump 2 − x f(x) = Ae 2a2 (22)

7 This function is very important in random systems, especially in polymer physics. Aside: Integrating a Gaussian function (A trick!).

Z ∞  x2  I = dx exp − 2 (23) −∞ 2a

Z ∞  2 2 Z ∞ Z ∞  2 2  2 x x + y I = dx exp − 2 = dx dy exp − 2 (24) −∞ 2a −∞ −∞ 2a This double integral is carried out over whole x − y plane. Let’s do same integral in polar coordinates: r = px2 + y2, x = r cos φ and y = r sin φ.

Z 2π Z ∞  2  2 r I = dφ dr r exp − 2 0 0 2a Z ∞   2  d 2 r = 2π dr −a exp − 2 0 dr 2a ∞   r2  = 2π −a2 exp − = 2πa2 (25) 2a2 0 √ thus, I = 2πa. Let’s go back to Fourier transform of a Gaussian bump.

∞ Z 2 2 f˜(k) = A dx e−x /2a e−ikx (26) −∞ This can be done by ”completing the square” of argument in exponential

x2 1 k2a2 + ikx = (x + ika2)2 + (27) 2a2 2a2 2 then Z ∞  2 2   2 2  ˜ (x + ika ) k a f(k) = A dx exp − 2 exp − −∞ 2a 2  k2a2  Z ∞  u2  = A exp − du exp − 2 2 −∞ 2a √  k2a2  = A 2πa exp − (28) 2

Note that this was done by changing variables u = x + ika2 and du = dx. Once again we can learn something of f(x) by examining small k prop- erties of f˜(k).

√  k2 k4  f˜(k) = Aa 2π 1 − a2 + (3a2) + ... (29) 2! 4!

8 Figure 7: Schematic of an electron density distribution.

There is no odd terms since hxni = 0 for n odd since f(x) = f(−x). By taking Fourier transform of Gaussian function, we have automatically cal- culated all moments, or averages, of the distribution. The most important is the second Z ∞  x2  dx exp − x2 2a2 hx2i = −∞ = a2 (30) Z ∞  x2  dx exp − 2 −∞ 2a We’ll use this extensively. Finally, we conclude our discussion of Fourier transforms with a discus- sion of . Z ∞ f ∗ g = dy f(y)g(x − y) (31) −∞ where f ∗ g stands for convolution of f(x) and g(x), which are function of x only. says

F {f ∗ g} = f˜(k)˜g(k) = F {f}F {g} (32)

Fourier transform os convolution is product of Fourier transform of f(x) and g(x). This is fairly straight forward to prove. Insert

Z ∞ dk g(x − y) = eik(x−y)g˜(k) (33) −∞ 2π above and take Fourier transform. What is this good for? Say you have a density (probability) distribution created by a lot of copies of the same thing (identical floating in solution). For example, a given macromolecule created a Gaussian electron distribution around it’s center of mass.

9 The total density is computed by summing individual distributions around position of each molecule.

ρcm(x) = δ(x − x0) + δ(x − x1) (34) where ρcm(x) is density of molecule center of mass, and Z ∞ ρtot(x) = dy ρcm(y)ρcm(x − y) (35) −∞ Fourier transform (needed form scattering) is simply product of individ- ual Fourier transforms.

10