Open or Closed?

About this time of year you find someone, hopefully one of your students, asking, “If I’m finding where a function is increasing, is the interval open or closed?”

Do you have an answer?

This is a good time to teach some things about definitions and theorems.

The place to start is to ask what it means for a function to be increasing. Here is the definition:

A function is increasing on an interval if, and only if, for all (any, every) pairs of numbers x1 < x2 in the interval, f(x1) < f(x2).

(For decreasing on an interval, the second inequality changes to f(x1) > f(x2). All of what follows applies to decreasing with obvious changes in the wording.)

  1. Notice that functions increase or decrease on intervals, not at individual points. We will come back to this in a minute.
  2. Numerically, this means that for every possible pair of points, the one with the larger x-value always produces a larger function value.
  3. Graphically, this means that as you move to the right along the graph, the graph is going up.
  4. Analytically, this means that we can prove the inequality in the definition.

For an example of this last point consider the function f(x) = x2. Let x2 = x1 + h where h > 0. Then in order for  f(x1) < f(x2) it must be true that

{{x}_{1}}^{2}<{{\left( {{x}_{1}}+h \right)}^{2}}
0<{{\left( {{x}_{1}}+h \right)}^{2}}-{{x}_{1}}^{2}
0<{{x}_{1}}^{2}+2h{{x}_{1}}+{{h}^{2}}-{{x}_{1}}^{2}
0<h\left( 2{{x}_{1}}+h \right)

This can only be true if {{x}_{1}}\ge 0, Thus, x2 is increasing only if x\ge 0.

Now, of course, we rarely, if ever, go to all that trouble. And it is even more trouble for a function that increases on several intervals.  The usual way of finding where a function is increasing is to look at its derivative.

Notice that the expression {{\left( {{x}_{1}}+h \right)}^{2}}-{{x}_{1}}^{2} looks a lot like the numerator of the original limit definition of the derivative of x2 at x = x1, namely \displaystyle {f}'\left( {{x}_{1}} \right)=\underset{h\to 0}{\mathop{\lim }}\,\frac{{{\left( {{x}_{1}}+h \right)}^{2}}-{{x}_{1}}^{2}}{h}. If h > 0, where the function is increasing the numerator is positive and the derivative is positive also. Turning this around we have a theorem that says, If {f}'\left( x \right)>0 for all x in an interval, then the function is increasing on the interval. That makes it much easier to find where a function is increasing: we simplify find where its derivative is positive.

There is only a slight problem in that the theorem does not say what happens if the derivative is zero somewhere on the interval. If that is the case, we must go back to the definition of increasing on an interval or use some other method. For example, the function x3 is increasing everywhere, even though its derivative at the origin is zero.

Let’s consider another example. The function sin(x) is increasing on the interval \left[ -\tfrac{\pi }{2},\tfrac{\pi }{2} \right] (among others) and decreasing on \left[ \tfrac{\pi }{2},\tfrac{3\pi }{2} \right]. It bothers some that \tfrac{\pi }{2} is in both intervals and that the derivative of the function is zero at x = \tfrac{\pi }{2}. This is not a problem. Sin(\tfrac{\pi }{2}) is larger than all the other values is both intervals, so by the definition, and not the theorem, the intervals are correct.

It is generally true that if a function is continuous on the closed interval [a,b] and increasing on the open interval (a,b) then it must be increasing on the closed interval [a,b] as well. (There is a proof by Lou Talman of this fact click here .)

Returning to the first point above: functions increase or decrease on intervals not at points. You do find questions in books and on tests that ask, “Is the function increasing at x = a.” The best answer is to humor them and answer depending on the value of the derivative at that point. Since the derivative is a limit as h approaches zero, the function must be defined on some interval around x = a in which h is approaching zero. So answer according to the value of the derivative on that interval.

You can find more on this here.

Case Closed.

2 thoughts on “Open or Closed?

  1. Certainly the phrase “increasing at x=a” is dangerous. Consider the function f defined by f(x) = x + |x|^(3/2) sin(1/x) for x0 and f(0) = 0. Then this is a differentiable function with derivitive of 1 at the origin. But it is not increasing on any open interval containing the origin.

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.