# 4.1 Applications of 1st Derivative

Given a particular function, we are often interested in determining the largest (maximum) and smallest (minimum) values of the function. This information is important in creating accurate graphs. Finding the maximum and minimum values of a function also has practical significance because we can use this method to solve optimization problems, such as maximizing profit, minimizing the amount of material used in manufacturing an aluminum can, or finding the maximum height a rocket can reach. In this section, we look at how to use derivatives to find the largest and smallest values for a function.

## Absolute Extrema

Consider the function $f(x)={x}^{2}+1$ over the interval $(\text{−}\infty ,\infty ).$ As $x\to \text{±}\infty ,$ $f(x)\to \infty .$ Therefore, the function does not have a largest value. However, since ${x}^{2}+1\ge 1$ for all real numbers $x$ and ${x}^{2}+1=1$ when $x=0,$ the function has a smallest value, 1, when $x=0.$ We say that 1 is the absolute minimum of $f(x)={x}^{2}+1$ and it occurs at $x=0.$ We say that $f(x)={x}^{2}+1$ does not have an absolute maximum (Figure 4.1).

## Definition

Let $f$ be a function defined over an interval $I$ and let $c\in I.$ We say $f$ has an absolute maximum on $I$ at $c$ if $f(c)\ge f(x)$ for all $x\in I.$ We say $f$ has an absolute minimum on $I$ at $c$ if $f(c)\le f(x)$ for all $x\in I.$ If $f$ has an absolute maximum on $I$ at $c$ or an absolute minimum on $I$ at $c,$ we say $f$ has an absolute extremum on $I$ at $c.$

Before proceeding, let’s note two important issues regarding this definition. First, the term absolute here does not refer to absolute value. An absolute extremum may be positive, negative, or zero. Second, if a function $f$ has an absolute extremum over an interval $I$ at $c,$ the absolute extremum is $f(c).$ The real number $c$ is a point in the domain at which the absolute extremum occurs. For example, consider the function $f(x)=1\text{/}({x}^{2}+1)$ over the interval $(\text{−}\infty ,\infty ).$ Since
$$f(0)=1\ge \frac{1}{{x}^{2}+1}=f(x)$$
for all real numbers $x,$ we say $f$ has an absolute maximum over $(\text{−}\infty ,\infty )$ at $x=0.$ The absolute maximum is $f(0)=1.$ It occurs at $x=0,$ as shown in (Figure 4.2)(b).

A function may have both an absolute maximum and an absolute minimum, just one extremum, or neither. (Figure 4.2) shows several functions and some of the different possibilities regarding absolute extrema. However, the following theorem, called the Extreme Value Theorem, guarantees that a continuous function $f$ over a closed, bounded interval $\left[a,b\right]$ has both an absolute maximum and an absolute minimum.

Long Description: In figure a, the line f(x) = x3 is shown, and it is noted that it has no absolute minimum and no absolute maximum. In figure b, the line f(x) = 1/(x2 + 1) is shown, which is near 0 for most of its length and rises to a bump at (0, 1); it has no absolute minimum, but does have an absolute maximum of 1 at x = 0. In figure c, the line f(x) = cos x is shown, which has absolute minimums of −1 at ±π, ±3π, … and absolute maximums of 1 at 0, ±2π, ±4π, …. In figure d, the piecewise function f(x) = 2 – x2 for 0 ≤ x < 2 and x – 3 for 2 ≤ x ≤ 4 is shown, with absolute maximum of 2 at x = 0 and no absolute minimum. In figure e, the function f(x) = (x – 2)2 is shown on [1, 4], which has absolute maximum of 4 at x = 4 and absolute minimum of 0 at x = 2. In figure f, the function f(x) = x/(2 − x) is shown on [0, 2), with absolute minimum of 0 at x = 0 and no absolute maximum.

## Extreme Value Theorem

If $f$ is a continuous function over the closed, bounded interval $\left[a,b\right],$ then there is a point in $\left[a,b\right]$ at which $f$ has an absolute maximum over $\left[a,b\right]$ and there is a point in $\left[a,b\right]$ at which $f$ has an absolute minimum over $\left[a,b\right].$

The proof of the extreme value theorem is beyond the scope of this text. Typically, it is proved in a course on real analysis. There are a couple of key points to note about the statement of this theorem. For the extreme value theorem to apply, the function must be continuous over a closed, bounded interval. If the interval $I$ is open or the function has even one point of discontinuity, the function may not have an absolute maximum or absolute minimum over $I.$ For example, consider the functions shown in (Figure 4.3)(d), (e), and (f). All three of these functions are defined over bounded intervals. However, the function in graph (e) is the only one that has both an absolute maximum and an absolute minimum over its domain. The extreme value theorem cannot be applied to the functions in graphs (d) and (f) because neither of these functions is continuous over a closed, bounded interval. Although the function in graph (d) is defined over the closed interval $\left[0,4\right],$ the function is discontinuous at $x=2.$ The function has an absolute maximum over $[0,4]$ but does not have an absolute minimum. The function in graph (f) is continuous over the half-open interval $[0,2),$ but is not defined at $x=2,$ and therefore is not continuous over a closed, bounded interval. The function has an absolute minimum over $[0,2),$ but does not have an absolute maximum over $[0,2).$ These two graphs illustrate why a function over a bounded interval may fail to have an absolute maximum and/or absolute minimum.

Before looking at how to find absolute extrema, let’s examine the related concept of local extrema. This idea is useful in determining where absolute extrema occur.

## Local Extrema and Critical Points

Consider the function $f$ shown in (Figure 4.3). The graph can be described as two mountains with a valley in the middle. The absolute maximum value of the function occurs at the higher peak, at $x=2.$ However, $x=0$ is also a point of interest. Although $f(0)$ is not the largest value of $f,$ the value $f(0)$ is larger than $f(x)$ for all $x$ near 0. We say $f$ has a local maximum at $x=0.$ Similarly, the function $f$ does not have an absolute minimum, but it does have a local minimum at $x=1$ because $f(1)$ is less than $f(x)$ for $x$ near 1.

Long description: The function f(x) is shown, which curves upward from quadrant III, slows down in quadrant II, achieves a local maximum on the y-axis, decreases to achieve a local minimum in quadrant I at x = 1, increases to a local maximum at x = 2 that is greater than the other local maximum, and then decreases rapidly through quadrant IV.

## Definition

A function $f$ has a local maximum at $c$ if there exists an open interval $I$ containing $c$ such that $I$ is contained in the domain of $f$ and $f(c)\ge f(x)$ for all $x\in I.$ A function $f$ has a local minimum at $c$ if there exists an open interval $I$ containing $c$ such that $I$ is contained in the domain of $f$ and $f(c)\le f(x)$ for all $x\in I.$ A function $f$ has a local extremum at $c$ if $f$ has a local maximum at $c$ or $f$ has a local minimum at $c.$

Note that if $f$ has an absolute extremum at $c$ and $f$ is defined over an interval containing $c,$ then $f(c)$ is also considered a local extremum. If an absolute extremum for a function $f$ occurs at an endpoint, we do not consider that to be a local extremum, but instead refer to that as an endpoint extremum.

Given the graph of a function $f,$ it is sometimes easy to see where a local maximum or local minimum occurs. However, it is not always easy to see, since the interesting features on the graph of a function may not be visible because they occur at a very small scale. Also, we may not have a graph of the function. In these cases, how can we use a formula for a function to determine where these extrema occur?

To answer this question, let’s look at (Figure 4.3) again. The local extrema occur at $x=0,$ $x=1,$ and $x=2.$ Notice that at $x=0$ and $x=1,$ the derivative $f\prime (x)=0.$ At $x=2,$ the derivative $f\prime (x)$ does not exist, since the function $f$ has a corner there. In fact, if $f$ has a local extremum at a point $x=c,$ the derivative $f\prime (c)$ must satisfy one of the following conditions: either $f\prime (c)=0$ or $f\prime (c)$ is undefined. Such a value $c$ is known as a critical point and it is important in finding extreme values for functions.

## Definition

Let $c$ be an interior point in the domain of $f.$ We say that $c$ is a critical point of $f$ if $f\prime (c)=0$ or $f\prime (c)$ is undefined.

As mentioned earlier, if $f$ has a local extremum at a point $x=c,$ then $c$ must be a critical point of $f.$ This fact is known as Fermat’s theorem.

## Fermat’s Theorem

If $f$ has a local extremum at $c$ and $f$ is differentiable at $c,$ then $f\prime (c)=0.$

## Proof

Suppose $f$ has a local extremum at $c$ and $f$ is differentiable at $c.$ We need to show that $f\prime (c)=0.$ To do this, we will show that $f\prime (c)\ge 0$ and $f\prime (c)\le 0,$ and therefore $f\prime (c)=0.$ Since $f$ has a local extremum at $c,$ $f$ has a local maximum or local minimum at $c.$ Suppose $f$ has a local maximum at $c.$ The case in which $f$ has a local minimum at $c$ can be handled similarly. There then exists an open interval $I$ such that $f(c)\ge f(x)$ for all $x\in I.$ Since $f$ is differentiable at $c,$ from the definition of the derivative, we know that

$$f\prime (c)=\underset{x\to c}{\text{lim}}\frac{f(x)-f(c)}{x-c}.$$

Since this limit exists, both one-sided limits also exist and equal $f\prime (c).$ Therefore,

$$f\prime (c)=\underset{x\to {c}^{+}}{\text{lim}}\frac{f(x)-f(c)}{x-c},$$

and

$$f\prime (c)=\underset{x\to {c}^{-}}{\text{lim}}\frac{f(x)-f(c)}{x-c}.$$

Since $f(c)$ is a local maximum, we see that $f(x)-f(c)\le 0$ for $x$ near $c.$ Therefore, for $x$ near $c,$ but $x>c,$ we have $\frac{f(x)-f(c)}{x-c}\le 0.$ From (Figure 4.4) we conclude that $f\prime (c)\le 0.$ Similarly, it can be shown that $f\prime (c)\ge 0.$ Therefore, $f\prime (c)=0.$

From Fermat’s theorem, we conclude that if $f$ has a local extremum at $c,$ then either $f\prime (c)=0$ or $f\prime (c)$ is undefined. In other words, local extrema can only occur at critical points.

Note this theorem does not claim that a function $f$ must have a local extremum at a critical point. Rather, it states that critical points are candidates for local extrema. For example, consider the function $f(x)={x}^{3}.$ We have $f\prime (x)=3{x}^{2}=0$ when $x=0.$ Therefore, $x=0$ is a critical point. However, $f(x)={x}^{3}$ is increasing over $(\text{−}\infty ,\infty ),$ and thus $f$ does not have a local extremum at $x=0.$ In (Figure 4.4), we see several different possibilities for critical points. In some of these cases, the functions have local extrema at critical points, whereas in other cases the functions do not. Note that these graphs do not show all possibilities for the behavior of a function at a critical point.

Long description: In figure a, a parabola is shown facing down in quadrant I; there is a horizontal tangent line at the local maximum marked f’(c) = 0. In figure b, there is a function drawn with an asymptote at c, meaning that the function increases toward infinity on both sides of c; it is noted that f’(c) is undefined. In figure c, a version of the absolute value graph is shown that has been shifted so that its minimum is in quadrant I with x = c. It is noted that f’(c) is undefined. In figure d, a version of the function f(x) = x3 is shown that has been shifted so that its inflection point is in quadrant I with x = c. Its inflection point at (c, f(c)) has a horizontal line through it, and it is noted that f’(c) = 0. In figure e, a version of the function f(x) = x1/3 is shown that has been shifted so that its inflection point is in quadrant I with x = c. Its inflection point at (c, f(c)) has a vertical line through it, and it is noted that f’(c) is undefined.

Later in this chapter we look at analytical methods for determining whether a function actually has a local extremum at a critical point. For now, let’s turn our attention to finding critical points. We will use graphical observations to determine whether a critical point is associated with a local extremum.

## Locating Absolute Extrema

The extreme value theorem states that a continuous function over a closed, bounded interval has an absolute maximum and an absolute minimum. As shown in (Figure 4.5), one or both of these absolute extrema could occur at an endpoint. If an absolute extremum does not occur at an endpoint, however, it must occur at an interior point, in which case the absolute extremum is a local extremum. Therefore, by (Figure 4.5), the point $c$ at which the local extremum occurs must be a critical point. We summarize this result in the following theorem.

### Location of Absolute Extrema

Let $f$ be a continuous function over a closed, bounded interval $I.$ The absolute maximum of $f$ over $I$ and the absolute minimum of $f$ over $I$ must occur at endpoints of $I$ or at critical points of $f$ in $I.$

With this idea in mind, let’s examine a procedure for locating absolute extrema.

### Problem-Solving Strategy: Locating Absolute Extrema over a Closed Interval

Consider a continuous function $f$ defined over the closed interval $\left[a,b\right].$

1. Evaluate $f$ at the endpoints $x=a$ and $x=b.$
2. Find all critical points of $f$ that lie over the interval $(a,b)$ and evaluate $f$ at those critical points.
3. Compare all values found in (1) and (2). From (Figure 4.5), the absolute extrema must occur at endpoints or critical points. Therefore, the largest of these values is the absolute maximum of $f.$ The smallest of these values is the absolute minimum of $f.$

Now let’s look at how to use this strategy to find the absolute maximum and absolute minimum values for continuous functions.

At this point, we know how to locate absolute extrema for continuous functions over closed intervals. We have also defined local extrema and determined that if a function $f$ has a local extremum at a point $c,$ then $c$ must be a critical point of $f.$ However, $c$ being a critical point is not a sufficient condition for $f$ to have a local extremum at $c.$ Later in this chapter, we show how to determine whether a function actually has a local extremum at a critical point. First, however, we need to introduce the Mean Value Theorem, which will help as we analyze the behavior of the graph of a function.

## Mean Value Theorem

The Mean Value Theorem is one of the most important theorems in calculus. We look at some of its implications at the end of this section. First, let’s start with a special case of the Mean Value Theorem, called Rolle’s theorem.

## Rolle’s Theorem

Informally, Rolle’s theorem states that if the outputs of a differentiable function $f$ are equal at the endpoints of an interval, then there must be an interior point $c$ where $f\prime (c)=0.$ (Figure 4.5) illustrates this theorem.

Long description: Figure a shows the first quadrant with values a, c, and b marked on the x-axis. A downward-facing parabola is drawn such that its values at a and b are the same. The point c is the global maximum, and it is noted that f’(c) = 0. Figure b shows the first quadrant with values a, c, and b marked on the x-axis. An upward-facing parabola is drawn such that its values at a and b are the same. The point c is the global minimum, and it is noted that f’(c) = 0. Figure c shows the first quadrant with points a, c1, c2, and b marked on the x-axis. One period of a sine wave is drawn such that its values at a and b are equal. The point c1 is the global maximum, and it is noted that f’(c1) = 0. The point c2 is the global minimum, and it is noted that f’(c2) = 0.

## Rolle’s Theorem

Let $f$ be a continuous function over the closed interval $\left[a,b\right]$ and differentiable over the open interval $(a,b)$ such that $f(a)=f(b).$ There then exists at least one $c\in (a,b)$ such that $f\prime (c)=0.$

### Proof

Let $k=f(a)=f(b).$ We consider three cases:

1. $f(x)=k$ for all $x\in (a,b).$
2. There exists $x\in (a,b)$ such that $f(x)>k.$
3. There exists $x\in (a,b)$ such that $f(x) Case 1: If [latex]f(x)=0$ for all $x\in (a,b),$ then $f\prime (x)=0$ for all $x\in (a,b).$

Case 2: Since $f$ is a continuous function over the closed, bounded interval $\left[a,b\right],$ by the extreme value theorem, it has an absolute maximum. Also, since there is a point $x\in (a,b)$ such that $f(x)>k,$ the absolute maximum is greater than $k.$ Therefore, the absolute maximum does not occur at either endpoint. As a result, the absolute maximum must occur at an interior point $c\in (a,b).$ Because $f$ has a maximum at an interior point $c,$ and $f$ is differentiable at $c,$ by Fermat’s theorem, $f\prime (c)=0.$

Case 3: The case when there exists a point $x\in (a,b)$ such that $f(x) < k$ is analogous to case 2, with maximum replaced by minimum.

An important point about Rolle’s theorem is that the differentiability of the function $f$ is critical. If $f$ is not differentiable, even at a single point, the result may not hold. For example, the function $f(x)=|x|-1$ is continuous over $\left[-1,1\right]$ and $f(-1)=0=f(1),$ but $f\prime (c)\ne 0$ for any $c\in (-1,1)$ as shown in the following Figure 4.6.

Let’s now consider functions that satisfy the conditions of Rolle’s theorem and calculate explicitly the points $c$ where $f\prime (c)=0.$

## The Mean Value Theorem and Its Meaning

Rolle’s theorem is a special case of the Mean Value Theorem. In Rolle’s theorem, we consider differentiable functions $f$ that are zero at the endpoints. The Mean Value Theorem generalizes Rolle’s theorem by considering functions that are not necessarily zero at the endpoints. Consequently, we can view the Mean Value Theorem as a slanted version of Rolle’s theorem ((Figure 4.7)). The Mean Value Theorem states that if $f$ is continuous over the closed interval $\left[a,b\right]$ and differentiable over the open interval $(a,b),$ then there exists a point $c\in (a,b)$ such that the tangent line to the graph of $f$ at $c$ is parallel to the secant line connecting $(a,f(a))$ and $(b,f(b)).$

Long description: On the x-axis, a, c1, c2, and b are marked. On the y-axis, f(a) and f(b) are marked. The function f(x) starts at (a, f(a)), decreases to c1, increases to c2, and then decreases to (b, f(b)). A secant line is drawn between (a, f(a)) and (b, f(b)), and it is noted that this line has slope (f(b) – f(a))/(b − a). The tangent lines at c1 and c2 are drawn, and these lines are parallel to the secant line. It is noted that the slopes of these tangent lines are f’(c1) and f’(c2), respectively.

## Mean Value Theorem

Let $f$ be continuous over the closed interval $\left[a,b\right]$ and differentiable over the open interval $(a,b).$ Then, there exists at least one point $c\in (a,b)$ such that

$$f\prime (c)=\frac{f(b)-f(a)}{b-a}.$$

### Proof

The proof follows from Rolle’s theorem by introducing an appropriate function that satisfies the criteria of Rolle’s theorem. Consider the line connecting $(a,f(a))$ and $(b,f(b)).$ Since the slope of that line is

$$\frac{f(b)-f(a)}{b-a}$$

and the line passes through the point $(a,f(a)),$ the equation of that line can be written as

$$y=\frac{f(b)-f(a)}{b-a}(x-a)+f(a).$$

Let $g(x)$ denote the vertical difference between the point $(x,f(x))$ and the point $(x,y)$ on that line. Therefore,

$$g(x)=f(x)-\left[\frac{f(b)-f(a)}{b-a}(x-a)+f(a)\right]\text{.}$$

Long description: On the x-axis, a and b are marked. On the y-axis, f(a) and f(b) are marked. The function f(x) starts at (a, f(a)), decreases, then increases, and then decreases to (b, f(b)). A secant line is drawn between (a, f(a)) and (b, f(b)), and it is noted that this line has equation y = ((f(b) – f(a))/(b − a)) (x − a) + f(x). A line is drawn between the maximum of f(x) and the secant line and it is marked g(x).

Since the graph of $f$ intersects the secant line when $x=a$ and $x=b,$ we see that $g(a)=0=g(b).$ Since $f$ is a differentiable function over $(a,b),$ $g$ is also a differentiable function over $(a,b).$ Furthermore, since $f$ is continuous over $\left[a,b\right],$ $g$ is also continuous over $\left[a,b\right].$ Therefore, $g$ satisfies the criteria of Rolle’s theorem. Consequently, there exists a point $c\in (a,b)$ such that $g\prime (c)=0.$ Since

$$g\prime (x)=f\prime (x)-\frac{f(b)-f(a)}{b-a},$$

we see that

$$g\prime (c)=f\prime (c)-\frac{f(b)-f(a)}{b-a}.$$

Since $g\prime (c)=0,$ we conclude that

$$f\prime (c)=\frac{f(b)-f(a)}{b-a}.$$

In the next example, we show how the Mean Value Theorem can be applied to the function $f(x)=\sqrt{x}$ over the interval $\left[0,9\right].$ The method is the same for other functions, although sometimes with more interesting consequences.

One application that helps illustrate the Mean Value Theorem involves velocity. For example, suppose we drive a car for 1 h down a straight road with an average velocity of 45 mph. Let $s(t)$ and $v(t)$ denote the position and velocity of the car, respectively, for $0\le t\le 1$ h. Assuming that the position function $s(t)$ is differentiable, we can apply the Mean Value Theorem to conclude that, at some time $c\in (0,1),$ the speed of the car was exactly

$$v(c)={s}^{\prime }(c)=\frac{s(1)-s(0)}{1-0}=45\;\text{mph}.$$

## Corollaries of the Mean Value Theorem

Let’s now look at three corollaries of the Mean Value Theorem. These results have important consequences, which we use in upcoming sections.

At this point, we know the derivative of any constant function is zero. The Mean Value Theorem allows us to conclude that the converse is also true. In particular, if ${f}^{\prime }(x)=0$ for all $x$ in some interval $I,$ then $f(x)$ is constant over that interval. This result may seem intuitively obvious, but it has important implications that are not obvious, and we discuss them shortly.

## Corollary 1: Functions with a Derivative of Zero

Let $f$ be differentiable over an interval $I.$ If ${f}^{\prime }(x)=0$ for all $x\in I,$ then $f(x)=$ constant for all $x\in I.$

### Proof

Since $f$ is differentiable over $I,$ $f$ must be continuous over $I.$ Suppose $f(x)$ is not constant for all $x$ in $I.$ Then there exist $a,b\in I,$ where $a\ne b$ and $f(a)\ne f(b).$ Choose the notation so that $a \frac{f(b)-f(a)}{b-a}\ne 0. Since [latex]f$ is a differentiable function, by the Mean Value Theorem, there exists $c\in (a,b)$ such that

$${f}^{\prime }(c)=\frac{f(b)-f(a)}{b-a}.$$

Therefore, there exists $c\in I$ such that ${f}^{\prime }(c)\ne 0,$ which contradicts the assumption that ${f}^{\prime }(x)=0$ for all $x\in I.$

From Corollary 1, it follows that if two functions have the same derivative, they differ by, at most, a constant.

## Corollary 2: Constant Difference Theorem

If $f$ and $g$ are differentiable over an interval $I$ and ${f}^{\prime }(x)={g}^{\prime }(x)$ for all $x\in I,$ then $f(x)=g(x)+C$ for some constant $C.$

### Proof

Let $h(x)=f(x)-g(x).$ Then, ${h}^{\prime }(x)={f}^{\prime }(x)-{g}^{\prime }(x)=0$ for all $x\in I.$ By Corollary 1, there is a constant $C$ such that $h(x)=C$ for all $x\in I.$ Therefore, $f(x)=g(x)+C$ for all $x\in I.$

The third corollary of the Mean Value Theorem discusses when a function is increasing and when it is decreasing. Recall that a function $f$ is increasing over $I$ if $f({x}_{1}) < f({x}_{2})$ whenever ${x}_{1}\lt{x}_{2},$ whereas $f$ is decreasing over $I$ if $f{(x)}_{1}>f({x}_{2})$ whenever ${x}_{1}<{x}_{2}.$

Using the Mean Value Theorem, we can show that if the derivative of a function is positive, then the function is increasing; if the derivative is negative, then the function is decreasing ((Figure 4.9)). We make use of this fact in the next section, where we show how to use the derivative of a function to locate local maximum and minimum values of the function, and how to determine the shape of the graph.

This fact is important because it means that for a given function $f,$ if there exists a function $F$ such that ${F}^{\prime }(x)=f(x);$ then, the only other functions that have a derivative equal to $f$ are $F(x)+C$ for some constant $C.$ We discuss this result in more detail later in the chapter.

Long description: A vaguely sinusoidal function f(x) is graphed. It increases from somewhere in the second quadrant to (a, f(a)). In this section it is noted that f’ > 0. Then in decreases from (a, f(a)) to (b, f(b)). In this section it is noted that f’ is less than 0. Finally, it increases to the right of (b, f(b)) and it is noted in this section that f’ is greater than 0.

## Corollary 3: Increasing and Decreasing Functions

Let $f$ be continuous over the closed interval $\left[a,b\right]$ and differentiable over the open interval $(a,b).$

1. If ${f}^{\prime }(x)>0$ for all $x\in (a,b),$ then $f$ is an increasing function over $\left[a,b\right].$
2. If ${f}^{\prime }(x)<0$ for all $x\in (a,b),$ then $f$ is a decreasing function over $\left[a,b\right].$

### Proof

We will prove i.; the proof of ii. is similar. Suppose $f$ is not an increasing function on $I.$ Then there exist $a$ and $b$ in $I$ such that $a {f}^{\prime }(c)=\frac{f(b)-f(a)}{b-a}. Since [latex]f(a)\ge f(b),$ we know that $f(b)-f(a)\le 0.$ Also, $a0.$ We conclude that

$${f}^{\prime }(c)=\frac{f(b)-f(a)}{b-a}\le 0.$$

However, ${f}^{\prime }(x)>0$ for all $x\in I.$ This is a contradiction, and therefore $f$ must be an increasing function over $I.$