OctoInform Beta

OpenAI preprint, September 2026 · §3. Quadratic fitting and its transport law · §3

Quadratic midpoint and its derivatives: The base-zero relative midpoint HH and its partial derivatives for the quadratic profile at prescribed half-width

The quadratic midpoint and its Jacobian determinant.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

Consider the planar Liénard system (1) in coordinates (x,y)(x,y) with polynomial FF, x′=y−F(x),y′=−x.x' = y - F(x), \qquad y' = -x.(1) On either half-plane, let φ:ℝ→ℝ\varphi\colon \mathbb{R}\to\mathbb{R} be the profile determined by FF, so that passing to the energy coordinate u=x2/2u = x^2/2 eliminates time and reduces trajectories of (1) to solutions of the scalar equation (2), dudy=φ(u)−y.\frac{du}{dy} = \varphi(u) - y.(2)

A trajectory segment that rises from a base height hh to a peak height tt and returns to hh is described by its half-width rr and its relative midpoint MM. For the quadratic profile with slope λ\lambda and curvature κ\kappa, the library defines the base-zero relative midpoint as a function of (λ,κ)(\lambda,\kappa) and rr, and builds a Jacobian determinant from its partial derivatives.

Scalar solution arches

For a profile φ:ℝ→ℝ\varphi\colon \mathbb{R}\to\mathbb{R}, base height h∈ℝh\in\mathbb{R}, peak height t∈ℝt\in\mathbb{R}, and endpoint ordinates a,b∈ℝa,b\in\mathbb{R}, a scalar solution arch is a continuous function u:ℝ→ℝu\colon \mathbb{R}\to\mathbb{R} satisfying the scalar equation (2) and h≤u(y)≤th\le u(y)\le t at every y∈[a,b]y\in[a,b], together with u(a)=u(b)=h,u(φ(t))=t,a<φ(h)<b,a<φ(t)<b,u(a) = u(b) = h, \qquad u(\varphi(t)) = t, \qquad a < \varphi(h) < b, \qquad a < \varphi(t) < b,(3)✦ such that uu is strictly increasing on the rising branch [a,φ(t)][a,\varphi(t)] and strictly decreasing on the falling branch [φ(t),b][\varphi(t),b].

The chosen scalar arch for a profile φ\varphi, base height hh, and peak height tt is a triple (u,a,b)(u,a,b) forming a scalar solution arch for (φ,h,t)(\varphi,h,t) whenever one exists.✦ The lower endpoint a(φ,h,t)a(\varphi,h,t) is the ordinate aa at which the rising branch of the chosen scalar arch for (φ,h,t)(\varphi,h,t) meets hh✦, and the upper endpoint b(φ,h,t)b(\varphi,h,t) is the ordinate bb at which the falling branch meets hh.✦

From the lower and upper endpoints of a profile φ\varphi at base height hh and peak height tt, the half-width r(φ,h,t)r(\varphi,h,t) and the relative midpoint M(φ,h,t)M(\varphi,h,t) are the real numbers given by r(φ,h,t)=b(φ,h,t)−a(φ,h,t)2,M(φ,h,t)=a(φ,h,t)+b(φ,h,t)2−φ(h).r(\varphi,h,t) = \frac{b(\varphi,h,t) - a(\varphi,h,t)}{2}, \qquad M(\varphi,h,t) = \frac{a(\varphi,h,t) + b(\varphi,h,t)}{2} - \varphi(h).(4)

Width coordinates

Let Φ:Θ×ℝ→ℝ\Phi\colon \Theta\times\mathbb{R}\to\mathbb{R} be a family of profiles with parameter space Θ\Theta, and write Φθ(u)=Φ(θ,u)\Phi_\theta(u) = \Phi(\theta,u) for the profile at parameter θ∈Θ\theta\in\Theta. At parameter θ∈Θ\theta\in\Theta, base height h∈ℝh\in\mathbb{R}, and peak height t∈ℝt\in\mathbb{R}, the family half-width rΦ(θ,h,t)r_\Phi(\theta,h,t) and the family relative midpoint MΦ(θ,h,t)M_\Phi(\theta,h,t) are the half-width and relative midpoint of Φθ\Phi_\theta, rΦ(θ,h,t)=r(Φθ,h,t),MΦ(θ,h,t)=M(Φθ,h,t).r_\Phi(\theta,h,t) = r(\Phi_\theta,h,t), \qquad M_\Phi(\theta,h,t) = M(\Phi_\theta,h,t).(5)

Given θ∈Θ\theta\in\Theta, base height h∈ℝh\in\mathbb{R}, and prescribed half-width r∈ℝr\in\mathbb{R}, the peak height at prescribed width tΦ(θ,h,r)t_\Phi(\theta,h,r) is a peak height t>ht>h satisfying rΦ(θ,h,t)=rr_\Phi(\theta,h,t) = r, chosen whenever such a peak height exists.✦ The midpoint at prescribed width M̃Φ(θ,h,r)\widetilde{M}_\Phi(\theta,h,r) of Φ\Phi at (θ,h,r)(\theta,h,r) is the family relative midpoint evaluated at tΦ(θ,h,r)t_\Phi(\theta,h,r), M̃Φ(θ,h,r)=MΦ(θ,h,tΦ(θ,h,r)).\widetilde{M}_\Phi(\theta,h,r) = M_\Phi\bigl(\theta,h,t_\Phi(\theta,h,r)\bigr).(6)✦

The quadratic profile

The quadratic profile is the profile family Φq:ℝ2×ℝ→ℝ\Phi_{\mathrm{q}}\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} with parameter space ℝ2\mathbb{R}^2, given for slope λ∈ℝ\lambda\in\mathbb{R} at u=0u=0, curvature κ∈ℝ\kappa\in\mathbb{R}, and energy u∈ℝu\in\mathbb{R} by Φq((λ,κ),u)=λu+κ2u2.\Phi_{\mathrm{q}}\bigl((\lambda,\kappa),u\bigr) = \lambda u + \frac{\kappa}{2}u^2.(7)✦

Directional derivatives

For a map f:E1→E2f\colon E_1\to E_2 between real normed spaces E1E_1 and E2E_2 and a direction v∈E1v\in E_1, the directional derivative Dvf:E1→E2D_v f\colon E_1\to E_2 is the map sending each point z∈E1z\in E_1 to the Fréchet derivative Df(z)Df(z) applied to vv, (Dvf)(z)=Df(z)(v).(D_v f)(z) = Df(z)(v).(8)✦

The quadratic midpoint and its Jacobian determinant

For positive half-width, the quadratic midpoint and its partial derivatives are smooth.

Definition. The quadratic midpoint H:ℝ2×ℝ→ℝH\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} is the function assigning to each (λ,κ,r)∈ℝ2×ℝ(\lambda,\kappa,r)\in\mathbb{R}^2\times\mathbb{R} the midpoint at prescribed width for the quadratic profile Φq\Phi_{\mathrm{q}} at base height zero, H(λ,κ,r)=M̃Φq((λ,κ),0,r).H(\lambda,\kappa,r) = \widetilde{M}_{\Phi_{\mathrm{q}}}\bigl((\lambda,\kappa),0,r\bigr).(9)✦ With eλ=(1,0,0)e_\lambda=(1,0,0), eκ=(0,1,0)e_\kappa=(0,1,0), and er=(0,0,1)e_r=(0,0,1) denoting the unit coordinate directions on ℝ2×ℝ\mathbb{R}^2\times\mathbb{R}, the first coefficient derivative P:ℝ2×ℝ→ℝP\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} and the second coefficient derivative Q:ℝ2×ℝ→ℝQ\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} are the directional derivatives of HH along eλe_\lambda with κ\kappa and rr fixed, and along eκe_\kappa with λ\lambda and rr fixed, respectively. The width derivatives R:ℝ2×ℝ→ℝR\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} and S:ℝ2×ℝ→ℝS\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} are the directional derivatives of PP and QQ along ere_r with λ\lambda and κ\kappa fixed, giving P=DeλH,Q=DeκH,R=DerP,S=DerQ.P = D_{e_\lambda} H, \qquad Q = D_{e_\kappa} H, \qquad R = D_{e_r} P, \qquad S = D_{e_r} Q.(10) The Jacobian determinant G:ℝ2×ℝ→ℝG\colon \mathbb{R}^2\times\mathbb{R}\to\mathbb{R} is the function defined at each (λ,κ,r)∈ℝ2×ℝ(\lambda,\kappa,r)\in\mathbb{R}^2\times\mathbb{R} by G(λ,κ,r)=P(λ,κ,r)S(λ,κ,r)−Q(λ,κ,r)R(λ,κ,r).G(\lambda,\kappa,r) = P(\lambda,\kappa,r)S(\lambda,\kappa,r) - Q(\lambda,\kappa,r)R(\lambda,\kappa,r).(11)✦

What is checked

The Jacobian determinant GG is defined on ℝ2×ℝ\mathbb{R}^2\times\mathbb{R} over the coefficient derivatives PP and QQ and their width derivatives RR and SS, formed by the directional derivative from the quadratic midpoint HH, which evaluates the midpoint at prescribed width for the quadratic profile Φq\Phi_{\mathrm{q}} at base height zero via the peak height at prescribed width, family half-width, family relative midpoint, and the chosen scalar arch with its endpoints, half-width, and relative midpoint.