Mathematics for Economists: Lecture 7
Juuso V ¨alim ¨aki
Aalto University School of Business
Spring 2021
This lecture covers
1. Existence of solutions to optimization problems 2. Simplest constrained optimization
3. Optimization subject to an equality constraint: first-order conditions
4. Examples of equality constrained optimization problems
Existence of optimal choices: why care?
Example (1 is the largest natural number)
Proof.
I Denote the largest natural number (i.e. strictly positive integer) by x . I Since x is a natural number, also x 2 is a natural number.
I Since x is the largest natural number, we have:
x ≥ x 2 .
I Dividing both sides by x (a positive number since it is a natural number), we get
1 ≥ x .
I Since all natural numbers are larger than or equal to 1, the claim follows.
I Where is the mistake?
Existence helps the characterization
I Suppose that you know that a problem has a solution
I Suppose you know that a single point satisfies first-order necessary conditions
I Do you need to worry about second-order conditions at the critical point?
I Hence it is important to find general enough conditions that guarantee the existence of a solution
I Weierstrass’ theorem is pretty good at this
Existence of optimal choices
I You need to check conditions
1. On the domain (feasible set) of the problem 2. On the objective function
I Feasible set F bounded
1. Can you fit the feasible set in a large enough box of finite size?
2. If F ∈ R
n, show that F ⊂ [−M, M]
nfor some M < ∞.
3. E.g. F = { x ∈ R
n|p · x ≤ w , x ≥ 0} for some strictly positive price vector p satisfies x
i≤
minwipi
for all i.
I Feasible set F closed
1. If x
n→ x and x
n∈ F for all n, then x ∈ F .
2. Constraint given by continuous functions F = {x|g(x) ≤ 0} for a continuous g : R
n→ R
k.
3. F = { x ∈ R
n|p · x ≤ w , x ≥ 0} satisfies this.
Existence of optimal choices
I Objective function continuous
1. Almost all functions you will encounter in economics are continuous 2. Utility functions, cost functions etc.
3. Failure of continuity: demand for price setting firms where all buyers buy from the firm with the lowest price.
I A set F ⊂ R n is called compact if it is closed and bounded.
I Once we recall that all sets in R have a greatest lower bound (infimum) and a
lowest upper bound (supremum), we are ready for the main existence result,
Weierstrass theorem
Main existence theorem
Theorem (Weierstrass’ Theorem)
Suppose f is a continuous function on a compact set F , and M = sup
x ∈F
f (x ) , m = inf
x ∈F f (x ) .
Then there exist points x , x ∈ F such that f (x ) = M and f (x ) = m.
Weierstrass’ theorem
Remark
To see that F must be closed and bounded and that f has to be continuous, consider the following examples where one property fails in each case:
1. f (x ) = x and F = R (F not bounded).
2. f (x ) = x and F = {x : 0 < x < 1}. (F not closed).
3. f (x ) = x for 0 ≤ x < 1, f (1) = 0 and E = {x : 0 ≤ x ≤ 1} (f not continuous).
Constrained Optimization: Example
We start with a simplest example of constrained optimization to set up expectations for the more general case to follow.
Example
Consider finding the maximum for f (x ) = 3 + 2x − x 2 on the feasible set F = {x : −∞ < a ≤ x ≤ b < ∞.
Since f is continuous and the feasible set F is compact. Therefore Weierstrass’
theorem guarantees the existence of a maximizer, i.e. an x ∈ F such that for all y ∈ F , we have f (x ) ≥ f (y ).
Notice that f is strictly increasing for x < 1 and strictly decreasing for x > 1.
If a ≤ 1 ≤ b, then the function is maximized at its critical point x = 1.
We say that a direction (x − x 0 ) is feasible from x 0 ∈ F if for a small ∆, we have
x 0 + ∆ ∈ F .
Quadratic function on an interval
−2 −1 1 2 3
−3
−2
−1 1 2 3 4 5
f (x )
x
y
Constrained Optimization: Example continued
Linear approximation by the derivative gives:
f (x 0 + ∆) − f (x 0 ) = f 0 (x 0 )∆.
If we have a maximum at x 0 , then for all feasible direction f 0 (x 0 )∆ ≤ 0.
I If a < x 0 < b, then we must have f 0 (x 0 ) = 0 since both directions
∆ > 0, ∆ < 0 are feasible.
I If f 0 (x 0 ) > 0, then x > x 0 cannot be feasible if x 0 is a maximum. Therefore
x 0 = b if x 0 is the optimal choice and f 0 (x 0 ) > 0. Similarly, if f 0 (x 0 ) < 0 and x 0
is the optimum, then x 0 = a.
Example: Consumer’s problem
I A consumer chooses how to spend her wealth w on two goods x 1 , x 2 whose prices are p 1 , p 2 .
I Continuously differentiable utility, strictly positive marginal utility for both goods.
I The feasible set (budget set) {(x 1 , x 2 )|x 1 ≥ 0, x 2 ≥ 0, p 1 x 1 + p 2 x 2 ≤ w } is closed (since it is defined by weak inequalities for a continuous constraint function).
I By Weierstrass theorem, a utility maximizing choice exists. What can we say about it?
I Budget constraint must bind: if p 1 x ˆ 1 + p 2 x ˆ 2 < w , then (ˆ x 1 + h, ˆ x 2 ) is feasible and:
u(ˆ x 1 + h, ˆ x 2 ) > u(ˆ x 1 , ˆ x 2 ).
I Therefore, we must have p 1 x ˆ 1 + p 2 ˆ x 2 = w .
I Can the indifference curve through the optimum intersect the budget line?
Optimization with a single equality constraint
I Local considerations: Let f : R n → R be the objective function to be maximized
I Suppose the constraints take the form g(x ) = g(x 1 , ..., x n ) = 0.
I In other words, F = {x : g(x ) = 0}. We write the maximization problem often as:
max x f (x )
subject to g(x ) = 0.
Optimization with a single equality constraint
I A solution to this problem finds point ˆ x such that f (ˆ x) ≥ f (x) for all x ∈ F . I What can we say about such an ˆ x?
I At this point, we do not know if it exists. If it exists, and f is differentiable, then for small ∆,
f (ˆ x + ∆(x − ˆ x)) − f (ˆ x) = Df (ˆ x)(x − ˆ x)∆ ≤ 0 for all feasible directions (x − ˆ x).
I But how do we know which directions are feasible?
Optimization with a single equality constraint
I Assume that the function g defining the constraint is also differentiable.
I To find the feasible directions, we go back to implicit function theorem.
I If ˆ x ∈ F and ∂x ∂g
i