Tutorials › Real Analysis › Global Extrema

Differentiation · Tutorial 440 of 1000

Global Extrema

Use candidate comparisons, derivative signs, and strict convexity to determine when extrema are global and whether they are unique.

Advanced 9 min read

What You'll Learn

  • Distinguish global extrema from local extrema and from unattained bounds
  • Apply the closed-interval candidate theorem without confusing candidates with conclusions
  • Use derivative signs on an interval to prove a unique global minimum
  • Use strict convexity or strict concavity to establish uniqueness of an attained global extremum
  • Check endpoints and nondifferentiable points when searching for global extrema

From Nearby Comparisons to Comparisons on the Whole Domain

A local extremum compares a function value with nearby values. A global extremum compares it with every value on the domain. A local minimum, for example, may be lower than all nearby values but still be higher than a value far away. To establish a global conclusion, we must account for the entire domain, not just the behavior around one point.

Definition (Global Maximum and Global Minimum): Let \(E\subseteq\mathbb{R}\), let \(f:E\to\mathbb{R}\), and let \(a\in E\). The function \(f\) has a global maximum at \(a\) if \(f(x)\leq f(a)\) for every \(x\in E\). It has a global minimum at \(a\) if \(f(x)\geq f(a)\) for every \(x\in E\). The values \(f(a)\) are also called the absolute maximum and absolute minimum, respectively.

A global extremum is attained: the relevant value must equal \(f(a)\) for some point \(a\) in the domain. This is different from a supremum or infimum, which need not be a value of the function. Also, every global maximum or minimum is a local maximum or minimum under the relative-neighborhood definition, but the reverse need not hold.

A continuous function on a closed, bounded interval does attain both a global maximum and a global minimum, by the Extreme Value Theorem. Differentiation can then help locate them. The theorem “Candidates for Absolute Extrema on a Closed Interval,” established in “Fermat’s Theorem,” says that when a function is continuous on \([a,b]\) and differentiable on \((a,b)\), its global extrema occur among the endpoints and the interior stationary points. That result identifies where to look; it does not say that every candidate is an extremum. We still compare their function values.

Comparing Candidates on a Closed Interval

The practical method is to list both endpoints and all interior points where the derivative is zero, evaluate the function at each, and compare the resulting values. If the function is not differentiable at some interior point, that point must also be checked directly: the candidate theorem’s differentiability hypothesis does not allow us to omit it. For functions with infinitely many stationary points, the candidate list may require additional analysis rather than a finite table of values.

Worked Example: Comparing Endpoint and Stationary-Point Values

Consider \(f(x)=x^4-4x^2\) on \([-2,3]\). The function is continuous on this closed interval and differentiable in its interior. Its derivative is

$$ f'(x)=4x^3-8x=4x(x^2-2). $$

Thus the interior stationary points are \(x=0\), \(x=-\sqrt{2}\), and \(x=\sqrt{2}\). Along with these points, we check the endpoints. The values are

$$ \begin{aligned} f(-2)&=(-2)^4-4(-2)^2=16-16=0,\\ f(3)&=3^4-4(3)^2=81-36=45,\\ f(0)&=0^4-4(0)^2=0,\\ f(-\sqrt{2})&=(-\sqrt{2})^4-4(-\sqrt{2})^2=4-8=-4,\\ f(\sqrt{2})&=(\sqrt{2})^4-4(\sqrt{2})^2=4-8=-4. \end{aligned} $$

The smallest candidate value is \(-4\), attained at both \(-\sqrt{2}\) and \(\sqrt{2}\), so these are global-minimum points. The largest is \(45\), attained at \(3\), so \(3\) is a global-maximum point. The equal minimum values are a useful reminder that a global extremum need not have a unique location.

A common error is to find one stationary point and declare it a global extremum without checking the rest of the domain. Fermat’s Theorem gives a necessary condition for a differentiable interior local extremum, not a guarantee of global optimality. Endpoints can be global extrema even though Fermat’s Theorem does not apply there, and a nondifferentiable point may also be a global extremum.

Worked Example: An Interior Minimum at a Nondifferentiable Point

Let \(g(x)=|x-2|\) on \([0,4]\). For every \(x\in[0,4]\), \(g(x)\geq0\), and \(g(2)=|2-2|=0\). Therefore \(2\) is a global-minimum point. The function is not differentiable at \(2\), so a search based only on solving \(g'(x)=0\) would miss this minimum.

At the endpoints, \(g(0)=|0-2|=2\) and \(g(4)=|4-2|=2\). For every \(x\in[0,4]\), the distance from \(x\) to \(2\) is at most \(2\), so \(g(x)\leq2\). Hence both endpoints are global-maximum points. This example requires checking the nondifferentiable point as well as the endpoints.

Derivative Signs Can Prove Global Optimality

Candidate comparison is not the only route to a global conclusion. If the derivative has a consistent sign on each side of a point, the Mean Value Theorem compares the value at that point with every other value in the interval. The following result makes the needed hypotheses explicit, including differentiability on the two sides of the proposed minimum.

Theorem (Derivative Sign Pattern Gives a Unique Global Minimum): Let \(a<c<b\), and let \(f:[a,b]\to\mathbb{R}\) be continuous. Suppose \(f\) is differentiable on \((a,c)\) and on \((c,b)\), with \(f'(x)<0\) for every \(x\in(a,c)\) and \(f'(x)>0\) for every \(x\in(c,b)\). Then \(c\) is the unique global-minimum point of \(f\) on \([a,b]\).

Proof. Let \(x\in[a,b]\) with \(x<c\). The function is continuous on \([x,c]\): this follows from its continuity on \([a,b]\). It is differentiable on \((x,c)\), since \((x,c)\subseteq(a,c)\). By the Mean Value Theorem, there is a point \(\xi\in(x,c)\) such that

$$ f(c)-f(x)=f'(\xi)(c-x). $$

Here \(f'(\xi)<0\) and \(c-x>0\), so \(f(c)-f(x)<0\). Thus \(f(c)<f(x)\). This argument includes \(x=a\); the Mean Value Theorem only requires differentiability in the open interval \((a,c)\), not at \(a\).

Now let \(x\in[c,b]\) with \(x>c\). The function is continuous on \([c,x]\) and differentiable on \((c,x)\). The Mean Value Theorem gives a \(\eta\in(c,x)\) such that

$$ f(x)-f(c)=f'(\eta)(x-c). $$

Since \(f'(\eta)>0\) and \(x-c>0\), we have \(f(x)>f(c)\). This argument also includes \(x=b\). We have proved \(f(x)>f(c)\) for every \(x\in[a,b]\) with \(x\ne c\). Therefore \(c\) is a global minimum, and no other point can be one. \(\square\)

Worked Example: A Derivative Sign Pattern on a Closed Interval

Let \(h(x)=e^x-x\) on \([-1,2]\). Its derivative is \(h'(x)=e^x-1\). Since \(e^x<1\) for \(x<0\), \(h'(x)<0\) on \((-1,0)\); since \(e^x>1\) for \(x>0\), \(h'(x)>0\) on \((0,2)\). The theorem applies with \(c=0\), and proves that \(0\) is the unique global-minimum point on \([-1,2]\). Its value is \(h(0)=e^0-0=1\).

The conclusion compares \(h(0)\) with every point of the interval, including both endpoints; it is not merely a local classification. The proof does not require a separate numerical comparison of all candidate values.

Strict Convexity and Uniqueness

Strict convexity provides a different way to establish uniqueness. Its defining inequality compares the function at a point between two inputs with the corresponding weighted average of their function values. If two distinct points were both global minima, strict convexity would force a still smaller value between them, which is impossible.

Theorem (An Attained Global Minimum of a Strictly Convex Function Is Unique): Let \(I\) be an interval, and let \(f:I\to\mathbb{R}\) be strictly convex. If \(f\) attains a global minimum on \(I\), then it attains that minimum at exactly one point. Likewise, if \(f\) is strictly concave and attains a global maximum on \(I\), then it attains that maximum at exactly one point.

Proof. Suppose \(f\) is strictly convex and attains its global minimum at two distinct points \(u,v\in I\). Write the minimum value as \(m\), so \(f(u)=f(v)=m\), and \(f(x)\geq m\) for all \(x\in I\). The midpoint \(w=(u+v)/2\) lies in \(I\), because \(I\) is an interval. Strict convexity, applied to the distinct points \(u,v\) with weight \(1/2\), gives

$$ f(w)<\frac{f(u)+f(v)}{2} =\frac{m+m}{2} =m. $$

This contradicts the fact that \(m\) is a global minimum on \(I\). Thus there cannot be two distinct global-minimum points.

For the maximum statement, suppose \(f\) is strictly concave and has a global maximum \(M\) at distinct points \(u,v\). Strict concavity gives

$$ f\left(\frac{u+v}{2}\right)> \frac{f(u)+f(v)}{2} =\frac{M+M}{2} =M, $$

contradicting the definition of \(M\). Therefore the global maximum is unique. \(\square\)

This theorem guarantees uniqueness only when an extremum is attained; strict convexity alone does not ensure that a global minimum exists on an arbitrary interval. On a closed, bounded interval, continuity supplies existence by the Extreme Value Theorem, while strict convexity then supplies uniqueness. The supporting-line inequality and derivative characterizations of convexity developed earlier can help verify convexity, but existence and uniqueness are separate questions.

Worked Example: Existence and Uniqueness from Strict Convexity

Consider \(q(x)=x^2+2x+5\) on \([-3,1]\). The function is continuous on a closed, bounded interval, so the Extreme Value Theorem guarantees a global minimum. Also \(q''(x)=2>0\) throughout the interval, so \(q\), being the sum of the strictly convex function \(x^2\) and an affine function, is strictly convex on \([-3,1]\). The uniqueness theorem therefore guarantees a unique global-minimum point.

To identify it, compute \(q'(x)=2x+2\), which vanishes at \(x=-1\). The derivative is negative for \(x<-1\) and positive for \(x>-1\), so the derivative-sign theorem also proves that \(-1\) is the unique global-minimum point. Its value is

$$ q(-1)=(-1)^2+2(-1)+5=1-2+5=4. $$

For completeness, the endpoint values are \(q(-3)=9-6+5=8\) and \(q(1)=1+2+5=8\), both greater than \(4\). Strict convexity explains why there cannot be a second minimum, while the derivative signs locate the one minimum.

When a Global Extremum Is Not Attained

Continuity by itself does not guarantee global extrema on every domain. The closed, bounded interval condition in the Extreme Value Theorem matters. For example, define \(r(x)=x\) on the open interval \((0,1)\). For any \(x\in(0,1)\), the point \(x/2\) also belongs to \((0,1)\) and satisfies \(r(x/2)<r(x)\). Likewise, \((x+1)/2\in(0,1)\) and \(r((x+1)/2)>r(x)\). Thus \(r\) has neither a global minimum nor a global maximum on this domain, even though it is continuous and differentiable. Its infimum is \(0\) and its supremum is \(1\), but neither is attained.

The main checks are therefore distinct: first ask whether the domain and hypotheses ensure that an extremum exists; then identify possible locations; finally compare values or use a global argument such as a derivative sign pattern or strict convexity. A local test can help classify behavior near a candidate, but global optimality always concerns the whole domain.

Check Your Understanding

Use the definitions and results in this tutorial to answer the following questions.

  1. How does the definition of a global minimum differ from the definition of a local minimum?
  2. For a continuous function differentiable in the interior of a closed interval, which points are included among the candidates in “Candidates for Absolute Extrema on a Closed Interval”?
  3. Why does the derivative sign pattern in the global-minimum theorem prove uniqueness as well as minimality?
  4. Why does strict convexity rule out two distinct global-minimum points, but not by itself guarantee that a minimum exists?
  5. Can a continuous function on an open interval have an infimum without having a global minimum? Explain using \(r(x)=x\) on \((0,1)\).