Reading library The minimum of the coupled spring potential

Auto select follows the paper as you scroll. Hover over a marked phrase to preview its Lean and see how the two compare. Click a phrase to keep it selected in Manual.

The minimum of the coupled spring potential

Completing the square writes the coupled spring potential U(x0,x1)=x02+x0x1+x12U(x_0,x_1)=x_0^2+x_0x_1+x_1^2 as

U(x)=(x0+12x1)2+34x12,U(x)=\left(x_0+\tfrac12x_1\right)^2+\tfrac34x_1^2,

so UU is zero at the origin and positive everywhere else. In PhyslibAlpha, Bjørn Kjos-Hanssen proves that the origin is a local minimum by a longer route. He formalised a general second-derivative test in a companion file, applied it to UU, and describes the result as a proof of concept for the test.

For this function every quantity the test uses can be computed by hand, so the proof doubles as a worked example of the test. The sections below follow it in order: what the test requires (§1) and how its proof turns a positive Hessian into a minimum (§2). Then come a perturbed potential for which the completed square no longer settles the question (§3) and a hypothesis of the test’s remainder lemma that its proof does not need (§4). The last two sections derive UU from three springs and describe the motion it governs.

1. What the test requires

PhyslibAlpha theorem. The coupled spring potential UU has a local minimum at the origin. In symbols, U(0)≤U(x)U(0)\le U(x) for all xx in some neighbourhood of 00.

Kjos-Hanssen derives it from the following test. Let ff be real-valued on a finite-dimensional real inner product space. If ff is analytic at aa, its gradient vanishes at aa, and D2f(a)[h,h]>0D^2f(a)[h,h]>0 for every h≠0h\ne0, then ff has a local minimum at aa.

For a quadratic, all three hypotheses can be read off a single expansion. UU is a polynomial, so it is analytic at every point. Expanding U(x+h)U(x+h) gives U(x)+DU(x)[h]+U(h)U(x)+DU(x)[h]+U(h), where

DU(x)[h]=(2x0+x1)h0+(x0+2x1)h1.DU(x)[h]=(2x_0+x_1)h_0+(x_0+2x_1)h_1.

The remainder is UU itself, evaluated at the increment. Its three-square form, which §5 derives from the springs,

U(h)=12(h02+h12+(h0+h1)2),U(h)=\tfrac12\left(h_0^2+h_1^2+(h_0+h_1)^2\right),

together with (h0+h1)2≤2∥h∥2(h_0+h_1)^2\le2\lVert h\rVert^2 gives 0≤U(h)≤32∥h∥20\le U(h)\le\tfrac32\lVert h\rVert^2. So U(h)/∥h∥U(h)/\lVert h\rVert tends to zero with hh, and the linear term is the derivative. Both of its coefficients vanish at x=0x=0, so the gradient at the origin is zero. The coefficients are linear in xx, so the Hessian is the same matrix at every point.

K=(2112).K=\begin{pmatrix}2&1\\1&2\end{pmatrix}.

Putting the same vector in both slots of the second derivative gives back twice the remainder.

hTKh=2U(h)=h02+h12+(h0+h1)2.h^{T}Kh=2U(h)=h_0^2+h_1^2+(h_0+h_1)^2.

The Hessian at the origin is positive definite. In fact hTKh≥∥h∥2h^{T}Kh\ge\lVert h\rVert^2, with equality exactly when h0=−h1h_0=-h_1, where the last square vanishes.

2. How the test turns a positive Hessian into a minimum

Write Q(h)=D2f(a)[h,h]Q(h)=D^2f(a)[h,h]. Lean packages QQ as a quadratic map, so one lower-bound lemma serves every positive-definite QQ of this form. On the compact unit sphere the continuous function QQ is positive, so it attains a positive minimum CC there, and scaling gives Q(h)≥C∥h∥2Q(h)\ge C\lVert h\rVert^2 for every hh. A zero-dimensional space contains only the point aa, and Lean handles it separately.

At a critical point Taylor’s theorem reads f(a+h)−f(a)=12Q(h)+R(h)f(a+h)-f(a)=\tfrac12Q(h)+R(h), and the power-series lemma gives R(h)=o(∥h∥2)R(h)=o(\lVert h\rVert^2). So for each ϵ>0\epsilon>0 some neighbourhood of 00 has ∣R(h)∣≤ϵ∥h∥2|R(h)|\le\epsilon\lVert h\rVert^2 throughout. Lean states this as a little-o bound along the neighbourhood filter nhds, which lets the proof fix ϵ\epsilon first and take the neighbourhood afterwards. With ϵ=C/2\epsilon=C/2 the remainder can cancel at most the quadratic lower bound, so f(a+h)≥f(a)f(a+h)\ge f(a) throughout that neighbourhood, which is Lean’s IsLocalMin. With ϵ=C/4\epsilon=C/4 the same estimate gives f(a+h)−f(a)≥14C∥h∥2f(a+h)-f(a)\ge\tfrac14C\lVert h\rVert^2, which is strict for h≠0h\ne0.

For UU every number in this argument is explicit. The minimum of hTKhh^{T}Kh on the unit circle is the smaller eigenvalue of KK, so C=1C=1, attained at ±(1,−1)/2\pm(1,-1)/\sqrt2. The remainder is identically zero, so the inequality holds on the whole plane, although the test reports only a local minimum.