7 minutes read

Quite often, expressions such as "minimize costs" or "maximize space," "minimize" and "maximize" are usually interpreted as synonyms of "decrease" and "increase," respectively. However, it goes beyond that, as they refer to particular values of given functions. In this topic, we will define these extreme values and learn how to use derivatives to properly identify them.

Extrema

In general terms, a minimum is the smallest value a function ff can output, while maximum refers to the largest value. Together, they are commonly referred to as extrema.

Extrema

Given our function ff and an arbitrarily small positive value δ>0\delta > 0, we can define local extrema as follows:

  • ff has a local minimum at x0x_0 if f(x0)f(x)f(x_0) \leq f(x) for all x(x0δ,x0+δ)x \in (x_0-\delta, x_0+\delta)
  • ff has a local maximum at x0x_0 if f(x0)f(x)f(x_0) \geq f(x) for all x(x0δ,x0+δ)x \in (x_0-\delta, x_0+\delta)

Local maximum an local minimum

Note that extrema are not absolute values but actual values returned by a given function. For a function with both positive and negative values in a given interval, the minimum will be a negative value, while the maximum will be a positive value.

We can estimate the local extrema of some functions simply by inspecting their graphs. However, in order to precisely determine these points, we need to use derivatives.

Critical points

If f(x0)f(x_0) is a local minimum for x(x0δ,x0+δ)x \in (x_0-\delta, x_0+\delta), then f(x)f(x) decreases on the interval (x0δ,x0)(x_0-\delta,x_0) and increases on (x0,x0+δ)(x_0,x_0+\delta). So x=x0x = x_0 is the point where the function switches from decreasing to increasing, or vice versa if f(x0)f(x_0) is a local maximum instead. We can use this insight to find local extrema analytically.

We already know how to recognize when a function ff is either decreasing or increasing at a given point. We also know that the derivative f(x0)f'(x_0) represents the slope of the line tangent to f(x)f(x) at the point x0x_0. When ff' is positive, the tangent line points up; when it's negative, the tangent line points down. So,

  • if f(x0)>0f'(x_0) > 0, then f(x)f(x) is increasing at x=x0x = x_0
  • if f(x0)<0f'(x_0) < 0, then f(x)f(x) is decreasing at x=x0x = x_0

  • if f(x0)=0f'(x_0) = 0, then x=x0x = x_0 is a critical point of f(x)f(x). The graph of the function is momentarily flat. This covers several possibilities: x0x_0 could be a local minimum, a local maximum, or something else entirely. We'll need more information to determine exactly what's happening.

For example, let's say

f(x)=13x3x    f(x)=x21f(x) = \frac{1}{3}x^3 - x \implies f'(x)=x^2 -1At x=2x = 2, we have f(2)=(2)21=3f'(2)=(2)^2 -1=3.

At x=1/2x = 1/2, we have f(12)=(12)21=34f'(\frac{1}{2})=(\frac{1}{2})^2 -1=-\frac{3}{4}.

At x=1x = 1, we have f(1)=(1)21=0f'(1)=(1)^2 -1=0.

Therefore, we can say that f(x)f(x) is increasing at x=2x = 2 and decreasing at x=1/2x = 1/2, and it has a critical point at x=1x=1.

So how do we find out if our critical point is a local extremum?

Second-derivative test

Just like the first derivative lets us know whether f(x)f(x) is increasing or decreasing, the second derivative tells us whether f(x)f'(x) is increasing or decreasing. If the second derivative is positive at a critical point x=x0x = x_0, then the first derivative (slope of the tangent line) is going from negative to positive, and f(x0)f(x_0) is therefore a local minimum of the function. Likewise a negative second derivative at the critical point implies that we have a local maximum.

Second-derivative test

Then, we have the following:

  • if f(x0)=0f'(x_0) = 0 and f(x0)>0f''(x_0) > 0, then f(x)f(x) has a local minimum at x=x0x = x_0;
  • if f(x0)=0f'(x_0) = 0 and f(x0)<0f''(x_0) < 0, then f(x)f(x) has a local maximum at x=x0x = x_0;

  • if f(x0)=0f'(x_0) = 0 and f(x0)=0f''(x_0) = 0, then the second derivative test has failed to tell us anything. There could be a local minimum, local maximum, or neither at x=x0x = x_0.

To continue with our example, we have

f(x)=13x3x    f(x)=x21    f(x)=2xf(x) = \frac{1}{3}x^3 - x \implies f'(x)=x^2 -1 \implies f''(x)=2xAt x=1x = 1, we have

f(1)=2(1)=2>0f''(1)=2\cdot(1)=2 > 0

Therefore, our critical point at x=1x = 1 is a local minimum.

The critical points of a function

We can use the first-derivative test to find all the critical points of a function, then the second-derivative test to find out which of them refer to local minima or local maxima.

Taking our example function f(x)=13x3xf(x) = \frac{1}{3}x^3 - x, we have:

f(x)=x21=0    x=±1f'(x)=x^2 -1 =0 \implies x=\pm1Thus our critical points are (1,23)\left(-1, \frac{2}{3}\right) and (1,23)\left(1, -\frac{2}{3}\right).

We also have:

f(1)=2(1)=2>0;f(1)=2(1)=2<0f''(1)=2\cdot(1)=2 > 0 \quad ; \quad f''(-1)=2\cdot(-1)=-2 < 0So, we have a minimum at (1,23)\left(1, -\frac{2}{3}\right) and a maximum at (1,23)\left(-1, \frac{2}{3}\right).

The critical points of a function (2)

In the previous graph, we can see that if we were to look only in the interval [0.5,1.5][-0.5,1.5], f(x)f(x) wouldn't have a local maximum. Thus, given an interval [a,b][a,b], discard those critical points where x[a,b]x \notin [a,b] before applying the second-derivative test.

Global extrema and local extrema

Let's say

f(x)=x4x2f(x)=x^4 - x^2Then, if we set f(x)=0f'(x)=0,

f(x)=4x32x=0    x={0±12f'(x)=4x^3-2x=0 \implies x= \begin{cases} 0\\ \pm\frac{1}{\sqrt{2}} \end{cases}We can see that f(x)f(x) has three critical points: (12,14)\left (-\frac{1}{\sqrt{2}}, -\frac{1}{4}\right), (0,0)(0, 0), and (12,14)\left (\frac{1}{\sqrt{2}}, -\frac{1}{4}\right).

Then, we have

f(x)=4x32x=0    f(x)=12x22    {f(12)>0f(0)<0f(12)>0f'(x)=4x^3-2x=0 \implies f''(x)=12x^2-2 \implies \begin{cases} f'' \left (-\frac{1}{\sqrt{2}} \right ) &> 0 \\f''(0)&<0\\ f'' \left (\frac{1}{\sqrt{2}} \right ) &> 0\end{cases}Thus, we have two local minima at (±12,14)\left (\pm \frac{1}{\sqrt{2}}, - \frac{1}{4}\right ) and a local maximum at (0,0)(0, 0)

Two local minimum and a local maximum

We can see that even though f(0)=0f(0) = 0 is a local maximum, it is not the largest value in the interval pictured. These values are known as absolute or global extrema. In order to find the global maximum and global minimum of a function in a given interval [a,b][a,b], the function must be evaluated at the interval boundaries in order to compare f(a)f(a) and f(b)f(b) to the local extrema obtained from the second derivative test.

For example, take the same f(x)=x4x2f(x)=x^4 - x^2 and the interval [0,1.5][0,1.5]. Since 12<0-\frac{1}{\sqrt{2}} <0, we are left with only two critical points in the interval: (0,0)(0, 0) and (12,14)\left (\frac{1}{\sqrt{2}}, -\frac{1}{4}\right).

Now, we evaluate f(x)f(x) at the boundaries (endpoints) of the interval:

{x=0    f(0)=0x=1.5    f(1.5)=2.81\begin{cases} x = 0 \implies f(0)=0\\ x = 1.5 \implies f(1.5)=2.81 \end{cases}Since f(1.5)>f(0)>f(12)f(1.5) > f(0)>f\left(\frac{1}{\sqrt{2}} \right), we conclude that f(x)f(x) has a global maximum at x=1.5x = 1.5, and a global minimum at x=120.707x = \frac{1}{\sqrt{2}} \approx0.707. We only need to compare three points because x=0x = 0 is both a critical point of the function and an endpoint of the interval.

Global minimum

Conclusion

To sum up:

  • The least value f(x0)f(x_0) a function ff can output for all xx in a small interval near x0x_0 is called a local minimum, while the largest value is called a local maximum. These points are known together as local extrema.
  • We can use the first-derivative test to know if ff is increasing or decreasing at a given point. A critical point is one where the function is defined, but it is neither increasing nor decreasing. By setting the first derivative equal to zero, we can determine the critical points of ff.
  • We can use the second-derivative test to determine if a critical point is a local extremum.
  • In order to define the absolute extrema for a given interval, we have to evaluate ff at the boundaries of the interval and compare these values to the local extrema found using the second-derivative test.
29 learners liked this piece of theory. 1 didn't like it. What about you?
Report a typo