Average value of a function question

In summary: Oh gosh, I don't know, it's just my brain can comprehend it..In summary, the students were discussing the definition of the average value of a function and how it relates to the concept of continuity. They were also trying to understand why it is necessary for the function to be continuous on the interval in order to find its average value. Some students suggested using a weighted average to account for the unboundedness of the function, while others were confused about the definition of continuity. The teacher was also unsure about the concept of continuity at points where the function is not defined and the textbook's definition of the average value. Ultimately, the students were able to comprehend the concept of continuity and the importance of it in finding the average value of
  • #1
drpizza
286
0
This question popped up in my high school class today. I couldn't think of an explanation that worked for the students, other than "the definition of the average value states that the function has to be continuous on the interval."

Their intuition helped them understand the definition of the average value of f(x): To find the average height of an area, take the area and divide by the width of the area. Thus, the average value of a function f(x) is the integral of f(x) from a to b, divided by b-a, or [tex]\frac{1}{b-a}\displaystyle\int^b_a f(x)\,dx[/tex]

No problem with this... yet. Then, came improper integrals.
They calculated the following integral:
[tex]\displaystyle\int^4_1 \frac{dx}{(x-2)^\frac{2}{3}} = 3+3\sqrt[3]{2}[/tex]

This was followed by the question, "well, even though there's an infinite discontinuity, the area over the interval is finite. Why can't we divide by the width of the interval (3) and get the average value of f(x) over that interval?"

Anyone have a better answer than I had, that they (relatively bright students) might be able to comprehend?
 
Physics news on Phys.org
  • #2
"the definition of the average value states that the function has to be continuous on the interval."

Why?? That seems to be an arbitrary restriction.
 
  • #3
It didn't seem that arbitrary to me, because I recognize the problem that would exist with asymptotes. I had glanced at each of the calculus texts that I have in my classroom; all had essentially the same definition:
If f is continuous on [a,b], then the average value (or mean value) of f on [a,b] is defined to be: ...

This has simply left me scratching my head, but I know it shouldn't. I'm leaning toward explaining this way, "if you take the function f(x) = 1/x, from 1 to infinity, and you generate a solid by rotating it about the x-axis, then the volume of such a solid is finite, but the surface area is infinite. It's kind of the same idea: there is no average y-value although the area is finite."
 
  • #4
In this case the students are absolutely correct, your result divided by the measure (width) of the interval does indeed give the average value of the function.

Think of it as a weighted average: even though the function is unbounded it is only "very large" over an interval that is "very small" i.e. the greater values of the function acount for less of the width of the domain. That this function would have a (weighted by width) average value should come as no surpise, since integration is all about getting finite information (numbers) from the infinite.

Note: since your function was undefined at x = 2, it is incorrect to say that the function is not continuous (it is continuous at every point in its domain).
 
  • #5
Thanks, Crosson, that really puts my mind at ease. I wanted to agree with the students, but at the same time, I was having trouble wrapping my mind around infinity.

But, I don't agree with the statement that it's incorrect to say that the function is not continuous on that interval.
 
  • #6
But, I don't agree with the statement that it's incorrect to say that the function is not continuous on that interval.

Please, do not confuse your students! We do not discuss continuity at points where the function fails to be defined! (Just say the function is unbounded on [1,4]-{2} , and that any attempt to define the function at the value x = 2 will produce a discontinuous function).

The reason it is incorrect to say the function is 'not continuous' is because the function is continuous everywhere that it is defined!
 
Last edited:
  • #7
Ahh yes That is something I forgot looking at this question as well, just because the function is not defined somewhere, does not mean it isn't continuous :) Because you could still draw a graph over a limited domain, without taking your pencil off the paper :)
 
  • #8
Or if you prefer, for every x in the domain we have f(x) is equal to 'the limit from the left' and the 'limit from the right'. Hence I say the function is continuous on its entire domain!
 
  • #9
The textbook I am looking at, Anton's Calculus, only requires that f be integrable on an interval in order that its "average" exist.
 
  • #10
Gib Z said:
Ahh yes That is something I forgot looking at this question as well, just because the function is not defined somewhere, does not mean it isn't continuous :) Because you could still draw a graph over a limited domain, without taking your pencil off the paper :)

PLEASE don't use that description of continuity. It is SOOO wrong it is making me use CAPS and extra letters in a word.
 
  • #11
drpizza said:
This was followed by the question, "well, even though there's an infinite discontinuity, the area over the interval is finite. Why can't we divide by the width of the interval (3) and get the average value of f(x) over that interval?"

Anyone have a better answer than I had, that they (relatively bright students) might be able to comprehend?

It might help to look briefly at the proof of the fundamental theorem of calculus (which is fairly straightforward). There is a certain point at which you need to assume that the integrand has a maximum and minimum value on the interval defined by the limits of integration. In fact you need to multiply the integral by both of these values. Obviously it doesn't work when the maximum value of the function is infinity. Therefore, when an integral's integrand has an infinite discontinuity over the interval, the fundamental theorem of calculus doesn't apply.
 
  • #12
matt grime said:
PLEASE don't use that description of continuity. It is SOOO wrong it is making me use CAPS and extra letters in a word.


>.< Sorry about that, simplistic ways for me to understand, and surprisingly it says that in a lot of textbooks...I probably wouldn't understand any other definition anyway, with my simplistic mind...unless its Crossons about the limits, i get that..
 
  • #13
The limit definition is considered completely rigorous (provided limits had been defined, which is difficult to do but yields no more understanding then does the intuitive understanding). So if you understand the limit definition, you understand continuity (of real functions of a single real variable).

If you read the textbook carefully they probably say something like "Any function you can draw without taking the pen of the paper is continuous" (true) but are careful not to say "Any continuous function can be drawn without taking your pen of the paper" (false).
 
  • #14
O I see, that seems correct. A continuous function that can't be drawn without taking your pen off the paper would be, eg, The Floor Function? Its defined at all points, but you have to take your pen off.
 
  • #15
Gib Z said:
O I see, that seems correct. A continuous function that can't be drawn without taking your pen off the paper would be, eg, The Floor Function? Its defined at all points, but you have to take your pen off.

No, it wouldn't. The floor function is defined at all points but is not continuous at the integers.
 
  • #16
A continuous function that can't be drawn without taking your pen off the paper

Try drawing [tex] x Sin(\frac{1}{x}) [/tex] on (0,1).
 
  • #17
Im going to go and cry now >.< I'm not good at this..

So it is continuous where it is defined, but not defined at zero?
 
Last edited:
  • #18
If you want, define as a special case that function is 0 at x = 0 (then the function is even continuous at the point 0). The point is that we can't draw the function because it is oscillating infinitely rapidly near the origin, yet it is continuous every where.
 
  • #19
We'll, say i used the pencil definition, Couldn't it apply if I had an infinite length of time to do it? I know even that long time couldn't draw a line of infinite length...but you get what i mean.

Would it be correct to say the function is not differentiable near zero? It looks like it going to be sort of like a fractal.
 
  • #20
Or at least would it be correct to say the derivative function will also oscillate rapidly near zero? It happens to be x(cos (1/x))-1/(x^2) + sin (1/x).
 
  • #21
We'll, say i used the pencil definition, Couldn't it apply if I had an infinite length of time to do it?

If you start at 0, then as soon as you move the pencil either up or down the drawing is already in accurate.

Would it be correct to say the function is not differentiable near zero?

Yes that is correct. Interestingly [tex] x^2 Sin(\frac{1}{x}) [/tex] is differentiable at 0.
 
  • #22
I wonder what it is about the extra factor of x that stabilizes it...Near zero it looks like the line y=0.
 
  • #23
@Gib Z.

Firstly, what makes you think you can 'draw' any function? What about functions from R^6 to R^8? What about functions from Q to R?

Anyway, the trivial example of why 'pencil and paper' is silly as a definition, is the example:

f(x)=0 if x^2<2
f(x)=1 if x^2>2

as a function from Q to Q.

let's assume that we draw the graph as s subset of R^2. There's a whopping great jump at sqrt(2), but that ain't in Q, so there's no where where it is discontinuous.
 
  • #24
Alright, back to continuity.
I've always used the definitions in the textbook I have in class, which are identical to the definitions I learned 20 years ago.
Definition: A function f is said to be continuous at a point c if the following conditions are satisfied:
1. f(c) is defined
2. lim (as x approaches c) f(x) exists
3. lim (as x approaches c) f(x) = f(c)

Later, in the same book, Theorem: A rational function is continuous everywhere except at the points where the denominator is zero.

I have no problem saying that a function is continuous over its domain; however, I still don't find it wrong to say that the function I mentioned a few posts up, is *not* continuous over that interval. i.e. f(x) = (x^2 -4)/ (x-2); it seems that you're saying "well, 2 isn't in the domain of f(x). Exactly! That's why the function isn't continuous at 2. You could call f(x) a continuous function, because it's continuous over its entire domain, but it's not continuous on the interval [0,4], because 2 isn't in its domain. Am I missing something??
 
  • #25
Crosson said:
Try drawing [tex] x Sin(\frac{1}{x}) [/tex] on (0,1).

But, if it makes you feel better, that's one of my favorite functions to get the students really thinking (or to really twist their minds); especially when I use a piecewise definition to fill in the point f(0)=0
 
  • #26
matt - ahh I didn't mean the pencil thing as a definition...just a novice way to maybe think of it...I know its wrong now, please stop punishing me :P

Q is the natural numbers right? I don't understand when you say it is a function from Q to Q...But I get the idea that only natural numbers are allowed, thanks for that good example.
 
  • #27
Am I missing something??

Think about functions with their domain and range as the rational numbers. f(x) = x^2, where all of the inputs are fractions, and all the outputs are fractions.

Applying your definition of continuity makes sense in this case, because we can talk about the limit from right and the left (limits make sense in the rational numbers). We say in this case that f is continuous, meaning that f is continuous over its domain. The fact that f is not defined at e or pi does not make it discontinous at these points (remember the domain of f is fractions).

Instead of saying that the rational function is 'discontinuous at x = 2' (has no content by the definition) say that it is 'unbounded in any interval containing 2' (has content and expresses bad behavior of the function).
 
  • #28
drpizza said:
You could call f(x) a continuous function, because it's continuous over its entire domain, but it's not continuous on the interval [0,4], because 2 isn't in its domain. Am I missing something??

You're missing the fact that with this definition there is no such thing as a continuous function - there is always something 'not in the domain' of a function, be it 2, i, E_10, R^4, whatever.
 
  • #29
Okay, I understand what you're saying. Thanks!

But, I'm still having trouble with what I'm missing when an interval is specified, such as [0,4]; wouldn't that be implying over the real numbers? i.e. i is not included?
 
  • #30
But what does that have to do with anything?
 

FAQ: Average value of a function question

What is the average value of a function?

The average value of a function is the average output or y-value of the function over a given interval. It is calculated by finding the definite integral of the function over the interval and dividing it by the length of the interval.

How do you find the average value of a function?

To find the average value of a function, you must first find the definite integral of the function over the given interval. Then, divide the result by the length of the interval. The resulting value is the average value of the function over that interval.

Why is finding the average value of a function important?

Finding the average value of a function is important because it allows us to determine the overall trend or behavior of the function over a given interval. It can also help us make predictions and analyze the data represented by the function.

Can the average value of a function be negative?

Yes, the average value of a function can be negative. This can occur when the function has both positive and negative values over the given interval, resulting in a net average value that is negative.

What is the difference between average value and mean value of a function?

The average value and mean value of a function are often used interchangeably, but there is a subtle difference between the two. The average value of a function is the average output over a given interval, while the mean value of a function is the average of all the outputs of the function over the entire domain. The mean value takes into account all possible inputs, while the average value only considers a specific interval.

Similar threads

Back
Top