Trig integrating with absolute values:

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 10K views
Zeth
Messages
23
Reaction score
0

Homework Statement


[tex]\int_0 ^\pi \sqrt{1-\sin^2 x} dx[/tex]


Homework Equations



[tex]1 - \sin^2 x = \cos^2 x[/tex]

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.
 
Physics news on Phys.org
[tex]\int_0 ^\pi \sqrt{1-\sin^2 x} dx= \int_0 ^\pi |{\cos (x)}| dx[/tex]

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

i.e, [tex]\int_0 ^\pi |{\cos (x)}| dx = \int_0 ^{\frac{\pi}{2} }\cos (x) dx - \int_{\frac{\pi}{2}}^\pi \cos (x) dx[/tex]
 
Last edited:
You can split the integral over the two intervals, can't you?
 
Zeth said:
I know the answer should be 2 but I keep getting 0 every which way I try.

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.