MatheramaMatherama
← Application of Derivatives
Application of Derivatives·Section 5·65 min read

Maxima and Minima

Introduction§

Optimization is a fundamental concept in mathematics and engineering, concerned with determining the maximum or minimum values of a function. This process is essential across various fields, including physics, economics, and engineering design, where one often seeks to minimize costs, maximize efficiency, or optimize performance parameters.

At its core, the problem of optimization begins with a function f(x)f(x) defined on some interval, and the goal is to identify values of xx at which f(x)f(x) attains either its highest or lowest value. Such points are called extrema. If a function reaches its highest value at some point within a given domain, that point is called a maximum; if it attains its lowest value, it is called a minimum. Depending on the context, one may be interested in either local extrema—where the function reaches a peak or valley within a small neighborhood—or global extrema, where the function attains its absolute highest or lowest value over the entire domain.

Optimization problems appear naturally in real-world applications. Engineers optimize material usage in construction, economists seek to maximize profit functions, and physicists analyze equilibrium conditions by finding extrema of energy functions. Understanding how to systematically identify these points and characterize their nature is an essential step before progressing to more advanced optimization techniques.

The goal of optimization is to determine the maximum and minimum values of a function over a given interval. These values, called the global maximum and global minimum, represent the highest and lowest function values within the interval and are essential in many mathematical and real-world applications.

One way to find these extrema is by drawing the graph of the function and visually identifying the highest and lowest points. While this can sometimes be helpful, it is not always practical. For many functions, sketching an accurate graph is difficult or even impossible without prior knowledge of the function’s behavior. Therefore, we seek a structured mathematical approach that allows us to determine maximum and minimum values without relying on graphing.

In some cases, it is possible to find extrema using algebraic methods, such as factoring or completing the square. However, these methods work only for specific types of functions and are not always applicable. To develop a more general and systematic approach, we rely on calculus, which provides powerful techniques for finding local and global extrema of a function.

Our approach begins with identifying all local maxima and minima, which are points where the function reaches a peak or a valley in a small neighborhood. Once we determine these points, we use these with some other information to find global maximum and global minimum values of the function.

Local Maxima and Minima§

A function ff is said to have a local extremum at x=ax = a if there exists δ>0\delta > 0 such that:

  • ff has a local maximum at x=ax = a if for all x∈(a−δ,a)x \in (a - \delta, a) and y∈(a,a+δ)y \in (a, a + \delta),

    f(x)≤f(a)≥f(y).f(x) \leq f(a) \geq f(y).

    This means that within a small interval around aa, the function attains its highest value at x=ax = a, making it a local peak.

Similarly,

  • ff has a local minimum at x=ax = a if for all x∈(a−δ,a)x \in (a - \delta, a) and y∈(a,a+δ)y \in (a, a + \delta),

    f(x)≥f(a)≤f(y).f(x) \geq f(a) \leq f(y).

    This means that within a small neighborhood around aa, the function attains its lowest value at x=ax = a, forming a local valley.

These definitions formalize the idea that a local maximum is a peak, while a local minimum is a valley, both occurring within a small region of the function's domain.

In this definition it does not matter whether the function is continuous or distcontinuous at aa. This is valid for any possibility.

To check whether a point x=ax = a is a local maximum, we compare f(a)f(a) with f(a+δ)f(a+\delta) and f(a−δ)f(a-\delta) for a small positive number δ\delta. This is quite a practical approach. Our goal is to show that:

f(a−δ)≤f(a)≥f(a+δ)f(a-\delta) \leq f(a) \geq f(a+\delta)

for every sufficiently small δ\delta. This ensures that as δ\delta gets arbitrarily small, f(a)f(a) remains greater than or equal to the values of the function at nearby points.

Similarly, for a local minimum, we must show:

f(a−δ)≥f(a)≤f(a+δ)f(a-\delta) \geq f(a) \leq f(a+\delta)

for all sufficiently small δ\delta, ensuring that f(a)f(a) is the smallest function value in its neighborhood.

Consider the function

f(x)=x(2−x).f(x) = x(2-x).

We check whether it has a local maximum at x=1x = 1.

First, we evaluate:

f(1)=1(2−1)=1.f(1) = 1(2-1) = 1.

Now, for a small δ>0\delta > 0, compute f(1+δ)f(1+\delta):

f(1+δ)=(1+δ)(2−(1+δ))=(1+δ)(1−δ).f(1+\delta) = (1+\delta)(2-(1+\delta)) = (1+\delta)(1-\delta).

Expanding,

f(1+δ)=1+δ−δ−δ2=1−δ2.f(1+\delta) = 1 + \delta - \delta - \delta^2 = 1 - \delta^2.

Since δ2>0\delta^2 > 0 for any δ≠0\delta \neq 0, we see that:

f(1+δ)=1−δ2<1=f(1).f(1+\delta) = 1 - \delta^2 < 1 = f(1).

Similarly, compute f(1−δ)f(1-\delta):

f(1−δ)=(1−δ)(2−(1−δ))=(1−δ)(1+δ).f(1-\delta) = (1-\delta)(2-(1-\delta)) = (1-\delta)(1+\delta).

Expanding,

f(1−δ)=1−δ+δ−δ2=1−δ2.f(1-\delta) = 1 - \delta + \delta - \delta^2 = 1 - \delta^2.

Again, since δ2>0\delta^2 > 0,

f(1−δ)=1−δ2<1=f(1).f(1-\delta) = 1 - \delta^2 < 1 = f(1).

Since both f(1+δ)f(1+\delta) and f(1−δ)f(1-\delta) are less than f(1)f(1) for every sufficiently small δ\delta, we conclude that x=1x=1 is a local maximum of f(x)f(x).

Using Derivatives§

The above method to check whether a point is a local maximum or minimum is valid for any function. Let us now consider a smaller class of functions: those that are continuous but may be non-differentiable at some points. For this class of functions, we can use derivatives to quickly identify all local maxima and minima.

Let ff be a continuous function, possibly non-differentiable at a countable number of points, defined on an interval (a,b)(a, b). It turns out that if a function has a local extremum at some point, then either its derivative there vanishes or does not exist. However, the converse is not true—a point where f′(x)=0f'(x) = 0 or does not exist may not necessarily be a local extremum.

At a local maximum, the function changes its behavior from increasing to decreasing. This means that f′f' must change from positive to negative. At the maximum itself, f′f' may be zero or may not exist.

Similarly, at a local minimum, the function changes from decreasing to increasing, meaning f′f' must change from negative to positive. Again, at the minimum itself, f′f' may be zero or may not exist.

Example 1: f(x)=∣x∣f(x) = |x|

The function f(x)=∣x∣f(x) = |x| is continuous but not differentiable at x=0x = 0. Its derivative is:

f′(x)={1,x>0−1,x<0f'(x) = \begin{cases} 1, & x > 0 \\ -1, & x < 0 \end{cases}

At x=0x = 0, f′f' does not exist. Checking the behavior of f′f', we see that as xx increases past 0, f′f' changes from negative to positive, indicating that f(x)f(x) is transitioning from decreasing to increasing. Thus, x=0x = 0 is a local minimum, even though f′f' does not exist there.

Example 2: g(x)=x2g(x) = x^2

For g(x)=x2g(x) = x^2, the derivative is:

g′(x)=2x.g'(x) = 2x.

At x=0x = 0, we have g′(0)=0g'(0) = 0.
For x<0x < 0, g′(x)<0g'(x) < 0, so the function is decreasing.
For x>0x > 0, g′(x)>0g'(x) > 0, so the function is increasing.
Since g′(x)g'(x) changes from negative to positive at x=0x = 0, we conclude that x=0x = 0 is a local minimum.

From these two examples, we understand that at a local extremum, the derivative either vanishes or does not exist. To determine whether a critical point is an extremum, we just need to check whether f′f' changes sign around that point.

Now consider the function f(x)=x3f(x) = x^3. Its derivative is

f′(x)=3x2.f'(x) = 3x^2.

At x=0x = 0, we compute

f′(0)=3(0)2=0.f'(0) = 3(0)^2 = 0.

However, x=0x = 0 is not a local extremum. To see why, observe the sign of f′(x)f'(x) on both sides of x=0x = 0:

  • For x>0x > 0, we have f′(x)=3x2>0f'(x) = 3x^2 > 0.
  • For x<0x < 0, we also have f′(x)=3x2>0f'(x) = 3x^2 > 0.

Since f′(x)f'(x) is positive on both sides of x=0x = 0, the function does not change from increasing to decreasing or vice versa. Instead, f(x)f(x) is strictly increasing for all xx, meaning x=0x = 0 is neither a local maximum nor a local minimum.

This example illustrates that having f′(x)=0f'(x) = 0 at a point does not necessarily mean the function has a local extremum there. The behavior of the derivative around that point must also be examined.

Tests to Find all points of Maxima and Minima§

To find all local maxima and minima of a function in a given interval, there are three primary methods: the first derivative test, the second derivative test, and the higher-order derivative test. We begin with the first derivative test, which we have already described conceptually. Here, we present it in a more algorithmic manner for systematic application.

First Derivative Test§

Let ff be a continuous function on an open interval (a,b)(a, b), possibly non-differentiable at some points. The first derivative test consists of the following steps:

  1. Compute the derivative and find all critical points

    • Recall that a critical point of ff is any point cc in (a,b)(a, b) where either

      f′(c)=0orf′(c) does not exist.f'(c) = 0 \quad \text{or} \quad f'(c) \text{ does not exist}.
    • Compute f′(x)f'(x) and solve for f′(x)=0f'(x) = 0.

    • Identify points where f′(x)f'(x) does not exist.

  2. Plot these critical points in ascending order on the real number line and analyze the sign of f′(x)f'(x) around them

    • Mark the critical points on a number line.
    • Choose test points in each subinterval formed by these critical points.
    • Determine the sign of f′(x)f'(x) at these test points and construct a sign graph for f′(x)f'(x).
  3. Make conclusions based on the sign changes of f′(x)f'(x):

    • If f′(x)f'(x) changes sign from positive to negative at x=cx = c (i.e., f′>0f' > 0 for x<cx < c and f′<0f' < 0 for x>cx > c), then ff has a local maximum at x=cx = c. This corresponds to the function changing from increasing to decreasing.
    • If f′(x)f'(x) changes sign from negative to positive at x=cx = c (i.e., f′<0f' < 0 for x<cx < c and f′>0f' > 0 for x>cx > c), then ff has a local minimum at x=cx = c. This corresponds to the function changing from decreasing to increasing.
    • If f′(x)f'(x) does not change sign at x=cx = c (i.e., f′>0f' > 0 on both sides or f′<0f' < 0 on both sides), then ff is monotonic near x=cx = c, and there is no local extremum at x=cx = c.

Second Derivative Test§

In the previous discussion, ff was assumed to be a continuous function, possibly non-differentiable at some points. The second derivative test, however, applies to a smaller class of functions—those that are differentiable in an interval.

Let ff be a differentiable function on an open interval (a,b)(a, b). The idea is the same as before:

  1. First, we compute f′(x)f'(x) and find all points where f′(x)=0f'(x) = 0. These points are called critical points.
  2. Unlike the first derivative test, where we examined sign changes in f′f', we now differentiate f′f' again to obtain the second derivative f′′(x)f''(x).
  3. We check the sign of f′′(x)f''(x) at each stationary point (a critical point where f′(x)=0f'(x) = 0).

Classification Using f′′(x)f''(x):

  • If f′′(s)>0f''(s) > 0 at a stationary point ss, then ff is concave upward at ss, indicating a local minimum.
  • If f′′(s)<0f''(s) < 0 at a stationary point ss, then ff is concave downward at ss, indicating a local maximum.
  • If f′′(s)=0f''(s) = 0, the test is inconclusive—the point may be a local extremum, or it may not. Further analysis (such as higher derivatives or another method) is needed.

Rationale Behind the Test:

At a local minimum, the function transitions from decreasing to increasing, implying an upward curvature—which means f′′(x)>0f''(x) > 0. Similarly, at a local maximum, the function transitions from increasing to decreasing, implying a downward curvature—which means f′′(x)<0f''(x) < 0. However, when f′′(x)=0f''(x) = 0, the curvature test fails, and further investigation is required.

Handling the Case When f′′(s)=0f''(s) = 0 at a Stationary Point

If f′′(s)=0f''(s) = 0 at a stationary point ss, the second derivative test becomes inconclusive. In such cases, we need an alternative method to determine whether ss is a local maximum, a local minimum, or neither.

Consider the function:

f(x)=x4.f(x) = x^4.

We compute its derivatives:

f′(x)=4x3.f'(x) = 4x^3.

Setting f′(x)=0f'(x) = 0, we find the stationary point:

4x3=0⇒x=0.4x^3 = 0 \quad \Rightarrow \quad x = 0.

Now, compute the second derivative:

f′′(x)=12x2.f''(x) = 12x^2.

At x=0x = 0:

f′′(0)=12(0)2=0.f''(0) = 12(0)^2 = 0.

Since f′′(0)=0f''(0) = 0, the second derivative test is inconclusive.

Alternative Approaches

  1. Fallback to the First Derivative Test

    • Checking the sign of f′(x)f'(x) on either side of x=0x = 0, we see that:

      • For x<0x < 0, f′(x)<0f'(x) < 0 (decreasing).
      • For x>0x > 0, f′(x)>0f'(x) > 0 (increasing).
    • Since f(x)f(x) changes from decreasing to increasing, x=0x = 0 is a local minimum.

  2. Checking the Sign of f′′(x)f''(x) Around ss

    • Even though f′′(0)=0f''(0) = 0, we examine the sign of f′′(x)f''(x) for xx near 00:

      • For x>0x > 0, f′′(x)=12x2>0f''(x) = 12x^2 > 0.
      • For x<0x < 0, f′′(x)=12x2>0f''(x) = 12x^2 > 0.
    • Since f′′(x)f''(x) is positive on both sides, the function is concave upwards, confirming x=0x = 0 as a local minimum.

General Rule When f′′(s)=0f''(s) = 0:

  • If f′′(x)f''(x) is positive on both sides of ss, then ss is a local minimum (concave up).
  • If f′′(x)f''(x) is negative on both sides, then ss is a local maximum (concave down).
  • If f′′(x)f''(x) changes sign (from ++ to −- or vice versa), then ss is neither a maximum nor a minimum, but an inflection point—indicating a change in concavity.

Thus, when the second derivative test is inconclusive (i.e., f′′(s)=0f''(s) = 0), checking the sign of f′′(x)f''(x) in a small neighborhood of ss is an effective alternative approach.

Another Approach: nth Derivative Test§

When the second derivative test fails for a stationary point ss, meaning we obtain f′′(s)=0f''(s) = 0, we may apply a more general method known as the nnth derivative test. This test can help classify ss as a local maximum, local minimum, or neither when lower-order derivatives provide no information.

nnth Derivative Test

We assume that ff is differentiable at least nn times in a neighborhood of ss. If the second derivative test fails at ss, meaning f′′(s)=0f''(s) = 0, we continue differentiating higher-order derivatives until we find the first nonzero derivative.

  1. Compute the third derivative f′′′(x)f'''(x) and evaluate at x=sx = s:

    f′′′(s).f'''(s).
    • If f′′′(s)=0f'''(s) = 0, we differentiate again.
  2. Compute the fourth derivative f(4)(x)f^{(4)}(x) and evaluate at x=sx = s:

    f(4)(s).f^{(4)}(s).
    • If f(4)(s)=0f^{(4)}(s) = 0, we differentiate again.
  3. Continue this process until we obtain the first nonzero derivative at some order nn, i.e.,

    f(n)(s)≠0.f^{(n)}(s) \neq 0.

Conclusion Based on nn:

  • If nn is odd, then ss is a point of inflection (not a local extremum). The function does not attain a local maximum or minimum at ss, but instead undergoes a change in concavity.

  • If nn is even, then the sign of f(n)(s)f^{(n)}(s) determines the nature of the extremum:

    • If f(n)(s)>0f^{(n)}(s) > 0, then ss is a local minimum.
    • If f(n)(s)<0f^{(n)}(s) < 0, then ss is a local maximum.

Example: f(x)=x4f(x) = x^4

Consider f(x)=x4f(x) = x^4, for which we already established that the second derivative test fails at x=0x = 0. Applying the nnth derivative test:

  1. Compute derivatives:

    f′(x)=4x3,f′′(x)=12x2,f′′′(x)=24x,f(4)(x)=24.f'(x) = 4x^3, \quad f''(x) = 12x^2, \quad f'''(x) = 24x, \quad f^{(4)}(x) = 24.
  2. Evaluate at x=0x = 0:

    f′(0)=0,f′′(0)=0,f′′′(0)=0,f(4)(0)=24.f'(0) = 0, \quad f''(0) = 0, \quad f'''(0) = 0, \quad f^{(4)}(0) = 24.
  3. Since f(4)(0)≠0f^{(4)}(0) \neq 0 and n=4n = 4 (even), we check the sign:

    f(4)(0)=24>0.f^{(4)}(0) = 24 > 0.

    Since nn is even and f(n)(0)>0f^{(n)}(0) > 0, x=0x = 0 is a local minimum.

Example: f(x)=x5f(x) = x^5

Consider f(x)=x5f(x) = x^5:

  1. Compute derivatives:

    f′(x)=5x4,f′′(x)=20x3,f′′′(x)=60x2,f(4)(x)=120x,f(5)(x)=120.f'(x) = 5x^4, \quad f''(x) = 20x^3, \quad f'''(x) = 60x^2, \quad f^{(4)}(x) = 120x, \quad f^{(5)}(x) = 120.
  2. Evaluate at x=0x = 0:

    f′(0)=0,f′′(0)=0,f′′′(0)=0,f(4)(0)=0,f(5)(0)=120.f'(0) = 0, \quad f''(0) = 0, \quad f'''(0) = 0, \quad f^{(4)}(0) = 0, \quad f^{(5)}(0) = 120.
  3. Since f(5)(0)≠0f^{(5)}(0) \neq 0 and n=5n = 5 (odd), we conclude that x=0x = 0 is a point of inflection, not a local extremum.

Conclusion

The nnth derivative test is a more general tool that applies when the second derivative test fails. It provides a systematic way to determine whether a stationary point is a local extremum or a point of inflection. If the first nonzero derivative beyond the second is:

  • Of even order (nn is even), we use its sign to classify the point as a local minimum or maximum.
  • Of odd order (nn is odd), the point is an inflection point, not an extremum.

Global (Absolute) Maximum and Minimum§

Let ff be a function defined on a domain DD.

  • f(x)f(x) has a global (absolute) maximum at x=cx = c if

    f(c)≥f(x)for all x∈D.f(c) \geq f(x) \quad \text{for all } x \in D.

    The value f(c)f(c) is called the global maximum value of ff.

  • f(x)f(x) has a global (absolute) minimum at x=dx = d if

    f(d)≤f(x)for all x∈D.f(d) \leq f(x) \quad \text{for all } x \in D.

    The value f(d)f(d) is called the global minimum value of ff.

A function may have local extrema that are not global, meaning they are extreme only within a small neighborhood but not over the entire domain. The global extrema are the true highest and lowest values of the function across its entire domain.

To find the global extremum, we have two approaches: one through algebraic methods, which apply to many functions, and the other through derivatives, which we will focus on first.

We distinguish two cases:

  1. When ff is defined on a closed interval.
  2. When ff is defined on an open interval.

Case 1: Function Defined on a Closed Interval

Let ff be a continuous function defined on a closed interval [a,b][a, b]. The process to find the global extrema is straightforward:

  1. Find all points of local extrema by solving f′(x)=0f'(x) = 0 or where f′(x)f'(x) does not exist. Let these points be c1,c2,…,cnc_1, c_2, \dots, c_n inside (a,b)(a, b).
  2. Evaluate f(x)f(x) at these local extrema and at the endpoints aa and bb.
  3. The global maximum occurs at either one of the local maxima or one of the endpoints.
  4. The global minimum occurs at either one of the local minima or one of the endpoints.

Thus, the global maximum value is given by:

M=max⁡{f(a),f(c1),f(c2),…,f(cn),f(b)}.M = \max \{ f(a), f(c_1), f(c_2), \dots, f(c_n), f(b) \}.

Similarly, the global minimum value is:

m=min⁡{f(a),f(c1),f(c2),…,f(cn),f(b)}.m = \min \{ f(a), f(c_1), f(c_2), \dots, f(c_n), f(b) \}.

Since ff is continuous on a closed interval, the Extreme Value Theorem guarantees that ff attains both a global maximum and a global minimum at some points in [a,b][a, b].

Case 2: Function Defined on a Open Interval

For an open interval, we may not have a global minimum or maximum. The absence of closed endpoints means the function may approach extreme values without actually attaining them. To see this, consider an example.

Let

f(x)=x3,x∈(−1,2).f(x) = x^3, \quad x \in (-1, 2).

What are the maximum and minimum values of ff in this interval?

alt text

From our previous knowledge, we recognize that f(x)=x3f(x) = x^3 is a strictly increasing function. This means that as xx increases, f(x)f(x) also increases. The function takes values in the range:

(f(−1),f(2))=(−1,8).(f(-1), f(2)) = (-1, 8).

This is an open interval, meaning the function values approach −1-1 and 88 but never actually attain them.

Is 8 the maximum value of ff? No, because the interval is open at x=2x = 2, meaning x=2x = 2 is not included in the domain. Thus, the function never actually attains the value 88 for any c∈(−1,2)c \in (-1,2).

Similarly, the function does not attain −1-1 as a minimum value, because x=−1x = -1 is also not included in the domain.

Thus, f(x)=x3f(x) = x^3 on (−1,2)(-1,2) has no global maximum value and no global minimum value.

In contrast consider the following example:

Consider the function

f(x)=x2−2x,x∈(−1,2).f(x) = x^2 - 2x, \quad x \in (-1,2).

What are the maximum and minimum values of ff in this interval?

Since the function is defined on an open interval, we must carefully analyze whether the function attains a maximum or minimum.

alt text

From the graph of f(x)=x2−2xf(x) = x^2 - 2x, we observe that the function achieves a minimum value at x=1x = 1. Substituting x=1x = 1,

f(1)=(1)2−2(1)=1−2=−1.f(1) = (1)^2 - 2(1) = 1 - 2 = -1.

Thus, the global minimum value is −1-1 at x=1x = 1.

Now, does the function attain a global maximum? The function is increasing for x>1x > 1, and if the left endpoint x=−1x = -1 were included, it would serve as the maximum point. However, since x=−1x = -1 is not part of the domain, the function does not actually attain this value. Instead, we analyze its limit:

lim⁡x→−1+f(x)=(−1)2−2(−1)=1+2=3.\lim\limits_{x \to -1^+} f(x) = (-1)^2 - 2(-1) = 1 + 2 = 3.

Thus, the function approaches 3 but never actually attains it. This means that there is no global maximum value.

Procedure to Calculate Global Extrema for Functions on Open Intervals§

For functions defined on open intervals, we must be extra cautious at the endpoints, as the function may not attain extreme values there. The process follows these steps:

  1. Find all local extrema by solving f′(x)=0f'(x) = 0 or checking where f′(x)f'(x) does not exist. Suppose the local maxima occur at points c1,c2,…,cnc_1, c_2, \dots, c_n and the local minima occur at points d1,d2,…,dmd_1, d_2, \dots, d_m.

  2. Analyze the function's behavior at the endpoints by computing

    p=lim⁡x→a+f(x),q=lim⁡x→b−f(x).p = \lim\limits_{x \to a^+} f(x), \quad q = \lim\limits_{x \to b^-} f(x).
  3. Compare all function values at the local extrema and the endpoint limits:

    • The global maximum is determined by

      M=sup⁡{f(c1),f(c2),…,f(cn),p,q}.M = \sup \{ f(c_1), f(c_2), \dots, f(c_n), p, q \}.

      If this maximum is attained at some xx in (a,b)(a, b), we declare it as the global maximum. If it is never attained, there is no global maximum.

    • The global minimum is determined by

      m=inf⁡{f(d1),f(d2),…,f(dm),p,q}.m = \inf \{ f(d_1), f(d_2), \dots, f(d_m), p, q \}.

      If this minimum is attained at some xx in (a,b)(a, b), we declare it as the global minimum. Otherwise, no global minimum exists.

Since the function is not defined at x=ax = a and x=bx = b, the values pp and qq provide only approaching behavior, not actual function values. If the function diverges at an endpoint, meaning p=±∞p = \pm \infty or q=±∞q = \pm \infty, no finite global extremum can exist at that endpoint.

Unlike the closed interval case, where the Extreme Value Theorem guarantees the existence of global extrema, in an open interval, global extrema may fail to exist. Thus, we must carefully consider the endpoint limits when evaluating the function's overall behavior.

Single Critical Point Theorem§

The Single Critical Point Theorem states that if a function has exactly one critical point in an interval, and that point is a local extremum, then it must also be the global extremum.

Theorem Statement

Let ff be a differentiable function on an interval II, and suppose that ff has exactly one critical point cc in II (i.e., f′(c)=0f'(c) = 0 and there are no other critical points in II). Then:

  • If ff has a local maximum at cc, then f(c)f(c) is the global maximum of ff over II.
  • If ff has a local minimum at cc, then f(c)f(c) is the global minimum of ff over II.

Proof

Since ff has only one critical point, it must be monotonic on both sides of cc. This means that the derivative does not vanish or change direction anywhere else in II. If ff is increasing before cc and decreasing after cc, then cc is the highest point in II, making it the global maximum. Similarly, if ff is decreasing before cc and increasing after cc, then cc is the global minimum.

This conclusion follows from the First Derivative Test: since f′f' has only one zero, f(x)f(x) cannot attain a greater or smaller value at any other point in II. Thus, the local extremum at cc must also be the absolute extremum.

■\blacksquare

This theorem is particularly useful in situations where checking endpoints or analyzing the global behavior of the function might be tedious. If we establish that a function has exactly one local extremum within an interval, the theorem guarantees that this extremum is also the global extremum, eliminating the need to verify function values at endpoints or evaluate additional limits.

For example, consider the function f(x)=xxf(x) = x^x for x>0x > 0. Previously, we found that the only critical point occurs at x=1ex = \frac{1}{e}, obtained by solving f′(x)=xx(1+ln⁡x)=0f'(x) = x^x(1 + \ln x) = 0, which leads to ln⁡x=−1\ln x = -1 and hence x=e−1x = e^{-1}. By analyzing the sign of f′(x)f'(x), we concluded that x=1ex = \frac{1}{e} is a local minimum.

Since this function is defined on an open interval (0,∞)(0, \infty), we might typically check the behavior of f(x)f(x) as x→0+x \to 0^+ and x→∞x \to \infty to determine whether x=1ex = \frac{1}{e} is indeed the global minimum. However, applying the Single Critical Point Theorem, we recognize that x=1ex = \frac{1}{e} is the only critical point in (0,∞)(0, \infty). Since it is a local minimum and no other extrema exist, it must also be the global minimum by virtue of the theorem.

Thus, we do not need to explicitly evaluate the limiting values lim⁡x→0+xx\lim\limits_{x \to 0^+} x^x or lim⁡x→∞xx\lim\limits_{x \to \infty} x^x, nor do we need to compare function values across the interval. The theorem allows us to immediately conclude that

min⁡x>0f(x)=f(1/e)=e−1/e.\min_{x > 0} f(x) = f(1/e) = e^{-1/e}.

This application of the Single Critical Point Theorem not only confirms the correctness of our conclusion but also eliminates unnecessary computations that would otherwise be required to establish the global minimum.

Using Algebra to Find Global Maximum and Minimum§

We use several algebraic techniques to evaluate the maximum and minimum values of functions, depending on the nature of the function itself. One common technique is transforming the expression through algebraic manipulation into a form where only a single term depends on xx, whose range is either known or easy to compute. By isolating this term, we can directly determine the range of the entire function without differentiation.

Consider f(x)=12+sin⁡x,x∈Rf(x) = \frac{1}{2 + \sin x}, \quad x \in \mathbb{R}, let us find the maximum and minimum value of this fucntion.

The function depends on xx only through sin⁡x\sin x. Since the well-known range of the sine function is

−1≤sin⁡x≤1,-1 \leq \sin x \leq 1,

we transform the denominator:

2+sin⁡x.2 + \sin x.

Adding 2 throughout the inequality gives:

1≤2+sin⁡x≤3.1 \leq 2 + \sin x \leq 3.

Now, reciprocating (which reverses the inequality because all terms are positive):

13≤12+sin⁡x≤1.\frac{1}{3} \leq \frac{1}{2 + \sin x} \leq 1.

Thus, the range of f(x)f(x) is:

[13,1].\left[ \frac{1}{3}, 1 \right].

To determine when these values occur, we recall that the function f(x)=12+sin⁡xf(x) = \frac{1}{2 + \sin x} reaches its global maximum when its denominator is smallest, which happens when sin⁡x=−1\sin x = -1. The sine function achieves sin⁡x=−1\sin x = -1 at

x=2nπ−π2,n∈Z.x = 2n\pi - \frac{\pi}{2}, \quad n \in \mathbb{Z}.

Substituting sin⁡x=−1\sin x = -1 into f(x)f(x), we get:

f(x)=12+(−1)=11=1.f(x) = \frac{1}{2 + (-1)} = \frac{1}{1} = 1.

Thus, the global maximum value is 11, occurring at:

x=2nπ−π2,n∈Z.x = 2n\pi - \frac{\pi}{2}, \quad n \in \mathbb{Z}.

Similarly, the function reaches its global minimum when its denominator is largest, which happens when sin⁡x=1\sin x = 1. The sine function achieves sin⁡x=1\sin x = 1 at

x=2nπ+π2,n∈Z.x = 2n\pi + \frac{\pi}{2}, \quad n \in \mathbb{Z}.

Substituting sin⁡x=1\sin x = 1 into f(x)f(x), we get:

f(x)=12+(1)=13.f(x) = \frac{1}{2 + (1)} = \frac{1}{3}.

Thus, the global minimum value is 13\frac{1}{3}, occurring at:

x=2nπ+π2,n∈Z.x = 2n\pi + \frac{\pi}{2}, \quad n \in \mathbb{Z}.

This confirms that without using derivatives, we can algebraically determine the global extrema of the function solely by analyzing the range of sin⁡x\sin x and applying transformations.

Application of the AM-GM Inequality in Finding Maximum and Minimum Values§

The Arithmetic Mean - Geometric Mean (AM-GM) Inequality states that for any set of non-negative real numbers a1,a2,…,ana_1, a_2, \dots, a_n,

a1+a2+⋯+ann≥a1a2…ann,\frac{a_1 + a_2 + \dots + a_n}{n} \geq \sqrt[n]{a_1 a_2 \dots a_n},

with equality holding if and only if a1=a2=⋯=ana_1 = a_2 = \dots = a_n.

This inequality is particularly useful in optimization problems where the function consists of non-negative terms whose product is constant or has a simple bound. By applying AM-GM, we can establish lower or upper bounds on the function without using derivatives.

Cauchy-Schwarz Inequality and Its Lemma§

The Cauchy-Schwarz inequality and its lemma are fundamental results in inequalities that can be ingeniously applied to functions to determine their maximum and minimum values. These results allow us to bound expressions involving sums and products, making them powerful tools in optimization problems without requiring calculus.

Cauchy-Schwarz Inequality

For any real numbers a1,a2,…,ana_1, a_2, \dots, a_n and b1,b2,…,bnb_1, b_2, \dots, b_n, the following inequality holds:

(a1b1+a2b2+⋯+anbn)2≤(a12+a22+⋯+an2)(b12+b22+⋯+bn2).(a_1b_1 + a_2b_2 + \dots + a_n b_n)^2 \leq (a_1^2 + a_2^2 + \dots + a_n^2)(b_1^2 + b_2^2 + \dots + b_n^2).

Equality holds if and only if there exists a constant kk such that

a1b1=a2b2=⋯=anbn=k,\frac{a_1}{b_1} = \frac{a_2}{b_2} = \dots = \frac{a_n}{b_n} = k,

for all indices where bi≠0b_i \neq 0. If any bi=0b_i = 0, then the corresponding aia_i must also be 0.

Cauchy-Schwarz Lemma

For any real numbers a1,a2,…,ana_1, a_2, \dots, a_n and positive real numbers b1,b2,…,bnb_1, b_2, \dots, b_n, we have:

a12b1+a22b2+⋯+an2bn≥(a1+a2+⋯+an)2b1+b2+⋯+bn.\frac{a_1^2}{b_1} + \frac{a_2^2}{b_2} + \dots + \frac{a_n^2}{b_n} \geq \frac{(a_1 + a_2 + \dots + a_n)^2}{b_1 + b_2 + \dots + b_n}.

Equality holds if and only if there exists a constant kk such that

a1b1=a2b2=⋯=anbn=k.\frac{a_1}{b_1} = \frac{a_2}{b_2} = \dots = \frac{a_n}{b_n} = k.

Geometrical Application of Maxima and Minima§

In engineering design, optimizing material usage is crucial for cost efficiency. Suppose you are tasked with designing a closed cylindrical tin box intended to store powdered milk. The box must have a fixed volume of VV cubic units, but you have the freedom to choose its radius and height. The goal is to minimize the amount of tin used in constructing the box, as more material results in higher manufacturing costs.

Since the amount of tin required is directly proportional to the surface area of the cylinder, minimizing the tin usage translates to minimizing the total surface area while ensuring that the volume remains VV. Thus, the problem reduces to determining the optimal values of the radius and height that achieve this minimum.

To proceed with the optimization, let us define the necessary mathematical expressions. Let the radius of the cylindrical box be rr and the height be hh. The volume of the box is given by

V=πr2hV = \pi r^2 h

cylinderical box

Since the volume is fixed, the variables rr and hh are not independent; they must satisfy this equation. We refer to such an equation as a constraint because it restricts our choice of rr and hh.

Now, let SS denote the total surface area of the cylindrical box. The surface area consists of two circular ends and the lateral curved surface. Hence,

S=2πrh+2πr2S = 2\pi r h + 2\pi r^2

Here, SS is a function of both rr and hh, but we can express it in terms of a single variable using the constraint equation. The choice of which variable to eliminate is arbitrary; here, we eliminate hh. Solving for hh from the volume equation,

h=Vπr2h = \frac{V}{\pi r^2}

Substituting this into the expression for SS,

S=2πr⋅Vπr2+2πr2S = 2\pi r \cdot \frac{V}{\pi r^2} + 2\pi r^2

Simplifying,

S=2Vr+2πr2S = \frac{2V}{r} + 2\pi r^2

Now, SS is expressed as a function of rr alone. The problem reduces to finding the value of rr that minimizes this function, ensuring the optimal design of the cylindrical box using the least amount of tin.

To find the optimal value of rr that minimizes the surface area SS, we differentiate SS with respect to rr:

dSdr=ddr(2Vr+2πr2)\frac{dS}{dr} = \frac{d}{dr} \left( \frac{2V}{r} + 2\pi r^2 \right)

Differentiating term by term,

dSdr=−2Vr2+4πr\frac{dS}{dr} = -\frac{2V}{r^2} + 4\pi r

To find the critical points, we set dSdr=0\frac{dS}{dr} = 0:

−2Vr2+4πr=0-\frac{2V}{r^2} + 4\pi r = 0

Solving for rr,

r3=2V4π=V2πr^3 = \frac{2V}{4\pi} = \frac{V}{2\pi} r=(V2π)13r = \left( \frac{V}{2\pi} \right)^{\frac{1}{3}}

To confirm that the critical point we found corresponds to a minimum, we apply the first or second derivative test. We apply second derivative test here for its simplicity in this problem:

We compute the second derivative of SS:

d2Sdr2=ddr(−2Vr2+4πr).\frac{d^2S}{dr^2} = \frac{d}{dr} \left( -\frac{2V}{r^2} + 4\pi r \right).

Differentiating term by term,

d2Sdr2=4Vr3+4π.\frac{d^2S}{dr^2} = \frac{4V}{r^3} + 4\pi.

Since both terms are positive for all r>0r > 0, we conclude that

d2Sdr2>0for all r>0.\frac{d^2S}{dr^2} > 0 \quad \text{for all } r > 0.

Thus, SS is concave upward at the critical point, confirming that it is a local minimum. By Single Critical Point Theorem we can claim that it is also the global minimum.

Once rr is determined, we substitute it back into the volume constraint equation to find hh:

h=Vπr2h = \frac{V}{\pi r^2}

Substituting r=(V2π)13r = \left( \frac{V}{2\pi} \right)^{\frac{1}{3}},

h=Vπ(V2π)23h = \frac{V}{\pi \left( \frac{V}{2\pi} \right)^{\frac{2}{3}}}

Simplifying,

h=2(V2π)13h = 2 \left( \frac{V}{2\pi} \right)^{\frac{1}{3}}

Thus, the optimal dimensions for minimizing the tin used are:

r=(V2π)13,h=2(V2π)13r = \left( \frac{V}{2\pi} \right)^{\frac{1}{3}}, \quad h = 2 \left( \frac{V}{2\pi} \right)^{\frac{1}{3}}

This result indicates that the height of the optimal cylinder is exactly twice its radius. Hence, for a fixed volume, the most efficient cylindrical tin box is one where its height is twice the radius, ensuring minimal material usage.

General Procedure of Optimization§

Optimization is the process of finding the best possible value of a quantity while satisfying given conditions or constraints. In mathematics and engineering, this typically involves maximizing or minimizing a function subject to certain constraints. Problems in optimization arise in a wide range of applications, such as minimizing material costs in manufacturing, maximizing efficiency in transportation, or even determining the optimal shape for a physical structure.

The general procedure to solve an optimization problem follows these steps:

  1. Identify the quantity to be optimized:

    • Determine what needs to be maximized or minimized (e.g., cost, surface area, time, distance).
    • Assign a variable to represent this quantity.
  2. Express the quantity as a function:

    • Identify parameters relevant to the problem and express the quantity to be optimized as a function of these parameters.
    • This function may depend on multiple variables.
  3. Find the constraints:

    • Constraints are given conditions that restrict the values of the parameters.
    • These may come from physical, geometrical, or problem-specific conditions.
    • If the function depends on two variables, we need one constraint to express one variable in terms of the other. If it depends on three variables, we need two constraints, and so on.
  4. Eliminate extra parameters:

    • Use the constraints to express the function in terms of a single variable by eliminating extra parameters.
  5. Differentiate and find critical points:

    • Compute the derivative of the function with respect to the remaining variable.
    • Solve for the critical points by setting the derivative equal to zero.
  6. Confirm whether the critical point is a minimum or maximum:

    • Use either the first derivative test (checking sign changes) or the second derivative test (checking concavity) to confirm whether the critical point corresponds to a minimum or maximum.
  7. Interpret the result:

    • Verify that the solution satisfies all constraints and makes sense in the context of the problem.
Section 5 of 8 · Application of Derivatives

Mark this section complete when you have worked through its proofs.