Docsity

Solutions to Midterm Exam No. 2 - Mathematical Methods in Physics, Exams of Physics

Toggle sidebar
bg1
University of Alabama in Huntsville
Department of Physics
Spring 2007
PH 305: Mathematical Methods in Physics
Midterm Exam No. 2 — Solutions
Solution 1:
It is useful to introduce the variable zby z=eiθ, so that dθ =−i dz/z ,
and also cos θ= (z+z−1)/2 and sin θ= (z−z−1)/(2i). This is typi-
cally the useful transformation to make to evaluate integrals of the form
I=R2π
0f(sin θ, cos θ)dθ. The variable change makes the integral a contour
integral along the unit circle: I=−iHf[(z−z−1)/2i, (z+z−1)/2] z−1dz.
I= 4iIUnit Circle
z dz
(3z2−10iz −3)2=4i
9Iz dz
(z−i/3)2(z−3i)2
which has two poles of order 2, at i/3 (inside the unit circle) and at 3i(outside
the unit circle). The residue is readily found by
Res = lim
z→i/3
d
dz
z
(z−3i)2=−lim
z→i/3
z+ 3i
(z−3i)2=−45
256
so that
I= 2πi ×4i
9×(−)45
256 =5π
32 .
Solution 2:
We first make the function periodic by extending the range to −2≤x≤2,
so that the period becomes 4. The simplest way to extend the function given
the boundary conditions is to take it to be symmetric, i.e., f(x) = x2over
the entire extended interval. Then, all the bk(coefficients of the sine series)
vanish, and the coefficients of the cosine series are given by
ak=2
4Z2
−2x2cos 2πkx
4!dx =Z2
0x2cos(πkx/2) dx .
The integral is easy to calculate by parts, and we find
ak=16
π2k2cos(πk) = 16
π2k2(−1)k.
1
pf2

Partial preview of the text

Download Solutions to Midterm Exam No. 2 - Mathematical Methods in Physics and more Exams Physics in PDF only on Docsity!

University of Alabama in Huntsville Department of Physics Spring 2007

PH 305: Mathematical Methods in Physics

Midterm Exam No. 2 — Solutions

Solution 1: It is useful to introduce the variable z by z = eiθ, so that dθ = −i dz/z, and also cos θ = (z + z−^1 )/2 and sin θ = (z − z−^1 )/(2i). This is typi- cally the useful transformation to make to evaluate integrals of the form I =

∫ (^2) π 0 f^ (sin^ θ,^ cos^ θ)^ dθ. The variable change makes the integral a contour integral along the unit circle: I = −i

∮ f [(z − z−^1 )/ 2 i, (z + z−^1 )/2] z−^1 dz.

I = 4i

∮

Unit Circle

z dz (3z^2 − 10 iz − 3)^2

4 i 9

∮ (^) z dz

(z − i/3)^2 (z − 3 i)^2

which has two poles of order 2, at i/3 (inside the unit circle) and at 3i (outside the unit circle). The residue is readily found by

Res = lim z→i/ 3

d dz

z (z − 3 i)^2

= − lim z→i/ 3

z + 3i (z − 3 i)^2

so that

I = 2πi ×

4 i 9

× (−)

5 π 32

Solution 2: We first make the function periodic by extending the range to − 2 ≤ x ≤ 2, so that the period becomes 4. The simplest way to extend the function given the boundary conditions is to take it to be symmetric, i.e., f (x) = x^2 over the entire extended interval. Then, all the bk (coefficients of the sine series) vanish, and the coefficients of the cosine series are given by

ak =

∫ (^2)

− 2

x^2 cos

( 2 πkx 4

) dx =

∫ (^2)

0

x^2 cos(πkx/2) dx.

The integral is easy to calculate by parts, and we find

ak =

π^2 k^2

cos(πk) =

π^2 k^2

(−1)k^.

We need to evaluate a 0 separately, as the expression for a general k evidently does not apply to a 0 (that would blow up).

a 0 =

∫ (^2)

− 2

x^2 cos

( 2 πkx 4

) dx =

∫ (^2)

− 2

x^2 dx =

Put together, the Fourier series is

x^2 =

∑^ ∞

k=

(−1)k π^2 k^2

cos

( πkx 2

) .

Solution 3:

< u|v >= (1 1 + i 3)

 

3 i − 3 1

  = 3i − 3 − 3 i + 3 = 0

< u|v >= (− 3 i − 3 1)

  

1 − i 3

   =^ −^3 i^ −^ 3 + 3i^ + 3 = 0

They are equal because accidentally they are real. Normally they would be complex conjugates of each other.