2G

Global maximum and minimum

The difference between local and global maxima and minima, and finding the global maximum and minimum of a function on a closed interval by checking stationary points and endpoints.

A turning point is only the highest point nearby. In practical problems, we usually want the highest or lowest value of all: the most profit, the least material. On a restricted domain, that best value often sits at an end of the domain rather than at a turning point.

Local and global

The global maximum of a function is its largest value over the whole domain. The global minimum is its smallest value. A function need not have either. $y = x^3$ goes up forever and down forever, so it has neither. $y = \dfrac{1}{1 + x^2}$ has a global maximum of $1$, but no global minimum: it gets closer and closer to $0$ without reaching it.

There is no need to classify the stationary points first. Comparing the values does the job.

Global max and min of y = x³ − 3x on L ≤ x ≤ U

The blue part of the curve is the domain. Compare the endpoint values with the turning point values.

Try this

Find a choice of $L$ and $U$ where the global maximum is at the turning point $x = -1$. Then find one where it is at the right-hand endpoint. When does the global maximum happen at two places at once?

Worked examples

Example 1: a quadratic●

Find the global maximum and minimum of $f(x) = 4x - x^2$ on $-1 \le x \le 5$.

$f'(x) = 4 - 2x = 0$ at $x = 2$, which is inside the interval. $f(2) = 4$.
$f(-1) = -4 - 1 = -5$ and $f(5) = 20 - 25 = -5$.
Always check both endpoints.
Global maximum $4$ at $x = 2$. Global minimum $-5$, at both $x = -1$ and $x = 5$.
Example 2: a cubic●●

Find the global maximum and minimum of $f(x) = x^3 - 3x$ on $-2 \le x \le 3$.

$f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1)$, so the stationary points are $x = \pm 1$, both inside the interval.
$f(-2) = -2$, $\;f(-1) = 2$, $\;f(1) = -2$, $\;f(3) = 27 - 9 = 18$.
List every candidate value.
Global maximum $18$ at $x = 3$ (an endpoint). Global minimum $-2$, at $x = -2$ and $x = 1$.

In Example 2 the local maximum at $(-1, 2)$ is not the global maximum: the curve climbs much higher at the right-hand end.

Your turn

Find the global maximum and minimum of $f(x) = 2x^3 - 9x^2 + 12x$ on $0 \le x \le 3$.

Show the working

$f'(x) = 6x^2 - 18x + 12 = 6(x - 1)(x - 2)$, so check $x = 0, 1, 2, 3$: $f(0) = 0$, $f(1) = 5$, $f(2) = 4$, $f(3) = 9$. The global maximum is $9$ at $x = 3$, and the global minimum is $0$ at $x = 0$. Both are at endpoints.

Flashcards
Global max on $a le x le b$
Compare $f$ at the stationary points and at both endpoints.
Local maximum
Higher than nearby points only.
Practice
  1. Find the global maximum of $f(x) = 4x - x^2$ on $-1 \le x \le 5$.

  2. Find the global minimum of $f(x) = 4x - x^2$ on $-1 \le x \le 5$.

  3. Find the global maximum of $f(x) = x^3 - 3x$ on $-2 \le x \le 3$.

  4. Over all real $x$, $y = x^3$ has:

  5. Find the global maximum of $f(x) = x^2 - 6x + 10$ on $0 \le x \le 5$.

  6. Find the global maximum of $f(x) = 2x^3 - 9x^2 + 12x$ on $0 \le x \le 3$.

  7. $f(x) = \dfrac{1}{1 + x^2}$ for all real $x$ has:

  8. Exam style: find the global maximum of $f(x) = x + \dfrac4x$ on $1 \le x \le 8$.

  9. Exam style: find the global minimum of $f(x) = x^3 - 3x$ on $-2 \le x \le 3$.

Formula sheet