Docsity

Solved Homework III for Elementary Math Physics | PHYS 228, Assignments of Physics

Toggle sidebar
bg1
Physics 228 HW III Solutions 1 Winter 2009
3
2

2
3
x
2
fx
Physics 228 - Winter 2009
HW III Solutions
Thursday 1/22/09
Assigned problems: To be turned in. The problems assigned in Boas below will be
graded. All graded Boas problems are worth 3 points each plus 2 points for the
Mathematica check and/or plot where requested (i.e., 5 points for analytic plus
Mathematica in cases marked by a , 3 points for analytic alone – here are problems
are to be checked with Mma). Checks performed with Mathematica can be found in
the corresponding notebook.
Problem A is extra credit: doing extra credit problems can make the difference in
borderline grade assignments. (Regular HW points are not the same as Extra Credit
points.)
§7.7: 10
Solution: We want to again expand the triangular function
from exercise 7.5: 10 but now using the complex
exponential form of the Fourier series. Using integration by
parts we have analytically
0
0
00
0
0
0
22
0
0
22
1 1 1
2 2 2
11
2 2 2 2 2
1 1 1 1 11
2 2 2 2 2
2
1
1
inx inx inx
n
inx inx inx
inx inx
n n n n
inx inx
n
c f x e dx x e dx x e dx
e xe xe e dx e dx
in in in in in
ee
in in in n n
c
nn












2
0 : even 0,
2: odd
n
n
n
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Solved Homework III for Elementary Math Physics | PHYS 228 and more Assignments Physics in PDF only on Docsity!

 3  2    2  3 

x

 2

f x

Physics 228 - Winter 2009

HW III Solutions

Thursday 1/22/

Assigned problems: To be turned in. The problems assigned in Boas below will be

graded. All graded Boas problems are worth 3 points each plus 2 points for the

Mathematica check and/or plot where requested (i.e., 5 points for analytic plus

Mathematica in cases marked by a, 3 points for analytic alone – here are problems

are to be checked with Mma). Checks performed with Mathematica can be found in

the corresponding notebook.

Problem A is extra credit: doing extra credit problems can make the difference in

borderline grade assignments. (Regular HW points are not the same as Extra Credit

points.)

§7.7: 10

Solution: We want to again expand the triangular function

from exercise 7.5: 10 but now using the complex

exponential form of the Fourier series. Using integration by

parts we have analytically

     

       

 

0

0 (^0 )

0 0

0 (^2 2 )

0

2 2

inx inx inx n

inx inx inx inx inx

n n n n inx inx

n

c f x e dx x e dx x e dx

e xe xe e dx e dx in in in in in

e e in in in n n

c

n n

 

    

  

    

   

 

 

  

      

  

  

  

 

2

0 : even 0,

2 : odd

n

n n

 

 

 

2 1 2 2. (^2 2 )

i m x

m

e f x m

^ 



While it may not be obvious from the final expression, the fact that c (^) n cn

  

guarantees the reality of this series. To see the connection to our previous result (for

sines and cosines) we reorganize this expression by splitting the sum into two sums

over only positive values (starting at 0, note especially the changes in sign). We

have, using the Euler formula in the final step,

 

 

  

 

  

 

 ^ 

 

 ^ 

 

  

 

2 1 2 1 2 1

2 2 2 0 1

2 1 2 1

2 2 2 0 0 0

cos 2 1 2 2 4. 2 1 2 1 2 1

i m x i m x i m x

m m m

i m x i m x

m m m

e e e

m m m

e e m^ x

m m m

 ^  ^  

  

 ^  ^  

  

  

  

Thus, as expected, we obtain the previous result in terms of cosines,

 

  

 

   

 

2 1

2

2

cos 2 1

(^2 2 )

i m x

m

m

e f x m

m x

m

^ 





§7.9: 3

Solution: Here we want to think about functions in terms of their symmetry under x   x. In particular, odd functions involve only odd powers of x (and thus only sines of x ), while even functions involve only even powers of x (and thus cosines of x ). For the indicated functions we have

-2 -1 1 2 ^ x a

1

2

f  a

around the origin and zero elsewhere as illustrated in the figure. Thus Fourier

transform is defined by

 ^ 

0

0

2

2

1 2 1 cos 2 2 1 1 sin 2 2

2 1 cos sin. 2

i x i x i x

i i

i x i x

g dxe f x dxe dxe

e e i i^ i

d d f x e e i i

   

 

 

  ^ ^ ^ 

   

 

 

 

§7.12: 9

Solution: Next we consider the triangular function defined

in the figure. We have

0 0 0 0 0 0 2

2 2

2

2 1 1 2 1 cos 4 2 2 sin 2 2

2 1 cos

a i x i x i x

a a i x i x a i x i x a a i a i a

i x

g dxe f x dxe a x dxe a x

e a x e a x dxe dxe i

e e a a a a i i^ i

d f x e a

  

   

 

   

 

 

    ^ ^ ^ 

   

   

 

      



  ^  

2 4 2 sin. 2

d (^) i x a e

  

 

 



§7.12: 21

Solution: Finally consider the transform of a Gaussian form (the Bell curve in

grading), which appears often in physics. As encouraged by the text we proceed by

completing the square

   

2 2

2 2 2 2 2 2 2 2 2 2

2

2 2 (^2 2 )

2 2

i x i x x

i x i (^) y

y x^ i i

g dxe f x dxe e

dxe e e dye

  

   (^)       

  

 

    

      (^)   

   (^) 

 

 

We want to be able to evaluate the final Gaussian integral and there are several viable

techniques. One way is to square the integral and make it into a 2-D area integral,

which we perform in cylindrical coordinates,

2 2 2 2

2

2

2

0

y x y I dye I dxe dye d d e

d e I

       

     

    

Another way to proceed is to recognize the Gamma function,   1

0

t dt t e  

     (^)  (see

Boas 11.3.1) so that (see Abramowitz and Stegun, 11.5.3)

2

0 0

y dt t I dye e t

    ^      (^)    

 

Thus we have

 

 

2 2

2 2 2 2

2

2 2

i x x

g e

f x d e e e

 

   

  



 (^)  

The transform of a Gaussian is still a Gaussian. On the other hand, if we start with a

narrow (small width, i.e ., small ) Gaussian in x -space, we find a broad (large width,

i.e ., large 1/ ) Gaussian in α -space. This reciprocal relationship, encoded in the

mathematics, plays an important role in quantum mechanics (think about the

uncertainty principle).

 

 

1 (^2 2 )

0 0 2 1 2 2

4

T in T t (^) x in x n

in in

i nt RC

n

c dt q t e CV dx e e T

e e CV in in

n e CV e

e i n

e q t CV e e i^ n

 

 

 (^)  

  



 ^  ^  

 ^ 

  ^  

Or, if you want, we can use sine and cosine series (again scaling out T )

1 2

0 0 1 2

0 0

cos 2 cos 2 1 ,

sin 2 sin 2 1.

T x n T x n a dt q t n t CV dx nx e T T

b dt q t n t CV dx nx e T T

The first term in each case is simple while the second term takes a bit more effort.

We can write

1 1 1 2 2 2

0 0 0

(^1 ) 2 2 2 2 2 2 2 2 2 2 (^0 )

2 2

sin 2 sin 2 cos 2 2 4

1 1 cos 2 cos 2 1

8 16 8 16

x x x c

x x c

c

nx nx I n dx nx e e dx e n n

nx nx (^) e e dx e I n n n n

e I n e n

    

 

   

  

 

and

1 1 1 2 2 2

0 0 0 1

1 2 2 2 2 2 2 2 2 0 0

2 2

cos 2 cos 2 sin 2 2 4

sin 2 sin 2 1

2 8 16 2 16

x x x s

x x c

s

nx nx I n dx nx e e dx e n n

e nx^ nx e e dx e I n n n n n

n e I n e n

    

 

    

  

 

Thus we have

1 1 2

0 0

(^0 2 )

2 2

sin 2 2 cos 2 1 2 2

2 1 2 1 16

2 2 1 : 0

, 1 4 : 0 1 16

x n c

n

nx a CV dx nx e CV I n

e CV e n

CV n e

e CV n e n

 ^     (^)       

 (^)    ^    (^)    

 (^)     ^    ^        (^)  

and

1 1 2

0 0

2 2 2 2

cos 2 2 sin 2 1 2 2

x n s

nx b CV dx nx e CV I n

n e n e CV CV e n e n

 ^   

-6 -4 -2 2 4 6

x

1

2

f

Real Part Imaginary Part

§7.13: 9

Solution: We focus on a function defined by f (^)  x (^)   x : 0  x  1 , f (^)  x  (^)  2 :1  x  2

.

(a) First consider an odd (sine series)

extension with period 4. The

corresponding function is illustrated

in the figure.

(b) By using the theorem of Dirichlet

we know that the sine series would

converge to the following values

0 0 (no discontinuity)

1 2 1 1 (opposite of 1). 2 2

x

x

x

x x

(c) If instead we just take T  2 so there is no special symmetry, Parseval tells us

 5 5

1.

0.

 5 5

1.

0.

 

  2

 2

that

 

1 2 (^2 )

0 0 1

T

n n

c dx f x dx x dx T



 (^)   

§7.13: 13 [HINT: Recall the theorem of Parseval. This series is the Riemann Zeta

Function,  2 ,   1

n

k

n k

 

 (^)  .]

Solution: (a) With the given definition of an odd

function and a sine series and period T  2  , we have

 

 

 

2

0 0

2 0 0 0

1

sin sin 2

cos cos 1 sin 1

sin .

T

n

n

x b dx f x nx dx nx T

nx x nx nx dx n n n n n

nx f x n

  

 

(b) Again by Parseval we have

 2    2 

x



f

c) (1 pt) Plot the sum of the first 2, 5, 10, and 50 terms in this series on the interval -2  ≤ x ≤ 2 .

Solution: The following plot corresponds to

   

1

1

sin

N n N n

nx

f x

n

 (^)  

for N = 2 (orange), N = 5 (green), N = 10 (blue) and N = 50 (pink).

d) (1 pt) Notice that with the first 50 terms, you can reproduce the function very well, except for near the sharp corners. Why do you think that is?

Solution: In order to simulate the rapidly varying structure near the corners we need

the rapidly varying sine functions ( i.e ., short wavelength/large frequency) corresponding to large N. There is, of course, also the Gibbs phenomenon at work at the discontinuity at the corners.


Note : Problem sets must be turned in by the end of class or be in Steve Ellis’s Physics Department mailbox by 12: PM on the date indicated. Late problem sets are accepted for 1 week with a 50% discount. Solutions will be posted on the web.