Navigation

Optimization

8.1 Local and global maxima and minima

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

Stage 1 · Conceptual

Q1Stage 1

Identify every critical point and every singular point of f(x)f(x) shown on the graph below.
Which correspond to local extrema?

Figure from prob_s3.5.1, line 1

Figure from prob_s3.5.1, line 1

Hint

Estimate f(0)f'(0).

Answer

Figure from prob_s3.5.1, line 1

Figure from prob_s3.5.1, line 1

There is a critical point at x=0x=0. The xx-value of the red dot is a singular point, and a local maximum occurs there.

Full solution

Figure from prob_s3.5.1, line 1

Figure from prob_s3.5.1, line 1

When x=0x=0, the curve y=f(x)y=f(x) appears to have a flat tangent line, so the x=0x=0 is a critical point. However, it is not a local extremum: it is not true that f(0)f(x)f(0) \geq f(x) for all xx near 0, and it is not true that f(0)f(x)f(0) \leq f(x) for all xx near 0.

To the right of the xx-axis, there is a spike where the derivative of f(x)f(x) does not exist. The xx-value corresponding to this spike (call it aa) is a singular point, and f(x)f(x) has a local maximum at x=ax=a.

Q2Stage 1

Identify every critical point and every singular point of f(x)f(x) on the graph below. Which correspond to local extrema? Which correspond to global extrema over the interval shown?

Figure from prob_s3.5.1, line 1

Figure from prob_s3.5.1, line 1

Hint

If the graph is discontinuous at a point, it is not differentiable at that point.

Answer

Figure from prob_s3.5.1, line 1

Figure from prob_s3.5.1, line 1

The xx-coordinate corresponding to the blue dot (let's call it aa) is a critical point, and f(x)f(x) has a local and global minimum at x=ax=a. The xx-coordinate corresponding to the discontinuity (let's call it bb) is a singular point, but there is not a global or local extremum at x=bx=b.

Full solution

Figure from prob_s3.5.1, line 1

Figure from prob_s3.5.1, line 1

The xx-coordinate corresponding to the blue dot (let's call it aa) is a critical point, because the tangent line to f(x)f(x) at x=ax=a is horizontal. There is no lower point nearby, and actually no lower point on the whole interval shown, so f(x)f(x) has both a local minimum and a global minimum at x=ax=a.

If a function is not continuous at a point, then it is not differentiable at that point. So, the xx-coordinate corresponding to the discontinuity (let's call it bb) is a singular point. Values of f(x)f(x) immediately to the right of bb are lower, and values immediately to the left of bb are higher, so f(x)f(x) has no local (or global) extremum at x=bx=b.

Q3Stage 1

Draw a graph y=f(x)y=f(x) where f(2)f(2) is a local maximum, but it is not a global maximum.

Hint

Try making a little bump at x=2x=2, the letting the function get quite large somewhere else.

Answer

One possible answer is shown below.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Full solution

One possible answer is shown below.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

For every xx in the red interval shown below, f(2)f(x)f(2) \geq f(x), so f(2)f(2) is a local maximum. However, the point marked with a blue dot shows that f(x)>f(2)f(x)>f(2) for some xx, so f(2)f(2) is not a global maximum.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Stage 2 · Procedural

Q4Stage 2

Suppose f(x)=x1x2+3f(x)=\dfrac{x-1}{x^2+3}.

  1. Find all critical points.

  2. Find all singular points.

  3. What are the possible points where local extrema of f(x)f(x) may exist?

Hint

Critical points are those values of xx for which f(x)=0f'(x)=0.

Singular points are those values of xx for which f(x)f(x) is not differentiable.

Answer

The critical points are x=3x=3 and x=1x=-1. These two points are the only places where local extrema might exist. There are no singular points.

Full solution

Critical points are those values of xx for which f(x)=0f'(x)=0, and singular points are those values of xx for which f(x)f(x) is not differentiable. So, we ought to find f(x)f'(x). Using the quotient rule,

f(x)=(1)(x2+3)(x1)(2x)(x2+3)2=x2+2x+3(x2+3)2=(x3)(x+1)(x2+3)2\begin{align*} f'(x)&=\frac{(1)(x^2+3)-(x-1)(2x)}{{(x^2+3)}^2}\\ &=\frac{-x^2+2x+3}{{(x^2+3)}^2} \\ &=-\frac{(x-3)(x+1)}{{(x^2+3)}^2} \end{align*}

(a) The derivative f(x)f'(x) is zero when x=3x=3 and when x=1x=-1, so those are the critical points.

(b) The denominator of f(x)f'(x) is never zero, so the derivative f(x)f'(x) exists for all xx and f(x)f(x) has no singular points.

(c) Theorem 8.1.3 tells us that local extrema of f(x)f(x) can only occur at critical points and singular points. So, the possible points where extrema of f(x)f(x) may exist are x=3x=3 and x=1x=-1.

Stage 3 · Application

Q5Stage 3

Below are a number of curves, all of which have a singular point at x=2x=2. For each, label whether x=2x=2 is a local maximum, a local minimum, or neither.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 11

Figure from prob_s3.5.1, line 11

Figure from prob_s3.5.1, line 20

Figure from prob_s3.5.1, line 20

Figure from prob_s3.5.1, line 29

Figure from prob_s3.5.1, line 29

Hint

We're only after local extrema, not global. Let f(x)f(x) be our function. If there is some interval around x=2x=2 where nothing is bigger than f(2)f(2), then f(2)f(2) is a local maximum, whether or not it is a maximum overall.

Answer

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 12

Figure from prob_s3.5.1, line 12

Figure from prob_s3.5.1, line 22

Figure from prob_s3.5.1, line 22

Figure from prob_s3.5.1, line 32

Figure from prob_s3.5.1, line 32

Full solution

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 12

Figure from prob_s3.5.1, line 12

Figure from prob_s3.5.1, line 22

Figure from prob_s3.5.1, line 22

Figure from prob_s3.5.1, line 32

Figure from prob_s3.5.1, line 32

For the first curve, the function's value at x=2x=2 (that is, the yy-value of the solid dot) is higher than anything around it. So, it's a local maximum.

For the second curve, the function's value at x=2x=2 (that is, the yy-value of the solid dot) is higher than everything to the left, but lower than values immediately to the right. (On the graph reproduced below, f(x)f(x) is higher than everything in the red section, and lower than everything in the blue section.) So, it is neither a local max nor a local min.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Similarly, for the third curve, f(2)f(2) is lower than the values to the right of it, and higher than values to the left of it, so it is neither a local minimum nor a local maximum.

In the final curve, f(2)f(2) (remember–this is the yy-value of the solid dot) is higher than everything immediately to the left or right of it (for instance, over the interval marked in red below), so it is a local maximum.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Q6Stage 3

Draw a graph y=f(x)y=f(x) where f(2)f(2) is a local maximum, but x=2x=2 is not a critical point and is not an endpoint.

Hint

By Theorem 8.1.3, if x=2x=2 not a critical point, then it must be a singular point.

Answer

There are many possible answers. Every answer must have x=2x=2 as a singular point strictly inside the domain of f(x)f(x). Two possibilities are shown below.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 10

Figure from prob_s3.5.1, line 10

Full solution

The question specifies that x=2x=2 must not be an endpoint. By Theorem 8.1.3, if x=2x=2 not a critical point, then it must be a singular point. That is, f(x)f(x) is not differentiable at x=2x=2. Two possibilities are shown below, but there are infinitely many possible answers.

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 2

Figure from prob_s3.5.1, line 10

Figure from prob_s3.5.1, line 10

Q7Stage 3
f(x)=(x5)(x+7)f(x)=\sqrt{\left|(x-5)(x+7)\right|}

Find all critical points and all singular points of f(x)f(x). You do not have to specify whether a point is critical or singular.

Hint

You should be able to figure out the global minima of f(x)f(x) in your head.

Remember with absolute values, $|X|=\left{\begin{array}{ll} X&X\ge0\ -X&X<0 \end{array}\right.$.

Answer

x=7x=-7, x=1x=-1, and x=5x=5

Full solution

Critical points are those values of xx for which f(x)=0f'(x)=0, and singular points are those values of xx for which f(x)f(x) is not differentiable. So, we ought to find f(x)f'(x). Since f(x)f(x) has an absolute value sign, let's re-write it in a version that is friendlier to differentiation. Remember that X=X|X|=X when X0X \geq 0, and X=X|X|=-X when X<0X<0.

f(x)=(x5)(x+7)={(x5)(x+7) if (x5)(x+7)0(x5)(x+7) if (x5)(x+7)<0\begin{align*}f(x)&=\sqrt{\left|(x-5)(x+7)\right|}\\ &=\left\{\begin{array}{cc} \sqrt{(x-5)(x+7)}&\text{ if } (x-5)(x+7)\ge0\\ \sqrt{-(x-5)(x+7)}&\text{ if } (x-5)(x+7)<0 \end{array}\right.\end{align*}

The product (x5)(x+7)(x-5)(x+7) is positive when (x5)(x-5) and (x+7)(x+7) have the same sign, and negative when they have opposite signs, so

f(x)={(x5)(x+7) if x(,7][5,)(x5)(x+7) if x(7,5)\begin{align*}f(x)&=\left\{\begin{array}{ll} \sqrt{(x-5)(x+7)}&\text{ if } x\in (-\infty,-7] \cup [5,\infty)\\ \sqrt{-(x-5)(x+7)}&\text{ if } x\in(-7,5) \end{array}\right.\end{align*}

Now, when x7,5x \neq -7,5, we can differentiate, using the chain rule.

f(x)={ddx{(x5)(x+7)}2(x5)(x+7) if x(,7)(5,)ddx{(x5)(x+7)}2(x5)(x+7) if x(7,5)? if x=7,x=5={2x+22(x5)(x+7) if x(,7)(5,)2x22(x5)(x+7) if x(7,5)? if x=7,x=5\begin{align*}f'(x)&=\left\{\begin{array}{ll} \frac{\diff{}{x}\left\{(x-5)(x+7)\right\}}{2\sqrt{(x-5)(x+7)}}&\text{ if } x\in (-\infty,-7) \cup (5,\infty)\\ \frac{\diff{}{x}\left\{-(x-5)(x+7)\right\}}{2\sqrt{-(x-5)(x+7)}}&\text{ if } x\in(-7,5)\\ ? & \text{ if } x=-7,\,x=5 \end{array}\right.\\ &=\left\{\begin{array}{ll} \frac{2x+2}{2\sqrt{(x-5)(x+7)}}&\text{ if } x\in (-\infty,-7) \cup (5,\infty)\\ \frac{-2x-2}{2\sqrt{-(x-5)(x+7)}}&\text{ if } x\in(-7,5)\\ ? & \text{ if } x=-7,\,x=5 \end{array}\right.\end{align*}

We are tempted to say that the derivative doesn't exist when x=7x=-7 and x=5x=5, but be careful– we don't actually know that yet. The formulas we have for the f(x)f'(x) are only good when xx is not 7-7 or 55.

The middle formula 2x22(x5)(x+7)\dfrac{-2x-2}{2\sqrt{-(x-5)(x+7)}} tells us x=1x=-1 is a critical point: when x=1x=-1, f(x)f'(x) is given by the middle line, and it is 0. Note that x=1x=-1 also makes the top formula 0, but f(1)f'(-1) is not given by the top formula, so that doesn't matter.

What we've concluded so far is that x=1x=-1 is a critical point of f(x)f(x), and f(x)f(x) has no other critical points or singular points when x7,5x \neq -7,5. It remains to figure out what's going on at 7-7 and 55. One way to do this is to use the definition of the derivative to figure out what f(7)f'(-7) and f(5)f'(5) are, if they exist. This is somewhat laborious. Let's look for a better way.

  • First, let's notice that f(x)f(x) is defined for all values of xx, thanks to that handy absolute value sign.

  • Next, notice f(x)0f(x) \geq 0 for all xx, since square roots never give a negative value.

  • Then if there is some value of xx that gives f(x)=0f(x)=0, that xx gives a global minimum, and therefore a local minimum.

  • f(x)=0f(x)=0 exactly when (x5)(x+7)=0(x-5)(x+7)=0, which occurs at x=7x=-7 and x=5x=5

  • Therefore, f(x)f(x) has global and local minima at x=7x=-7 and x=5x=5

  • So, x=7x=-7 and x=5x=5 are critical points or singular points by Theorem 8.1.3.

So, all together:

x=1x=-1 is a critical point, and x=7x=-7 and x=5x=5 are critical points or singular points (but we don't know which).

Remark: if you would like a review of how to use the definition of the derivative, below we show that f(x)f(x) is not differentiable at x=7x=-7. (In fact, x=7x=-7 and x=5x=5 are both singular points.)

f(7)=limh0f(7+h)f(7)h=limh0(13+h)(h)0h=limh0(13+h)(h)h\begin{align*}f'(-7)&=\lim_{h \to 0} \frac{f(-7+h)-f(-7)}{h}\\ &=\lim_{h \to 0} \frac{\sqrt{|(-13+h)(h)|}-\sqrt{|0|}}{h}\\ &=\lim_{h \to 0} \frac{\sqrt{|(-13+h)(h)|}}{h}\end{align*}

Let's first consider the case h>0h>0.

limh0+(13+h)(h)h=limh0+(13h)(h)h=limh0+13hh2h2=limh0+13hh2h2=limh0+13h1=\begin{align*}\lim_{h \to 0^+} \frac{\sqrt{|(-13+h)(h)|}}{h}&=\lim_{h \to 0^+}\frac{\sqrt{(13-h)(h)}}{h}\\ &=\lim_{h \to 0^+}\frac{\sqrt{13h-h^2}}{\sqrt{h^2}}\\ &=\lim_{h \to 0^+}\sqrt{\frac{13h-h^2}{h^2}}\\ &=\lim_{h \to 0^+}\sqrt{\frac{13}{h}-1}\\ &=\infty\end{align*}

Since one side of the limit doesn't exist,

limh0f(7+h)(7)h=DNE\begin{align*}\lim_{h \to 0} \frac{f(-7+h)-(-7)}{h}&=DNE\end{align*}

so f(x)f'(x) is not differentiable at x=7x=-7. Therefore, x=7x=-7 is a singular point.

Q8Stage 3

Suppose f(x)f(x) is the constant function f(x)=4f(x)=4. What are the critical points and singular points of f(x)f(x)? What are its local and global maxima and minima?

Hint

Review the definitions of critical points and extrema: Definition 7.2.1 and Definition 8.1.2.

Answer

Every real number cc is a critical point of f(x)f(x), and f(x)f(x) has a local and global maximum and minimum at x=cx=c. There are no singular points.

Full solution

For any real number cc, cc is in the domain of f(x)f(x) and f(c)f'(c) exists and is equal to zero. So, following Definition 7.2.1, every real number is a critical point of f(x)f(x), and f(x)f(x) has no singular points.

For every number cc, let a=c1a=c-1 and b=c+1b=c+1, so a<c<ba<c<b. Then f(x)f(x) is defined for every xx in the interval [a,b][a,b], and f(x)=f(c)f(x) =f(c) for every axba \le x \le b. That means f(x)f(c)f(x) \leq f(c) and f(x)f(c)f(x) \geq f(c). So, comparing with Definition 8.1.2, we see that f(x)f(x) has a global and local maximum AND minimum at every real number x=cx=c.

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.