5  Lagrange Multipliers

Author
Affiliation

Enrico Bertolazzi

University of Trento, Department of Industrial Engineering

In constrained optimization, the goal is to minimize a function f \in C^2(\mathbb{R}^n) (twice continuously differentiable) subject to m equality constraints defined by h_k \in C^2(\mathbb{R}^n). This problem can be formulated as:

\begin{aligned} \text{Minimize:} \qquad & f(\bm{x}) \\ \text{Subject to:} \qquad & h_k(\bm{x}) = 0, \quad k = 1, \dots, m \end{aligned}

This means that we want to find the point \bm{x} that minimizes the objective function f(\bm{x}) while also satisfying the m constraints given by h_k(\bm{x}) = 0 for each k.


The challenging analytical problem of constrained minimization can be simplified using the Lagrange multiplier theorem. The idea is to incorporate the constraints directly into the optimization problem through additional variables called Lagrange multipliers.

Let f be the function to be minimized, and let \bm{h} represent the constraint functions (so that f, \bm{h} \in C^2(\mathbb{R}^n)). If \bm{x}^\star is a local minimum of f that satisfies all the constraints (i.e., \bm{h}(\bm{x}^\star) = \bm{0}), then if \nabla \bm{h}(\bm{x}^\star) has maximum rank, there exist m scalars \lambda_1, \dots, \lambda_m such that:

\nabla f(\bm{x}^\star) = \sum_{k=1}^{m} \lambda_k \nabla h_k(\bm{x}^\star)

This equation indicates that at the optimal point \bm{x}^\star, the gradient of the objective function f is a linear combination of the gradients of the constraint functions h_k. The scalars \lambda_k are called Lagrange multipliers.

Lagrangian Function

The problem is transformed into a simpler form using the Lagrangian function \mathcal{L}, which incorporates both the objective function and the constraints:

\mathcal{L}(\bm{x}, \bm{\lambda}) = f(\bm{x}) - \sum_{k=1}^{m} \lambda_k h_k(\bm{x})

Here, \bm{\lambda} = (\lambda_1, \dots, \lambda_m) is the vector of Lagrange multipliers. The goal now is to find stationary points of the Lagrangian \mathcal{L} by solving a system of equations derived from the first-order conditions.

Solving the Constrained Minimization Problem

To solve the problem, we need to find the points \bm{x}^\star that satisfy the Lagrange multiplier conditions. This involves solving the following system of equations:

\left\{ \begin{aligned} \nabla_{\bm{x}} \mathcal{L}(\bm{x}, \bm{\lambda}) & = \nabla f(\bm{x}) - \sum_{k=1}^{m} \lambda_k \nabla h_k(\bm{x}) = \bm{0} \\ \nabla_{\bm{\lambda}} \mathcal{L}(\bm{x}, \bm{\lambda}) & = -\bm{h}(\bm{x}) = \bm{0} \end{aligned} \right.

The first equation corresponds to finding points where the gradient of the Lagrangian \mathcal{L} with respect to \bm{x} is zero. The second equation ensures that the constraints h_k(\bm{x}) = 0 are satisfied.

All points \bm{x}^\star that solve this system are candidates for being local minima, maxima, or saddle points. Since we are searching for stationary points of the Lagrangian, further analysis is required to determine whether these points are indeed minima or maxima.

Second-Order Conditions

To determine whether a candidate point \bm{x}^\star is a local minimum in a constrained optimization problem, we must examine the second-order conditions. These conditions involve the Hessian matrix of the Lagrangian function. The second-order condition checks whether this Hessian is positive definite when restricted to the null space of the Jacobian of the constraints, \nabla \bm{h}(\bm{x}). This is necessary to ensure that the second derivative of the objective function along feasible directions is positive, which would confirm the existence of a local minimum.

Sufficient Condition

Mathematically, the second-order condition is expressed as:

\bm{z}^T \nabla_{\bm{x}}^2 \mathcal{L}(\bm{x}^\star, \bm{\lambda}) \bm{z} > 0 \quad \text{for all} \, \bm{z} \in \ker\{\nabla \bm{h}(\bm{x}^\star)\}

Here:

  • \bm{z} is any vector in the null space (or kernel) of the constraint Jacobian, \ker\{\nabla \bm{h}(\bm{x}^\star)\}.

  • The condition means that in the directions allowed by the constraints, the Hessian of the Lagrangian should be positive.

This condition ensures that the Lagrangian’s second derivative is positive in the feasible directions, confirming that the point \bm{x}^\star is a local minimum rather than a maximum or saddle point.

Necessary Condition

For \bm{x}^\star to be a local minimum, a necessary second-order condition is that the Hessian \nabla_{\bm{x}}^2 \mathcal{L}(\bm{x}^\star, \bm{\lambda}) is semi-positive definite in the feasible directions, which implies:

\bm{z}^T \nabla_{\bm{x}}^2 \mathcal{L}(\bm{x}^\star, \bm{\lambda}) \bm{z} \geq 0 \quad \forall \, \bm{z} \in \ker\{\nabla \bm{h}(\bm{x}^\star)\}

In other words, the Hessian of the Lagrangian must not have negative curvature along any direction that lies in the kernel of the constraint gradients. This is a necessary condition but not sufficient to confirm a local minimum.

Example 5.1 (constrained minimization problem) Let’s consider the problem on where we want to minimize the function f:\Bbb{R}^2\rightarrow R using the constraint h defined as

f(x,y) = \mathrm{e}^{x^2-y^2},\qquad h(x,y) = x - y^2

In order to solve this problem we at first need to build the lagrangian (having only one constraint \bm{\lambda} reduces to a scalar) and so

\mathcal{L}(x,y,\lambda) = \mathrm{e}^{x^2-y^2} - \lambda \big(x-y^2\big)

We now need to compute the stationary points of the lagrangian and this means solving the following non linear system of equations:

\left\{ \begin{aligned} \nabla_x \mathcal{L}(x,y,\lambda) &= 2 x \mathrm{e}^{x^2-y^2} - \lambda = 0 \\ \nabla_y \mathcal{L}(x,y,\lambda) &= -2 y \mathrm{e}^{x^2-y^2} + 2 \lambda y = 0 \\ \nabla_\lambda \mathcal{L}(x,y,\lambda) &= -x + y^2 = 0 \end{aligned} \right.

\begin{aligned} \implies \quad & \big(x,y,\lambda\big)=\big(0,0,0\big), \\ \implies \quad & \big(x,y,\lambda\big)= \left(\frac{1}{2}, \frac{1}{\sqrt{2}}, \mathrm{e}^{-\frac{1}{4}}\right), \\ \implies \quad & \big(x,y,\lambda\big)= \left(\frac{1}{2}, -\frac{1}{\sqrt{2}}, \mathrm{e}^{-\frac{1}{4}}\right) \end{aligned}

To determine now it this points are local maximum or minimum we have to firstly define the general gradient of the constraint map and then the hessian of the Lagrangian in respect to the variable \bm{x} =(x,y):

\begin{aligned} \nabla h(x,y) & = (1,-2y) \\ \nabla^2_{(x,y)} \mathcal{L} & = \begin{bmatrix} (4x^2+2)\mathrm{e}^{x^2-y^2} & -4xy \mathrm{e}^{x^2-y^2} \\ -4xy \mathrm{e}^{x^2-y^2} & (4y^2-2)\mathrm{e}^{x^2-y^2} + 2\lambda \end{bmatrix} \end{aligned}

Now we have to check each stationary point independently:

  1. when x=y=\lambda = 0 we have that \nabla h = (1,0) while \nabla^2_{(x,y)} \mathcal{L} = \begin{bmatrix} 2 & 0 \\ 0 & -2 \end{bmatrix} By computing the null space of the vector (1,0) we can see that all the vectors in the form (0,\alpha) match the definition; we can now check if the point is of maximum/minimum be determining if the matrix \nabla^2_{(x,y)}\mathcal{L} is positive or negative defined: \big(0 \ \ \alpha\big) \begin{bmatrix} 2 & 0 \\ 0 & -2 \end{bmatrix} \begin{pmatrix} 0 \\ \alpha \end{pmatrix} = -2\alpha^2 \leq 0 for all \alpha\in\Bbb{R}. The hessian matrix is negative defined and so the point (x,y) = (0,0) is a local maximum.

  2. evaluating for the second point x = \frac{1}{2},\quad y = \frac{1}{\sqrt{2}}, \quad\textrm{and}\quad \lambda = \mathrm{e}^{-\frac{1}{4}} we can compute the gradient \nabla h = (1, - \sqrt 2) of the constraint map that determines a null space of the form (\alpha \sqrt{2},\alpha). Given the hessian matrix of the transform we can see that it’s positive defined, in fact \mathrm{e}^{-\frac 1 4} \begin{pmatrix} \alpha \sqrt 2 & \alpha \end{pmatrix} \begin{bmatrix} 3 & -\sqrt 2 \\ -\sqrt 2 & 2 \end{bmatrix} \begin{pmatrix} \alpha \sqrt 2 \\ \alpha \end{pmatrix} = 4 \mathrm{e}^{-\frac 12} \alpha^2 > 0 for all \alpha \in \Bbb{R}. This means that the point is a local minimum.

  3. considering instead the last point x = \frac{1}{2},\quad y = - \frac{1}{\sqrt 2} \quad\textrm{and}\quad \lambda = \mathrm{e}^{-\frac{1}{4}} we have a similar gradient \delta h = (1,\sqrt 2) that determines a kernel in the form (\alpha \sqrt 2,-\alpha). Evaluating the hessian on the null space base we can see that the matrix is positive defined, in fact \mathrm{e}^{-\frac{1}{4}} \begin{pmatrix} \alpha \sqrt 2 & -\alpha \end{pmatrix} \begin{bmatrix} 3 & -\sqrt 2 \\ -\sqrt 2 & 2 \end{bmatrix} \begin{pmatrix} \alpha \sqrt 2 \\ -\alpha \end{pmatrix} = 4 \mathrm{e}^{-\frac 12} \alpha^2 > 0 for all \alpha \in \Bbb{R}

We can see that the both points

\left(\frac 12, \frac 1{\sqrt 2}\right) \quad\textrm{and}\quad \left(\frac 12, -\frac 1{\sqrt 2}\right)

are local minimum and they are both also global minimum because we can see that

f\left(\frac{1}{2}, \frac 1{\sqrt{2}}\right) = f\left(\frac{1}{2}, - \frac 1{\sqrt{2}}\right) = \mathrm{e}^{-\frac{1}{4}}.

Example 5.2 (determination of the non-linear system) Given the problem

\begin{aligned} \textrm{minimize:} \qquad & f(x,y,z) = x - y + z^2 \\ \textrm{subject to:} \qquad & h_1(x,y,z) = x^2 + y^2 - 2 = 0 \\ & h_2(x,y,z) = x+z-1 = 0 \end{aligned}

the solution can be computed by firstly determining the lagrangian \mathcal{L} = f - \lambda_1 h_1 - \lambda_2 h_2

of the problem that’s

\mathcal{L}(x,y,z, \lambda_1, \lambda_2) = x-y+z^2 - \lambda_1\big(x^2+y^2-2\big) - \lambda_2\big(x+z-1\big)

The first order necessary condition related to the Lagrange multipliers states that a point, to be a minimum, must be a stationary one and so the candidate minimum points for this problem can be computed by solving the following system of non-linear equation:

\begin{cases} 1 - 2\lambda_1 x - \lambda_2 = 0 & : \dfrac{\partial}{\partial x}\mathcal{L} \\[1em] -1 - 2\lambda_1 y = 0 & : \dfrac{\partial}{\partial y} \mathcal{L} \\[1em] 2z - \lambda_2 = 0 & : \dfrac{\partial}{\partial z} \mathcal{L} \\[1em] x^2 + y^2 = 2 & : -\dfrac{\partial}{\partial \lambda_1} \mathcal{L} =h_1 \\[1em] x + z = 1 & : -\dfrac{\partial}{\partial \lambda_2}\mathcal{L} = h_2 \end{cases}

5.1 Summary of constrained minimization with proofs

Consider the following constrained optimization problem:

\begin{aligned} \text{Minimize:}\qquad & f(\bm{x}) \\ \text{Subject to:}\qquad & h_i(\bm{x}) = 0 \quad \text{for} \quad i = 1,2,\ldots,m \end{aligned} \tag{5.1}

NoteSolution Algorithm
  1. Form the Lagrangian: Define the Lagrangian function by incorporating the constraints into the objective function:

    \mathcal{L}(\bm{x},\bm{\lambda}) = f(\bm{x}) - \sum_{k=1}^{m} \lambda_k h_k(\bm{x}) where \lambda_k are the Lagrange multipliers.

  2. Solve the first order conditions: Find the critical points by solving the system of equations given by the gradients of the Lagrangian:

    \nabla_{\bm{x}}\mathcal{L}(\bm{x}, \bm{\lambda}) = \bm{0}^T \quad \text{and} \quad \bm{h}(\bm{x}) = \bm{0} This nonlinear system must be solved simultaneously for \bm{x} and \bm{\lambda}.

  3. Check linear independence of constraints: For each solution (\bm{x}^\star, \bm{\lambda}^\star), compute the Jacobian matrix \nabla \bm{h}(\bm{x}^\star) of the constraint functions. Verify that the rows of this matrix are linearly independent, meaning the matrix has full rank.

  4. Calculate the kernel of the constraint Jacobian: Compute the matrix \bm{K}, which forms the null space (kernel) of \nabla \bm{h}(\bm{x}^\star). This satisfies:

    \nabla \bm{h}(\bm{x}^\star) \bm{K} = \bm{0}

  5. Compute the reduced Hessian: The reduced Hessian \bm{H} is a key matrix for analyzing the second-order conditions. It is defined as:

    \bm{H} = \bm{K}^T \nabla_{\bm{x}}^2 \mathcal{L}(\bm{x}^\star, \bm{\lambda}^\star) \bm{K}

  6. Verify second-order conditions:

    • Necessary condition: \bm{H} must be semi-positive definite for \bm{x}^\star to be a candidate for a local minimum.
    • Sufficient condition: \bm{H} is positive definite, ensuring that \bm{x}^\star is a strict local minimum.

The sufficient condition for optimality states that if the Hessian matrix, \bm{H}, is positive definite at the point (\bm{x}^\star, \bm{\lambda}^\star), then \bm{x}^\star is a strict local minimizer of the original constrained problem.

The following theorem formalizes this sufficient condition for optimality.

Theorem 5.1 (of Lagrange Multipliers) Let f \in C^2(\mathbb{R}^n, \mathbb{R}) and \bm{h} \in C^2(\mathbb{R}^n, \mathbb{R}^m) with \bm{x}^\star be a local minimum of problem Equation 5.1, i.e.,

  • f(\bm{x}^\star) is a minimum
  • subject to \bm{h}(\bm{x}^\star) = \bm{0}.
  • and \nabla \bm{h}(\bm{x}^\star) is full rank

and define the Lagrangian

\mathcal{L}(\bm{x}^\star, \bm{\lambda}) = f(\bm{x}^\star) - \sum_{k=1}^m \lambda_k h_k(\bm{x}^\star)

then there exist scalars \lambda_k, k = 1, \dots, m, such that:

  1. first order necessary condition: \nabla_x \mathcal{L}(\bm{x}^\star, \bm{\lambda}) = \nabla f(\bm{x}^\star) - \sum_{k=1}^m \lambda_k \nabla h_k(\bm{x}^\star) = 0. \tag{A}

  2. second order condition:
    for all \bm{z} \in \mathbb{R}^n such that \nabla \bm{h}(\bm{x}^\star)\bm{z} = \bm{0} and \bm{z}\neq \bm{0}, it holds that:

    • necessary: \bm{z}^T \left( \nabla^2 f(\bm{x}^\star) - \sum_{k=1}^m \lambda_k \nabla^2 h_k(\bm{x}^\star) \right) \bm{z} \geq 0, \tag{B}

      i.e., the matrix \nabla^2_x \big( f(\bm{x}^\star) - \bm{\lambda} \cdot \bm{h}(\bm{x}^\star) \big) is positive semi-definite in the kernel of \nabla \bm{h}(\bm{x}^\star).

    • sufficient:

      \bm{z}^T \left( \nabla^2 f(\bm{x}^\star) - \sum_{k=1}^m \lambda_k \nabla^2 h_k(\bm{x}^\star) \right) \bm{z} \geq \epsilon \|\bm{z}\|^2>0, \tag{C}

      i.e., the matrix \nabla^2_x \big( f(\bm{x}^\star) - \bm{\lambda} \cdot \bm{h}(\bm{x}^\star) \big) is positive definite in the kernel of \nabla \bm{h}(\bm{x}^\star).

Let \bm{x}^\star be a local minimum. Then, there exists \epsilon > 0 such that

f(\bm{x}^\star) \leq f(\bm{x}), \quad \text{for all } \bm{x} \in \mathcal{B} \text{ with } \bm{h}(\bm{x}) = \bm{0}, \tag{5.2}

where

\mathcal{B} = \{ \bm{x} \mid \|\bm{x} - \bm{x}^\star\| \leq \epsilon \}. \tag{5.3}

We define a sequence of functions:

f_k(\bm{x}) = f(\bm{x}) + k \|\bm{h}(\bm{x})\|^2 + \alpha \|\bm{x} - \bm{x}^\star\|^2, \quad \alpha > 0, \tag{5.4}

with the corresponding sequence of unconstrained local minima \bm{x}_k \in \mathcal{B}, i.e.,

\bm{x}_k = \mathop{\textrm{argmin}}_{\bm{x} \in \mathcal{B}} f_k(\bm{x}).

Since \bm{x}_k is contained within the compact ball \mathcal{B}, a convergent subsequence \bm{x}_{k_j} \to \overline{\bm{x}} \in \mathcal{B} exists by compactness.

The rest of the proof to verify that \bar{\bm{x}}=\bm{x}^\star and it a minimum.

Step 1:

\bm{h}(\bar{\bm{x}})=\bm{0}.

Notice that the sequence x_k satisfy f_k(\bm{x}_k)\leq f(\bm{x}^\star), in fact

f_k(\bm{x}_k) \leq f_k(\bm{x}^\star) = f(\bm{x}^\star)+k\|\bm{h}(\bm{x}^\star)\|^2+\alpha \|\bm{x}^\star-\bm{x}^\star\|^2 = f(\bm{x}^\star).

and by definition in Equation 5.4 we have

\begin{aligned} k_j\|\bm{h}(\bm{x}_{k_j})\|^2+\alpha \|\bm{x}_{k_j}-\bm{x}^\star\|^2 &\leq f(\bm{x}^\star)-f(\bm{x}_{k_j}) \\ &\leq f(\bm{x}^\star)-\min_{\bm{x}\in B}f(\bm{x}) = C < +\infty \end{aligned} \tag{5.5}

so that

\begin{aligned} \lim_{j\to\infty}\|\bm{h}(\bm{x}_{k_j})\|&=0 \\ &\Downarrow\\ \left\|\bm{h}\left(\lim_{j\to\infty}\bm{x}_{k_j}\right)\right\|&= \left\|\bm{h}\left(\bar{\bm{x}}\right)\right\| =0 \\ &\Downarrow\\ \bm{h}(\bar{\bm{x}})&=\bm{0}. \end{aligned}

Step 2:

\bar{\bm{x}}=\bm{x}^\star.

From equation Equation 5.5, we have:

\begin{aligned} \alpha \|\bm{x}_{k_j} - \bm{x}^\star\|^2 & \leq f(\bm{x}^\star) - f(\bm{x}_{k_j}) - k_j \|\bm{h}(\bm{x}_{k_j})\|^2 \\ & \leq f(\bm{x}^\star) - f(\bm{x}_{k_j}). \end{aligned}

Taking the limit as j approaches infinity gives us:

\begin{aligned} \alpha \|\lim_{j \to \infty} \bm{x}_{k_j} - \bm{x}^\star\|^2 & \leq \alpha \|\bar{\bm{x}} - \bm{x}^\star\|^2 \\ & \leq f(\bm{x}^\star) - \lim_{j \to \infty} f(\bm{x}_{k_j}) \\ & \leq f(\bm{x}^\star) - f(\bar{\bm{x}}). \end{aligned}

Given that \|\bm{h}(\bar{\bm{x}})\| = 0, we can infer from equation Equation 5.2 that:

f(\bm{x}^\star) \leq f(\bar{\bm{x}}).

Thus, we can combine the inequalities:

\alpha \|\bar{\bm{x}} - \bm{x}^\star\|^2 \leq f(\bm{x}^\star) - f(\bar{\bm{x}}) \leq 0.

This implies that:

\bar{\bm{x}} = \bm{x}^\star.

Step 3:

Build multiplier.

Since \bm{x}_{k_j} are unconstrained local minima for f_{k_j}(\bm{x}), it follows that:

\nabla f_{k_j}(\bm{x}_{k_j}) = \nabla f(\bm{x}_{k_j}) + k_j \nabla \|\bm{h}(\bm{x}_{k_j})\|^2 + \alpha \nabla \|\bm{x}_{k_j} - \bm{x}^\star\|^2 = \bm{0}.

Recalling the gradient identities:

\begin{aligned} \nabla \|\bm{x}\|^2 &= \nabla (\bm{x} \cdot \bm{x}) = 2\bm{x}^T,\\ \nabla \|\bm{h}(\bm{x})\|^2 &= \nabla (\bm{h}(\bm{x}) \cdot \bm{h}(\bm{x})) = 2\bm{h}(\bm{x})^T\nabla \bm{h}(\bm{x}), \end{aligned}

we can express the gradient condition as:

\nabla f(\bm{x}_{k_j})^T + 2k_j \nabla \bm{h}(\bm{x}_{k_j})^T \bm{h}(\bm{x}_{k_j}) + 2\alpha (\bm{x}_{k_j} - \bm{x}^\star) = \bm{0}. \tag{5.6}

Next, we left-multiply by \nabla \bm{h}(\bm{x}_{k_j}):

\nabla \bm{h}(\bm{x}_{k_j}) \left[\nabla f(\bm{x}_{k_j})^T + 2\alpha (\bm{x}_{k_j} - \bm{x}^\star)\right] + 2k_j \nabla \bm{h}(\bm{x}_{k_j}) \nabla \bm{h}(\bm{x}_{k_j})^T \bm{h}(\bm{x}_{k_j}) = \bm{0}.

Since \nabla \bm{h}(\bm{x}^\star) \in \mathbb{R}^{m\times n} is full rank for sufficiently large j, by continuity, \nabla \bm{h}(\bm{x}_{k_j}) is also full rank. Therefore, the term \nabla \bm{h}(\bm{x}_{k_j})\nabla \bm{h}(\bm{x}_{k_j})^T is nonsingular in \mathbb{R}^{m\times m}.

This leads us to:

2k_j \bm{h}(\bm{x}_{k_j}) = -\left(\nabla \bm{h}(\bm{x}_{k_j})\nabla \bm{h}(\bm{x}_{k_j})^T\right)^{-1} \nabla \bm{h}(\bm{x}_{k_j}) \left[\nabla f(\bm{x}_{k_j})^T + 2\alpha (\bm{x}_{k_j}-\bm{x}^\star)\right].

Taking the limit as j approaches infinity, we obtain:

\lim_{j\to\infty} 2k_j \bm{h}(\bm{x}_{k_j}) = -\left(\nabla \bm{h}(\bm{x}^\star)\nabla \bm{h}(\bm{x}^\star)^T\right)^{-1} \nabla \bm{h}(\bm{x}^\star)\nabla f(\bm{x}^\star)^T = -\bm{\lambda}. \tag{5.7}

Finally, substituting this limit back into equation Equation 5.6 along with equation Equation 5.7 yields:

\nabla f(\bm{x}^\star) - \nabla \bm{h}(\bm{x}^\star)\bm{\lambda} = \bm{0}. \tag{5.8}

Step 4:

Build a special sequence of \bm{z}_j.

We need to construct a sequence \bm{z}_j \to \bm{z} such that

\nabla \bm{h}(\bm{x}_{k_j}) \bm{z}_j = \bm{0} \tag{5.9}

for all j. To achieve this, we define the sequence \bm{z}_j as the projection of \bm{z} onto the kernel of \nabla \bm{h}(\bm{x}_{k_j}). This is given by:

\bm{z}_j = \bm{z} - \nabla \bm{h}(\bm{x}_{k_j})^T \left[\nabla \bm{h}(\bm{x}_{k_j}) \nabla \bm{h}(\bm{x}_{k_j})^T\right]^{-1} \nabla \bm{h}(\bm{x}_{k_j}) \bm{z}.

To verify that this construction satisfies our requirement, we compute:

\begin{aligned} \nabla \bm{h}(\bm{x}_{k_j}) \bm{z}_j &= \nabla \bm{h}(\bm{x}_{k_j}) \bm{z} - \nabla \bm{h}(\bm{x}_{k_j}) \nabla \bm{h}(\bm{x}_{k_j})^T \left[\nabla \bm{h}(\bm{x}_{k_j}) \nabla \bm{h}(\bm{x}_{k_j})^T\right]^{-1} \nabla \bm{h}(\bm{x}_{k_j}) \bm{z} \\ &= \nabla \bm{h}(\bm{x}_{k_j}) \bm{z} - \nabla \bm{h}(\bm{x}_{k_j}) \bm{z} = \bm{0}. \end{aligned}

Next, we consider the limit as j approaches infinity:

\begin{aligned} \lim_{j\to\infty}\bm{z}_j &= \bm{z} - \lim_{j\to\infty} \nabla \bm{h}(\bm{x}_{k_j})^T \left[\nabla \bm{h}(\bm{x}_{k_j}) \nabla \bm{h}(\bm{x}_{k_j})^T\right]^{-1} \nabla \bm{h}(\bm{x}_{k_j})\bm{z} \\ &= \bm{z} - \nabla \bm{h}(\bm{x}^\star)^T \left[\nabla \bm{h}(\bm{x}^\star) \nabla \bm{h}(\bm{x}^\star)^T\right]^{-1} \nabla \bm{h}(\bm{x}^\star) \bm{z}. \end{aligned}

Thus, if \bm{z} lies in the kernel of \nabla \bm{h}(\bm{x}^\star), i.e., \nabla \bm{h}(\bm{x}^\star)\bm{z}= 0 then the limit \lim_{j\to\infty}\bm{z}_j = \bm{z}.

exists.

Step 5:

Necessary conditions.

Since \bm{x}_{k_j} are unconstrained local minima for f_{k_j}(\bm{x}), it follows that the matrices \nabla^2 f_{k_j}(\bm{x}_{k_j}) are semi-positive definite. This means:

\bm{z}^T \nabla^2 f_{k_j}(\bm{x}_{k_j}) \bm{z} \geq 0, \quad \forall \bm{z} \in \mathbb{R}^n.

Moreover, we can express the Hessian as:

\begin{aligned} \nabla^2 f_{k_j}(\bm{x}_{k_j}) &= \nabla^2 f(\bm{x}_{k_j}) + k_j \nabla^2 \|\bm{h}(\bm{x}_{k_j})\|^2 + 2\alpha \nabla(\bm{x}_{k_j} - \bm{x}^\star) \\ &= \nabla^2 f(\bm{x}_{k_j}) + k_j \nabla^2 \sum_{i=1}^m h_i(\bm{x}_{k_j})^2 + 2\alpha \bm{I}. \end{aligned} \tag{5.10}

Using the identity for the Hessian of the squared function:

\nabla^2 h_i(\bm{x})^2 = \nabla(2h_i(\bm{x}) \nabla h_i(\bm{x})^T) = 2\nabla h_i(\bm{x})^T\nabla h_i(\bm{x}) + 2h_i (\bm{x})\nabla^2 h_i(\bm{x}),

we can substitute into equation Equation 5.10 to obtain:

\begin{aligned} \nabla^2 f_{k_j}(\bm{x}_{k_j}) &= \nabla^2 f(\bm{x}_{k_j}) + 2k_j \sum_{i=1}^m \nabla h_i(\bm{x}_{k_j})^T \nabla h_i(\bm{x}_{k_j}) \\ &\quad + 2k_j \sum_{i=1}^m h_i(\bm{x}_{k_j}) \nabla^2 h_i(\bm{x}_{k_j}) + 2\alpha \bm{I}. \end{aligned} \tag{5.11}

Let \bm{z} \in \mathbb{R}^n, since 0 \leq \bm{z}^T\nabla^2 f_{k_j}(\bm{x}_{k_j})\bm{z}, we can write:

\begin{aligned} 0 \leq \bm{z}^T\nabla^2 f(\bm{x}_{k_j})\bm{z} & + \sum_{i=1}^m (2k_j h_i(\bm{x}_{k_j}))\bm{z}^T\nabla^2 h_i(\bm{x}_{k_j})\bm{z} \\ & + 2k_j\|\nabla\bm{h}(\bm{x}_{k_j})\bm{z}\|^2 + 2\alpha \|\bm{z}\|^2. \end{aligned}

This inequality holds for all \bm{z} \in \mathbb{R}^n, and specifically for any \bm{z}_j of step 4 that salisfy Equation 5.9:

0 \leq \bm{z}_j^T\nabla^2 f(\bm{x}_{k_j})\bm{z}_j + \sum_{i=1}^m (2k_j h_i(\bm{x}_{k_j}))\bm{z}_j^T\nabla^2 h_i(\bm{x}_{k_j})\bm{z}_j + 2\alpha \|\bm{z}_j\|^2.

Taking the limit as j approaches infinity, we apply Equation 5.7:

0 \leq \bm{z}^T\nabla^2 f(\bm{x}^\star)\bm{z} + \sum_{i=1}^m \lambda_i\bm{z}^T\nabla^2 h_i(\bm{x}^\star)\bm{z}+ 2\alpha \|\bm{z}\|^2.

Since \alpha > 0 can be chosen arbitrarily, it follows that:

0 \leq \bm{z}^T\nabla^2 f(\bm{x}^\star)\bm{z}-\sum_{i=1}^m\lambda_i\left[\bm{z}^T\nabla^2 h_i(\bm{x}^\star)\bm{z}\right].

Step 6:

Sufficient conditions.

Using Equation 5.8 and sufficient condition (C) for all \bm{z}\in\ker\nabla\bm{h}(\bm{x}^\star) \begin{aligned} \mathcal{L}(\bm{x}^\star+\bm{z},\bm{\lambda}) & = \mathcal{L}(\bm{x}^\star,\bm{\lambda}) + \cancel{\nabla_x\mathcal{L}(\bm{x}^\star,\bm{\lambda})}\bm{z} + \dfrac{1}{2}\bm{z}^T\nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda})\bm{z} + \mathit{o}\left(\|\bm{z}\|^2\right) \\ &= \mathcal{L}(\bm{x}^\star,\bm{\lambda}) + \dfrac{1}{2}\bm{z}^T\nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda})\bm{z} + \mathit{o}\left(\|\bm{z}\|^2\right) \\ &\geq \mathcal{L}(\bm{x}^\star,\bm{\lambda}) + \dfrac{\epsilon}{2}\|\bm{z}\|^2 + \mathit{o}\left(\|\bm{z}\|^2\right) \\ &\geq \mathcal{L}(\bm{x}^\star,\bm{\lambda}) + \dfrac{\epsilon}{4}\|\bm{z}\|^2, \qquad \textrm{for small $\bm{z}\in\ker\nabla\bm{h}(\bm{x}^\star)$} \end{aligned} \tag{5.12}

moreover

\begin{aligned} f(\delta\bm{x}+\bm{x}^\star) &= f(\delta\bm{x}+\bm{x}^\star)- \sum_{k=1}^m \lambda_k h_k(\delta\bm{x}+\bm{x}^\star) \\ & = f(\bm{x}^\star)+ \nabla f(\bm{x}^\star)\delta\bm{x}+ \dfrac{1}{2}\delta\bm{x}^T\nabla^2 f(\bm{x}^\star)\delta\bm{x} \\ & - \sum_{k=1}^m\lambda_k\left( \cancel{h_i(\bm{x}^\star)}+ \nabla h_i(\bm{x}^\star)\delta\bm{x}+ \dfrac{1}{2}\delta\bm{x}^T\nabla^2 h_i(\bm{x}^\star) \right)+\mathit{o}(\|\delta\bm{x}\|^2) \\ & = f(\bm{x}^\star)+\cancel{\nabla\mathcal{L}(\bm{x}^\star,\bm{\lambda})}\delta\bm{x}+ \dfrac{1}{2}\delta\bm{x}^T\nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda})\delta\bm{x} +\mathit{o}(\|\delta\bm{x}\|^2) \end{aligned}

if \delta\bm{x}=\bm{z}+\mathit{o}(\bm{z}) then

Using Equation 5.12 for all \bm{z}\in\ker\nabla\bm{h}(\bm{x}^\star)

\begin{aligned} f(\delta\bm{x}+\bm{x}^\star) & = f(\bm{x}^\star)+ \dfrac{1}{2}\delta\bm{x}^T\nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda})\delta\bm{x} +\mathit{o}(\|\delta\bm{x}\|^2) \\ &\geq f(\bm{x}^\star) -\dfrac{1}{2} \left|\delta\bm{x}^T\nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda})\delta\bm{x} -\bm{z}^T\nabla_x^2\mathcal{L}(\bm{z}^\star,\bm{\lambda})\bm{z} \right| \\ & +\dfrac{1}{2}\bm{z}^T\nabla_x^2\mathcal{L}(\bm{z}^\star,\bm{\lambda})\bm{z} +\mathit{o}(\|\delta\bm{x}\|^2) \\ &\geq f(\bm{x}^\star) - \dfrac{1}{2}E(\bm{z},\delta\bm{x}) +\dfrac{\epsilon}{4}\|\bm{z}\|^2 +\mathit{o}(\|\delta\bm{x}\|^2) \end{aligned} \tag{5.13}

where

\begin{aligned} E(\bm{z},\delta\bm{x}) & = \left| \delta\bm{x}^T \nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda}) \delta\bm{x} -\bm{z}^T \nabla_x^2\mathcal{L}(\bm{z}^\star,\bm{\lambda}) \bm{z} \right| \\ & \leq \left| \delta\bm{x}^T \nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda}) \delta\bm{x} -\bm{z}^T \nabla_x^2\mathcal{L}(\bm{z}^\star,\bm{\lambda}) \delta\bm{x} \right| \\ & + \left| \bm{z}^T \nabla_x^2\mathcal{L}(\bm{x}^\star,\bm{\lambda}) \delta\bm{x} -\bm{z}^T \nabla_x^2\mathcal{L}(\bm{z}^\star,\bm{\lambda}) \bm{z} \right| \\ &\leq C\|\delta\bm{x}-\bm{z}\|\cdot(\|\bm{z}\|+\|\delta\bm{x}\|) \end{aligned}

if \color{blue}\delta\bm{x}=\bm{z}+\mathit{o}(\|\bm{z}\|) then \mathit{o}(\|\delta\bm{x}\|)=\mathit{o}(\|\bm{z}\|) and

E(\bm{z},\delta\bm{x}) \leq C\,\mathit{o}(\|\bm{z}\|)\cdot(\|\bm{z}\|+\|\bm{z}+\mathit{o}(\bm{z})\|) = \mathit{o}(\|\bm{z}\|^2)

used in Equation 5.13 for small \delta\bm{x}

\begin{aligned} f(\delta\bm{x}+\bm{x}^\star) &\geq f(\bm{x}^\star) - \mathit{o}(\|\delta\bm{x}\|^2) +\dfrac{\epsilon}{4}\|\bm{z}\|^2 +\mathit{o}(\|\delta\bm{x}\|^2) \\ & = f(\bm{x}^\star) +\dfrac{\epsilon}{4}\|\delta\bm{x}\|^2 + \mathit{o}(\|\delta\bm{x}\|^2) \\ & \geq f(\bm{x}^\star) +\dfrac{\epsilon}{8}\|\delta\bm{x}\|^2 \qquad\textrm{for small $\delta\bm{x}$} \end{aligned}

and thus \bm{x}^\star is a strict local minimum.

To prove \color{blue}\delta\bm{x}=\bm{z}+\mathit{o}(\|\bm{z}\|)

TO BE FINISHED…

This establishes all the relation we aimed to prove. \square