Derivative-test variations force a constant coefficient
ProvedVectorSpaceOpt.derivative_test_implies_constantcalculus-of-variationsconstant-functioninterval-integraltest-functions
Fix and a continuous function . Suppose that, for every function satisfying , one has
Then there is a real constant such that for every . The theorem includes the closed-interval endpoints in its conclusion because continuity extends the interior constancy. This is Luenberger's second fundamental lemma. It isolates the derivative-only component of a first variation and is reusable whenever a continuous coefficient annihilates all derivatives of fixed-endpoint test functions. It also handles the boundary values cleanly through the assumed continuity on the closed segment.
Preamble
import Definitions.Def_VectorSpaceOpt_isC1OnSegment open Set intervalIntegral
Formal statement
namespace VectorSpaceOpt
/-- Luenberger, Chapter 7, §7.5, Lemma 2. -/
theorem derivative_test_implies_constant
(a b : ℝ) (hab : a < b) (β : ℝ → ℝ)
(hβ : ContinuousOn β (Icc a b))
(hzero : ∀ (h dh : ℝ → ℝ),
IsC1OnSegment a b h dh → h a = 0 → h b = 0 →
(∫ t in a..b, β t * dh t) = 0) :
∃ c : ℝ, ∀ t ∈ Icc a b, β t = c := by sorry
end VectorSpaceOptSource
David G. Luenberger, Optimization by Vector Space Methods, Wiley, 1969, public scan https://sites.science.oregonstate.edu/~show/old/142_Luenberger.pdf, Chapter 7, §7.5, Lemma 2, printed p. 180; physical PDF p. 200.