Lawfare Academy

Mathematical Economics and Optimization — Bridge · Chapter 2 of 4

Prove an unconstrained optimum and diagnose boundaries

Return to the linked course unit →

DEVELOPED COURSE TEXT

Prove an unconstrained optimum and diagnose boundaries

Solve a coupled objective through its gradient

A fictional two-service provider has profitF(x, y)=80 x+60 y-x squared-y squared-xy. The cross term represents a congestion or shared-cost interaction in this original model. Quantities are initially nonnegative and otherwise unconstrained. Partial derivatives areF_x=80-2 x-y andF_y=60-2 y-x. Setting both to zero gives 2 x+y=80 andx+2 y=60, sox 100/3 andy 40/3. These equations are coupled;maximizing each product as if the other did not exist would ignore the interaction.
The gradient collects local changes with other variables held fixed. Along a joint change(dx, dy), the first-order change isF_x dx+F_y dy. At a stationary point this term vanishes for every direction, but curvature still determines whether the point is a maximum, minimum or saddle. A zero gradient is a candidate condition, not a complete optimization argument.

Use the Hessian to establish global shape

The Hessian is the matrix with diagonal entries-2 and off-diagonal entries-1. Its leading diagonal entry is negative and determinant 3 positive, so it is negative definite. More directly, for any nonzero directionv, its quadratic form is-2 v_x squared-2 v_y squared-2 v_xv_y=-(v_x squared+v_y squared+(v_x+v_y)squared), which is strictly negative. ThusF is strictly concave on the entire plane. A feasible stationary point is the unique global maximum over any convex domain containing it.
This conclusion is stronger than checking the second derivative separately inx andy. A function can curve downward along coordinate axes yet have an upward diagonal direction if cross terms dominate. The full Hessian captures those interactions. Conversely, the saddlef=x squared-y squared has zero gradient at the origin but positive curvature in one direction and negative in another. Its stationary point is neither a maximum nor a minimum.

Check economic feasibility and corner conditions

The stationary quantities are positive, so they satisfy the initial nonnegative domain. Their profit is 1733.333333. If a parameter change makes the algebraic solution negative, it cannot be reported as a production plan. Replace the 60 y coefficient by 20 y. The interior linear system would produce a negativey. On the boundaryy 0, profit is 80 x-x squared, maximized atx 40, with value 1600. The marginal derivative toward increasingy at(40,0)is 20-40=-20, so leaving the boundary reduces value.
A boundary can be optimal even though the unconstrained gradient is not zero, because some improving mathematical directions are infeasible. This is the bridge to constrained optimization. List the domain explicitly, solve candidate interior and boundary cases, and compare objective values or use concavity to certify the result. A software optimizer returning a negative quantity is not an economic exception to nonnegativity;it signals that the constraint was omitted or mishandled.

Use sensitivity and numerical checks as supporting evidence

The first-order system can be writtenH times the quantity vector plus the linear coefficients equals 0. Small changes in a revenue coefficient change both optimal quantities because of the cross effect. ForF=ax+by-x squared-y squared-xy, the interior solution isx=(2 a-b)/3 andy=(2 b-a)/3. These formulas apply only while both quantities remain feasible. Their derivatives describe comparative statics within that regime, not a universal response after a corner is reached.
A grid or numerical solver can confirm the objective near the candidate and expose coding mistakes, but it does not replace the analytic feasibility/curvature argument. A coarse grid can miss a narrow peak;an unconstrained numerical method can wander outside the economic domain. The advanced bridge asks learners to derive, certify, interpret and check the solution, then identify exactly which step changes when parameters or constraints change.

Worked records

Record 1

F=80 x+60 y-x²-y²-xy, x, y≥0. No capacity bound yet. Compare the changed linear coefficientb 20.

Develop the reasoning

Interior optimumx 100/3, y 40/3, profit 1733.333333. Hessian negative definite establishes a unique global maximum. Withb 20, the feasible optimum is(40,0), profit 1600;the derivative into positivey is-20. The negative interior formula is discarded, not implemented.

Progressive practice — optional

1. Foundation

Solve the gradient system.

Compare the worked reasoning

2 x+y 80, x+2 y 60 givesx 100/3, y 40/3.

Change the record

Both linear coefficients become 60.

Compare the changed-record reasoning

Symmetry givesx=y 20;profit 1200. The same negative-definite Hessian certifies the optimum.

2. Application

Classifyf=x²-y² at the origin.

Compare the worked reasoning

Gradient 0, but one direction rises and the other falls, so it is a saddle.

Change the record

The function is-x²-y² instead.

Compare the changed-record reasoning

Hessian-2 I is negative definite;origin is the unique global maximum 0.

3. Transfer

Check theb 20 corner rather than accept a negativey.

Compare the worked reasoning

At(40,0), profit 1600 and marginaly=-20≤0, so the nonnegative boundary is optimal by concavity.

Change the record

b rises to 50.

Compare the changed-record reasoning

Interiorx=(160-50)/3=110/3, y=(100-80)/3=20/3, both positive. Profit=(80 x+50 y)/2=1633.333333 using the quadratic first-order identity.

Sources and scope