Lectures

Math Camp

Lecture 6: General Optimization

Solving an optimization problem requires three separate steps. First, we show that a solution exists. Second, we find the points that satisfy the necessary conditions for a solution. Third, we determine whether any of those points is a global solution. Setting a derivative equal to zero addresses only the second step.

1 The problem and existence

1.1 The problem and the candidate list

Many optimization problems belong to a family indexed by a parameter. We hold the parameter fixed while solving a single problem, but keep it in the notation so that the solution set and value can later be compared across problems.

Definition 1.1 (Optimization problem). Let Θ\Theta be a parameter set, let UnU\subseteq\mathbb{R}^{n}, and let f:U×Θf:U\times\Theta\to\mathbb{R}. For a fixed θΘ\theta\in\Theta, the problem maxxD(θ)f(x;θ),D(θ)U,\max_{x\in D(\theta)} f(x;\theta), \qquad D(\theta)\subseteq U, has the following parts.

  • The vector xx is the choice variable and θ\theta is the parameter.

  • The set D(θ)D(\theta) is the feasible set and f(;θ)f(\,\cdot\,;\theta) is the objective.

  • The solution set is X*(θ)=arg maxxD(θ)f(x;θ),X^*(\theta)=\mathop{\mathrm{arg\,max}}_{x\in D(\theta)} f(x;\theta), and when it is nonempty its elements all share one objective value, the value V(θ)=f(x*;θ)V(\theta)=f(x^*;\theta) for any x*X*(θ)x^*\in X^*(\theta).

Example 1.2 (Utility maximization). A consumer with utility u:+nu:\mathbb{R}^n_+\to\mathbb{R} faces prices p++np\in\mathbb{R}^n_{++} and wealth w>0w>0: maxxB(p,w)u(x),B(p,w)={x+n:pxw}.\max_{x\in B(p,w)} u(x), \qquad B(p,w)=\{x\in\mathbb{R}^n_+ : p\cdot x\leq w\} . Here the bundle xx is the choice variable, (p,w)(p,w) is the parameter, the budget set is the feasible set, demand is the solution set, and indirect utility is the value.

Note that writing max\max instead of sup\sup presumes that the supremum is attained. A supremum can be finite without being attained, and then X*(θ)X^*(\theta) is empty and V(θ)V(\theta) is undefined. Before using the notation, we must establish that a solution exists.

Definition 1.3 (Local and global maximizers). Let DnD\subseteq\mathbb{R}^{n} and f:Df:D\to\mathbb{R}, and let x*Dx^*\in D.

  • x*x^* is a global maximizer if f(x*)f(x)f(x^*)\geq f(x) for every xDx\in D.

  • x*x^* is a local maximizer if there is ε>0\varepsilon>0 with f(x*)f(x)for every xDB(x*,ε),f(x^*)\geq f(x) \qquad\text{for every }x\in D\cap B(x^*,\varepsilon), and a strict local maximizer if that inequality is strict for every such xx*x\neq x^*.

  • x*x^* is interior if x*intDx^*\in\operatorname{int}D, meaning that B(x*,ε)DB(x^*,\varepsilon)\subseteq D for some ε>0\varepsilon>0, and a boundary point if every ball B(x*,ε)B(x^*,\varepsilon) meets both DD and its complement.

Minimizers are defined by reversing every inequality.

Every global maximizer is a local maximizer, since DB(x*,ε)DD\cap B(x^*,\varepsilon)\subseteq D; the converse holds under concavity, as we show in Section 3. The interior–boundary distinction determines which first-order condition applies: at an interior point every small perturbation is feasible, so the objective can be compared with x*x^* in both directions along every line, while at a boundary point some directions leave the feasible set and the comparison is one-sided.

Recall the existence result of Lecture 2, which we use without proof.

Theorem 1.4 (Weierstrass). If DnD\subseteq\mathbb{R}^{n} is nonempty and compact and f:Df:D\to\mathbb{R} is continuous, then ff attains both a maximum and a minimum on DD.

In the next example, we first establish existence and then generate candidates.

1.2 Existence on an unbounded set

The following condition is sufficient for existence on an unbounded feasible set.

Definition 1.5 (Coercivity for maximization). Let DnD\subseteq\mathbb{R}^{n} be unbounded. A function f:Df:D\to\mathbb{R} is coercive for maximization on DD if xkD,xkf(xk)x_k\in D,\quad \lVert x_k \rVert\to\infty \quad\Longrightarrow\quad f(x_k)\to-\infty for every sequence (xk)(x_k); equivalently, if for every MM\in\mathbb{R} there is R>0R>0 such that f(x)<Mf(x)<M whenever xDx\in D and x>R\lVert x \rVert>R.

Theorem 1.6 (Coercive existence). Let DnD\subseteq\mathbb{R}^{n} be nonempty, closed, and unbounded. If f:Df:D\to\mathbb{R} is continuous and coercive for maximization, then ff attains a maximum on DD.

Proof (optional). Choose any x0Dx_0\in D. Applying Definition 1.5 with M=f(x0)M=f(x_0) gives R>0R>0, which we may take larger than x0\lVert x_0 \rVert, such that xD,x>Rf(x)<f(x0).x\in D,\ \lVert x \rVert>R \quad\Longrightarrow\quad f(x)<f(x_0) . Put K=D{x:xR}K=D\cap\{x:\lVert x \rVert\leq R\}. It contains x0x_0, so it is nonempty; it is bounded by RR; and it is closed, being the intersection of two closed sets. By the Heine–Borel theorem it is therefore compact, so Theorem 1.4 supplies a maximizer x*x^* of ff on KK. Any xD\Kx\in D\setminus K has x>R\lVert x \rVert>R and hence f(x)<f(x0)f(x*)f(x)<f(x_0)\leq f(x^*), the second inequality because x0Kx_0\in K. So f(x)f(x*)f(x)\leq f(x^*) for every xDx\in D, which is Definition 1.3. ◻

Figure 1.1. Coercivity reduces maximization on an unbounded closed feasible set to maximization on a compact subset that contains every candidate with value at least f(x_0).

Notice the structure of the proof: coercivity allows us to replace the unbounded feasible set with a compact one that contains a maximizer, and then apply the Weierstrass theorem. Like compactness, coercivity is sufficient for existence but not necessary.

Example 1.7 (Coercivity is not necessary). On D=[0,)D=[0,\infty), the function f(x)=xexf(x)=xe^{-x} is not coercive for maximization, since f(x)0f(x)\to0 rather than -\infty; yet f(x)=(1x)exf'(x)=(1-x)e^{-x} is positive before 11 and negative after 11, so x=1x=1 is the unique global maximizer. On D=D=\mathbb{R}, the function f(x)=arctanxf(x)=\arctan x is likewise not coercive, but here there is no maximizer: ff increases toward the supremum π/2\pi/2, which it never attains.

2 Necessary local conditions

2.1 The interior first-order condition

Both first-order conditions below are proved the same way: we restrict ff to a line through the candidate point and apply one-variable arguments to the restriction. We collect the one-variable facts first.

Lemma 2.1 (One-variable optimality). Let δ>0\delta>0 and let g:(δ,δ)g:(-\delta,\delta)\to\mathbb{R} have a local maximum at 00.

  1. If gg is differentiable at 00, then g(0)=0g'(0)=0.

  2. If gg is twice continuously differentiable, then g(0)0g''(0)\leq0.

Proof. For part (1), take tt small enough that g(t)g(0)g(t)\leq g(0). When t>0t>0, dividing g(t)g(0)0g(t)-g(0)\leq0 by tt preserves the inequality, so g(t)g(0)t0and letting t0,g(0)0.\frac{g(t)-g(0)}{t}\leq0 \qquad\text{and letting }t\downarrow0,\qquad g'(0)\leq0 . When t<0t<0, dividing by tt reverses it, so the same quotient is nonnegative and letting t0t\uparrow0 gives g(0)0g'(0)\geq0. The derivative exists, so both one-sided limits equal it, and g(0)=0g'(0)=0.

For part (2), part (1) gives g(0)=0g'(0)=0. The one-dimensional case of the second-order Taylor expansion from Lecture 5 gives g(t)g(0)=12g(0)t2+r(t),|r(t)|t20.g(t)-g(0)=\frac12 g''(0)t^2+r(t), \qquad \frac{\lvert r(t) \rvert}{t^2}\longrightarrow0 . If g(0)>0g''(0)>0, then for every sufficiently small nonzero tt the positive quadratic term dominates the remainder, so g(t)>g(0)g(t)>g(0). This contradicts the local maximum. Hence g(0)0g''(0)\leq0. ◻

Theorem 2.2 (Interior first-order condition). Let UnU\subseteq\mathbb{R}^{n} be open, let DUD\subseteq U, and let f:Uf:U\to\mathbb{R} be differentiable at x*intDx^*\in\operatorname{int}D. If x*x^* is a local maximizer or a local minimizer of ff on DD, then f(x*)=0\nabla f(x^*)=0.

Proof. Fix vnv\in\mathbb{R}^{n} and put g(t)=f(x*+tv)g(t)=f(x^*+tv). Since x*intDx^*\in\operatorname{int}D, there is ε>0\varepsilon>0 with B(x*,ε)DB(x^*,\varepsilon)\subseteq D, so gg is defined for |t|<ε/v\lvert t \rvert<\varepsilon/\lVert v \rVert when v0v\neq0. If x*x^* is a local maximizer of ff on DD, then g(t)g(0)g(t)\leq g(0) for all small |t|\lvert t \rvert by Definition 1.3, so 00 is a local maximum of gg. By part (1) of Lemma 2.1 and the chain rule for a line restriction, 0=g(0)=f(x*)v.0=g'(0)=\nabla f(x^*)\cdot v . This holds for every vnv\in\mathbb{R}^{n}; taking v=f(x*)v=\nabla f(x^*) gives f(x*)2=0\lVert \nabla f(x^*) \rVert^2=0, so f(x*)=0\nabla f(x^*)=0. For a local minimizer, apply the same argument to f-f. ◻

Definition 2.3 (Critical point). A point xx at which ff is differentiable and f(x)=0\nabla f(x)=0 is a critical point, or stationary point, of ff.

Theorem 2.2 is a necessary condition, not a sufficient one. Its converse fails even at a differentiable interior point. Moreover, the condition itself fails if we drop interiority, and it does not apply without differentiability.

Example 2.4 (Three counterexamples).

  1. Criticality does not imply optimality. The origin is critical for f(x)=x3f(x)=x^3 on \mathbb{R} by Definition 2.3, yet f(t)>0>f(t)f(t)>0>f(-t) for every t>0t>0, so it is neither a local maximizer nor a local minimizer.

  2. Optimality at a non-interior point does not imply criticality. For f(x)=xf(x)=x on D=[0,1]D=[0,1], the maximizer is x*=1x^*=1, which is a boundary point of DD, and f(1)=10f'(1)=1\neq0.

  3. The condition does not apply without differentiability. The function f(x)=|x|f(x)=-\lvert x \rvert on \mathbb{R} has a strict global maximizer at 00, an interior point, but is not differentiable there, so Theorem 2.2 does not apply.

2.2 Second-order conditions

A critical point can be a local maximizer, a local minimizer, or neither. The Hessian classifies it whenever the associated quadratic form is definite. The tool is the second-order Taylor expansion of Lecture 5: if ff is C2C^2 on an open set containing x*x^*, then

f(x*+h)f(x*)=f(x*)h+12hHf(x*)h+r(h),|r(h)|h20,f(x^*+h)-f(x^*) =\nabla f(x^*)\cdot h +\frac12 h^{\top}H_{f}(x^*)h+r(h), \qquad \frac{\lvert r(h) \rvert}{\lVert h \rVert^2}\to0 ,(1)

and the second derivative of a line restriction g(t)=f(x*+tv)g(t)=f(x^*+tv) is the quadratic form g(t)=vHf(x*+tv)vg''(t)=v^{\top}H_{f}(x^*+tv)v.

Theorem 2.5 (Second-order conditions). Let ff be C2C^2 on an open set containing x*x^*.

  1. If x*x^* is a local maximizer, then Hf(x*)H_{f}(x^*) is negative semidefinite.

  2. If f(x*)=0\nabla f(x^*)=0 and Hf(x*)H_{f}(x^*) is negative definite, then x*x^* is a strict local maximizer.

  3. If f(x*)=0\nabla f(x^*)=0 and Hf(x*)H_{f}(x^*) is indefinite, then x*x^* is a saddle point, which is neither a local maximizer nor a local minimizer.

For local minimizers, reverse the signs in the first two statements.

Proof (optional). (1) Necessity. Let vnv\in\mathbb{R}^{n} and put g(t)=f(x*+tv)g(t)=f(x^*+tv), which has a local maximum at 00. Part (2) of Lemma 2.1 and the line-restriction formula give vHf(x*)v=g(0)0v^{\top}H_{f}(x^*)v=g''(0)\leq0. Since vv was arbitrary, Hf(x*)H_{f}(x^*) is negative semidefinite.

(2) Sufficiency. The function uuHf(x*)uu\mapsto u^{\top}H_{f}(x^*)u is continuous and the unit sphere {u:u=1}\{u:\lVert u \rVert=1\} is nonempty and compact, so Theorem 1.4 gives a maximum value c-c on it, and c>0c>0 because negative definiteness makes every such value negative. For h0h\neq0, applying this to u=h/hu=h/\lVert h \rVert and multiplying by h2\lVert h \rVert^2 gives hHf(x*)hch2.h^{\top}H_{f}(x^*)h\leq-c\lVert h \rVert^2 . Since |r(h)|/h20\lvert r(h) \rvert/\lVert h \rVert^2\to0, there is ρ>0\rho>0 with |r(h)|(c/4)h2\lvert r(h) \rvert\leq(c/4)\lVert h \rVert^2 whenever 0<h<ρ0<\lVert h \rVert<\rho. For such hh, (1) with f(x*)=0\nabla f(x^*)=0 gives f(x*+h)f(x*)c2h2+c4h2=c4h2<0,f(x^*+h)-f(x^*) \leq-\frac{c}{2}\lVert h \rVert^2+\frac{c}{4}\lVert h \rVert^2 =-\frac{c}{4}\lVert h \rVert^2<0 , so x*x^* is a strict local maximizer.

(3) Indefiniteness. Choose vv and ww with vHf(x*)v>0v^{\top}H_{f}(x^*)v>0 and wHf(x*)w<0w^{\top}H_{f}(x^*)w<0. Because the gradient vanishes, substituting h=tvh=tv into (1) gives f(x*+tv)f(x*)=t22vHf(x*)v+r(tv)>0f(x^*+tv)-f(x^*) =\frac{t^2}{2}v^{\top}H_{f}(x^*)v+r(tv)>0 for every sufficiently small nonzero tt: after division by t2t^2, the remainder tends to zero while the quadratic coefficient is positive. The same argument with h=twh=tw makes the difference negative for every sufficiently small nonzero tt. Thus every ball around x*x^* contains points with larger and smaller values, so x*x^* is neither a local maximizer nor a local minimizer.

The minimum statements follow by applying the above to f-f, whose Hessian is Hf-H_{f}. ◻

When the Hessian is semidefinite but not definite, neither part (2) nor part (3) applies, and no conclusion follows. The next example shows that every outcome is possible in that case.

Example 2.6 (A semidefinite Hessian is inconclusive). Each of x4-x^4, x4x^4, and x3x^3 has f(0)=f(0)=0f'(0)=f''(0)=0, so their first- and second-order data at the origin are identical. Yet the origin is a strict maximizer of the first, a strict minimizer of the second, and neither for the third. A zero Hessian therefore supplies no classification.

In practice, we check definiteness of the Hessian with the tests of Lecture 5 instead of the definition.

Example 2.7 (A saddle point classified). Let f(x1,x2)=x12x22f(x_1,x_2)=x_1^2-x_2^2. Then f(0)=0\nabla f(0)=0 and Hf=diag(2,2)H_{f}=\operatorname{diag}(2,-2), whose eigenvalues 22 and 2-2 have opposite signs, so the Hessian is indefinite and part (3) of Theorem 2.5 makes the origin neither a local maximizer nor a local minimizer.

Figure 2.1. The graph of f(x_1,x_2)=x_1^2-x_2^2 near its saddle point at the origin.

2.3 Boundary first-order conditions

At a boundary maximizer the gradient need not vanish, as Example 2.4 showed. A one-sided statement remains true, and to state it we first name the directions that stay inside the feasible set.

Definition 2.8 (Feasible direction). Let xDnx\in D\subseteq\mathbb{R}^{n}. A vector vnv\in\mathbb{R}^{n} is a feasible direction from xx if there is δ>0\delta>0 with x+tvDfor every t(0,δ).x+tv\in D \qquad\text{for every }t\in(0,\delta) .

If DD is convex, then yxy-x is a feasible direction from xx for every yDy\in D, since Definition 2.8 is satisfied with δ=1\delta=1.

Theorem 2.9 (Boundary first-order condition). Let UnU\subseteq\mathbb{R}^{n} be open, let DUD\subseteq U, and let f:Uf:U\to\mathbb{R} be differentiable. If x*Dx^*\in D is a local maximizer of ff on DD, then f(x*)v0for every feasible direction v from x*.\nabla f(x^*)\cdot v\leq0 \qquad\text{for every feasible direction $v$ from $x^*$.} In particular, if DD is convex, then

f(x*)(yx*)0for every yD.\nabla f(x^*)\cdot (y-x^*)\leq0 \qquad\text{for every }y\in D .(2)

Proof (optional). Fix a feasible direction vv and put g(t)=f(x*+tv)g(t)=f(x^*+tv). By Definition 2.8, this restriction is feasible for all small t>0t>0. Since x*x^* is a local maximizer, g(t)g(0)g(t)\leq g(0) for all sufficiently small t>0t>0, so the difference quotients satisfy g(t)g(0)t0for all small t>0.\frac{g(t)-g(0)}{t}\leq0 \qquad\text{for all small }t>0 . Letting t0t\downarrow0 and evaluating the derivative of the line restriction by the chain rule, 0g(0)=f(x*)v.0\geq g'(0)=\nabla f(x^*)\cdot v . If DD is convex and yDy\in D, then v=yx*v=y-x^* is feasible, which gives (2). ◻

At an interior point the condition collapses back to Theorem 2.2: for any vv, both y=x*+εvy=x^*+\varepsilon v and y=x*εvy=x^*-\varepsilon v lie in DD for small ε>0\varepsilon>0, so (2) gives f(x*)v0\nabla f(x^*)\cdot v\leq0 and f(x*)v0-\nabla f(x^*)\cdot v\leq0, forcing f(x*)v=0\nabla f(x^*)\cdot v=0 for every vv.

If x*x^* is a boundary local maximizer, then the gradient is allowed to not be zero, and if it’s not, then it must point out of the feasible set. To see this, note that f(x*)v0\nabla f(x^*)\cdot v\leq0 means that the angle between the gradient and any feasible direction vv is at least ninety degrees. That is equivalent to saying that f(x*+tv)f(x*)f(x^*+tv) \leq f(x^*), meaning that moving in the direction vv decreases the value of ff relative to f(x*)f(x^*). That is, at a boundary point, the function is allowed to increase in some directions (those that point out of the feasible set), but it cannot increase in any direction that points into the feasible set.

Figure 2.2. Left: the directions in which f increases and decreases relative to f(x^*). f cannot rise if the angle between the gradient and a feasible direction is at least ninety degrees (the red area). Right: the first-order condition (2) at a local maximizer x^* at the boundary of D. The gradient points out of D and makes an angle of at least ninety degrees with every feasible direction v. Moving in a feasible direction therefore cannot increase f.

On a nonnegative orthant the condition becomes one sign restriction and one complementarity relation per coordinate.

Theorem 2.10 (Componentwise form on the orthant). Let UnU\subseteq\mathbb{R}^{n} be open with +nU\mathbb{R}^n_+\subseteq U, let f:Uf:U\to\mathbb{R} be differentiable, and let x*+nx^*\in\mathbb{R}^n_+. Then (2) with D=+nD=\mathbb{R}^n_+ holds if and only if

fxi(x*)0,xi*0,xi*fxi(x*)=0(i=1,,n).\frac{\partial f}{\partial x_i}(x^*)\leq0, \qquad x_i^*\geq0, \qquad x_i^*\,\frac{\partial f}{\partial x_i}(x^*)=0 \qquad (i=1,\dots,n) .(3)

Proof (optional). Necessity. Taking y=x*+eiDy=x^*+e_i\in D in (2) gives f/xi(x*)0\partial f/\partial x_i(x^*)\leq0. If in addition xi*>0x_i^*>0, then y=x*xi*eiy=x^*-x_i^*e_i is also in DD, and (2) applied to it gives xi*f/xi(x*)0-x_i^*\,\partial f/\partial x_i(x^*)\leq0, hence f/xi(x*)0\partial f/\partial x_i(x^*)\geq0 and therefore =0=0. So the product xi*f/xi(x*)x_i^*\,\partial f/\partial x_i(x^*) vanishes whether xi*x_i^* is zero or positive.

Sufficiency. Let yDy\in D, so yi0y_i\geq0 for every ii. Expanding the inner product and using (3) twice, f(x*)(yx*)=i=1nfxi(x*)yii=1nfxi(x*)xi*=i=1nfxi(x*)yi0,\nabla f(x^*)\cdot (y-x^*) =\sum_{i=1}^n\frac{\partial f}{\partial x_i}(x^*)\,y_i -\sum_{i=1}^n\frac{\partial f}{\partial x_i}(x^*)\,x_i^* =\sum_{i=1}^n\frac{\partial f}{\partial x_i}(x^*)\,y_i \leq0 , the second sum vanishing term by term and each remaining term being a product of a nonpositive number with a nonnegative one. ◻

The three conditions in (3) say that increasing any one coordinate cannot raise ff to first order, that feasibility holds, and that a partial derivative can be strictly negative only where the corresponding coordinate is already zero and cannot be reduced. The last identity is a complementarity relation; in the parameterized example of Section 3.2, it decides between an interior point and a corner.

3 Global certification

3.1 Concavity, globality, and uniqueness

Everything so far has been about local maximizers, and a local maximizer can fail to be a global one. However, if a function is concave, then every local maximizer is also a global maximizer.

Theorem 3.1 (Concave maximization). Let DnD\subseteq\mathbb{R}^{n} be convex and let f:Df:D\to\mathbb{R} be concave.

  1. Every local maximizer of ff on DD is a global maximizer.

  2. The set X*=arg maxxDf(x)X^*=\mathop{\mathrm{arg\,max}}_{x\in D}f(x) is either empty or convex.

  3. If ff is strictly concave, then X*X^* contains at most one point.

Proof (optional). Local implies global. Suppose x*x^* is a local maximizer that is not global, so some yDy\in D has f(y)>f(x*)f(y)>f(x^*). By Definition 1.3 there is ε>0\varepsilon>0 with f(x*)f(x)f(x^*)\geq f(x) for every feasible xB(x*,ε)x\in B(x^*,\varepsilon). The points xt=(1t)x*+tyx_t=(1-t)x^*+ty are feasible by convexity of DD, and xtx*=tyx*\lVert x_t-x^* \rVert=t\lVert y-x^* \rVert, so xtB(x*,ε)x_t\in B(x^*,\varepsilon) once tt is small enough. For such t(0,1)t\in(0,1), concavity gives f(xt)(1t)f(x*)+tf(y)>(1t)f(x*)+tf(x*)=f(x*),f(x_t)\geq(1-t)f(x^*)+tf(y)>(1-t)f(x^*)+tf(x^*)=f(x^*), contradicting local maximality.

Convexity of X*X^*. Suppose X*X^* is nonempty and let x0,x1X*x_0,x_1\in X^* have common maximum value MM. For t[0,1]t\in[0,1], the point (1t)x0+tx1(1-t)x_0+tx_1 is feasible, and concavity gives f((1t)x0+tx1)(1t)M+tM=M.f\left((1-t)x_0+tx_1\right)\geq(1-t)M+tM=M . Since MM is the maximum, the value is MM and the point lies in X*X^*. So X*X^* contains the segment joining any two of its points, and is therefore convex.

Strict-concavity uniqueness. If distinct x,yX*x,y\in X^* had common value MM, their midpoint would be feasible and strict concavity would give f(x+y2)>12f(x)+12f(y)=M,f\left(\frac{x+y}{2}\right)>\frac12f(x)+\frac12f(y)=M, contradicting maximality. ◻

Under concavity, the necessary condition of Theorem 2.9 is also sufficient, so a single first-order check certifies a global maximizer.

Theorem 3.2 (First-order characterization). Let DnD\subseteq\mathbb{R}^{n} be convex and let ff be differentiable and concave on an open convex set containing DD. A point x*Dx^*\in D is a global maximizer of ff on DD if and only if f(x*)(yx*)0for every yD.\nabla f(x^*)\cdot (y-x^*)\leq0 \qquad\text{for every }y\in D .

Proof. Necessity. A global maximizer is a local maximizer, so Theorem 2.9 applies.

Sufficiency. For yDy\in D, the tangent inequality from Lecture 5 at x*x^* and then the hypothesis give f(y)f(x*)+f(x*)(yx*)f(x*),f(y)\leq f(x^*)+\nabla f(x^*)\cdot (y-x^*)\leq f(x^*) , so x*x^* is a global maximizer by Definition 1.3. ◻

Part (3) of Theorem 3.1 bounds the number of maximizers without producing one. The function f(x)=exf(x)=-e^x is strictly concave on \mathbb{R}, and its supremum 00 is approached as xx\to-\infty but never attained, so the solution set is empty. Existence remains a separate step. However, if there exists a point satisfying the first-order condition of Theorem 3.2, then existence is guaranteed by Theorem 3.2.

3.2 A complete parameterized problem

We now apply the three steps, in order, to a parameterized problem.

Example 3.3. For θ\theta\in\mathbb{R}, consider maxx+f(x;θ),f(x;θ)=θx12x2.\max_{x\in\mathbb{R}_+} f(x;\theta), \qquad f(x;\theta)=\theta x-\frac12x^2 . Find the solution set X*(θ)X^*(\theta) and value V(θ)V(\theta) for every θ\theta.

Existence. For fixed θ\theta the objective is continuous, and D=+D=\mathbb{R}_+ is nonempty, closed, and unbounded. Since f(x;θ)f(x;\theta)\to-\infty as xx\to\infty, the objective is coercive for maximization in the sense of Definition 1.5, so Theorem 1.6 gives a maximizer.

Candidates. Here n=1n=1 and fx(x;θ)=θx.\frac{\partial f}{\partial x}(x;\theta)=\theta-x . By Theorem 2.10 the condition (3) reads θx*0,x*0,x*(θx*)=0.\theta-x^*\leq0, \qquad x^*\geq0, \qquad x^*(\theta-x^*)=0 . If x*>0x^*>0 the last equation forces x*=θx^*=\theta, which is admissible only when θ>0\theta>0; if x*=0x^*=0 the first inequality requires θ0\theta\leq0. Thus exactly one point satisfies the condition: x*=max{θ,0}x^*=\max\{\theta,0\}.

Globality and uniqueness. Since 2f/x2=1<0\partial^2 f/\partial x^2=-1<0, the function is strictly concave on the convex set +\mathbb{R}_+. The first-order condition is therefore sufficient by Theorem 3.2, and uniqueness follows from part (3) of Theorem 3.1. Hence X*(θ)={max{θ,0}},V(θ)={0,θ0,12θ2,θ>0.X^*(\theta)=\left\{\max\{\theta,0\}\right\}, \qquad V(\theta)= \begin{cases} 0, & \theta\leq0,\\[1mm] \tfrac12\theta^2, & \theta>0 . \end{cases} The two regimes are the two ways (3) can hold: at θ0\theta\leq0 the solution is the corner 00, whereas at θ>0\theta>0 it is the interior point θ\theta.

Removing the quadratic term separates the roles of concavity, strict concavity, and coercivity.

Example 3.4 (Removing the curvature). For β0\beta\geq0, let fβ(x;θ)=θx(β/2)x2f_\beta(x;\theta)=\theta x-(\beta/2)x^2 on +\mathbb{R}_+. When β>0\beta>0, the argument above gives the unique maximizer xβ*(θ)=max{θ/β,0}x^*_\beta(\theta)=\max\{\theta/\beta,0\}. When β=0\beta=0, the objective is the affine function θx\theta x, and the three regimes are X*(θ)={0} if θ<0,X*(θ)=+ if θ=0,X*(θ)= if θ>0.X^*(\theta)=\{0\}\ \text{ if }\theta<0, \qquad X^*(\theta)=\mathbb{R}_+\ \text{ if }\theta=0, \qquad X^*(\theta)=\emptyset\ \text{ if }\theta>0 . At θ=0\theta=0, existence holds but uniqueness fails because the objective is no longer strictly concave. At θ>0\theta>0, existence fails because the affine objective is unbounded above.

Example 3.5 (A non-concave problem in 2\mathbb{R}^2). Find the solution set X*X^* and value VV of maxx2{x14x24+4x12+2x22}.\max_{x\in\mathbb{R}^2} \left\{-x_1^4-x_2^4+4x_1^2+2x_2^2\right\}.

Example 3.6 (A concave problem in 2\mathbb{R}^2). Find the solution set X*X^* and value VV of maxx2{3x1+3x2x12x1x2x22}.\max_{x\in\mathbb{R}^2} \left\{3x_1+3x_2-x_1^2-x_1x_2-x_2^2\right\}.

3.3 A workflow

The steps below summarize the workflow for solving a parameterized maximization problem.

  1. Specify the objective, its domain, the feasible set, and the parameter, as in Definition 1.1.

  2. Establish existence, by compactness (Theorem 1.4), coercivity (Theorem 1.6), or a direct argument.

  3. Generate every candidate: interior critical points (Theorem 2.2), boundary points satisfying the feasible-direction condition of Theorem 2.9, and points where ff fails to be differentiable, where no first-order condition applies.

  4. Classify interior candidates locally with Theorem 2.5 when the classification is needed and the Hessian is definite or indefinite. Discard the minimizers and saddle points, and keep the local maximizers and the inconclusive points.

  5. Certify globality, either by concavity (Theorem 3.1 and Theorem 3.2) or by comparing the values of ff across all remaining candidate points. If ff is concave, then any critical point in DD is a global maximizer, and under strict concavity the unique one.

  6. Report X*(θ)X^*(\theta) and V(θ)V(\theta).