Positive-definite quadratic criteria with an equality budget
Positive-definite quadratic criteria with an equality budget
§18.3Estimated reading time: 8 min
Quadratic forms and a global constrained formula
If A is a real symmetric matrix with orthogonal diagonalization A=QDQT, where Q is orthogonal and D=diag(λ1,…,λn), and z=QTx, then xTAx=zTDz=i∑λizi2. Consequently A is positive definite exactly when every eigenvalue is positive. Negative eigenvalues produce negative directions, and zero eigenvalues produce nontrivial flat directions. This general-size criterion extends the two-variable determinant test for 2×2 symmetric matrices.
Worked example: diagonalize a quadratic criterion. For Σ=(5222), eigenvectors (2,1)T and (1,−2)T have eigenvalues six and one. Dividing by 5 gives an orthogonal matrix Q. In its coordinates,
wTΣw=6z12+z22,
proving positive definiteness and exposing unequal curvature in perpendicular directions.
For a symmetric positive-definite Σ and constraint 1Tw=1, multiplier equations yield
w∗=1TΣ−11Σ−11,V∗=1TΣ−111.
The denominator is positive because the inverse is positive definite. To prove global optimality, write another feasible vector as w∗+h with 1Th=0. The cross term vanishes since Σw∗ is a multiple of 1, leaving V(w∗+h)=V∗+hTΣh>V∗ for h=0. Nonnegative-weight constraints, if present, still need checking separately; the equality-only formula can produce negative components in other examples.
Exercises
P01. Verify the eigenvectors and diagonal quadratic expression for Σ in the worked example above.
P02. Use the equality-constrained formula for Σ=diag(2,8) and calculate the minimizing two weights and value. Verify directly by substituting w2=1−w1.
Full solutions
P01.Σ(2,1)T=(12,6)T=6(2,1)T and Σ(1,−2)T=(1,−2)T. The normalized vectors are orthogonal, so QTΣQ=diag(6,1) and the quadratic becomes 6z12+z22.
P02.Σ−11=(1/2,1/8)T has sum 5/8, so weights are (4/5,1/5) and value 8/5. Directly, 2x2+8(1−x)2=10(x−4/5)2+8/5, proving the same unique global minimum.
Further study
Worked example 18.3.1
(The constrained formula for a non-diagonal criterion)
Let Σ=(2113). Its trace 5 and determinant 5 are positive, so both eigenvalues are positive and Σ is positive definite by the criterion above. Its inverse is Σ−1=51(3−1−12), so
Σ−11=51(12),1TΣ−11=53,w∗=(1/32/3),V∗=35.
Directly, w∗TΣw∗=2⋅94+2⋅92+3⋅91=915=35. The key fact in the optimality proof also checks: Σw∗=(34+31,32+1)T=351=V∗1.
Worked example 18.3.2
(The equality-only formula can give a negative weight)
Let Σ=(1225), with trace 6 and determinant 1, so it is positive definite. Here Σ−1=(5−2−21), Σ−11=(3,−1)T and 1TΣ−11=2, so
w∗=(23,−21)T,V∗=21.
Check: 49+4⋅23⋅(−21)+5⋅41=49−3+45=21. If nonnegative weights are also required, as the note warns, this point is excluded. On the segment w=(x,1−x)T with 0≤x≤1, the objective is x2+4x(1−x)+5(1−x)2=2x2−6x+5=2(x−23)2+21, which decreases on [0,1], so the constrained minimum is at x=1: weights (1,0) and value 1.
Worked example 18.3.3
(Three weights with a diagonal criterion)
Let Σ=diag(1,2,4). Then Σ−11=(1,21,41)T and 1TΣ−11=47, so
w∗=(74,72,71)T,V∗=74.
Directly, w∗TΣw∗=4916+2⋅494+4⋅491=4928=74. Each weight is proportional to the reciprocal of its diagonal entry, so the coordinate with the largest curvature receives the smallest weight. All weights are positive here, so a nonnegativity requirement would change nothing.
Proof X-ray
Two separate uses of positive definiteness
The formula and its optimality proof use positive definiteness twice, for different purposes. First, it makes Σ invertible and makes Σ−1 positive definite, so that 1TΣ−11>0 and w∗ is defined. Second, after writing a feasible vector as w∗+h with 1Th=0, the cross term 2hTΣw∗ vanishes because Σw∗=V∗1, and the remaining term hTΣh is positive for h=0. Only directions with 1Th=0 appear in the second use, so strictness needs positivity of hTΣh on that hyperplane alone; the first use, through Σ−1, is what requires the full hypothesis.
Counterexample mode
A semidefinite criterion breaks both the formula and uniqueness
Let Σ=(1111), with eigenvalues 2 and 0: positive semidefinite but not positive definite. Then detΣ=0, so Σ−1 does not exist and the formula for w∗ cannot be used. Worse, wTΣw=(w1+w2)2=1 at every point of the budget line 1Tw=1, so every feasible vector is a minimizer. The zero eigenvalue has eigenvector (1,−1)T, which satisfies 1Th=0: it is a flat direction lying inside the feasible line, exactly the kind of direction the strict inequality hTΣh>0 in the optimality proof excludes.
Quick check
(Use the constrained formula for Σ=diag(3,6), and verify the result by substituting w2=1−w1.)
Compute Σ−11 and its coordinate sum.
Solution · Answer
Σ−11=(31,61)T has sum 21, so w∗=(32,31)T and V∗=2. Directly, 3x2+6(1−x)2=9x2−12x+6=9(x−32)2+2, with unique minimum 2 at x=32.
Quick check
(Is Σ=(1334) positive definite? If not, exhibit a direction with negative quadratic value.)
The determinant is the product of the eigenvalues.
Solution · Answer
detΣ=4−9=−5<0, so the two eigenvalues have opposite signs, and Σ is not positive definite. For h=(1,−1)T, hTΣh=1−6+4=−1<0. Since this h also satisfies 1Th=0, the objective (w+th)TΣ(w+th) tends to −∞ as t→∞ from any feasible w, so it has no minimum on the budget line.
Quick check
(Explain why Σw∗=V∗1 for every symmetric positive-definite Σ, and check it for Σ=diag(2,8) from P02.)
Substitute the formula for w∗.
Solution · Answer
Σw∗=ΣΣ−11/(1TΣ−11)=1/(1TΣ−11)=V∗1. For Σ=diag(2,8), P02 gives w∗=(54,51)T and V∗=58, and indeed Σw∗=(58,58)T.