Active Calculus · 3: Using Derivatives

3.3: Global Optimization

Motivating Questions
  • What are the differences between finding relative extreme values and global extreme values of a function?
  • How is the process of finding the global maximum or minimum of a function over the function's entire domain different from determining the global maximum or minimum on a restricted domain?
  • For a function that is guaranteed to have both a global maximum and global minimum on a closed, bounded interval, what are the possible points at which these extreme values occur?

We have seen that we can use the first derivative of a function to determine where the function is increasing or decreasing, and the second derivative to know where the function is concave up or concave down. This information helps us determine the overall shape and behavior of the graph, as well as whether the function has relative extrema.

Remember the difference between a relative maximum and a global maximum: there is a relative maximum of ff at x=px = p if f(p)≥f(x)f(p) \ge f(x) for all xx near p,p\text{,} while there is a global maximum at pp if f(p)≥f(x)f(p) \ge f(x) for all xx in the domain of f.f\text{.}

For instance, in Figure 3.3.13.3.1, we see a function ff that has a global maximum at x=cx = c and a relative maximum at x=a,x = a\text{,} since f(c)f(c) is greater than f(x)f(x) for every value of x,x\text{,} while f(a)f(a) is only greater than the value of f(x)f(x) for xx near a.a\text{.} Since the function appears to decrease without bound, ff has no global minimum, though clearly ff has a relative minimum at x=b.x = b\text{.}

3_3_Intro.svg

Figure 3.3.13.3.1 A function ff with a global maximum, but no global minimum.

Our emphasis in this section is on finding the global extreme values of a function (if they exist), either over its entire domain or on some restricted portion.

Preview Activity 3.3.13.3.1

Let f(x)=2+31+(x+1)2.f(x) = 2 + \frac{3}{1+(x+1)^2}\text{.}

  1. Determine all of the critical numbers of f.f\text{.}
  2. Construct a first derivative sign chart for ff and thus determine all intervals on which ff is increasing or decreasing.
  3. Does ff have a global maximum? If so, why, and what is its value and where is the maximum attained? If not, explain why.
  4. Determine lim⁡x→∞f(x)\lim_{x \to \infty} f(x) and lim⁡x→−∞f(x).\lim_{x \to -\infty} f(x)\text{.}
  5. Explain why f(x)>2f(x) \gt 2 for every value of x.x\text{.}
  6. Does ff have a global minimum? If so, why, and what is its value and where is the minimum attained? If not, explain why.

In Figure 3.3.13.3.1 and Preview Activity 3.3.13.3.1, we were interested in finding the global minimum and global maximum for ff on its entire domain. At other times, we might focus on some restriction of the domain.

For example, rather than considering f(x)=2+31+(x+1)2f(x) = 2 + \frac{3}{1+(x+1)^2} for every value of x,x\text{,} perhaps instead we are only interested in those xx for which 0≤x≤4,0 \le x \le 4\text{,} and we would like to know which values of xx in the interval [0,4][0,4] produce the largest possible and smallest possible values of f.f\text{.} We are accustomed to critical numbers playing a key role in determining the location of extreme values of a function; now, by restricting the domain to an interval, it makes sense that the endpoints of the interval will also be important to consider, as we see in the following activity. When limiting ourselves to a particular interval, we will often refer to the absolute maximum or minimum value, rather than the global maximum or minimum.

Activity 3.3.23.3.2

Let g(x)=13x3−2x+2.g(x) = \frac{1}{3}x^3 - 2x + 2\text{.}

  1. Find all critical numbers of gg that lie in the interval −2≤x≤3.-2 \le x \le 3\text{.}
  2. Use a graphing utility to construct the graph of gg on the interval −2≤x≤3.-2 \le x \le 3\text{.}
  3. From the graph, determine the xx-values at which the absolute minimum and absolute maximum of gg occur on the interval [−2,3].[-2,3]\text{.}
  4. How do your answers change if we instead consider the interval −2≤x≤2?-2 \le x \le 2\text{?}
  5. What if we instead consider the interval −2≤x≤1?-2 \le x \le 1\text{?}

In Activity 3.3.23.3.2, we saw how the absolute maximum and absolute minimum of a function on a closed, bounded interval [a,b],[a,b]\text{,} depend not only on the critical numbers of the function, but also on the values of aa and b.b\text{.} These observations demonstrate several important facts that hold more generally. First, we state an important result called the Extreme Value Theorem.

The Extreme Value Theorem

If ff is a continuous function on a closed interval [a,b],[a,b]\text{,} then ff attains both an absolute minimum and absolute maximum on [a,b].[a,b]\text{.} That is, for some value xmx_m such that a≤xm≤b,a \le x_m \le b\text{,} it follows that f(xm)≤f(x)f(x_m) \le f(x) for all xx in [a,b].[a,b]\text{.} Similarly, there is a value xMx_M in [a,b][a,b] such that f(xM)≥f(x)f(x_M) \ge f(x) for all xx in [a,b].[a,b]\text{.} Letting m=f(xm)m = f(x_m) and M=f(xM),M = f(x_M)\text{,} it follows that m≤f(x)≤Mm \le f(x) \le M for all xx in [a,b].[a,b]\text{.}

The Extreme Value Theorem tells us that on any closed interval [a,b],[a,b]\text{,} a continuous function has to achieve both an absolute minimum and an absolute maximum. The theorem does not tell us where these extreme values occur, but rather only that they must exist. As we saw in Activity 3.3.13.3.1.2, the only possible locations for relative extremes are at the endpoints of the interval or at a critical number.

Note 3.3.13.3.1

Thus, we have the following approach to finding the absolute maximum and minimum of a continuous function ff on the interval [a,b]:[a,b]\text{:}

  • find all critical numbers of ff that lie in the interval;
  • evaluate the function ff at each critical number in the interval and at each endpoint of the interval;
  • from among those function values, the smallest is the absolute minimum of ff on the interval, while the largest is the absolute maximum.
Activity 3.3.33.3.3

Find the exact absolute maximum and minimum of each function on the stated interval.

  1. h(x)=xe−x,h(x) = xe^{-x}\text{,} [0,3][0,3]
  2. p(t)=sin⁡(t)+cos⁡(t),p(t) = \sin(t) + \cos(t)\text{,} [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}]
  3. q(x)=x2x−2,q(x) = \frac{x^2}{x-2}\text{,} [3,7][3,7]
  4. f(x)=4−e−(x−2)2,f(x) = 4 - e^{-(x-2)^2}\text{,} (−∞,∞)(-\infty, \infty)
  5. h(x)=xe−ax,h(x) = xe^{-ax}\text{,} [0,2a][0, \frac{2}{a}] (a>0a \gt 0)
  6. f(x)=b−e−(x−a)2,f(x) = b - e^{-(x-a)^2}\text{,} (−∞,∞),(-\infty, \infty)\text{,} a,b>0a, b \gt 0

The interval we choose has nearly the same influence on extreme values as the function under consideration. Consider, for instance, the function pictured in Figure 3.3.23.3.2.

3_3_Interval.svg

Figure 3.3.23.3.2. A function gg considered on three different intervals.

In sequence, from left to right, the interval under consideration is changed from [−2,3][-2,3] to [−2,2][-2,2] to [−2,1].[-2,1]\text{.}

  • On the interval [−2,3],[-2,3]\text{,} there are two critical numbers, with the absolute minimum at one critical number and the absolute maximum at the right endpoint.
  • On the interval [−2,2],[-2,2]\text{,} both critical numbers are in the interval, with the absolute minimum and maximum at the two critical numbers.
  • On the interval [−2,1],[-2,1]\text{,} just one critical number lies in the interval, with the absolute maximum at one critical number and the absolute minimum at one endpoint.

Remember to consider only the critical numbers that lie within the interval.

Moving toward applications

We conclude this section with an example of an applied optimization problem. It highlights the role that a closed, bounded domain can play in finding absolute extrema.

Example 3.3.13.3.1

A 20 cm piece of wire is cut into two pieces. One piece is used to form a square and the other to form an equilateral triangle. How should the wire be cut to maximize the total area enclosed by the square and triangle? to minimize the area?

Answer

We begin by sketching a picture that illustrates the situation. The variable in the problem is where we decide to cut the wire. We thus label the cut point at a distance xx from one end of the wire, and note that the remaining portion of the wire then has length 20−x20-x

As shown in Figure 3.3.33.3.3, we see that the xx cm of wire that is used to form the equilateral triangle with three sides of length x3.\frac{x}{3}\text{.} For the remaining 20−x20-x cm of wire, the square that results will have each side of length 20−x4.\frac{20-x}{4}\text{.}

3_3_Ex1.svg
Figure 3.3.33.3.3. A 20 cm piece of wire cut into two pieces, one of which forms an equilateral triangle, the other which yields a square.

At this point, we note that there are obvious restrictions on x:x\text{:} in particular, 0≤x≤20.0 \le x \le 20\text{.} In the extreme cases, all of the wire is being used to make just one figure. For instance, if x=0,x = 0\text{,} then all 20 cm of wire are used to make a square that is 5×5.5 \times 5\text{.}

Now, our overall goal is to find the minimum and maximum areas that can be enclosed. Because the height of an equilateral triangle is 3\sqrt{3} times half the length of the base, the area of the triangle is

AΔ=12bh=12⋅x3⋅x36. A_{\Delta} = \frac{1}{2} bh = \frac{1}{2} \cdot \frac{x}{3} \cdot \frac{x\sqrt{3}}{6}\text{.}

The area of the square is A□=s2=(20−x4)2.A_{\Box} = s^2 = \left( \frac{20-x}{4} \right)^2\text{.} Therefore, the total area function is

A(x)=3x236+(20−x4)2. A(x) = \frac{\sqrt{3}x^2}{36} + \left( \frac{20-x}{4} \right)^2\text{.}

Remember that we are considering this function only on the restricted domain [0,20].[0,20]\text{.}

Differentiating A(x),A(x)\text{,} we have

A′(x)=3x18+2(20−x4)(−14)=318x+18x−52. A'(x) = \frac{\sqrt{3}x}{18} + 2\left( \frac{20-x}{4} \right)\left( -\frac{1}{4} \right) = \frac{\sqrt{3}}{18} x + \frac{1}{8}x - \frac{5}{2}\text{.}

When we set A′(x)=0,A'(x) = 0\text{,} we find that x=18043+9≈11.3007x = \frac{180}{4\sqrt{3}+9} \approx 11.3007 is the only critical number of AA in the interval [0,20].[0,20]\text{.}

Evaluating AA at the critical number and endpoints, we see that

A(18043+9)=3(18043+9)24+(20−18043+94)2≈10.8741\displaystyle A\left(\frac{180}{4\sqrt{3}+9}\right) = \frac{\sqrt{3}(\frac{180}{4\sqrt{3}+9})^2}{4} + \left( \frac{20-\frac{180}{4\sqrt{3}+9}}{4} \right)^2 \approx 10.8741 A(0)=25\displaystyle A(0) = 25 A(20)=336(400)=10093≈19.2450\displaystyle A(20) = \frac{\sqrt{3}}{36}(400) = \frac{100}{9} \sqrt{3} \approx 19.2450

Thus, the absolute minimum occurs when x≈11.3007x \approx 11.3007 and results in the minimum area of approximately 10.874110.8741 square centimeters. The absolute maximum occurs when we invest all of the wire in the square (and none in the triangle), resulting in 25 square centimeters of area. These results are confirmed by a plot of y=A(x)y = A(x) on the interval [0,20],[0,20]\text{,} as shown in Figure 3.3.43.3.4.

3_3_Ex1Plot.svg

Figure 3.3.43.3.4. A plot of the area function from Example 3.3.13.3.1.4.
Activity 3.3.43.3.4

A piece of cardboard that is 10×1510 \times 15 (each measured in inches) is being made into a box without a top. To do so, squares are cut from each corner of the box and the remaining sides are folded up. If the box needs to be at least 1 inch deep and no more than 3 inches deep, what is the maximum possible volume of the box? what is the minimum volume? Justify your answers using calculus.

  1. Draw a labeled diagram that shows the given information. What variable should we introduce to represent the choice we make in creating the box? Label the diagram appropriately with the variable, and write a sentence to state what the variable represents.
  2. Determine a formula for the function VV (that depends on the variable in (a)) that tells us the volume of the box.
  3. What is the domain of the function V?V\text{?} That is, what values of xx make sense for input? Are there additional restrictions provided in the problem?
  4. Determine all critical numbers of the function V.V\text{.}
  5. Evaluate VV at each of the endpoints of the domain and at any critical numbers that lie in the domain.
  6. What is the maximum possible volume of the box? the minimum?

Example 3.3.13.3.1 and Activity 3.3.43.3.4 illustrate standard steps that we undertake in almost every applied optimization problem: we draw a picture to demonstrate the situation, introduce one or more variables to represent quantities that are changing, find a function that models the quantity to be optimized, and then decide on an appropriate domain for that function. Once that is done, we are in the familiar situation of finding the absolute minimum and maximum of a function over a particular domain, so we apply the calculus ideas that we have been studying to this point in Chapter 3.

Summary

  • To find relative extreme values of a function, we use a first derivative sign chart and classify all of the function's critical numbers. If instead we are interested in absolute extreme values, we first decide whether we are considering the entire domain of the function or a particular interval.
  • In the case of finding global extremes over the function's entire domain, we again use a first or second derivative sign chart. If we are working to find absolute extremes on a restricted interval, then we first identify all critical numbers of the function that lie in the interval.
  • For a continuous function on a closed, bounded interval, the only possible points at which absolute extreme values occur are the critical numbers and the endpoints. Thus, we simply evaluate the function at each endpoint and each critical number in the interval, and compare the results to decide which is largest (the absolute maximum) and which is smallest (the absolute minimum).

Credit and licence

This page titled 3.3: Global Optimization was last modified on Thu, 28 Sep 2023 16:53:17 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin, and Steven Schlicker ( ScholarWorks @Grand Valley State University ) via source content that was edited to the style and standards of the LibreTexts platform.

Source: https://math.libretexts.org/Bookshelves/Calculus/Active_Calculus_(Boelkins_et_al.)/03%3A_Using_Derivatives/3.03%3A_Global_Optimization

Licence: CC BY-SA 4.0 (creativecommons.org/licenses/by-sa/4.0/). You may share and adapt it under the same licence, with this credit. WorldClass adapted the formatting only: the text is the authors', with interactive parts and links to other sites left out.

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.