Valuable theorems

Close-up of an analog speedometer and odometer on a car dashboard.
Photo by Luke Miller on Pexels.

Knowing a few facts about a function can be enough to establish something about its behavior. The challenge is deciding what those facts let us conclude, and explaining why the conclusion follows.

In this section, we'll use theorems to build mathematical arguments. Each theorem connects a set of conditions with a conclusion, giving us a way to turn what we know about a function into evidence for what we want to show.

By the end of this lesson, you should be able to:

  • Use the Squeeze Theorem to evaluate limits.
  • Use the Intermediate Value and Extreme Value Theorems to establish that specified function values and extrema exist.
  • Use the derivative and integral forms of the Mean Value Theorem to relate instantaneous rates and function values to their averages.

Imagine driving along a straight road where the speed limit is \( 35 \) miles per hour. You travel \( 4 \) miles in \( 5 \) minutes without turning around, and your speedometer reads \( 35 \) at both the start and the end of the trip. Could you have stayed within the speed limit the whole way?

Let's see how far you could travel in that time if you stayed at \( 35 \) miles per hour. Converting the time to hours gives

\(\displaystyle 5\text{ minutes}=\)\(\displaystyle \text{ hour}.\)

At \( 35 \) miles per hour, the distance you would travel is

\(\displaystyle 35\cdot\frac1{12}=\)\(\displaystyle \text{ miles}.\)

Compare this with the \( 4 \) miles you actually traveled. Your speed . How does the distance calculation support your choice?

Even spending the whole five minutes at \( 35 \) miles per hour would get you less than \( 3 \) miles down the road. To cover \( 4 \) miles in that time, you must have gone faster somewhere along the way. The speedometer readings at the beginning and end tell us what happened at those two moments, while the distance and elapsed time tell us something about the trip between them.

We can say more by calculating the average speed for the trip:

\(\displaystyle \text{average speed}=\frac{4\text{ miles}}{\ \frac1{12}\text{ hour}\ }=\)\(\displaystyle \text{ miles per hour}.\)

Assume that your speed changes continuously as you speed up and slow down. Since you started and ended at \( 35 \) miles per hour, you spent some time below your average speed. To make up for that slower travel and still achieve the average you found, you must also have traveled .

Now imagine watching the speedometer as its reading rises from \( 35 \) to a value above your average. What reading must it pass through along the way? At some instant, the speedometer must read miles per hour. Explain how the continuous change in speed supports this conclusion.

As the speedometer's reading rises continuously from \( 35 \) to a value above \( 48 \), it has to pass through \( 48 \). At that instant, your speed equals the average speed for the whole trip.

Here's one possible speed graph for this trip. Drag the red point along the blue curve from the start to the end. Watch where it meets the green line, which marks the average speed, and compare those meetings with the argument we just made.

The blue curve begins and ends at \( 35 \) miles per hour. The green line marks the trip's average speed of \( 48 \) miles per hour.

This curve meets the green line as the car speeds up and again as it slows down. Since your trip also ends at \( 35 \) miles per hour, your speed must pass through \( 48 \) on the way back down as well. The given information guarantees . What would we need to know to find the actual times?

The graph gives us one example of how the trip could unfold. To see how this reasoning connects with derivatives, let's describe the trip using a position function \( s(t) \), measured in miles from the starting point. For this function, measure \( t \) in hours, so the trip runs from \( t=0 \) to \( \displaystyle t=\frac1{12} \).

On the position graph, the secant joining the start and end of the trip has slope

\(\displaystyle \frac{s\left(\frac1{12}\right)-s(0)}{\ \frac1{12}-0\ }=\)\(\displaystyle \text{ miles per hour}.\)

The slope of a tangent to this graph gives . Since the car travels in one direction, its speed equals its velocity. What would it mean for a tangent to be parallel to the secant?

Now consider the properties of \( s \). A position graph that has no breaks anywhere from the start through the end of the trip represents a function that is . If the car has a well-defined instantaneous velocity at every time strictly between the start and end, then \( s \) is .

These two properties are enough to guarantee a tangent parallel to the secant. Our first argument used a continuously changing speedometer reading. In fact, these conditions on position already guarantee a matching tangent, even when the velocity itself is not continuous.

Using theorems

We can often say quite a bit about a function before we know its formula. If it is continuous, for example, we can reason about which heights its graph must reach; if its derivative exists, we can reason about its tangent slopes. Theorems let us turn information like this into an argument that a particular behavior must occur.

The conditions in a theorem are called its hypotheses. When we use a theorem, we show that our function satisfies those conditions, name the theorem, and explain what its conclusion tells us about the problem. If a condition isn't met, the conclusion may still be true, or it may be false, so we need to examine the function more closely. We'll see examples of both possibilities.

The Squeeze Theorem

Suppose we want to find a function's limit, and we can place its outputs between the outputs of two simpler functions. As the two outside functions approach the same number, the space between their graphs narrows, leaving the function in the middle closer and closer to that number as well. The Squeeze Theorem turns this idea into a way to calculate limits, including limits of functions that keep oscillating as the input approaches its target.

In the diagram, \( a \) marks the input we approach and \( L \) marks the height approached by both outside curves. The blue graph \( g \) stays between the lower graph \( f \) and the upper graph \( h \).

The outside curves approach height \( L \) as \( x \) approaches \( a \), squeezing \( g(x) \) toward the same height. The open point shows that the functions can be undefined at \( a \).

To use the theorem, we look for two functions whose limits are easy to find and whose outputs keep our function between them. For an expression involving sine, we can often start with the familiar bound \( -1\le\sin u\le1 \), then use algebra to build bounds for the whole expression.

The Intermediate Value Theorem

Bounds helped us determine a limit. Continuity gives us another kind of information: it tells us which values a function must actually reach. Suppose a function is continuous on a closed interval, with a negative output at one endpoint and a positive output at the other. As we follow its graph from one endpoint to the other, we have to cross the \( x \)-axis somewhere. The same reasoning applies to every height between the endpoint heights, giving us the Intermediate Value Theorem (IVT).

The endpoint inputs are \( a \) and \( b \). Choose a height \( N \) between their outputs; the theorem guarantees an input \( c \) where the curve reaches that height.

The horizontal line at height \( N \) meets the continuous curve at \( (c,N) \). Several inputs reach that height; \( c \) marks one of them.

We can use this to show that an equation has a solution even when solving it algebraically would be difficult. First, move everything to one side of the equation and call that expression \( f(x) \). The equation now says \( f(x)=0 \), so we look for two inputs where \( f \) has opposite signs and check that it is continuous throughout the interval between them.

We now know that the equation has at least one solution in the interval. To decide whether it has exactly one, we need to know more about how the function behaves, since a continuous graph can cross the same height several times. We'll return to this polynomial after developing the Mean Value Theorem (MVT) and use its derivative to settle that question.

The Extreme Value Theorem

The Intermediate Value Theorem tells us that a continuous function reaches every height between its endpoint heights. We can also ask about the highest and lowest points on the whole graph, which may occur somewhere inside the interval. These are the absolute extrema we looked for in optimization problems in Chapter \( 2 \). If the function is continuous on a closed, bounded interval, the Extreme Value Theorem (EVT) guarantees that both extrema are attained.

Here \( u \) is an input where the minimum occurs, and \( v \) is an input where the maximum occurs. Their order along the axis can vary; either extremum may also occur at an endpoint.

Every output lies between the attained minimum \( f(u) \) and maximum \( f(v) \) on \( [a,b] \).

Once we know that both extrema exist, we can find them by comparing the outputs at critical points and endpoints, as we did in Chapter \( 2 \). The interval is part of the problem: including or excluding an endpoint can change which outputs the function reaches.

A bounded interval is part of the guarantee as well. For example, on \( [0,+\infty) \), the continuous function \( f(x)=x \) keeps increasing and has no maximum. We've seen how changing the interval can affect the conclusion; next, let's keep a closed, bounded interval and see what can happen when continuity fails.

The Mean Value Theorem

In Explore, the distance and elapsed time gave us an average speed of \( 48 \) miles per hour, and we argued that the speedometer had to reach that reading somewhere during the trip. Model position as a continuous function of time that is differentiable during the trip. We can then express the relationship using its graph: the secant slope gives the average velocity, while the tangent slope gives the velocity at an instant. Somewhere between the endpoints, a tangent must be parallel to the secant.

The Mean Value Theorem gives us this conclusion for any function that is continuous on the closed interval and differentiable inside it. It connects an instantaneous rate of change with the average rate over the whole interval.

The green secant connects the endpoints at inputs \( a \) and \( b \). At the interior input \( c \), the red tangent is parallel to it, so the derivative \( f'(c) \) equals the secant slope.

One matching input is marked \( c \), giving \( \displaystyle f'(c)=\frac{f(b)-f(a)}{b-a} \). Blue is the function, green is the secant, and red is the tangent.

The Mean Value Theorem also justifies the connection between derivative signs and increasing or decreasing behavior. On an interval, a positive derivative implies that a function is strictly increasing, while a negative derivative implies that it is strictly decreasing. A nonnegative derivative gives nondecreasing behavior.

Returning to \( f(x)=x^3+x-1 \), we have \( f'(x)=3x^2+1>0 \) at every real input. The function is therefore strictly increasing, so it can cross the \( x \)-axis only once. Together with our earlier Intermediate Value Theorem argument, this proves that the equation has exactly one real solution.

We can also use a bound on the derivative to control how much a function changes. Suppose \( a<b \), \( f \) is continuous on \( [a,b] \), and \( f \) is differentiable inside it. Rewriting the Mean Value Theorem gives some \( c\in(a,b) \) for which

\[f(b)-f(a)=f'(c)(b-a).\]

If \( |f'(x)|\le M \) throughout the interior, the same bound holds at \( c \), so

\[\begin{aligned}|f(b)-f(a)|&=|f'(c)|\,(b-a)\\&\le M(b-a).\end{aligned}\]

For example, if a temperature is continuous over a \( 5 \)-minute interval, differentiable inside it, and changes at a rate whose magnitude never exceeds \( 0.4\,{}^\circ\text{C}/\text{min} \), its endpoint temperatures differ by at most \( 2\,{}^\circ\text{C} \). The temperature may rise and fall along the way; the derivative bound controls how far apart its starting and ending values can be.

The Mean Value Theorem for integrals

The connection between instantaneous and average rates has given us several ways to reason about derivatives. We can ask a similar question about a function's values: does the function ever equal its own average? Recall from Section \( 3.4 \) that the average value is the constant value that would produce the same accumulation over the same interval:

\[\overline{f}=\frac1{b-a}\int_a^b f(x)\,\dd{x}.\]

If the function is continuous on a closed interval, the answer is yes. Its average lies between its minimum and maximum, and continuity ensures that it reaches every value in between. This gives us the Mean Value Theorem for integrals.

For the positive function pictured here, the rectangle and the region under the curve have equal areas. The input \( c \) marks a point where the curve reaches the rectangle's height, which is the function's average value on \( [a,b] \).

The shaded region has area \( \displaystyle \int_a^b f(x)\,\dd{x} \).
The rectangle has width \( b-a \) and height \( f(c) \), giving the same area \( f(c)(b-a) \).

The same theorem holds when \( f \) has negative values; the integral then measures signed accumulation. In either case, the average value is an output the function reaches somewhere on the interval.

The two mean-value results fit together when we apply the integral version to a continuous derivative. Section \( 3.4 \) connects the derivative's average value to the original function's average rate of change:

\[\frac1{b-a}\int_a^b f'(x)\,\dd{x}=\frac{f(b)-f(a)}{b-a}.\]

The integral version then gives an input where \( f' \) equals that average, just as the derivative version does. For this integral argument, we have assumed that \( f' \) is continuous. The derivative version of the Mean Value Theorem applies whenever \( f \) is continuous on the closed interval and differentiable inside it.

On an interval, two functions with the same derivative differ by a constant. This explains the \( +C \) in an antiderivative, and why a starting value lets us determine that constant.

  1. Suppose \( ${lower}\le f(x)\le${upper} \) for all \( x \) sufficiently close to \( ${a} \), with \( x\ne${a} \). Then \( \displaystyle \limit{x\to${a}}f(x)= \). Does this determine \( f(${a}) \)? Explain.

    Solution

    Both bounds are continuous and approach \( \displaystyle ${v} \) as \( x\to${a} \). The Squeeze Theorem gives the same limit for \( f \). The inequalities describe \( f(x) \) only at nearby inputs, so \( f(${a}) \) could have a different value or be undefined.

    Both bounding curves approach the marked point, so they force the same limit for the function between them.
  2. Use the Squeeze Theorem to find \( \displaystyle \limit{x\to+\infty}\frac{${linear}+${wave}}x \).

    For \( x>0 \), we can place the quotient between two simpler expressions:

    \(\displaystyle \le\frac{${linear}+${wave}}x\le\)\(\displaystyle .\)

    Both bounds approach , so the quotient has that limit as well. Explain how you obtained the bounds.

    The original quotient has the form \( \infty/\infty \). What happens if you differentiate its numerator and denominator? Explain why the result does not contradict the limit you found.

    Solution

    Start with \( \displaystyle -${b}\le${wave}\le${b} \). Adding \( ${linear} \) and dividing by the positive number \( x \) gives

    \[${lower}\le\frac{${linear}+${wave}}x\le${upper}.\]

    As \( x\to+\infty \), both bounds approach \( ${a} \), so the Squeeze Theorem gives

    \[\limit{x\to+\infty}\frac{${linear}+${wave}}x=${a}.\]

    As \( x \) increases, the linear term in the numerator grows without bound while the sine term stays between fixed values. The numerator therefore approaches positive infinity, just as the denominator does, giving the form \( \infty/\infty \). The quotient of derivatives is \( \displaystyle ${ratio} \), which keeps oscillating rather than approaching a limit, so L’Hôpital’s Rule gives no conclusion here. Our Squeeze Theorem argument still establishes the original limit.

  3. Show that \( ${formula}=0 \) has a root between \( 1 \) and \( 2 \). Let \( f(x)=${formula} \). At the two ends of the interval, we have \( f(1)= \) and \( f(2)= \).

    The function is , so the Intermediate Value Theorem guarantees . How could you also show that there is only one root in this interval?

    Solution

    The polynomial is continuous on \( \displaystyle [1,2] \), and the endpoint values \( \displaystyle ${left_value} \) and \( \displaystyle ${right_value} \) have opposite signs. By the Intermediate Value Theorem, the function must pass through zero somewhere between those inputs. To show that it does so only once, we can use \( f'(x)=3x^2 \), which is positive throughout \( (1,2) \). By the Mean Value Theorem, \( f \) is strictly increasing there, so it can equal zero at most once in that interval.

  4. Prove that \( ${formula}=0 \) has exactly one real root, and that the root lies in \( (0,2) \). First show that a root exists in the interval, then explain why there cannot be another real root.

    Solution

    The polynomial is continuous, with \( \displaystyle f(0)=${left_value} \) and \( \displaystyle f(2)=${right_value} \). Since the function takes opposite signs at those inputs, the Intermediate Value Theorem guarantees a root between them.

    The derivative \( \displaystyle ${derivative} \) is positive at every real input, so the Mean Value Theorem tells us that the function is strictly increasing on the real line. Once it has passed through zero, it keeps increasing, which means the root we found is the only one.

    The graph crosses the axis between the two marked inputs. Because the function is strictly increasing, it crosses only once.
  5. For each function on the given interval, decide whether the Extreme Value Theorem applies and whether the function has an absolute maximum, an absolute minimum, both, or neither. Explain your choices, giving any maximum and minimum values and where they occur.

    1. \( f(x)=x \) on \( (0,1) \).

      EVT . The function attains .

      Solution

      The function is continuous, but the interval omits both endpoints. Its outputs stay strictly between \( 0 \) and \( 1 \), and it reaches neither value, so it has no maximum or minimum.

    2. \( \displaystyle f(x)=\frac1x \) on \( (0,1] \).

      EVT . The function attains .

      Solution

      The interval is not closed, so EVT does not apply. The function attains its minimum of \( 1 \) at \( x=1 \). As \( x\to0^+ \), its outputs grow without bound, so there is no maximum.

    3. \( f(x)=x^2 \) on \( [-1,2] \).

      EVT . The function attains .

      Solution

      The polynomial is continuous on the closed, bounded interval, so EVT guarantees both extrema. The minimum is \( 0 \) at \( x=0 \), and the maximum is \( 4 \) at \( x=2 \).

    4. \( f(x)=\sin x \) on \( (0,2\pi) \).

      EVT . The function attains .

      Solution

      The interval is open, so EVT does not apply. Even so, sine attains its maximum of \( 1 \) at \( x=\pi/2 \) and its minimum of \( -1 \) at \( x=3\pi/2 \), both inside the interval. Failing a condition of the theorem leaves us to examine the function itself.

  6. For \( f(x)=${formula} \) on \( [${p},${q}] \), find every \( c\in(${p},${q}) \) where the tangent is parallel to the line joining the graph's endpoints.

    On the given interval, the function is . Explain why this lets us apply the Mean Value Theorem.

    The line joining those two points has slope . A tangent has the same slope at \( c= \).

    Solution

    As a polynomial, the function is continuous on the closed interval and differentiable between its endpoints. The outputs at the ends are \( \displaystyle ${u} \) and \( \displaystyle ${v} \), so the secant slope is \( \displaystyle \frac{${v}-(${u})}{${q}-(${p})}=${slope} \).

    To find a tangent with this slope, set the derivative equal to it and solve \( \displaystyle ${derivative}=${slope} \). This linear equation has one solution, \( \displaystyle c=${c} \), which lies halfway between the ends of the interval. The tangent there is parallel to the line joining the two endpoints.

    The green line joins the two endpoints of the graph. The red tangent is parallel to it at the marked point.
  7. Compare \( f(x)=${absolute} \) and \( g(x)=${quadratic} \) on \( [${left},${right}] \). For each function, the outputs at the two ends agree, so the line joining them has slope \( 0 \). Which function satisfies the conditions of the Mean Value Theorem? Does each graph have a horizontal tangent somewhere between its endpoints? Explain.

    Solution

    The absolute-value function is continuous but has a corner at \( \displaystyle ${p} \). Its derivatives elsewhere are \( \displaystyle -1 \) and \( 1 \), so its graph has no horizontal tangent between the endpoints. The corner is where the differentiability condition of the Mean Value Theorem fails.

    The quadratic is continuous on the closed interval and differentiable inside it, so the Mean Value Theorem applies. Its endpoint values both equal \( \displaystyle ${n^2} \), giving secant slope \( 0 \). Its derivative is zero at \( \displaystyle x=${p} \), inside the interval, so the tangent there is parallel to the secant.

  8. Let \( f(x)=${formula} \) on \( [0,${b}] \). Use the Mean Value Theorem for integrals to find an input where the function equals its average value.

    The theorem applies because . Its average value is \( \overline{f}= \), and it reaches that average at \( c= \).

    Solution

    As a polynomial, \( f \) is continuous on \( [0,${b}] \), so the theorem guarantees that it reaches its average value somewhere in that interval. We first calculate the average:

    \[\begin{aligned}\overline{f}&=\frac1{${b}-0}\int_0^{${b}}\qty(${formula})\,\dd{x}\\&=\frac1{${b}}\cdot\eval{\qty(${primitive})}_0^{${b}}\\&=\frac{${area}}{${b}}\\&=${average}.\end{aligned}\]

    To find where the function reaches that height, solve \( ${matching}=${average} \). This gives \( c^2=${3*n^2} \), so we keep the positive solution \( c=\sqrt{${3*n^2}} \) that lies in \( [0,${b}] \).

    The green line shows the average height. The red point marks where the function reaches that height.
  9. A room's temperature \( T(t) \) varies continuously from noon to \( 6 \) p.m. Over those six hours, its average temperature is \( 22\,{}^\circ\text{C} \). Let \( t \) measure hours after noon.

    The Mean Value Theorem for integrals guarantees . Express your conclusion using \( T(c) \), state the interval in which \( c \) lies, and explain why the theorem applies.

    Suppose instead that the temperature could jump instantly between two values. Could it have the same average without ever being \( 22\,{}^\circ\text{C} \)? Give an example or explain why that is impossible.

    Solution

    The temperature is continuous on \( [0,6] \), and its average value is \( 22 \). The theorem therefore gives a time \( c\in[0,6] \) at which \( T(c)=22 \). We would need more information about the temperature to determine when that happens or how many times it happens.

    For a discontinuous example, let the temperature be \( 20\,{}^\circ\text{C} \) for the first three hours and \( 24\,{}^\circ\text{C} \) for the remaining three, assigning either value at the instant of the jump. Its average is

    \[\frac{20\cdot3+24\cdot3}{6}=22,\]

    yet it never equals \( 22\,{}^\circ\text{C} \). Continuity is what lets us conclude that the function reaches its average value.

  10. Suppose \( F'=G' \) throughout an open interval and \( F(a)=G(a) \) at one input in it. Use the Mean Value Theorem to show that the functions agree at every input in the interval.

    Solution

    Let \( \displaystyle H=F-G \), so \( \displaystyle H'=0 \) and \( \displaystyle H(a)=0 \). Choose any other input \( \displaystyle x \) in the interval. On the closed interval between \( \displaystyle a \) and \( \displaystyle x \), the function \( \displaystyle H \) is continuous because it is differentiable. It is also differentiable between those endpoints, so the Mean Value Theorem gives an input \( c \) between them for which

    \[H(x)-H(a)=H'(c)(x-a).\]

    Since \( \displaystyle H'=0 \) and \( \displaystyle H(a)=0 \), this equation gives \( \displaystyle H(x)=0 \) as well. We could have chosen any input \( \displaystyle x \) in the interval, so \( \displaystyle F=G \) throughout it.

  11. Along a rod, temperature \( T(x) \) depends on position \( x \) in centimeters. It is continuous from \( ${a}\,\text{cm} \) to \( ${b}\,\text{cm} \), differentiable between them, and satisfies \( \displaystyle |T'(x)|\le${m}\,\frac{{}^\circ\text{C}}{\text{cm}} \) throughout the interior.

    The temperatures at these two positions differ by at most \( {}^\circ\text{C} \). Could we reach the same conclusion if we knew the derivative bound only at the first position?

    Solution

    By the Mean Value Theorem, the temperature change equals the distance between the two positions multiplied by the derivative somewhere between them. Those positions are \( \displaystyle ${length}\,\text{cm} \) apart, so

    \[|T\qty(${b})-T(${a})|\le\qty(${m}\,\frac{{}^\circ\text{C}}{\text{cm}})\cdot\qty(${length}\,\text{cm})=${answer}\,{}^\circ\text{C}.\]

    Knowing the derivative at just the first endpoint tells us about the rate of change there. To see why we need the bound throughout the interval, consider \( T(x)=K(x-${a})^2 \), where \( K>0 \). Its derivative at \( x=${a} \) is \( 0 \), while the temperature change is \( \displaystyle T\qty(${b})-T(${a})=K\qty(${length})^2 \). Choosing a large enough \( K \) makes that change as large as we like.

  12. A student claims that a discontinuous function cannot have a maximum. Give a function on \( [0,1] \) that shows why this claim is false, then explain what the Extreme Value Theorem guarantees. Must your example take every value between its endpoint values on every closed subinterval? If not, identify a subinterval where it fails.

    Solution

    Set \( \displaystyle f\qty(\frac12)=1 \) and \( \displaystyle f(x)=0 \) elsewhere on \( \displaystyle [0,1] \). It is discontinuous but attains maximum \( 1 \) and minimum \( 0 \). The Extreme Value Theorem guarantees that a continuous function on a closed, bounded interval attains both extrema; our discontinuous example shows that other functions can attain them as well.

    On the subinterval \( \displaystyle [0,\frac12] \), the endpoint values are \( 0 \) and \( 1 \), but the function never takes an intermediate value such as \( \displaystyle \frac12 \). Having a maximum and minimum therefore does not guarantee that a function takes all the values between its outputs.

    The function reaches its maximum at the isolated high point, while all its other outputs are zero.