Linear Algebra
17.68 min read

Multiple Equality Constraints

What if we have two constraints g1(x)=k1g_1(\mathbf{x}) = k_1 and g2(x)=k2g_2(\mathbf{x}) = k_2? The feasible set is the intersection S1S2S_1 \cap S_2 — a "hyper-hyper-surface" of dimension n2n-2 (a curve when n=3n=3).

The tangent space of this intersection is Tx0(S1S2)=Null(Dg1)Null(Dg2)=Null(Dg)T_{\mathbf{x}_0}(S_1 \cap S_2) = \text{Null}(Dg_1) \cap \text{Null}(Dg_2) = \text{Null}(D\mathbf{g}), where DgD\mathbf{g} is the 2×n2 \times n constraint Jacobian.

The necessary condition for a constrained minimum still requires Null(Dg)Null(Df)\text{Null}(D\mathbf{g}) \subseteq \text{Null}(Df). By linear algebra, this now means DfDf is a linear combination of the rows of DgD\mathbf{g}: Df(x0)=λ1Dg1(x0)+λ2Dg2(x0)Df(\mathbf{x}_0) = \lambda_1 Dg_1(\mathbf{x}_0) + \lambda_2 Dg_2(\mathbf{x}_0).

In general with mm constraints, the Lagrange condition is λtDg(x0)=Df(x0)\boldsymbol{\lambda}^t D\mathbf{g}(\mathbf{x}_0) = Df(\mathbf{x}_0) where λRm\boldsymbol{\lambda} \in \mathbb{R}^m is a vector of Lagrange multipliers.

Formal View

Theorem 17.3 — Lagrange Theorem (Multiple Constraints)
Let f,g1,,gmC1f, g_1, \ldots, g_m \in C^1 and g:RnRm\mathbf{g}: \mathbb{R}^n \to \mathbb{R}^m. Suppose x0\mathbf{x}_0 is a constrained minimum (so g(x0)=k\mathbf{g}(\mathbf{x}_0) = \mathbf{k}) and Rank(Dg(x0))=m\text{Rank}(D\mathbf{g}(\mathbf{x}_0)) = m. Then there exists λRm\boldsymbol{\lambda} \in \mathbb{R}^m such that:
λtDg(x0)=Df(x0)\boldsymbol{\lambda}^t D\mathbf{g}(\mathbf{x}_0) = Df(\mathbf{x}_0)

Why This Matters

Real problems often have multiple constraints. The vector Lagrange condition handles all of them uniformly.

  • Mechanics: multiple conservation laws (energy, momentum, angular momentum) as constraints
  • Chemical reactions: multiple stoichiometric constraints
  • Machine learning: training with multiple fairness or budget constraints
  • Spectral decomposition proof (next): two constraints (quadratic form + norm)

Quiz

Question 1

With two constraints in R3\mathbb{R}^3, the feasible set has dimension:

Question 2

With two constraints g1,g2g_1, g_2, the Lagrange condition is:

Question 3

With mm constraints, there are mm Lagrange multipliers.

Question 4

For multiple constraints g(x)=k\mathbf{g}(\mathbf{x}) = \mathbf{k}, the tangent space Tx0CT_{\mathbf{x}_0} C equals:

Common Mistakes

  • Using f=λg1=λg2\nabla f = \lambda \nabla g_1 = \lambda \nabla g_2 (same λ\lambda) — each constraint gets its own multiplier.
  • Forgetting that the rank condition Rank(Dg)=m\text{Rank}(D\mathbf{g}) = m is needed for the theorem to apply.