Optimization and Comparative Statics
First-order conditions, second-order conditions, constraints, Lagrangians, and parameter changes
This is an original educational study document prepared for independent learning. It explains standard
mathematical tools used in economics and provides worked examples and exercises.
The material is written independently and is not a reproduction, scan, or transcription of any
commercial textbook.
How to use this document
• Read the conceptual explanation first and then reproduce the worked example without looking.
• Write down the economic interpretation of each mathematical result; the sign and units often matter
as much as the formula.
• Use the exercises at the end as a quick diagnostic. If a solution is unclear, return to the relevant
section rather than memorizing the answer.
1. Optimization as an economic problem
Optimization formalizes the idea that an economic agent chooses the best feasible alternative
according to an objective function. Consumers may maximize utility, firms may maximize profit, and
policymakers may minimize a loss function.
A candidate optimum can be interior or occur at a boundary. This distinction matters because the
familiar first-order condition applies directly to interior differentiable solutions.
Worked example / key formula
The key workflow is: define the objective, state constraints, derive conditions, solve
candidates, and check whether the candidate is actually optimal.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
2. One-variable first-order condition
For an interior optimum x*, a necessary condition is f'(x*)=0. This condition identifies stationary points
but does not tell us whether the point is a maximum, minimum, or saddle-type stationary point.
Economic reasoning should accompany the algebra. For profit maximization, f' is marginal profit, so
the condition says marginal profit is zero at an interior optimum.
Worked example / key formula
Example: π(q)=60q−q²−100. Then π'=60−2q, so q*=30.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
3. Second-order conditions
For a twice-differentiable one-variable function, f''(x*)<0 is sufficient for a strict local maximum and
f''(x*)>0 for a strict local minimum.
A global maximum requires stronger information, such as concavity over the feasible region or direct
comparison of candidates and boundaries.
This distinction prevents a common error: treating every solution to the first-order condition as a
maximum.
Worked example / key formula
For π(q)=60q−q²−100, π''=−2, so the stationary point is a strict maximum.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
4. Constrained optimization
When a choice must satisfy a constraint, unconstrained differentiation is insufficient. The Lagrangian
incorporates the constraint into a single expression.
For max f(x,y) subject to g(x,y)=0, use L=f+λg. The first-order conditions are L_x=0, L_y=0, and
L_λ=0.
The sign of the multiplier depends on how the constraint is written, so economic interpretation should
always be tied to the chosen convention.
Worked example / key formula
Consumer example: L=U(x,y)+λ(m−p_xx−p_yy).
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
5. Economic meaning of the multiplier
Under suitable regularity conditions, the Lagrange multiplier measures the marginal value of relaxing
the constraint. In a utility-maximization problem, it can be interpreted as the marginal utility of income
under the common convention.
This is an example of the envelope principle: the optimized value changes according to the direct
effect of a parameter on the objective or constraint, without requiring the full derivative of the optimal
choice.
Worked example / key formula
If V(m) is indirect utility, the multiplier often satisfies V_m=λ under the stated convention.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
6. Comparative statics
Suppose an equilibrium or optimum is defined implicitly by F(x,a)=0. Differentiating with respect to a
gives F_x dx/da+F_a=0.
Therefore dx/da=−F_a/F_x when F_x is nonzero. The formula identifies how the solution changes as the
parameter changes.
Comparative statics does not describe the transition path. It compares two nearby equilibria under
different parameter values.
Worked example / key formula
Example: F(x,a)=x²−a=0. For x>0, dx/da=1/(2x)>0.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
7. Multivariable second-order conditions
For f(x,y), the Hessian matrix collects second derivatives. At a stationary point, a negative definite
Hessian supports a strict local maximum; a positive definite Hessian supports a strict local minimum.
For a 2×2 symmetric Hessian, negative definiteness can be checked using f_xx<0 and
determinant(H)>0. Positive definiteness requires f_xx>0 and determinant(H)>0.
Worked example / key formula
This provides the multivariable analogue of checking the sign of the second derivative.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
8. Exercises
1) Maximize π(q)=40q−q²−20. 2) Set up the Lagrangian for maximizing ln x+ln y subject to
p_xx+p_yy=m. 3) If equilibrium satisfies x−2a+5=0, find dx/da. 4) Explain the difference between a
necessary and a sufficient condition.
Worked example / key formula
Answers: q=20; L=ln x+ln y+λ(m−p_xx−p_yy); dx/da=2; necessary conditions identify
candidates, while sufficient conditions establish optimality under appropriate assumptions.
Checkpoint: Identify the variable being changed, the variables held fixed, and the economic meaning
of the result.
Final review sheet
• Define every symbol before substituting numbers.
• Check domain restrictions, especially for logarithms and denominators.
• For optimization, distinguish first-order conditions from second-order conditions.
• For comparative statics, state which parameter changes and which variables are endogenous.
• For matrices, check dimensions before multiplying.
• For integrals, interpret the result as an accumulated quantity.
• For dynamic models, calculate the steady state and then study deviations from it.
Original educational material. Prepared independently for study and document-sharing purposes; not a reproduction of
any commercial textbook.