Find the average value of f(x) = |x|  on the interval [-2,2].I know that the formula is 1/(b-a) Sab f(x)dx =1/(2--2)S-2,2 |x|dx =1/4 * x^2 /2 |-2,2 =1/4 * (-2)^2 /2 - (2)^2 /2 =1/4 * 2-2 =1/4 *0 =0

2 Answers | Add Yours

degeneratecircle's profile pic

degeneratecircle | High School Teacher | (Level 2) Associate Educator

Posted on

I should have explicitly mentioned that on the interval `[0,2],` you integrate `x^2/2` , and get 2.

Top Answer

degeneratecircle's profile pic

degeneratecircle | High School Teacher | (Level 2) Associate Educator

Posted on

Your mistake is integrating `x^2/2` on the entire interval `[-2,2].` The derivative of `x^2/2` is `x,` which equals `|x|` only when `x>0.` What you have to do is break up the interval into the two intervals `[-2,0]` and `[0,2]`. On the first interval, since `x<=0,` `|x|=-x,` so the antiderivative we should use is `-x^2/2.` Thus

`int_-2^0|x|dx=int_-2^0 -xdx=-(0)^2/2-[-(-2)^2/2]=2.`

It looks like you know the basic idea so I won't complete all the details, but basically you should have ended up with

`1/4(2+2)=1` instead of `1/4(2-2).` Your method found the average value of `y=x` on the interval, which is of course 0.

I should add that while you should get practice using calculus to solve this, you can check it by using basic geometry. It really boils down to finding areas of triangles, and you can see by the graph that the average value is 1. Here's the graph of the function and its average value in red.

 

 

We’ve answered 318,991 questions. We can answer yours, too.

Ask a question