How to Evaluate the Absolute Value Integration?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 11K views
roam
Messages
1,265
Reaction score
12
1. Evaluate

[tex]\int_{-1}^{3} \left|x^2 -4\right| dx[/tex]




3. The Attempt at a Solution

This is the first time I'm trying this type of question & I think I need to use the following theorem for such questions;

f is integrable on a closed interval a to b.

[tex]\int_{a}^{b}f(x)dx = \int_{a}^{c}f(x)dx + \int_{c}^{b}f(x)dx[/tex]

(c; any point in between, no matter how the points are ordered)

Therefore in my problem [tex]\int_{-1}^{3} \left|x^2 -4\right| dx[/tex], I choose c = 2

Now since the integrand is absolute value we have two cases:

1) x2-4
2) 4-x2

I'm not which one of the following is correct;

[tex]\int_{-1}^{2} (4-x^2)dx + \int_{2}^{3}(x^2 -4)dx[/tex]

OR

[tex]\int_{-1}^{2} (x^2-4)dx + \int_{2}^{3}(4-x^2)dx[/tex]

Which one is correct and why?

Thanks!

 
Physics news on Phys.org
|x^2-4| is nonnegative everywhere. So the pair of integrals which have a nonnegative integrand over the region of integration is the correct one. Which is it? The first or the second?
 
The first one is non-negative!
I think I understand the idea now, thank you very much!