<<

2

2.1 Complex The phases exp(inx)/p2⇡, one for each n, are orthonormal on an of length 2⇡

2⇡ imx inx 2⇡ i(n m)x e ⇤ e e dx = dx = m,n (2.1) p2⇡ p2⇡ 2⇡ Z0 ✓ ◆ Z0 where =1ifn = m, and =0ifn = m. So if a f(x)isa n,m n,m 6 sum of these phases

1 einx f(x)= f (2.2) n p n= 2⇡ X1 then their (2.1) gives the nth coecient fn as the

2⇡ e inx 2⇡ e inx 1 eimx 1 f(x) dx = f dx = f = f (2.3) p p m p n,m m n 0 2⇡ 0 2⇡ m= 2⇡ m= Z Z X1 X1 ( 1768–1830). The Fourier series (2.2) is periodic with period 2⇡ because the phases are periodic with period 2⇡,exp(in(x +2⇡)) = exp(inx). Thus even if the function f(x) which we use in (2.3) to make the Fourier coecients fn is not periodic, its Fourier series (2.2) will nevertheless be strictly periodic, as illustrated by Figs. 2.2 & 2.4. If the Fourier series (2.2) converges uniformly (section 2.7), then the term- by-term integration implicit in the formula (2.3) for fn is permitted. How is the Fourier series for the complex-conjugate function f ⇤(x) related 88 Fourier Series to the series for f(x)? The of the Fourier series (2.2) is

inx inx 1 e 1 e f ⇤(x)= fn⇤ = f ⇤ n (2.4) p p n= 2⇡ n= 2⇡ X1 X1 so the coecients fn(f ⇤) for f ⇤(x) are related to those fn(f) for f(x)by

fn(f ⇤)=f ⇤ n(f). (2.5) Thus if the function f(x) is real, then

fn(f)=fn(f ⇤)=f ⇤ n(f). (2.6) Thus the Fourier coecients fn for a real function f(x) satisfy

fn = f ⇤ n. (2.7)

Example 2.1 (Fourier Series by Inspection). The doubly exponential func- tion exp(exp(ix)) has the Fourier series

1 1 exp eix = einx (2.8) n! n=0 X in which n!=n(n 1) ...1isn- with 0! 1. ⌘ Example 2.2 (Beats). The sum of two f(x)=sin!1x +sin!2x of similar frequencies ! ! is the product (exercise 2.1) 1 ⇡ 2 f(x) = 2 cos 1 (! ! )x sin 1 (! + ! )x. (2.9) 2 1 2 2 1 2 1 The first factor cos 2 (!1 !2)x is the beat; it modulates the second factor 1 sin 2 (!1 + !2)x as illustrated by Fig. 2.1.

2.2 The Interval In equations (2.1–2.3), we singled out the interval [0, 2⇡], but to represent a f(x) of period 2⇡, we could have used any interval of length 2⇡, such as the interval [ ⇡,⇡] or [r, r +2⇡] r+2⇡ inx dx fn = e f(x) . (2.10) p2⇡ Zr This integral is independent of its lower r when the function f(x)is periodic with period 2⇡. The choice r = ⇡ often is convenient. With this 2.3 Where to put the 2⇡’s 89

Beats 2

1.5

1 ) x 2

ω 0.5

0 )+sin( x 1

ω −0.5 sin(

−1

−1.5

−2 0 1 2 3 4 5 6 7 8 9 10 x

Figure 2.1 The curve sin !1x +sin!2x for !1 = 30 and !2 = 32. choice of interval, the coecient f is the integral (2.3) shifted by ⇡ n ⇡ inx dx fn = e f(x) . (2.11) ⇡ p2⇡ Z But if the function f(x) is not periodic with period 2⇡, then the Fourier coecients (2.10) do depend upon the choice r of interval.

2.3 Where to put the 2⇡’s In Eqs.(2.2 & 2.3), we used the orthonormal functions exp(inx)/p2⇡, and so we had factors of 1/p2⇡ in both equations. One can avoid having two roots by setting dn = fn/p2⇡ and writing the Fourier series (2.2) and the orthonormality relation (2.3) as

2⇡ 1 inx 1 inx f(x)= d e and d = dx e f(x). (2.12) n n 2⇡ n= 0 X1 Z 90 Fourier Series

Fourier Series for e −2| x |

1

0.8

0.6 | x | 2 − e 0.4

0.2

0

−6 −4 −2 0 2 4 6 x

Figure 2.2 The 10-term (dashes) Fourier series (2.16) for the function exp( 2 x ) on the interval ( ⇡,⇡) is plotted from 2⇡ to 2⇡. All Fourier series are| | periodic, but the function exp( 2 x ) (solid) is not. | |

Alternatevely one set cn = p2⇡fn and may use the rules

⇡ 1 1 inx inx f(x)= c e and c = f(x)e dx. (2.13) 2⇡ n n n= ⇡ X1 Z

Example 2.3 (Fourier Series for exp( m x )). Let’s compute the Fourier | | series for the real function f(x)=exp( m x ) on the interval ( ⇡,⇡). Using | | Eq.(2.10) for the shifted interval and the 2⇡-placement convention (2.12), we find that the coecient dn is the integral

⇡ dx inx m x dn = e e | | (2.14) ⇡ 2⇡ Z 2.4 Real Fourier Series for Real Functions 91 which we may split into the two pieces

0 ⇡ dx (m in)x dx (m+in)x dn = e + e ⇡ 2⇡ 0 2⇡ Z Z (2.15) 1 m n ⇡m = 1 ( 1) e ⇡ m2 + n2 ⇥ ⇤ which shows that dn = d n.Sincem is real, the coecients dn also are real, dn = dn⇤ . They therefore satisfy the condition (2.7) that holds for real functions, dn = d⇤ n, and give the Fourier series for exp( m x ) as | |

m x 1 inx 1 1 m n ⇡m inx e | | = d e = 1 ( 1) e e n ⇡ m2 + n2 n= n= X1 X1 (2.16) ⇡m ⇥ ⇤ (1 e ) 1 2 m n ⇡m = + 1 ( 1) e cos(nx). m⇡ ⇡ m2 + n2 n=1 X ⇥ ⇤

In Fig. 2.2, the 10-term (dashes) Fourier series for m = 2 is plotted from x = 2⇡ to x =2⇡. The function exp( 2 x ) itself is represented by a solid | | line. Although exp( 2 x ) is not periodic, its Fourier series is periodic with | | period 2⇡. The 10-term Fourier series represents the function exp( 2 x ) | | quite well within the interval [ ⇡,⇡]. In what follows, we usually won’t bother to use di↵erent letters to distin- guish between the symmetric (2.2 & 2.3) and asymmetric (2.13) conventions on the placement of the 2⇡’s.

2.4 Real Fourier Series for Real Functions The rules (2.1–2.3 and 2.10–2.13) for Fourier series are simple and apply to functions that are continuous and periodic whether complex or real. If a function f(x) is real, then its Fourier coecients obey the rule (2.7) that holds for real functions, d n = dn⇤ .Thusd0 is real, d0 = d0⇤, and we may 92 Fourier Series write the Fourier series (2.12) for a real function f(x) as

1 1 inx inx f(x)=d0 + dn e + dn e n=1 n= X X1 1 inx inx 1 inx inx = d0 + dn e + d n e = d0 + dn e + dn⇤ e n=1 n=1 X ⇥ ⇤ X ⇥ ⇤ 1 = d + d (cos nx + i sin nx)+d⇤ (cos nx i sin nx) 0 n n n=1 X 1 = d + (d + d⇤ ) cos nx + i(d d⇤ )sinnx. (2.17) 0 n n n n n=1 X In terms of the real coecients

a = d + d⇤ and b = i(d d⇤ ), (2.18) n n n n n n the Fourier series (2.17) of a real function f(x)is

a 1 f(x)= 0 + a cos nx + b sin nx. (2.19) 2 n n n=1 X

What are the formulas for an and bn? By (2.18 & 2.12), the coecient an is

2⇡ 2⇡ inx inx inx inx dx e + e dx a = e f(x)+e f ⇤(x) = f(x) n 2⇡ 2 ⇡ Z0 Z0 ⇥ ⇤ (2.20) since the function f(x) is real. So the coecient an of cos nx in (2.19) is the cosine integral of f(x)

2⇡ dx a = cos nx f(x) . (2.21) n ⇡ Z0 Similarly, equations (2.18 & 2.12) and the reality of f(x) imply that the coecient bn is the integral of f(x)

2⇡ inx inx 2⇡ e e dx dx b = i f(x) = sin nx f(x) (2.22) n 2 ⇡ ⇡ Z0 Z0 The real Fourier series (2.19) and the cosine (2.21) and sine (2.22) 2.4 Real Fourier Series for Real Functions 93 for the coecients an and bn also follow from the relations 2⇡ ⇡ if n = m =0 sin mx sin nx dx = 6 (2.23) 0 otherwise, Z0 ⇢ ⇡ if n = m =0 2⇡ 6 cos mx cos nx dx = 2⇡ if n = m =0 (2.24) 0 8 Z < 0 otherwise, and 2⇡ sin mx cos nx dx =0:, (2.25) Z0 which hold for integer values of n and m. If the function f(x)isperiodicwithperiod2⇡, then instead of the interval [0, 2⇡], one may choose any interval of length 2⇡ such as [ ⇡,⇡]. What if a function f(x) is not periodic? The Fourier series for an aperi- odic function is itself strictly periodic, is sensitive to its interval (r, r +2⇡) of definition, may di↵er somewhat from the function near the ends of the interval, and usually di↵ers markedly from it outside the interval. Example 2.4 (The Fourier Series for x2). The function x2 is even and so the integrals (2.22) for its sine Fourier coecients bn all vanish. Its cosine coecients an are given by (2.21) ⇡ ⇡ dx 2 dx an = cos nx f(x) = cos nx x . (2.26) ⇡ ⇡ ⇡ ⇡ Z Z Integrating twice by parts, we find for n =0 6 ⇡ ⇡ 2 dx 2x cos nx n 4 an = x sin nx = 2 =( 1) 2 (2.27) n ⇡ ⇡ ⇡n ⇡ n Z  and ⇡ 2 2 dx 2⇡ a0 = x = . (2.28) ⇡ ⇡ 3 Z Equation (2.19) now gives for x2 the cosine Fourier series

a 1 ⇡2 1 cos nx x2 = 0 + a cos nx = +4 ( 1)n . (2.29) 2 n 3 n2 n=1 n=1 X X This series rapidly converges within the interval [ 1, 1] as shown in Fig. 2.3, but not near the endpoints ⇡. ± Example 2.5 (The Gibbs ). The function f(x)=x on the interval [ ⇡,⇡] is not periodic. So we expect trouble if we represent it as a Fourier 94 Fourier Series Fourier Series for x 2

0.9

0.8

0.7

0.6

0.5 2 x 0.4

0.3

0.2

0.1

0

−0.1 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 x

Figure 2.3 The function x2 (solid) and its Fourier series of 7 terms (dot dash) and 20 terms (dashes). The Fourier series (2.29) for x2 quickly con- verges well inside the interval ( ⇡,⇡). series. Since x is an odd function, equation (2.21) tells us that the coecients an all vanish. By (2.22), the bn’s are ⇡ dx n+1 1 bn = x sin nx =2( 1) . (2.30) ⇡ ⇡ n Z As shown in Fig. 2.4, the series

1 1 2( 1)n+1 sin nx (2.31) n n=1 X di↵ers by about 2⇡ from the function f(x)=x for 3⇡

Fourier Series for the Aperiodic Function x 6

4

2

0 x

−2

−4

−6 −6 −4 −2 0 2 4 6

Gibbs Overshoot for the Function x 0.6

0.4

0.2

0

−0.2 Overshoot −0.4

−0.6 −3 −2 −1 0 1 2 3 x

Figure 2.4 (top) The Fourier series (2.31) for the function x (solid line) with 10 terms (. . . ) and 100 terms (solid curve) for 2⇡

Amistad). Any time we use a Fourier series to represent an aperiodic func- tion, a Gibbs overshoot will occur near the endpoints of the interval.

2.5 Stretched Intervals If the interval of periodicity is of length L instead of 2⇡,thenwemayuse the phases exp(i2⇡nx/pL) which are orthonormal on the interval [0,L]

L ei2⇡nx/L ⇤ ei2⇡mx/L dx = nm. (2.32) pL pL Z0 ! 96 Fourier Series The Fourier series

1 ei2⇡nx/L f(x)= f (2.33) n p n= L X1 is periodic with period L.Thecoecientfn is the integral

L i2⇡nx/L e fn = f(x) dx. (2.34) pL Z0 These relations (2.32–2.34) generalize to the interval [0,L] our earlier for- mulas (2.1–2.3) for the interval [0, 2⇡]. If the function f(x)isperiodicf(x L)=f(x)withperiodL,thenwe ± may shift the domain of integration by any real r

L+r i2⇡nx/L e fn = f(x) dx (2.35) pL Zr without changing the coecients f . An obvious choice is r = L/2 for n which (2.33) and (2.34) give

1 ei2⇡nx/L L/2 e i2⇡nx/L f(x)= f and f = f(x) dx. (2.36) n p n p n= L L/2 L X1 Z If the function f(x) is real, then on the interval [0,L] in place of Eqs.(2.19), (2.21), & (2.22), one has

a 1 2⇡nx 2⇡nx f(x)= 0 + a cos + b sin , (2.37) 2 n L n L n=1 X ✓ ◆ ✓ ◆

2 L 2⇡nx a = dx cos f(x), (2.38) n L L Z0 ✓ ◆ and

2 L 2⇡nx b = dx sin f(x). (2.39) n L L Z0 ✓ ◆ The corresponding orthogonality relations, which follow from Eqs.(2.23), 2.6 Fourier Series in Several Variables 97 (2.24), & (2.25), are:

L 2⇡mx 2⇡nx L/2ifn = m =0 dx sin sin = 6 (2.40) L L 0 otherwise, Z0 ✓ ◆ ✓ ◆ ⇢ L/2ifn = m =0 L 2⇡mx 2⇡nx 6 dx cos cos = L if n = m =0 (2.41) 0 L L 8 Z ✓ ◆ ✓ ◆ < 0 otherwise, and L 2⇡mx 2⇡nx dx sin cos =0:. (2.42) L L Z0 ✓ ◆ ✓ ◆ They hold for integer values of n and m, and they imply Eqs.(2.37)–2.39).

2.6 Fourier Series in Several Variables On the interval [ L, L], the Fourier-series formulas (2.33 & 2.34) are 1 ei⇡nx/L f(x)= f (2.43) n p n= 2L X1 L i⇡nx/L e fn = f(x) dx. (2.44) L p2L Z We may generalize these equations from a single variable to N variables x =(x ,...,x )withn x = n x + ...+ n x 1 N · 1 1 N N i⇡n x/L 1 1 e · f(x)= ... fn (2.45) (2L)N/2 n1= n = X1 NX1 L L e i⇡n x/L f = dx ... dx · f(x). (2.46) n 1 N N/2 L L (2L) Z Z

2.7 How Fourier Series Converge A Fourier series represents a function f(x) as the limit of a of functions fN (x) given by

N i2⇡kx/L L e i2⇡kx/L dx fN (x)= fk in which fk = f(x) e . (2.47) pL pL k= N Z0 X Since the exponentials are periodic with period L, a Fourier series always is periodic. So if the function f(x) is not periodic, then its Fourier series will 98 Fourier Series represent the periodic extension fp of f defined by fp(x + nL)=f(x) for all n and for 0 x L.   A sequence of functions fN (x) converges to a function f(x) on a (closed) interval [a, b] if for every ✏>0 and each point a x b, there exists an   integer N(✏, x) such that

f(x) f (x) <✏ for all N>N(✏, x). (2.48) | N | If this holds for an N(✏, x)=N(✏) that is independent of x [a, b], then the 2 sequence of functions fN (x) converges uniformly to f(x) on the interval [a, b]. A function f(x)iscontinuous on an open interval (a, b) if for every point a

f(x 0) lim f(x ✏) and f(x + 0) lim f(x + ✏) (2.49) ⌘ 0<✏ 0 ⌘ 0<✏ 0 ! ! agree; it also is continuous on the closed interval [a, b]iff(a+0) = f(a) and f(b 0) = f(b). A function continuous on [a, b] is bounded and integrable on that interval. If a sequence of continuous functions fN (x) converges uniformly to a func- tion f(x) on a closed interval a x b, then we know that f (x) f(x) <✏   | N | for N>N(✏), and so

b b b f (x) dx f(x) dx f (x) f(x) dx < (b a)✏. (2.50) N  | N | Za Za Za Thus one may integrate a uniformly convergent sequence of continuous func- tions on a closed interval [a, b]termbyterm

b b b lim fN (x) dx = lim fN (x) dx = f(x) dx. (2.51) N N !1 Za Za !1 Za

A function is piecewise continuous on [a, b] if it is continuous there except for finite jumps from f(x 0) to f(x+0) at a finite number of points x.Atsuchjumps,wedefine the periodically extended function fp to be the mean f (x)=[f(x 0) + f(x + 0)]/2. p Fourier’s convergence theorem (Courant, 1937, p. 439): The Fourier series of a function f(x) that is piecewise continuous with a piecewise con- tinuous first converges to its periodic extension fp(x). This con- vergence is uniform on every closed interval on which the function f(x)is continuous (and absolute if the function f(x) has no discontinuities). Exam- ples 2.11 and 2.12 illustrate this result. 2.7 How Fourier Series Converge 99 A function whose kth derivative is continuous is in class Ck.Onthe interval [ ⇡,⇡], its Fourier coecients (2.13) are ⇡ inx fn = f(x) e dx. (2.52) ⇡ Z If f is both periodic and in Ck, then one gives

⇡ inx inx ⇡ inx d e e e fn = f(x) f 0(x) dx = f 0(x) dx ⇡ dx in in ⇡ in Z ⇢  Z and k integrations by parts give

⇡ inx (k) e fn = f (x) k dx (2.53) ⇡ (in) Z since the f (`)(x) of a Ck periodic function also are periodic. Moreover if f (k+1) is piecewise continuous, then

⇡ inx inx d (k) e (k+1) e fn = f (x) k+1 f (x) k+1 dx ⇡ dx (in) (in) Z ⇢  ⇡ inx (2.54) (k+1) e = f (x) k+1 dx. ⇡ (in) Z Since f (k+1)(x) is piecewise continuous on the closed interval [ ⇡,⇡], it is bounded there in by, let us say, M. So the Fourier coecients of a Ck periodic function with f (k+1) piecewise continuous are bounded by ⇡ 1 (k+1) 2⇡M fn k+1 f (x) dx k+1 . (2.55) | |n ⇡ | |  n Z We often can carry this derivation one step further. In most simple exam- ples, the piecewise continuous periodic function f (k+1)(x) actually is piece- wise continuously di↵erentiable between its successive jumps at xj.Inthis case, the derivative f (k+2)(x) is a piecewise plus a sum of a finite number of delta functions with finite coecients. Thus we can integrate once more by parts. If for instance the function f (k+1)(x)jumpsJ times between ⇡ and ⇡ by f (k+1), then its Fourier coecients are j ⇡ inx (k+2) e fn = f (x) k+2 dx ⇡ (in) Z J J (2.56) xj+1 inx inxj (k+2) e (k+2) e = fs (x) k+2 dx + fj k+2 xj (in) (in) Xj=1 Z Xj=1 100 Fourier Series in which the subscript s means that we’ve separated out the delta functions. The Fourier coecients then are bounded by 2⇡M f (2.57) | n| nk+2 (k+2) in which M is related to the maximum absolute values of fs (x) and (k+1) k of the fj . The Fourier series of periodic C functions converge very rapidly if k is big. Example 2.6 (Fourier Series of a C0 Function). The function defined by 0 ⇡ x<0  f(x)= x 0 x<⇡/2 (2.58) 8  ⇡ x⇡/2 x ⇡ <   is continuous on the interval: [ ⇡,⇡] and its first derivative is piecewise continuous on that interval. By (2.55), its Fourier coecients fn should be bounded by M/n. In fact they are (exercise 2.8) ⇡ n+1 n 2 inx dx ( 1) (i 1) fn = f(x)e = 2 (2.59) ⇡ p2⇡ p2⇡ n Z bounded by 2 2/⇡/n2 in agreement with the stronger inequality (2.57). Example 2.7p(Fourier Series for a C1 Function). The function defined by f(x) = 1 + cos 2x for x ⇡/2 and f(x) = 0 for x ⇡/2 has a periodic | | | | extension fp that is continuous with a continuous first derivative and a piecewise continuous second derivative. Its Fourier coecients (2.52)

⇡/2 inx dx 8sinn⇡/2 f = (1 + cos 2x) e = n 3 ⇡/2 p2⇡ p2⇡(4n n ) Z satisfy the inequalities (2.55) and (2.57) for k = 1. Example 2.8 (The Fourier Series for cos µx). The Fourier series for the even function f(x) = cos µx has only cosines with coecients (2.21) ⇡ dx ⇡ dx an = cos nx cos µx = [cos(µ + n)x + cos(µ n)x] ⇡ ⇡ 0 ⇡ Z Z (2.60) 1 sin(µ + n)⇡ sin(µ n)⇡ 2 µ( 1)n = + = sin µ⇡. ⇡ µ + n µ n ⇡ µ2 n2  Thus whether or not µ is an integer, the series (2.19) gives us 2µ sin µ⇡ 1 cos x cos 2x cos 3x cos µx = + + ... (2.61) ⇡ 2µ2 µ2 12 µ2 22 µ2 32 ✓ ◆ 2.7 How Fourier Series Converge 101 which is continuous at x = ⇡ (Courant, 1937, chap. IX). ± Example 2.9 (The Sine as an Infinite Product). In our series (2.61) for cos µx,wesetx = ⇡,dividebysinµ⇡, replace µ with x, and so find for the cotangent the expansion 2x 1 1 1 1 cot ⇡x = + + + + ... (2.62) ⇡ 2x2 x2 12 x2 22 x2 32 ✓ ◆ or equivalently 1 2x 1 1 1 cot ⇡x = + + + ... . (2.63) ⇡x ⇡ 12 x2 22 x2 32 x2 ✓ ◆ For 0 x q<1, the absolute value of the nth term on the right is less   than 2q/(⇡(n2 q2)). Thus this series converges uniformly on [0,x], and so we may integrate it term by term. We find (exercise 2.11)

x 1 sin ⇡x 1 x 2tdt 1 x2 ⇡ cot ⇡t dt =ln = = ln 1 . ⇡t ⇡x n2 t2 n2 Z0 ✓ ◆ n=1 Z0 n=1  X X (2.64) Exponentiating, we get the infinite-product formula

sin ⇡x 1 x2 1 x2 =exp ln 1 = 1 (2.65) ⇡x n2 n2 "n=1 # n=1 X ✓ ◆ Y ✓ ◆ for the sine from which one can derive the infinite product (exercise 2.12)

1 x2 cos ⇡x = 1 (2.66) (n 1 )2 n=1 2 ! Y for the cosine (Courant, 1937, chap. IX). Fourier series can represent a much wider class of functions than those that are continuous. If a function f(x) is square integrable on an interval [a, b], then its N-term Fourier series fN (x) will converge to f(x) in the mean, that is b 2 lim dx f(x) fN (x) =0. (2.67) N | | !1 Za What happens to the convergence of a Fourier series if we integrate or di↵erentiate term by term? If we integrate the series

1 ei2⇡nx/L f(x)= f (2.68) n p n= L X1 102 Fourier Series then we get a series x f0 pL 1 fn i2⇡nx/L i2⇡na/L F (x)= dx0f(x0)= (x a) i e e a pL 2⇡ n Z n= ⇣ ⌘ X1 (2.69) that converges better because of the extra factor of 1/n. An integrated function f(x) is smoother, and so its Fourier series converges better. But if we di↵erentiate the same series, then we get a series

2⇡ 1 f (x)=i nf ei2⇡nx/L (2.70) 0 3/2 n L n= X1 that converges less well because of the extra factor of n. A di↵erentiated function is rougher, and so its Fourier series converges less well.

2.8 Quantum-Mechanical Examples Suppose a particle of mass m is trapped in an infinitely deep one-dimensional square well of potential energy 0if0

~2 d2 ~2 n⇡ 2 (x)= (x)=E (x) (2.77) 2m dx2 n 2m L n n n ⇣ ⌘ 2 it reveals its energy to be En =(n⇡~/L) /2m. These n(x) are complete in the sense that they span the space of all functions f(x) that are square-integrable on the interval (0,L) and vanish at its end points. They provide for such functions the sine Fourier series 1 2 ⇡nx f(x)= f sin (2.78) n L L n=1 r X ⇣ ⌘ which is periodic with period 2L and is the Fourier series for a function that is odd f( x)= f(x) on the interval ( L, L) and zero at both ends. Example 2.10 (Time Evolution of an Initially Piecewise Continuous ). Suppose now that at time t = 0 the particle is confined to the middle half of the well with the square-wave wave function

2 L 3L (x, 0) = for

L 2 ⇡nx 2 ⇡mx dx sin sin = nm (2.80) 0 L L L L Z r ⇣ ⌘ r ⇣ ⌘ the coecients fn in the Fourier series

1 2 ⇡nx (x, 0) = f sin (2.81) n L L n=1 r X ⇣ ⌘ are the inner products

L 2 ⇡nx fn = n , 0 = dx sin (x, 0). (2.82) h | i 0 L L Z r ⇣ ⌘ 104 Fourier Series

Fourier Series for a Piecewise Continuous Wave Function 1.2

1

0.8

0.6 0) x, (

ψ 0.4

0.2

0

−0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x

Figure 2.5 The piecewise continuous wave function (x, 0) for L = 2 (2.79, straight solid lines) and its Fourier series (2.81) with 10 terms (solid curve) and 100 terms (dashes). Gibbs overshoots occur near the discontinuities at x =1/2 and x =3/2.

They are proportional to 1/n in accord with (2.57)

2 3L/4 ⇡nx 2 ⇡n 3⇡n fn = dx sin = cos cos . (2.83) L L/4 L ⇡n 4 4 Z ⇣ ⌘  ⇣ ⌘ ✓ ◆

Figure 2.5 plots the square wave function (x, 0) (2.79, straight solid lines) and its 10-term (solid curve) and 100-term (dashes) Fourier series (2.81) for an interval of length L = 2. Gibbs’s overshoot reaches 1.093 at x =0.52 for 100 terms and 1.0898 at x =0.502 for 1000 terms (not shown), amounting to about 9% of the unit discontinuity at x =1/2. A similar overshoot occurs at x =3/2. How does (x, 0) evolve with time? Since n(x), the Fourier component (2.76), is an eigenfunction of H with energy En, the time-evolution operator 2.8 Quantum-Mechanical Examples 105

|ψ(x, t)| 2 for a Piecewise Continuous Wave Function 1.8

1.6

1.4

1.2 2 |

) 1 x, t ( 0.8 ψ |

0.6

0.4

0.2

0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x

Figure 2.6 For an interval of length L = 2, the probability distributions P (x, t)= (x, t) 2 of the 1000-term Fourier series (2.85) for the wave | | 3 function (x, t) at t =0(thickcurve),t = 10 ⌧ (medium curve), and ⌧ =2mL2/~ (thin curve). The jaggedness of P (x, t) arises from the two discontinuities in the initial wave function (x, 0) (2.86) at x = L/4 and x =3L/4.

U(t)=exp( iHt/~) takes (x, 0) into 1 2 ⇡nx iHt/~ iEnt/~ (x, t)=e (x, 0) = f sin e . (2.84) n L L n=1 r X ⇣ ⌘ 2 Because En =(n⇡~/L) /2m, the wave function at time t is

1 2 ⇡nx i~(n⇡)2t/(2mL2) (x, t)= f sin e . (2.85) n L L n=1 r X ⇣ ⌘ It is awkward to plot complex functions, so Fig. 2.6 displays the probability distributions P (x, t)= (x, t) 2 of the 1000-term Fourier series (2.85) for the | | 3 wave function (x, t) at t =0(thickcurve),t = 10 ⌧ (medium curve), and 106 Fourier Series

Fourier Series of a Continuous Function 1.6

1.4

1.2

1

0) 0.8 x, ( 0.6 ψ

0.4

0.2

0

−0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x

Figure 2.7 The continuous wave function (x, 0) (2.86, solid) and its 10- term Fourier series (2.89–2.90, dashes) are plotted for the interval [0, 2].

⌧ =2mL2/~ (thin curve). The discontinuities in the initial wave function (x, 0) cause both the Gibbs overshoots at x =1/2 and x =3/2seeninthe series for (x, 0) plotted in Fig. 2.5 and the choppiness of the P (x, t) exhibited in Fig.(2.6).

Example 2.11 (Time Evolution of a Continuous Function). What does the Fourier series of a continuous function look like? How does it evolve with time? Let us take as the wave function at t =0theC0 function 2 2⇡(x L/4) L 3L (x, 0) = sin for

Probability Distribution of a Continuous Wave Function 2.5

2

2 1.5 | ) x, t ( ψ | 1

0.5

0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x

Figure 2.8 For the interval [0, 2], the probability distributions P (x, t)= (x, t) 2 of the 1000-term Fourier series (2.92) for the wave function (x, t) | | 2 1 2 at t = 0, 10 ⌧, 10 ⌧, ⌧ =2mL /~, 10⌧, and 100⌧ are plotted as succes- sively thinner curves.

As in Eq.(2.82), the Fourier coecients fn are given by the integrals L 2 ⇡nx fn = dx sin (x, 0), (2.87) 0 L L Z r ⇣ ⌘ which now take the form 2p2 3L/4 ⇡nx 2⇡(x L/4) fn = dx sin sin . (2.88) L L/4 L L Z ⇣ ⌘ ✓ ◆ Doing the integral, one finds for f that for n =2 n 6 p2 4 f = [sin(3n⇡/4) + sin(n⇡/4)] (2.89) n ⇡ n2 4 while c2 = 0. These Fourier coecients satisfy the inequalities (2.55) and 2 (2.57) for k = 0. The factor of 1/n in fn guarantees the 108 Fourier Series of the series 1 2 ⇡nx (x, 0) = f sin (2.90) n L L n=1 r X ⇣ ⌘ because asymptotically the coecient f is bounded by f A/n2 where n | n|  A is a constant (A = 144/(5⇡pL) will do) and the sum of 1/n2 converges to the (4.99)

1 1 ⇡2 = ⇣(2) = . (2.91) n2 6 n=1 X Figure 2.7 plots the 10-term Fourier series (2.90) for (x, 0) for L = 2. Because this series converges absolutely and uniformly on [0, 2], the 100- term and 1000-term series were too close to (x, 0) to be seen clearly in the figure and so were omitted. As time goes by, the wave function (x, t) evolves from (x, 0) to

1 2 ⇡nx i~(n⇡)2t/(2mL2) (x, t)= f sin e . (2.92) n L L n=1 r X ⇣ ⌘ in which the Fourier coecients are given by (2.89). Because (x, 0) is con- tinuous and periodic with a piecewise continuous first derivative, its evolu- tion in time is much calmer than that of the piecewise continuous square wave (2.79). Figure 2.8 shows this evolution in successively thinner curves 2 1 2 at times t = 0, 10 ⌧, 10 ⌧, ⌧ =2mL /~, 10⌧, and 100⌧. The curves at 2 1 t = 0 and t = 10 ⌧ are smooth, but some wobbles appear at t = 10 ⌧ and at t = ⌧ due to the discontinuities in the first derivative of (x, 0) at x =0.5 and at x =1.5. Example 2.12 (Time Evolution of a Smooth Wave Function). Finally, let’s try a wave function (x, 0) that is periodic and infinitely di↵erentiable on [0,L]. An infinitely di↵erentiable function is said to be smooth or C1.The infinite square-well potential V (x) of equation (2.71) imposes the periodic boundary conditions (0, 0) = (L, 0) = 0, so we try

2 2⇡x (x, 0) = 1 cos . (2.93) 3L L r  ✓ ◆ Its Fourier series

1 2⇡ix/L 2⇡ix/L (x, 0) = 2 e e (2.94) 6L r ⇣ ⌘ has coecients that satisfy the upper bounds (2.55) by vanishing for n > 1. | | 2.8 Quantum-Mechanical Examples 109

Fourier Series of a Smooth Function 1.4

1.2

1

0.8 0) x, (

ψ 0.6

0.4

0.2

0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x

Figure 2.9 The wave function (x, 0) (2.93) is infinitely di↵erentiable, and so the first 10 terms of its uniformly convergent Fourier series (2.96) o↵er a very good approximation to it.

The coecients of the Fourier sine series for the wave function (x, 0) are given by the integrals (2.82)

L 2 ⇡nx fn = dx sin (x, 0) 0 L L Z r ⇣ ⌘ 2 L ⇡nx 2⇡x = dx sin 1 cos p3 L L L Z0  ✓ ◆ 8[( 1)n 1] ⇣ ⌘ = (2.95) ⇡p3 n(n2 4)

3 with all the even coecients zero, c2n = 0. The fn’s are proportional to 1/n which is more than enough to ensure the absolute and 110 Fourier Series

Probability Distribution of a Smooth Wave Function 1.4

1.2

1 2 |

) 0.8 x, t (

ψ 0.6 |

0.4

0.2

0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x

Figure 2.10 The probability distributions P (x, t)= (x, t) 2 of the 1000- | | 2 term Fourier series (2.97) for the wave function (x, t) at t = 0, 10 ⌧, 1 2 10 ⌧, ⌧ =2mL /~, 10⌧, and 100⌧ are plotted as successively thinner curves. The time evolution is calm because the wave function (x, 0) is smooth. of its Fourier sine series

1 2 ⇡nx (x, 0) = f sin . (2.96) n L L n=1 r X ⇣ ⌘ As time goes by, it evolves to

1 2 ⇡nx i~(n⇡)2t/(2mL2) (x, t)= f sin e (2.97) n L L n=1 r X ⇣ ⌘ and remains absolutely convergent for all times t. The e↵ects of the absolute and uniform convergence with f 1/n3 are n / obvious in the graphs. Figure 2.9 shows (for L = 2) that only 10 terms are required to nearly overlap the initial wave function (x, 0). Figure 2.10 shows that the evolution of the probability distribution (x, t) 2 with time is | | 2.9 Dirac Notation 111 smooth, with no of the jaggedness of Fig. 2.6 or the wobbles of Fig. 2.8. Because (x, 0) is smooth and periodic, it evolves calmly as time passes.

2.9 Dirac Notation Vectors j that are orthonormal k j = span a and express | i h | i k,j the identity operator I of the space as (1.141) N I = j j . (2.98) | ih | Xj=1 Multiplying from the right by any vector g in the space, we get | i N g = I g = j j g (2.99) | i | i | ih | i Xj=1 which says that every vector g in the space has an expansion (1.142) in | i terms of the N orthonormal vectors j .Thecoecients j g of the | i h | i expansion are inner products of the vector g with the basis vectors j . | i | i These properties of finite-dimensional vector spaces also are true of infinite- dimensional vector spaces of functions. We may use as basis vectors the phases exp(inx)/p2⇡. They are orthonormal with inner product (2.1) 2⇡ imx inx 2⇡ i(n m)x e ⇤ e e (m, n)= dx = dx = m,n (2.100) p2⇡ p2⇡ 2⇡ Z0 ✓ ◆ Z0 which in Dirac notation with x n =exp(inx)/p2⇡ and m x = x m is h | i h | i h | i⇤ 2⇡ 2⇡ ei(n m)x m n = m x x n dx = dx = . (2.101) h | i h | ih | i 2⇡ m,n Z0 Z0 The identity operator for Fourier’s space of functions is

1 I = n n . (2.102) | ih | n= X1 So we have 1 f = I f = n n f (2.103) | i | i | ih | i n= X1 and 1 1 einx x f = x I f = x n n f = n f (2.104) h | i h | | i h | ih | i p h | i n= n= 2⇡ X1 X1 112 Fourier Series which with n f = f is the Fourier series (2.2). The coecients n f = f h | i n h | i n are the inner products (2.3)

2⇡ 2⇡ e inx 2⇡ e inx n f = n x x f dx = x f dx = f(x) dx. h | i 0 h | ih | i 0 p2⇡ h | i 0 p2⇡ Z Z Z (2.105)

2.10 Dirac’s Delta Function A is a (continuous, linear) map from a space of suitably well-behaved functions into the real or complex . It is a functional that associates a number with each function in the . Thus (x y) associates the number f(y) with the function f(x). We may write this association as

f(y)= f(x) (x y) dx. (2.106) Z Delta functions pop up all over physics. The inner product of two of the kets x that appear in the Fourier-series formulas (2.104) and (2.105) is a | i delta function, x y = (x y). The formula (2.105) for the coecient n f h | i h | i becomes obvious if we write the identity operator for functions defined on the interval [0, 2⇡] as 2⇡ I = x x dx (2.107) | ih | Z0 for then 2⇡ 2⇡ e inx n f = n I f = n x x f dx = x f dx. (2.108) h | i h | | i h | ih | i p2⇡ h | i Z0 Z0 The equation y = I y with the identity operator (2.107) gives | i | i 2⇡ y = I y = x x y dx. (2.109) | i | i | ih | i Z0 Multiplying (2.107) from the right by f and from the left by y , we get | i h | 2⇡ 2⇡ f(y)= y I f = y x x f dx = y x f(x) dx. (2.110) h | | i h | ih | i h | i Z0 Z0 These relations (2.109 & 2.110) say that the inner product y x is a delta h | i function, y x = x y = (x y). h | i h | i The Fourier-series formulas (2.104) and (2.105) lead to a statement about 2.10 Dirac’s Delta Function 113 the completeness of the phases exp(inx)/p2⇡

1 einx 1 2⇡ e iny einx f(x)= f = f(y) dy. (2.111) n p p p n= 2⇡ n= 0 2⇡ 2⇡ X1 X1 Z Interchanging and rearranging, we have

2⇡ 1 ein(x y) f(x)= f(y) dy. (2.112) 2⇡ 0 n= ! Z X1 But f(x) and the phases einx are periodic with period 2⇡, so we also have

2⇡ 1 ein(x y) f(x +2⇡`)= f(y) dy. (2.113) 2⇡ 0 n= ! Z X1 Thus we arrive at the

1 ein(x y) 1 = (x y 2⇡`) (2.114) 2⇡ n= `= X1 X1 or more simply

1 einx 1 1 1 = 1+2 cos(nx) = (x 2⇡`). (2.115) 2⇡ 2⇡ n= " n=1 # `= X1 X X1 Example 2.13 (Dirac’s Comb). The sum of the first 100,000 terms of this cosine series (2.115) for the Dirac comb is plotted for the interval ( 15, 15) in Fig. 2.11. Gibbs overshoots appear at the discontinuities. The integral of the first 100,000 terms from -15 to 15 is 5.0000.

The stretched Dirac comb is

1 e2⇡in(x y)/L 1 = (x y `L). (2.116) L n= `= X1 X1

Example 2.14 (Parseval’s Identity). Using our formula (2.34) for the Fourier coecients of a stretched interval, we can relate a sum of products fn⇤ gn of the Fourier coecients of the functions f(x) and g(x) to an integral of the product f ⇤(x) g(x)

L i2⇡nx/L L i2⇡ny/L 1 1 e e f ⇤ g = dx f ⇤(x) dy g(y). (2.117) n n p p n= n= 0 L 0 L X1 X1 Z Z 114 Fourier Series

x 104 Dirac Comb 3.5

3

2.5

2

1.5

1 Sum of Series 0.5

0

−0.5

−1 −15 −10 −5 0 5 10 15 x

Figure 2.11 The sum of the first 100,000 terms of the series (2.115) for the Dirac comb is plotted for 15 x 15. Both Dirac spikes and Gibbs overshoots are visible.  

This sum contains Dirac’s comb (2.116) and so

L L 1 1 1 i2⇡n(x y)/L f ⇤ g = dx dy f ⇤(x) g(y) e n n L n= 0 0 n= X1 Z Z X1 (2.118) L L 1 = dx dy f ⇤(x) g(y) (x y `L). Z0 Z0 `= X1

But because only the ` = 0 tooth of the comb lies in the interval [0,L], we have more simply

1 L L L f ⇤ g = dx dy f ⇤(x) g(y) (x y)= dx f ⇤(x) g(x). (2.119) n n n= 0 0 0 X1 Z Z Z 2.11 The Oscillator 115 In particular, if the two functions are the same, then

1 L f 2 = dx f(x) 2 (2.120) | n| | | n= 0 X1 Z which is Parseval’s identity. Thus if a function is square integrable on an interval, then the sum of the squares of the absolute values of its Fourier coecients is the integral of the square of its absolute value. Example 2.15 (Derivatives of Delta Functions). Delta functions and other generalized functions or distributions map smooth functions that vanish at infinity into numbers in ways that are linear and continuous. Derivatives of delta functions are defined so as to allow integrations by parts. Thus the nth derivative of the delta function (n)(x y) maps the function f(x)to ( 1)n times its nth derivative f (n)(y) at y (n)(x y) f(x) dx = (x y)( 1)n f (n)(x) dx =( 1)n f (n)(y) (2.121) Z Z with no surface term. Example 2.16 (The Equation xf(x)=a). Dirac’s delta function some- times appears unexpectedly. For instance, the general solution to the equa- tion xf(x)=a is f(x)=a/x+b(x)whereb is an arbitrary constant (Dirac, 1967, sec. 15), (Waxman and Peck, 1998). Similarly, the general solution to 2 2 the equation x f(x)=a is f(x)=a/x +b(x)/x+c(x)+d0(x)inwhich 0(x) is the derivative of the delta function, and b, c, and d are arbitrary constants.

2.11 The Harmonic Oscillator The hamiltonian for the harmonic oscillator is p2 1 H = + m!2q2. (2.122) 2m 2 The commutation relation [q, p] qp pq = i~ implies that the lowering ⌘ and raising operators m! ip m! ip a = q + and a† = q (2.123) 2 m! 2 m! r ~ ✓ ◆ r ~ ✓ ◆ obey the commutation relation [a, a†] = 1. In terms of a and a†, which also are called the annihilation and creation operators, the hamiltonian H has 116 Fourier Series the simple form 1 H = ~! a†a + 2 . (2.124) ⇣ ⌘ There is a unique state 0 that is annihilated by the operator a, as may | i be seen by solving the di↵erential equation m! ip q0 a 0 = q0 q + 0 =0. (2.125) h | | i 2 h | m! | i r ~ ✓ ◆ Since q q = q q and h 0| 0h 0| ~ d q0 0 q0 p 0 = h | i (2.126) h | | i i dq0 the resulting di↵erential equation is

d q0 0 m! h | i = q0 q0 0 . (2.127) dq0 ~ h | i Its suitably normalized solution is the wave function for the ground state of the harmonic oscillator 2 m! 1/4 m!q0 q0 0 = exp . (2.128) h | i ⇡~ 2~ ⇣ ⌘ ✓ ◆ For n =0, 1, 2,...,thenth eigenstate of the hamiltonian H is 1 n n = a† 0 (2.129) | i pn! | i ⇣ ⌘ where n! n(n 1) ...1isn-factorial and 0! = 1. Its energy is ⌘ H n = ~! n + 1 n . (2.130) | i 2 | i The identity operator is

1 I = n n . (2.131) | ih | n=0 X An arbitrary state has an expansion in terms of the eigenstates n | i | i 1 = I = n n (2.132) | i | i | ih | i n=0 X and evolves in time like a Fourier series

1 1 iHt/~ iHt/~ i!t/2 in!t , t = e = e n n = e e n n | i | i | ih | i | ih | i n=0 n=0 X X (2.133) 2.12 Nonrelativistic Strings 117 with wave function

i!t/2 1 in!t (q, t)= q , t = e e q n n . (2.134) h | i h | ih | i n=0 X The wave functions q n of the energy eigenstates are related to the Hermite h | i (example 8.6) n n x2 d x2 H (x)=( 1) e e (2.135) n dxn by a change of variables x = m!/~ q sq and a normalization factor ⌘ (sq)2/2 m!q2/2~ pse p m! 1/4 e m! 1/2 q n = Hn(sq)= Hn q . h | i n ⇡ p n 2 n!p⇡ ~ 2 n! ✓ ~ ◆ ⇣ ⌘ ⇣ ⌘ (2.136) p The coherent state ↵ | i n ↵ 2/2 ↵a ↵ 2/2 1 ↵ ↵ = e| | e † 0 = e| | n (2.137) | i | i p | i n=0 n! X is an eigenstate a ↵ = ↵ ↵ of the lowering (or annihilation) operator a | i | i with eigenvalue ↵. Its time evolution is simply i!t n i!t/2 ↵ 2/2 1 ↵e i!t/2 i!t ↵, t = e e| | n = e ↵e . (2.138) | i p | i | i n=0 n! X

2.12 Nonrelativistic Strings If we clamp the ends of a nonrelativistic string at x = 0 and x = L,then the amplitude y(x, t) will obey the boundary conditions y(0,t)=y(L, t) = 0 (2.139) and the @2y @2y v2 = (2.140) @x2 @t2 as long as y(x, t) remains small. The functions n⇡x n⇡vt n⇡vt y (x, t)=sin f sin + d cos (2.141) n L n L n L ✓ ◆ satisfy this wave equation (2.140) and the boundary conditions (2.139). They represent waves traveling along the x-axis with speed v. 118 Fourier Series

The space SL of functions f(x) that satisfy the boundary condition (2.139) is spanned by the functions sin(n⇡x/L). One may use the integral formula L n⇡x m⇡x L sin sin dx = (2.142) L L 2 nm Z0 to derive for any function f S the Fourier series 2 L 1 n⇡x f(x)= f sin (2.143) n L n=1 X with coecients 2 L n⇡x f = sin f(x)dx (2.144) n L L Z0 and the representation

1 2 1 n⇡x n⇡z (x z 2mL)= sin sin (2.145) L L L m= n=1 X1 X for the Dirac comb on SL.

2.13 Periodic Boundary Conditions Periodic boundary conditions often are convenient. For instance, rather than study an infinitely long one-dimensional system, we might study the same system, but of length L. The ends cause e↵ects not present in the infinite system. To avoid them, we imagine that the system forms a circle and impose the periodic boundary condition (x L, t)= (x, t). (2.146) ± In three dimensions, the analogous conditions are (x L,y,z,t)= (x,y,z,t) ± (x, y L,z,t)= (x, y,z,t) (2.147) ± (x, y, z L,t)= (x, y, z,t). ± The eigenstates p of the free hamiltonian H = p2/2m have wave func- | i tions ix p/~ 3/2 p(x)= x p = e · /(2⇡~) . (2.148) h | i The periodic boundary conditions (2.147) require that each component of momentum satisfy Lpi/~ =2⇡ni or 2⇡~n hn p = = (2.149) L L 2.13 Periodic Boundary Conditions 119 where n is a vector of integers, which may be positive or negative or zero. Periodic boundary conditions naturally arise in the study of solids. The atoms of a perfect crystal are at the vertices of a Bravais

3 xi = x0 + niai (2.150) Xi=1 in which the three vectors ai are the primitive vectors of the lattice and the ni are three integers. The hamiltonian of such an infinite crystal is under translations in space by

3 niai. (2.151) Xi=1 To keep the notation simple, let’s restrict ourselves to a cubic lattice with lattice spacing a. Then since the momentum operator p generates transla- tions in space, the invariance of H under translations by a n

exp(ian p) H exp( ian p)=H (2.152) · · ian p ian p implies that e · and H are compatible normal operators [e · ,H] = 0. As explained in section 1.31, it follows that we may choose the eigenstates ian p of H also to be eigenstates of e ·

iap n/~ iak n e · = e · (2.153) | i | i which implies that

iap n/~ iak n/~ iak n (x + an)= x + an = x e · = x e · = e · (x). h | i h | | i h | | i (2.154) Setting ik x (x)=e · u(x) (2.155) we see that condition (2.154) implies that u(x)isperiodic

u(x + an)=u(x). (2.156)

For a general Bravais lattice, this Born–von Karman periodic boundary condition is 3 u x + niai,t = u(x,t). (2.157) ! Xi=1 Equations (2.154) and (2.156) are known as Bloch’s theorem. 120 Fourier Series Exercises

2.1 Show that sin !1x +sin!2x is the same as (2.9). 2.2 Find the Fourier series for the function exp(ax) on the interval ⇡< x ⇡.  2.3 Find the Fourier series for the function (x2 ⇡2)2 on the same interval ( ⇡,⇡]. 2.4 Find the Fourier series for the function (1+cos x)sinax on the interval ( ⇡,⇡]. 2.5 Show that the Fourier series for the function x cos x on the interval [ ⇡,⇡]is 1 1 ( 1)n n x cos x = sin x +2 sin nx. (2.158) 2 n2 1 n=2 X 2.6 (a) Show that the Fourier series for the function x on the interval | | [ ⇡,⇡]is ⇡ 4 1 cos(2n + 1)x x = . (2.159) | | 2 ⇡ (2n + 1)2 n=0 X (b) Use this result to find a neat formula for ⇡2/8. Hint: set x = 0. 2.7 Show that the Fourier series for the function sin x on the interval | | [ ⇡,⇡]is 2 4 1 cos 2nx sin x = . (2.160) | | ⇡ ⇡ 4n2 1 n=1 X 2.8 Show that the Fourier coecients of the C0 function (2.58) on the interval [ ⇡,⇡] are given by (2.59). 2.9 Find by inspection the Fourier series for the function exp[exp( ix)]. 2.10 Fill in the steps in the computation (2.27) of the Fourier series for x2. sin ⇡x 2.11 Do the first integral in equation (2.64). Hint: di↵erentiate ln ⇡x . 2.12 Use the infinite-product formula (2.65) for the sine and the relation cos ⇡x =sin2⇡x/(2 sin ⇡x) to derive the infinite-product formula (2.66) for the cosine. Hint:

1 x2 1 x2 x2 1 = 1 1 . (2.161) 1 n2 1 (2n 1)2 1 (2n)2 n=1 " 4 # n=1 " 4 #" 4 # Y Y 2.13 What’s the general solution to the equation x3f(x)=a? Exercises 121 2.14 Suppose we wish to approximate the real square-integrable function f(x) by the Fourier series with N terms N a f (x)= 0 + (a cos nx + b sin nx) . (2.162) N 2 n n n=1 X Then the error 2⇡ E = [f(x) f (x)]2 dx (2.163) N N Z0 will depend upon the 2N +1 coecients an and bn.Thebestcoecients minimize this error and satisfy the conditions @E @E N = N =0. (2.164) @an @bn By using these conditions, find them. 2.15 Find the Fourier series for the function f(x)=✓(a2 x2) (2.165) on the interval [ ⇡,⇡] for the case a2 <⇡2.TheHeaviside step function ✓(x) is zero for x<0, one-half for x = 0, and unity for x>0 (Oliver Heaviside, 1850–1925). The value assigned to ✓(0) seldom matters, and you need not worry about it in this problem. 2.16 Derive or infer the formula (2.116) for the stretched Dirac comb. 2.17 Use the commutation relation [q, p]=i~ to show that the annihila- tion and creation operators (2.123) satisfy the commutation relation [a, a†] = 1. 2.18 Show that the state n =(a )n 0 /pn! is an eigenstate of the hamil- | i † | i tonian (2.124) with energy ~!(n +1/2).

2.19 Show that the coherent state ↵ (2.137) is an eigenstate of the anni- | i hilation operator a with eigenvalue ↵. 2.20 Derive equations (2.144 & 2.145) from the expansion (2.143) and the integral formula (2.142). 2.21 Consider a string like the one described in section 2.12, which satisfies the boundary conditions (2.139) and the wave equation (2.140). The string is at rest at time t =0 y(x, 0) = 0 (2.166) and is struck precisely at t = 0 and x = a so that @y(x, t) = Lv (x a). (2.167) @t 0 t=0 122 Fourier Series Find y(x, t) andy ˙(x, t), where the dot means time derivative. 2.22 Same as exercise (2.21), but now the initial conditions are u(x, 0) = f(x) andu ˙(x, 0) = g(x) (2.168) in which f(0) = f(L) = 0 and g(0) = g(L) = 0. Find the motion of the amplitude u(x, t) of the string. 2.23 (a) Find the Fourier series for the function f(x)=x2 on the interval [ ⇡,⇡]. (b) Use your result at x = ⇡ to show that 1 1 ⇡2 = (2.169) n2 6 n=1 X which is the value of Riemann’s zeta function (4.99) ⇣(x) at x = 2.