Completing the square directly with the complex modulus gives
For , this is the circle with centre and radius . Equality gives just the point , and gives the empty locus. In particular, the nondegenerate answer is
Consider the minimization problem
The objective function is a strictly convex function with its unconstrained optimization minimum at . If , it decreases throughout the feasible set until the bound is reached. If , the feasible set already contains . Hence
With , the optimization Lagrangian and KKT conditions are
Substituting gives the unique inequality Lagrange multiplier
For , the active constraint has . For , there is strict slack and . At , the active constraint has zero Lagrange multiplier: the boundary happens to pass through the unconstrained optimum. Feasibility and complementary slackness must both be checked; solving only would allow infeasible candidates.
Figure 1.
The same quadratic objective with active, just-touching and inactive upper bounds
. Details.
An independent certificate follows by completing the square:
The Lagrange dual function is a concave function of . Its maximum over occurs at and equals . Thus every case has an explicit lower bound attained by a feasible point; the KKT conditions provide a certificate that can be checked without searching all real numbers.
Scalar static-state Kalman update Created 2026-10-03 Updated 2026-10-14
Suppose the predicted state has normal distribution and the new observation is , where the measurement noise is independent of the state and previous observations. Gaussian conditional expectation gives
The coefficient is the scalar Kalman gain. The posterior mean is a weighted mean of the predicted state and the new observation, with the more precise quantity receiving more weight. For , the same equations can be expressed in precision parameters
The two precision parameters add because the measurement noise is independent of the state and past observations. Completing the square in the product of the prior density and the likelihood function gives this form directly. This is a Gaussian conditional expectation for a fixed unknown state; a moving state additionally requires a Kalman prediction step.
Let be a real symmetric matrix with a positive-definite matrix. Its quadratic form satisfies the completing the square identity
For each fixed vector , the unique minimizing vector is , so the minimized value is . Also, is a positive-definite matrix exactly when is a positive-definite matrix, under the stated assumption on .[ref]
An original scalar example is
Here , , , and the Schur complement is . Holding would give , but letting relax to reduces the quadratic form to . At the respective values are and . Eliminating a variable therefore changes the effective cost of the retained variable.
Figure 1.
A Schur complement measures the quadratic form left after another variable relaxes
. Original contours of and the two resulting costs. The minimizing line picks the least value at each fixed ; the plotted profiles are exact model values, not experimental measurements. Details.
For the static energy , completing the square gives
The Bogomolny bound is the absolute boundary difference. Equality requires the Bogomolny equation with the sign selected by that difference. Differentiating it gives the Euler-Lagrange field equation . A stationary solution of that second-order equation need not saturate the bound in a general field theory.
Suppose are bounded functions on the same nonempty set, and the supremum norm of their difference is at most . Then their optimal values differ by at most the same amount:
Indeed, for every , so ; exchange and for the other direction. Adding a constant shifts a supremum by that constant, a basic compatibility between upper bounds and addition.[ref]
For a chosen example on , take and . Their supremum error is , since . Completing the square gives
Thus has maximum zero at , while has maximum at . The change in optimal value, , is smaller than the certified bound . For the vertical translation , the bound is exact: its supremum error and optimal-value change are both .
Figure 1.
Uniform error controls the optimal value; maximizing inputs require additional control
. Original polynomial examples on . Left: and lie within a vertical error band of , while their maxima differ by . Right: the small tilts and have maximizing inputs and for every ; solid lines use and dashed lines use . These chosen examples are not measured errors or claims about an arbitrary optimizer. Details.
A stable optimal value does not guarantee a stable maximizing input. On , the two linear functions and satisfy
For every positive , their unique maximizing inputs remain two units apart, at and . Both functions approach the flat zero function, which has many maximizing inputs. Consequently an accurate objective function value is not by itself a certificate that the optimizing decision is accurate.
The estimate also gives a convenient consequence of uniform convergence. If converges uniformly to a bounded function on a nonempty , then for the bounded tail of the sequence. Uniform control handles the changing input that defines the best value. Pointwise convergence alone supplies no such control; the existing examples under uniform convergence illustrate that distinction.
Consider an objective function that is a quadratic polynomial, with a singular optimization constraint:
Its only feasible point is , giving . For , completing the square yields
Every finite Lagrange multiplier gives , but as . Thus : strong duality holds, and the primal optimum is attained, yet dual attainment fails. The inner minimizers approach without ever becoming feasible at finite .
Both the objective function and the constraint function are convex functions. However, Slater's condition fails because is impossible. At the optimum, stationarity would require , which no finite Lagrange multiplier satisfies. Compare KKT regularity at a local minimum: a zero gradient of an active constraint can prevent a multiplier certificate. This example has zero duality gap without the Strong Lagrangian property.
For a real symmetric matrix , completing the square gives, when ,
Thus is a positive-definite matrix exactly when and . For necessity, test first, then ; for sufficiency, the displayed two positive squares give the result. These are the first two leading principal minors in Sylvester's criterion. A positive determinant alone is insufficient: has determinant but is a negative-definite matrix.
The eigenvalues provide an equivalent test under the same real-symmetric hypothesis:
The spectral theorem for real symmetric matrices supplies coordinates in an orthonormal basis in which . More generally, a complex Hermitian matrix has an orthonormal eigenbasis and , so it is a Hermitian positive-definite matrix exactly when every eigenvalue is positive. This is a short proof outline: test the eigenvectors for necessity, and sum the positive squared absolute values for sufficiency.[ref]
For a real positive semidefinite matrix, the condition is instead for all vectors, equivalent here to , , and . If , the same completing the square proves this; if , nonnegativity forces and leaves with . Merely replacing the strict inequalities on the leading principal minors by nonstrict ones fails: has both leading principal minors zero yet gives . An indefinite quadratic form takes both positive and negative values; its real symmetric matrix has eigenvalues of both signs.
A translation-invariant connected generating functional with a constant external source is extensive in spacetime volume . Its total logarithm is dimensionless, while its density has mass dimension . Consequently its dimensionless representation at fixed physical volume must retain . For a free massive scalar with source coupling , completing the square gives . This already disproves a literal rewriting of the full uniform-source logarithm using only at fixed volume. In infinite volume the total functional is generally infinite; use the density, a source of compact support, or an explicit volume regulator. After writing the density as , its renormalization group equation has the engineering term . Ultraviolet subtraction alone does not establish infrared finiteness for a massless constant source.
Let be a real positive-definite matrix and minimize the displayed quadratic function over all of . Its gradient is , so its only stationary point solves the linear system . The matrix is an invertible matrix, making this solution exist and be unique. Completing the square around that solution proves the stronger global statement:
The quadratic function is strictly convex, and its level sets above the minimum are translated ellipsoids. Positivity therefore turns solving a linear system into locating the bottom of a bowl.[ref]
For the opening matrix , take and . Then , , and . Every displacement raises the value by ; along the unit eigenvectors and the increases are respectively and for displacement or .
For a singular positive semidefinite matrix, a solution of is still a global minimizer, but adding any kernel vector gives another. If is outside the image of a linear map defined by , some kernel vector has , and is unbounded below. For an indefinite quadratic form, a negative eigenvalue gives a direction along which the quadratic term tends to regardless of . Thus a stationary point alone does not establish a minimum. The same energy-difference identity extends to the quadratic variational principle for a symmetric positive operator, with additional existence hypotheses in infinite dimension.
Vacuum source functional of a quantum oscillator Created 2026-10-07 Updated 2026-10-14
Completing the square in with gives the displayed source factor, where . In the frequency convention , and for . The physical time-ordered oscillator quantum field theory propagator is . Sources are first taken as test functions so the pairings are defined.