# Homework Help: Trig integrating with absolute values:

1. Jul 9, 2007

### Zeth

1. The problem statement, all variables and given/known data
$$\int_0 ^\pi \sqrt{1-\sin^2 x} dx$$

2. Relevant equations

$$1 - \sin^2 x = \cos^2 x$$

3. The attempt at a solution

I don't know how to treat this since cos changes sign half way across the integral. I know the answer should be 2 but I keep getting 0 every which way I try.

2. Jul 9, 2007

### bel

$$\int_0 ^\pi \sqrt{1-\sin^2 x} dx= \int_0 ^\pi |{\cos (x)}| dx$$

So you find where the $$0= \cos (x)$$ on the interval $$(0,\pi)$$ and then integrate separately.

i.e, $$\int_0 ^\pi |{\cos (x)}| dx = \int_0 ^{\frac{\pi}{2} }\cos (x) dx - \int_{\frac{\pi}{2}}^\pi \cos (x) dx$$

Last edited: Jul 9, 2007
3. Jul 9, 2007

### neutrino

You can split the integral over the two intervals, can't you?

4. Jul 9, 2007

### Gib Z

Are you sure :)? Certainly the area is 2, but the integral gives you the Signed area. As neutrino said, splitting the integral into 2 gives the area :), as long as you take the absolute value of the negative value you will get from the integral between pi/2 and pi.