An equality such as describes which choices are allowed. A quadratic expression describes how those choices are compared. These are different parts of an optimization problem: solving derivative equations is useful only after the feasible set and the objective have both been specified.
We study a hypothetical mathematical model. The symbols and are real weights and the objective is a stated quadratic criterion. No empirical interpretation of its coefficients is needed for the calculations below.
1. State the feasible set before differentiating
Consider
With only the equality constraint, the feasible set is the entire line
For example, satisfies the equality. If negative weights are forbidden, the problem has the additional assumptions and . Since , its feasible set becomes the closed segment
A minimum over the line and a minimum over this segment are different claims. An equality-constrained candidate may fail an additional inequality constraint; we must check it rather than assume feasibility.
2. Derive the candidate by eliminating one variable
Every feasible point has exactly one representation . Substitution therefore loses no feasible choices:
Here . Its only stationary point is , so . Both weights are positive and sum to one.
The derivative locates a candidate. The next step establishes why it is a global minimum and why no other feasible point attains the same value.
3. Prove global optimality with an exact square
Completing the square gives the identity
The coefficient 11 is positive. Consequently for every real , with equality exactly when . Thus is the unique global minimizer over , and the minimum value is .
Because this point also belongs to , the same point and value solve the nonnegative-weight problem. The endpoints are a useful independent check:
both larger than . The square identity is stronger than checking only endpoints: it compares the candidate with every point of the entire feasible line.
For a more restrictive interval , the same identity says to choose the point of nearest to , then set . If the interval excludes , the minimizer moves to a boundary. This conclusion follows from the square; it does not require pretending a boundary point is stationary.
4. Reconcile the multiplier and matrix calculations
Using the convention
the multiplier equations are
Subtracting the first two equations gives . Hence , and the budget gives . We recover , and . These equations agree with substitution. Their agreement does not replace the preceding global comparison.
For the same criterion is
The two off-diagonal entries contribute . Because is symmetric, , explaining the multiplier equations in matrix notation. Calling this quadratic a variance model would require separate probabilistic assumptions about ; algebra alone supplies no such interpretation.
Exercises
P01. Add the constraint to the stated model. Find the minimizing weights and the minimum value. Explain why the equality-only stationary point is no longer feasible.
P02. Expand for the displayed matrix. Explain why putting 2 in both off-diagonal entries would give a different objective.
P03. Instead require , with . Find the minimizing weights and value by using distance from .
P04. Replace the objective by but keep the entire feasible line . Does the same stationary point minimize the new objective? Explain both what happens there and whether a global minimum exists.
Full solutions
P01. Since , the equality-only candidate is excluded. On , the point nearest to is . Therefore , and direct substitution gives
This boundary point need not satisfy ; indeed .
P02. Multiplication gives . With both off-diagonal entries equal to 2, the cross terms would sum to , changing the criterion.
P03. Since , the nearest feasible point is . Thus , and
P04. Along the line, . The same point is now the unique global maximum. As , the objective tends to , so a global minimum does not exist on that line. Stationary equations alone therefore cannot identify the type of optimum.
Further study
Concept lensGeometric
The minimizer is where the budget line touches a level ellipse
Because has positive diagonal entries and , every level set with is an ellipse centred at the origin, and these ellipses grow with . Minimizing on the line means finding the smallest ellipse that still meets the line. At that level the line is tangent to the ellipse, so the normal is parallel to the line's normal . At ,
which is exactly the multiplier equation of Section 4 with ; the touching ellipse is . The square identity of Section 3 is the algebraic statement that the line meets every smaller ellipse nowhere.
Counterexample mode
The multiplier equations can locate a maximum
The equations of Section 4 locate stationary points of along the line, not minima. Replace by , so that . Substitution as in Section 2 gives
The stationary point solves the multiplier equations, but it is the global maximum on , with value , and is unbounded below. What decides the type is the coefficient of in , which equals for the feasible direction : here , while for the original model . That coefficient is the in the square identity of Section 3.
Worked example 18.1.1
(Changing the budget level and reading the multiplier)
Keep but require for a real number . Substituting as in Section 2,
The unique minimizer is , and the minimum value is ; recovers Section 3. The multiplier equation gives , and
With the convention , the multiplier is the rate at which the best attainable value changes with the budget level.
Worked example 18.1.2
(A negative off-diagonal entry)
Let , so , with . Substitution gives
The coefficient with is positive, so is the unique global minimizer on , with value ; both weights are positive, so it also solves the problem on . Directly, . The multiplier check gives , so .
Worked example 18.1.3
(Three weights by the same exact square)
Minimize subject to . Expanding and using the constraint,
So on the feasible plane , with equality exactly at . As in Section 3, a single identity proves global optimality and uniqueness, without first eliminating a variable.
Quick check
(Minimize subject to , and prove that the minimizer is global.)
Substitute and complete the square.
Solution · Answer
. The coefficient is positive, so with equality exactly at . The unique global minimizer is and the minimum is .
Quick check
(For the model with budget , find the minimizer, the minimum value and the multiplier.)
Use the scaling found in the budget-level example.
Solution · Answer
With , the minimizer is , the minimum is , and the multiplier is . Directly, and .
Quick check
(With on the segment , find all minimizers and the minimum value.)
Use the formula for from the counterexample and compare the endpoints.
Solution · Answer
On , decreases with the distance from , so its minimum occurs at the endpoints: . The minimizers are and , with value . The stationary point is the maximum on the segment.