Substitute the dual linear program from the previous part and optimize jointly over . The result is
The objective is linear, and the constraints are equalities or inequalities between affine functions, so this is a linear program. For each fixed feasible , minimizing over gives exactly by the threshold formula for the sum of the largest components; hence the reformulation preserves the optimal value and optimal whenever an optimum exists.
With , , and , the Forward Euler method gives
For a Fourier mode , the amplification factor is . Set . Then
The expression in braces is an affine function of , so it is nonpositive for all precisely when its two endpoint values are nonpositive. For , these conditions are and . Thus Forward Euler stability for centered advection-diffusion requires exactly
For , only the first condition remains. If either bound fails, a band of Fourier modes has , giving instability under von Neumann stability analysis. At equality the amplification bound still holds, so the endpoints are included. This is discrete L2 norm stability; nonnegative stencil weights would impose the additional spatial restriction .
Nash's theorem says that every finite game, including a two-player game with two pure choices each, has at least one Nash equilibrium in mixed strategies.
For player , holding fixed, the expected value of the payoff is
It is an affine function of . Therefore player chooses when , chooses when it is negative, and is indifferent when it vanishes. By symmetry, player has the analogous best response.
If , then for every , so becoming a Dark Lord with probability one is a strictly dominant strategy. The unique equilibrium is
If , each player is indifferent when the other chooses . This gives one interior mixed equilibrium, while the two asymmetric pure equilibria arise because a player facing a certain peasant chooses Lord and a player facing a certain Lord chooses peasant. The three equilibria are
Consequently . At the threshold itself there is a continuum of equilibria with or , consistent with the question's strict inequalities.
The empirical risk is
For ,
so is a convex function. Each signed margin is an affine function of , and composition with an affine function preserves convexity. Equivalently,
is a positive semidefinite matrix. Therefore is convex.
Suppose . The coefficient matrices in part (ii) then have uniform ellipticity constants depending only on . Applying the Harnack inequality for uniformly elliptic divergence-form equations to the nonnegative solutions and gives a scale-independent oscillation contraction
Scaling back,
For fixed , iterate this estimate with and use the global bound to obtain . Every partial derivative is therefore constant, so is an affine function. This is a bounded-gradient Bernstein theorem for entire minimal graphs.
Each map is an affine function. For , the pointwise maximum of convex functions satisfies
so is convex.
A vector is a subgradient of a convex function at when
for every . Choose any active index . Then
and hence . More generally, every convex combination of the active vectors is a subgradient, and in fact
Write . The log-sum-exp function is convex and composition with the affine functions preserves convexity, so is convex. Directly, its Hessian matrix will also be shown positive semidefinite in part d.
Let . Factoring out of the sum gives
At least one term in the sum is , while every term is at most . Therefore
and hence
Thus is a uniform smooth maximum of the affine pieces of .
Insert the linear initial profile into the transformed integral from (b):
The constant part integrates to . The other part is an absolutely integrable odd function, so its integral vanishes. Hence
As a direct check, and . Thus a linear temperature profile is stationary on the whole line. More generally, every affine function is preserved by this heat-kernel solution.
The divergence is
For the tetrahedral domain, convenient integration bounds are
Consequently its volume integral is
Putting , the inner integral is . Therefore
Thus
There is an independent centroid check. The vertices are , giving volume and centroid . An affine function averages to its value at the centroid, so . This is the integral of an affine function over a simplex.
Interpret the stated transition as an upper critical miscibility temperature: cooling increases the effective through . Above , the homogeneous mixing free energy is convex throughout , with no two-phase common tangent. Below , it acquires a region with , bordered by the spinodal. A lower straight line touches the curve at two binodal compositions and ; this common-tangent construction gives the equilibrium polymer-poor and polymer-rich phases.
The precise raw curve need not have two equal minima: subtracting an affine function of changes reference chemical potentials without changing curvature or coexistence compositions. The free-energy panels above subtract the tangent at from the upper-temperature curve and the common tangent from the lower-temperature curve. This makes the common tangent and the convex-versus-nonconvex distinction visible.
If the mean initial composition lies inside the low-temperature spinodal region, an arbitrarily small separation into equal-volume regions with compositions changes the mean free energy by
Small fluctuations therefore grow spontaneously: this is spinodal decomposition. Interfacial costs limit very short-wavelength fluctuations, and the polymer-poor and polymer-rich domains subsequently coarsen towards their binodal compositions.
If lies just outside a spinodal branch but still inside the binodal, then . Small fluctuations increase free energy, so the uniform mixture is metastable. Separation requires a sufficiently large nucleus to overcome the interfacial barrier, followed by nucleation and growth. There is no guarantee that this happens rapidly. If the initial composition is outside the binodal as well, it remains a stable uniform phase after cooling.
For a mean composition in the coexistence interval, conservation of polymer fixes the volume fraction of the rich phase by the lever rule:
The temperatures alone do not determine which mechanism occurs without the initial composition. Numerical free-energy curves additionally require ; the plotted example uses with absolute temperatures , and .
The Pearson correlation coefficient is the covariance divided by the product of the standard deviations. For real random variables with finite, strictly positive variances,
It is the expected value of the product of the two centered variables after dividing each by its standard deviation. The Cauchy-Schwarz inequality gives . This removes measurement units, while retaining the direction and strength of the linear relationship. Constant random variables have zero standard deviation, so their Pearson correlation coefficient is undefined.
For the covariance model , with independently uniform on , the calculation gives
The positive correlation is less than one because the independent term introduces extra variation. For the correlation is . Both examples appear in the covariance diagram.
For nonzero real , the correlation of and is . Positive rescaling and added offsets therefore leave the correlation unchanged; reversing one scale reverses its sign. Equality means that one random variable is an affine function of the other almost surely, with a nonzero slope of the corresponding sign. This is the equality condition in the Cauchy-Schwarz inequality, and includes perfect positive correlation.
Zero correlation says that the centered variables are orthogonal in their square-integrable inner product. It permits nonlinear statistical dependence, as the example in uncorrelated random variables demonstrates. More generally, a correlation is a statement about a joint probability distribution; identifying effects of interventions is the separate task of causal inference. This distinction keeps an observed association from being mistaken for a demonstrated mechanism.
An early source for standardized association is Francis Galton's 1888 paper “Co-relations and their Measurement, chiefly from Anthropometric Data”. He compared stature and forearm measurements and changed each measurement to units of its own variability so the two regression directions could be compared. His scale used probable error, so it should not be identified word for word with the modern standard deviation formula above. [ref].
A nonconvex primal problem can have a positive duality gap even when both optima are attained. Choose the finite set , the objective function values , , , and the equality optimization constraint . The only feasible point is , so .
With unrestricted equality Lagrange multiplier , the three possible optimization Lagrangian values and their minimum are
The concave Lagrange dual function has unique maximizer , with . Thus the duality gap is . At the optimal Lagrange multiplier, both inner minimizers and violate the equality; the dual optimum does not recover a primal optimizer.
Figure 1.
A feasible finite problem has a duality gap of 3 despite dual attainment
. Left: three allowed decisions shown as cost versus equality residual. For each indicated Lagrange multiplier, the line lies below every allowed cost. The dotted segment joining the two zero-cost points contains cost-residual pairs unavailable to any allowed decision. Right: maximizing gives 0, below the primal value 3. Details.
Why can no slope close the gap? Any affine function lying below the two endpoint costs obeys and . Adding gives , so its value at residual zero cannot reach the feasible cost . A convex combination of the endpoint cost-residual pairs with equal weights has residual zero and average cost zero. This averaged pair is unattainable: the actual decision costs . This geometry explains precisely what the dual bounds fail to distinguish. Nonconvexity does not force a positive duality gap: changing only to makes both optimal values zero on the same nonconvex domain.
The earliest approach within distance is a convex optimization problem with a norm constraint and the same segment and time bounds as contact. An elementary alternative enumerates whether each segment parameter is free or at an endpoint. In each nonsingular active case the free closest-point parameters are affine functions of time, leaving a quadratic distance inequality on a valid time interval. Rank-deficient cases need their null-space constraints retained. Unlike contact, the two segment parameters and time are no longer determined by a vector equality.
Pt100 local linear model 2026-10-14
Choose the illustrative local model
Here is the Celsius temperature, measured relative to , so is dimensionless. For this chosen affine function, the derivative and inverse relation are
Calculated values are , , , and . These are model outputs, not measurements or an assertion that any real Pt100 follows this line exactly. The number here is the chosen slope parameter; it is not a universal local derivative for all platinum resistance thermometers. Curvature, manufacturing differences, and the fitted calibration interval matter. A wider-range calibration uses a validated response curve rather than extrapolating this line indefinitely.
Figure 1.
Chosen Pt100 line and an illustrative calibration with an independent check
. The left panel plots the Pt100 local linear model. The right panel uses stipulated values for a different illustrative element: two points set a line, while a third point tests it. Every point is synthetic; none is measured calibration data or a tolerance band. Source. Details.
For a separate synthetic thermometer calibration, stipulate at and at . A two-point affine function has slope and gives
Thus would indicate . If an additional synthetic check at reference instead supplied , the line would indicate . The residual exposes disagreement that two fitted points cannot reveal. This separate example changes both offset and slope; it is not a replacement specification for the nominal Pt100 local linear model.
Quadrature rule Created 2026-09-24 Updated 2026-10-14
A quadrature rule approximates an integral by a finite weighted sum of sampled function values:
The quadrature nodes specify where to sample, and the quadrature weights specify how much each sample contributes. The density specifies the target integral, whereas the discrete quadrature weights belong to the approximation. Ordinary numerical integration has . Gaussian quadrature and the midpoint quadrature rule choose interior quadrature nodes; the trapezoidal rule includes endpoints.[ref]
For ordinary numerical integration, exactness on the constant function requires ; exactness on additionally requires . These two checks make the quadrature rule exact for every affine function. For example, both the midpoint quadrature rule and trapezoidal rule give for . Testing progressively higher polynomial degrees defines the degree of precision of a quadrature rule. Exactness describes a class of integrands, rather than promising exact results for every function.
Composite midpoint quadrature rules and composite trapezoidal rules apply a simple quadrature rule on every panel of a partition of an interval. This buys accuracy by shrinking the panels while keeping the elementary formula fixed. For continuous functions sampled exactly, their quadrature errors tend to zero as the largest panel width tends to zero. The familiar second-order bounds require stronger assumptions about derivatives. The signed approximation error used here is ; some sources define quadrature error with the opposite sign, so the convention must accompany any formula.
Roughness penalty 2026-10-05
A roughness penalty penalizes variation of derivatives, such as . The second-derivative penalty vanishes precisely on affine functions and is represented in a chosen basis by a roughness penalty matrix.
The nonnegative functional . Its null space on consists of affine functions. The natural cubic spline interpolant uniquely minimizes this penalty among functions matching at least two prescribed knot values. It is a squared second derivative penalty, not the exact geometric curvature energy of a graph.
The Haar wavelet provides an explicit one-vanishing moment comparison:
It cancels a constant polynomial, but not a nonconstant affine function. To obtain two vanishing moments by an equally transparent construction, take three adjacent unit intervals with heights proportional to :
The L2 norm normalization follows from . Direct integration gives
Thus has exactly two vanishing moments. In fact its coefficient is a finite difference of adjacent local integrals:
The weights are those of the second-order central difference. The first moment balances the centres of the three intervals; it is not enough merely to balance their signed areas.
Figure 1.
Signed overlaps of the Haar and second-difference analyzing functions with constant, linear, and quadratic test polynomials
. Details.
This is a normalized analyzing function, with no orthonormal basis assertion. Indeed, its unit translate has nonzero L2 inner product:
Hence these translates already fail orthogonality. The Daubechies wavelet construction imposes additional refinement and orthogonality requirements; two vanishing moments and unit L2 norm by themselves do not supply those requirements.
Semidefinite programming 2026-10-05
A semidefinite program optimizes a linear function subject to equalities between affine functions and positive semidefinite matrix inequalities. It generalizes linear programming: a diagonal matrix is a positive semidefinite matrix exactly when its diagonal entries are nonnegative. Matrix trace expresses the objective as for real symmetric matrices.