Skip to main content

Multivariable Optimization

You can reduce Q by moving both controls, but a constraint may prevent that motion. This chapter separates unconstrained and constrained critical points and checks local versus global conclusions.

  • Constrained optimization: Finding extrema while restricting the input to a feasible set.

Test a free critical point​

At an interior local extremum of a differentiable scalar function, ∇f=0\nabla f=0. For QQ, the system 2x+y=02x+y=0, x+2y=0x+2y=0 gives the origin. Its Hessian has positive eigenvalues 33 and 11, so the origin is a strict local minimum. Because Q=x2+xy+y2≥12(x2+y2)Q=x^2+xy+y^2\ge\tfrac12(x^2+y^2), it is also the unique global minimum.

For a C2C^2 function at a stationary point, a positive-definite Hessian gives a strict local minimum, a negative-definite Hessian a strict local maximum, and an indefinite Hessian a saddle. A semidefinite Hessian is inconclusive without more information.

Elliptical contours touching a line constraint with parallel objective and constraint normals
A constrained optimum has no first-order change along allowed tangent directions.

Restrict the allowed directions​

Now impose g(x,y)=x+y=1g(x,y)=x+y=1. Along this line write y=1−xy=1-x:

Q(x,1−x)=x2−x+1=(x−12)2+34.Q(x,1-x)=x^2-x+1=(x-\tfrac12)^2+\tfrac34.

The constrained minimum is 3/43/4 at (1/2,1/2)(1/2,1/2), where the full gradient is not zero.

A Lagrange multiplier expresses the necessary condition ∇f=λ∇g\nabla f=\lambda\nabla g at a regular constrained extremum, provided f,gf,g are C1C^1 and ∇g≠0\nabla g\ne0. The gradient of ff must annihilate tangent directions to the constraint. Here (2x+y,x+2y)=λ(1,1)(2x+y,x+2y)=\lambda(1,1) gives the same point and λ=3/2\lambda=3/2.

Check sufficiency and the domain​

Multiplier equations give candidates, not automatic extrema. For second-order constrained tests, use the Hessian of f−λgf-\lambda g restricted to tangent directions and the appropriate regularity hypotheses. With several constraints, their gradients must be independent.

On a compact feasible set, continuity ensures global extrema; inspect boundary and singular points too. On a noncompact constraint, a local test alone does not establish a global optimum. Our explicit completed square supplies the global conclusion for this line.

Basic practice​

Prepare​

Reuse Q and its Hessian. Compare the whole plane with the line x + y = 1.

Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.

Predict​

Can a constrained minimum have a nonzero full gradient?

Execute​

  1. Solve the free stationary equations and classify the origin.
  2. Minimize Q on x + y = 1 by substitution.
  3. Solve the Lagrange equations and compare the candidate, value, and multiplier.

Observe and record​

Case or quantityPredictionExact result or argumentError or software check
Unconstrained minimum
Line-constrained minimum
Multiplier and tangent check

Check after working: The free minimum is 0 at the origin; the constrained minimum is 3/4 at (1/2, 1/2), with λ = 3/2. The constrained gradient is nonzero but perpendicular to the allowed line.

Optional extension​

Find the minimum and maximum of Q on the unit circle using the eigen-directions of its Hessian.

Keep and continue​

Keep the tangent-direction interpretation. Next, solve the nonlinear system F = 0 by Jacobian corrections.

Previous: The Hessian and Taylor Expansion

Next: Newton’s Method in Several Variables