The constraint implies , so and its gradient never vanishes on the feasible set. The Lagrange multiplier equations giveThus , , , and feasibility gives . The two stationary points and their values areThey are both global minima. Indeed, on the constraint, completing the square givesEquality holds only at the two displayed points. There are no other constrained stationary points, and the objective is unbounded above as .
Put and . At , the value is , the gradient is , and the Hessian matrix is . Thus the quadratic Taylor expansion isThe exact remainder is , since the original polynomial has only the cubic term beyond degree two.
Let and . Subtracting the two constraint equations gives , hence and . The feasible set is therefore a circle.
For Lagrange multipliers , the stationarity equation becomesAt , the first equation gives . The second ensures and , so the third gives . The constraints then force . Both points do satisfy the multiplier equations, taking .
There are no missing singular constraint points: on the feasible circle, the two constraint gradients and are linearly independent, since . Thus the complete list of constrained critical points and critical values isThe bound on the feasible circle shows that the positive value is the global maximum and the negative value is the global minimum.
The gradient vanishes when and . Subtracting these equations gives , so the unique critical point is , with .
The Hessian matrix isIt is indefinite, so the critical point is a saddle point. Explicitly, around that point the change is exactly : it is positive for and negative for . Thus arbitrarily close points have both larger and smaller values.
On the unit circle the constraint gradient never vanishes. The Lagrange multiplier equations areA nonzero solution of the first two equations requiresso or . Multiplying the first equation by , the second by , and adding shows . Thus each candidate value of equals its multiplier.
For , , giving . For , , giving . Since a continuous function attains its extrema on the compact set given by the unit circle and these exhaust the Lagrange multiplier candidates,Each changes both coordinates together.
The gradient equations areThus gives , while gives . The Hessian matrix isAt both critical points the determinant is , so the Hessian is indefinite and the second-derivative test classifies both as saddle points. Direct substitution givesThe factorization also shows the crossing level-set branches through each saddle.
The gradient vanishes exactly when and , giving the four points . The Hessian matrix is . It is positive definite at , negative definite at , and indefinite at the two mixed-sign points. Thus is a strict local minimum, a strict local maximum, and are saddle points by the second-derivative test. Their respective function values are , , and zero at both saddle points.
The continuous function attains a global maximum and minimum on the closed disc by the extreme value theorem. All four unconstrained stationary points have squared distance eight, so none lies in its interior. The extrema must therefore lie on .
The constraint gradient is nonzero on that circle, so Lagrange multipliers apply:Subtracting gives . If , the constraint gives . Otherwise ; substitution into either equation gives . This is impossible, since on the circle. Thus the diagonal points are the only candidates. Comparing their values gives
Use the LagrangianThe Lagrange multiplier equations areFeasibility makes , so . The second equation becomes , forcing and then . The constraint gradient is nonzero on the feasible set, so the multiplier calculation has no missing singular feasible point.
To verify the global minimum rather than just stationarity, eliminate :Equality holds exactly at or , with minimum value .
At , gradient descent and full BFGS are practical candidates; a dense Newton method can also be feasible, but its extra work and indefinite curvature need attention. The number of examples , data sparsity and conditioning still matter.
For dense , a gradient evaluation costs arithmetic, with working storage beyond the data and accumulation buffers. Gradient descent is inexpensive per iteration and, with an appropriate line search, follows a descent direction, but poor conditioning can make it slow.
Forming the Hessian matrix explicitly costs arithmetic, and a dense Newton method solve costs . A -square double-precision matrix uses about MB, so storage alone is manageable, but repeated factorization may be expensive. Because the Hessian matrix can be indefinite or singular, an unmodified Newton step need not decrease the loss; a modified Hessian, damping or a trust region is appropriate.
Full BFGS uses gradients and an curvature approximation, avoiding explicit second derivatives. Its rank-two updates and direction calculation cost per step and require roughly the same matrix storage. A positive-definite initial approximation with safeguarded curvature updates and a suitable line search preserves descent directions. For this scale it is often a good compromise, without guaranteeing a global minimum.[ref]
Quasi-Newton Methods by NEOS Guide. Secant condition, positive-definite updating, and quadratic per-step operation/storage costs
Differentiating the gradient term by term gives the Hessian matrixTake row of to be . ThenIndeed, entry of this product is , exactly the entry of the displayed sum of outer products. Explicitly,These coefficients may have either sign, so a positive-definite Hessian matrix cannot be assumed. This is an instance of the Hessian of a sum of functions of linear forms.
Use a column gradient. By the multivariable chain rule,The scalar coefficients multiply the constant vectors . In particular , although explicit differentiation of is not required.
At , gradient descent remains a plausible large-scale choice; dense Newton method and full-memory BFGS are generally impractical. A dense double-precision matrix alone contains entries, about TB. Dense factorization also has order arithmetic work. Full BFGS avoids factorization but retains quadratic storage and update work, so it does not solve that scaling problem.
Gradient descent uses linear working storage in , though the cost of reading the data and evaluating the gradient is still for dense . Sparsity or streaming can be important. Limited-memory BFGS, a distinct limited-memory variant, stores only a fixed number of recent update pairs and uses storage and update work, making it a realistic alternative to full BFGS.[ref]
Quasi-Newton Methods by NEOS Guide. Final paragraphs: implicit inverse-Hessian products and stored-pair limited-memory methods
The available Hessian matrix factorization also permits a matrix-free Hessian-vector product:It costs for dense data without forming . A suitable iterative, safeguarded Newton method can exploit this structure, so the conclusion rules out the dense implementation rather than every possible second-order algorithm.
These methods seek a local solution and require convergence checks appropriate to nonconvex optimization. The formula does not even ensure a finite minimizer exists: with one positive coefficient and nonzero , the positive exponential loss approaches zero along an unbounded direction without attaining it. Dimension alone cannot supply a convergence guarantee.
Let , so . Its gradient is , andThus a stationary point must have and , giving and . To classify them, useAt either stationary point, and . Hence . The Hessian has one positive and one negative eigenvalue, so both are saddle points. There are no other stationary points.
For a differentiable scalar function of real variables, its derivative is the linear mapwhere the column gradient is . Its Hessian is the matrix . For a function, equality of mixed partial derivatives makes this matrix symmetric.
The objective is continuous on the compact disk, so a global maximum exists. Its gradient is , which is never zero, so a maximum cannot lie in the interior. It must have .
Both coordinates of a maximizing point are positive. Reflecting a negative coordinate to its positive counterpart strictly increases the objective without changing the constraint; at an endpoint with one coordinate zero, a small move along the circle into the positive quadrant also increases the objective to first order. Thus it suffices to consider .
The boundary Lagrange multiplier equations are and . Eliminate to obtain the two-dimensional nonlinear system of equationsKeeping this quadrant restriction excludes the boundary minimum that an unconstrained elimination could also produce. Under the stated uniqueness assumption for the admissible solution, the global maximum must be that solution. Approximate it with multivariable Newton iteration, solving and setting , with a suitable safeguard if needed. For example its explicit Jacobian matrix isNo numerical solution of the system is required.
Use the optimization LagrangianSymmetry gives the gradient equations and . The positive-definite matrices are invertible, so defineThe affine constraint gives , henceFor a global certificate, write any other feasible point as . Feasibility implies . Expansion cancels the cross terms and leavesBy positive definiteness this is positive unless . Thus the solution is the unique global minimum, not merely a stationary point. This is a two-block instance of positive quadratic minimization under one affine constraint.
Differentiate the column gradient . The Jacobian matrix product rule gives one term from differentiating the scalar exponential function and one from differentiating , whose Jacobian matrix is the identity matrix:In particular, for any nonzero vector ,Thus the Hessian matrix is positive definite everywhere. This calculation proves strict convexity and supplies the derivatives needed for sums of these terms.
Write . The squared Euclidean norm is , whose gradient is . The chain rule for the exponential function therefore gives the column gradientThe row derivative, if that convention is used for , is its transpose.
Let be the weighted average on the right, and define and as in part (i). Their explicit gradient identity isTherefore the displayed equation is exactly the stationary point equation for the strongly convex . It has one solution, which is the unique minimizer from part (i). Reuse the BFGS iteration, withThe gradient is explicit, the weights can again be scaled by their largest exponent, and the usual full-memory BFGS assumptions give local superlinear convergence.
Simply setting is not automatically a convergent fixed-point iteration. Differentiating the normalized weights giveswhose operator norm need not be below . For example, in one dimension with centres , and : the desired fixed point is locally repelling for that naive iteration. If exact second derivatives are affordable, multivariable Newton iteration on is another valid choice, with Jacobian matrix as given above and local quadratic convergence.