# Method of residues

1. Aug 18, 2012

### gtfitzpatrick

1. The problem statement, all variables and given/known data

evaluate using the method of residues $\int^{\pi}_{-\pi}$ $\frac{d\theta}{1+sin^2\theta}$ (=$\pi\sqrt{2})$

2. Relevant equations

3. The attempt at a solution $sin^2 \theta = \frac{1}{2i}(z^2 - \frac{1}{z^2})$ so our integral becomes $\int \frac{2iz^2}{z^4+2iz^2-1}\frac{dz}{iz}$

but before i continue on from here im not sure what the story with the limits. Normally i've just seen limits of 0 to 2$\pi$ so should iI put a $\frac{1}{2}$ in from of the integral?

2. Aug 18, 2012

### gtfitzpatrick

sorry got that wrong $sin^2 \theta = (\frac{1}{2i}(z - \frac{1}{z}))^2$ should be $\int \frac{-4z^2}{z^4-2z^2+1}\frac{dz}{iz}$ but still unsure about my limits....

3. Aug 18, 2012

### awkward

As theta varies from -pi to pi, how much of the unit circle does it sweep out?

4. Aug 18, 2012

### gtfitzpatrick

I think its Half a sweep, thats why i think i put a half in front of the integral

5. Aug 18, 2012

### awkward

Are you sure?

6. Aug 18, 2012

### gtfitzpatrick

a whole sweep is 2$\pi$, half a sweep is o to $\pi$ so is $\pi$ to -$\pi$ half a sweep...backwards? so i put -$\frac{1}{2}$ in front of it?

7. Aug 18, 2012

### gtfitzpatrick

not sure...

8. Aug 18, 2012

### awkward

What is pi - (-pi)?

9. Aug 18, 2012

### uart

^ Also, double check your denominator there, you've made a mistake in the algebra.

When you sort that out you'll find it comes out fairly easy, four real roots with two of them inside your contour.

10. Aug 18, 2012

### gtfitzpatrick

2$\pi$ thanks :)

11. Aug 18, 2012

### gtfitzpatrick

$\int \frac{-4z^2}{z^4-2z^2+2}\frac{dz}{iz}$

thanks a million

12. Aug 18, 2012

### gtfitzpatrick

**** thats not right either

13. Aug 18, 2012

### gtfitzpatrick

Now i'm getting $\int \frac{-4z^2}{z^4-6z^2+2}\frac{dz}{iz}$ which doesnt work out that easy. So im guessing I got it wrong again. im going to use formula and see what it throws up anywho.thanks guys. Do either of you have a clue what my other post (jordans lemma) is about? i havent a clue...

14. Aug 18, 2012

### awkward

I think you need to double-check your algebra, one more time.

15. Aug 18, 2012

### gtfitzpatrick

yes your right, it should be $\int \frac{-4z^2}{z^4-6z^2+1}\frac{dz}{iz}$