Navigation

Optimization

8.2 Finding global maxima and minima

5 problems · hints, answers and solutions shown beside each one

Stage 1 · Conceptual

Q1Stage 1

Sketch a function f(x)f(x) such that:

  • f(x)f(x) is defined over all real numbers

  • f(x)f(x) has a global max but no global min.

Hint

One way to avoid a global minimum is to have limxf(x)=\ds\lim_{x \to \infty}f(x)=-\infty. Since f(x)f(x) keeps getting lower and lower, there is no one value that is the lowest.

Answer

Two examples are given below, but many are possible.

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 7

Figure from prob_s3.5.2, line 7

Full solution

Two examples are given below, but many are possible.

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 7

Figure from prob_s3.5.2, line 7

If f(x)=x2f(x)=-x^2 or f(x)=xf(x)=-\sqrt{|x|}, then f(x)f(x) has a global maximum at x=0x=0. Since f(x)f(x) keeps getting more and more strongly negative as xx gets farther and farther from 0, f(x)f(x) has no global minimum.

Q2Stage 1

Sketch a function f(x)f(x) such that:

  • f(x)f(x) is defined over all real numbers

  • f(x)f(x) is always positive

  • f(x)f(x) has no global max and no global min.

Hint

Try allowing the function to approach the xx-axis without ever touching it.

Answer

Two examples are given below, but many are possible.

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 7

Figure from prob_s3.5.2, line 7

Full solution

Two examples are given below, but many are possible.

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 2

If f(x)=exf(x)=e^x, then f(x)>0f(x) > 0 for all xx. As we move left along the xx-axis, f(x)f(x) gets smaller and smaller, approaching 0 but never reaching it. Since f(x)f(x) gets smaller and smaller as we move left, there is no global minimum. Likewise, f(x)f(x) increases more and more as we move right, so there is no maximum.

Figure from prob_s3.5.2, line 7

Figure from prob_s3.5.2, line 7

If f(x)=arctan(x)+2f(x)=\arctan(x)+2, then f(x)>(π2)+2>0f(x) >\left(-\frac{\pi}{2}\right)+2>0 for all xx.

As we move left along the xx-axis, f(x)f(x) gets smaller and smaller, approaching (π2+2)\left(-\frac{\pi}{2}+2\right) but never reaching it. Since f(x)f(x) gets smaller and smaller as we move left, there is no global minimum.

Likewise, as we move right along the xx-axis, f(x)f(x) gets bigger and bigger, approaching (π2+2)\left(\frac{\pi}{2}+2\right) but never reaching it. Since f(x)f(x) gets bigger and bigger as we move right, there is no global maximum.

Q3Stage 1

Sketch a function f(x)f(x) such that:

  • f(x)f(x) is defined over all real numbers

  • f(x)f(x) has a global minimum at x=5x=5

  • f(x)f(x) has a global minimum at x=5x=-5, too.

Hint

Since the global minimum value occurs at x=5x=5 and x=5x=-5, it must be true that f(5)=f(5)f(5)=f(-5).

Answer

One possible answer:

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 2

Full solution

Since f(5)f(5) is a global minimum, f(5)f(x)f(5) \leq f(x) for all xx, and so in particular f(5)f(5)f(5) \leq f(-5).
Similarly, f(5)f(x)f(-5) \leq f(x) for all xx, so in particular f(5)f(5)f(-5) \leq f(5).
Since f(5)f(5)f(-5) \leq f(5) AND f(5)f(5)f(5) \leq f(-5), it must be true that f(5)=f(5)f(-5)=f(5).

A sketch of one such graph is below.

Figure from prob_s3.5.2, line 2

Figure from prob_s3.5.2, line 2

Stage 2 · Procedural

Q4Stage 2

f(x)=x2+6x10f(x)=x^2+6x-10. Find all global extrema on the interval [5,5][-5,5]

Hint

Global extrema will either occur at critical points in the interval (5,5)(-5,5) or at the endpoints x=5,x=5x=5,\,x=-5.

Answer

The global maximum is 45 at x=5x=5 and the global minimum is 19-19 at x=3x=-3.

Full solution

Global extrema will occur at critical or singular points in the interval (5,5)(-5,5) or at the endpoints x=5,x=5x=5,\,x=-5.

f(x)=2x+6f'(x)=2x+6. Since this is defined for all real numbers, there are no singular points. The only time f(x)=0f'(x)=0 is when x=3x=-3. This is inside the interval [5,5][-5,5]. So, our points to check are x=3,x=5,x=-3,\,x=-5, and x=5x=5.

cc3-35-555
typecritical pointendpointendpoint
f(c)f(c)19-1915-154545

The global maximum is 45 at x=5x=5 and the global minimum is 19-19 at x=3x=-3.

Q5Stage 2

f(x)=23x32x230x+7f(x)=\dfrac{2}{3}x^3-2x^2-30x+7. Find all global extrema on the interval [4,0][-4,0].

Hint

You only need to consider critical points that are in the interval (4,0).(-4,0).

Answer

The global maximum over the interval is 6161 at x=3x=-3, and the global minimum is 77 at x=0x=0.

Full solution

Global extrema will occur at the endpoints of the interval, x=4x=-4 and x=0x=0, or at singular or critical points inside the interval. Since f(x)f(x) is a polynomial, it is differentiable everywhere, so there are no singular points. To find the critical points, we set the derivative equal to zero.

f(x)=2x24x300=2x24x30=(2x10)(x+3)x=5,3\begin{align*} f'(x)&=2x^2-4x-30\\ 0&=2x^2-4x-30 &=(2x-10)(x+3)\\ x&=5,\,-3 \end{align*}

The only critical point inside the interval is x=3x=-3.

cc3-34-400
typecritical pointendpointendpoint
f(c)f(c)61611573=52+13\frac{157}{3}=52+\frac{1}{3}77

The global maximum over the interval is 6161 at x=3x=-3, and the global minimum is 77 at x=0x=0.

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.