Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
[parent] Calculus of Variations Examples: Fundamental Lemma Problems (Example)

Calculus of Variations Examples: Fundamental Lemma Problems

This companion entry develops the Fundamental Lemma through calculation rather than another theorem presentation. The exercises move from hypothesis checks to explicit counterexamples, then to scalar and vector Euler–Lagrange-type integral identities and finally to the weak almost-everywhere form.

The convention throughout is that a statement of the form

∫  b
    g(x)η(x)dx =  0
 a
(1)

for every admissible test function carries much more information than the same equality for one or finitely many chosen functions.

1 Exercises

Exercise 1: Hypothesis audit

For each statement below, determine the strongest conclusion that follows and state which version of the Fundamental Lemma is being used.

  1. g C([0, 1]) and
    ∫ 1
    g(x)η(x)dx  = 0
 0
    (2)

    for every η Cc(0, 1).

  2. g C([0, 1]) and
    ∫ 1
   g (x )x(1 − x)dx =  0.
 0
    (3)

  3. g C([0, 1]) and
    ∫ 1
    g(x)η(x)dx  = 0
 0
    (4)

    for every η C1([0, 1]) satisfying η(0) = η(1) = 0.

  4. g Lloc1(0, 1) and
    ∫ 1
    g(x)η(x)dx  = 0
 0
    (5)

    for every η Cc(0, 1).

Exercise 2: One test function is not enough

Let

η(x) = x (1 − x ),     0 ≤ x ≤ 1.
(6)

Find a nonzero linear function

g(x) = x − c
(7)

such that

∫
  1
   g (x )η(x)dx =  0.
 0
(8)

Explain why this does not contradict the Fundamental Lemma.

Exercise 3: A weighted-square proof

Suppose g C1([0, 1]) and

∫ 1

 0  g(x)η(x)dx  = 0
(9)

for every η C1([0, 1]) satisfying η(0) = η(1) = 0. Without invoking the Fundamental Lemma by name, choose a test function depending on g and prove directly that g 0.

Exercise 4: Recover a differential equation and solve it

Suppose y C2([0, 1]) satisfies

∫
  1(   2     ′′   )
    3x  −  2y (x) η(x )dx = 0
 0
(10)

for every η Cc(0, 1), together with

y (0 ) = 0,    y(1) = 1.
(11)

Use the Fundamental Lemma to determine y(x).

Exercise 5: First variation to boundary-value problem

Let y C2([0, 1]) satisfy the fixed-endpoint stationarity identity

∫ 1
    (2yη + 2y′η′) dx = 0
 0
(12)

for every η C1([0, 1]) with η(0) = η(1) = 0. If

y (0 ) = 0,    y(1) = 1,
(13)

derive and solve the differential equation for y.

Exercise 6: Vector-valued Fundamental Lemma

Let u,v C1([0, 1]) and suppose

∫ 1
   [(u′ − v)η1 + (v′ + u)η2]dx = 0
 0
(14)

for every pair (η12) of smooth compactly supported test functions.

  1. Derive the coupled differential equations for u and v.
  2. Solve them subject to
    u (0 ) = 1,    v(0) = 0.
    (15)

Exercise 7: Pointwise versus almost-everywhere equality

Define

       {
         1,  x = 12,
g(x) =           1
         0,  x ⁄= 2.
(16)

Show that

∫ 1
    g(x)η(x)dx  = 0
 0
(17)

for every smooth compactly supported test function η. Why is the conclusion g = 0 almost everywhere correct while the conclusion g = 0 at every point is false?

Exercise 8: Stationarity is not classification

Consider

         ∫
           1  ′  2
J [y] = −     y(x ) dx
          0
(18)

on the fixed-endpoint class y(0) = y(1) = 0.

  1. Show that y(x) = 0 is stationary.
  2. Classify y globally.
  3. Explain which part of the reasoning uses the Fundamental Lemma and which part does not.

2 Solutions

Solution 1: Hypothesis audit

(a) The classical Fundamental Lemma applies directly. Since g is continuous and the integral vanishes for every smooth compactly supported test function,

g (x ) = 0
(19)

for every x (0, 1), and continuity extends the conclusion to the endpoints. Thus

g ≡ 0    on  [0,1].
(20)

(b) No such conclusion follows. This is one scalar orthogonality condition on an infinite-dimensional set of possible g. A nonzero function can easily have zero weighted integral against a single chosen test function. Exercise 2 constructs one explicitly.

(c) The fixed-endpoint corollary applies. Every function in Cc(0, 1) is also a C1 function that vanishes at both endpoints, so the hypothesis includes the test class required by the Fundamental Lemma. Therefore

g ≡ 0.
(21)

(d) The weak Fundamental Lemma applies. The correct conclusion is

g (x ) = 0
(22)

for almost every x (0, 1). Without additional regularity such as continuity, pointwise equality everywhere cannot be inferred.

Solution 2: One test function is not enough

We require

∫ 1
   (x − c)x(1 − x)dx =  0.
 0
(23)

Separate the two terms:

∫                   ∫
  1  2                1
    x (1 − x)dx − c    x (1 − x )dx = 0.
 0                   0
(24)

The required integrals are

∫ 1               1
    x(1 − x)dx =  --
 0                6
(25)

and

∫ 1                1
   x2(1 − x )dx = ---.
 0                12
(26)

Therefore

1--− c-=  0,
12   6
(27)

so

|------|
|    1-|
|c = 2.|
--------
(28)

Thus

            1
g(x) = x −  --
            2
(29)

is nonzero yet satisfies the given integral identity.

PIC

Figure. The product is negative on the left half of the interval and positive on the right half. Its signed areas cancel. A single vanishing integral is therefore an orthogonality statement, not a pointwise conclusion.

There is no contradiction with the Fundamental Lemma because the lemma assumes that the integral vanishes for every test function in a sufficiently rich class, not for one chosen η.

Solution 3: A weighted-square proof

Choose

η(x) = x(1 − x)g(x).
(30)

Because g C1([0, 1]), this η belongs to C1([0, 1]), and

η(0) = η(1) = 0.
(31)

It is therefore an admissible test function. Substitution gives

    ∫                ∫
      1                 1            2
0 =    g(x )η (x )dx =     x(1 − x)g(x)  dx.
     0                 0
(32)

For 0 < x < 1,

x(1 − x) > 0,
(33)

and g(x)2 0. Hence the integrand is nonnegative. A continuous nonnegative function with zero integral must vanish identically, so

            2
x(1 − x)g(x)  = 0
(34)

for every x [0, 1]. On the open interval this implies

g(x) = 0.
(35)

Continuity then gives g(0) = g(1) = 0. Therefore

|------|
|g ≡ 0.|
--------
(36)

This proof is efficient, but it relies on the test class being broad enough to allow a test function constructed from g itself.

Solution 4: Recover a differential equation and solve it

Define

         2     ′′
q(x) = 3x −  2y (x).
(37)

Since y C2, the function q is continuous. The hypothesis says

∫ 1
    q(x)η(x)dx  = 0
 0
(38)

for every smooth compactly supported η. The Fundamental Lemma therefore gives

3x2 − 2y′′(x ) = 0,
(39)

or

y ′′(x ) = 3x2.
         2
(40)

Integrating once,

 ′      1- 3
y (x) = 2x  + C1.
(41)

Integrating again,

y(x) = 1-x4 + C x + C  .
       8       1      2
(42)

The condition y(0) = 0 gives C2 = 0. The condition y(1) = 1 gives

    1-
1 = 8 + C1,
(43)

hence

     7
C1 = --.
     8
(44)

Therefore

|------------------|
|y(x) = 1-x4 + 7x. |
--------8------8---|
(45)

Solution 5: First variation to boundary-value problem

Begin with

∫
  1          ′′
   (2y η + 2y η )dx = 0.
 0
(46)

Integrate the second term by parts:

∫  1                   ∫  1
    2y′η′dx = [2y′η]10 −    2y′′η dx.
  0                      0
(47)

Since η(0) = η(1) = 0, the boundary term vanishes. Thus

∫  1
    2(y − y′′)ηdx =  0
  0
(48)

for every fixed-endpoint test function. The Fundamental Lemma gives

y − y′′ = 0,
(49)

or

y′′ − y = 0.
(50)

The general solution is

y (x ) = A sinh x + B cosh x.
(51)

From y(0) = 0,

B  = 0.
(52)

From y(1) = 1,

     --1---
A =  sinh 1 .
(53)

Hence

|--------------|
|y(x) = sinhx-.|
--------sinh-1--
(54)

This exercise exhibits the complete chain that CV03 supports:

                                           ∫
first variation −→ integration by  parts − →   gη dx = 0 −→  Fundamental   Lemma   −→  ODE.
(55)

Solution 6: Vector-valued Fundamental Lemma

Because the test components are independently arbitrary, choose first

η  = 0.
 2
(56)

Then

∫
  1  ′
   (u − v )η1 dx = 0
 0
(57)

for every scalar test function η1. Hence

  ′
u  − v = 0.
(58)

Now choose

η1 = 0.
(59)

Then

∫
   1  ′
    (v + u)η2 dx = 0,
  0
(60)

so

  ′
v  + u = 0.
(61)

Thus the coupled system is

|-′----------′-------|
-u-=--v,----v-=--−-u.-
(62)

PIC

Figure. A vector test function can be chosen with only one component active. The vector integral identity therefore separates into scalar identities, to which the scalar Fundamental Lemma is applied componentwise.

Differentiate u= v to obtain

u′′ = v′ = − u,
(63)

so

u′′ + u = 0.
(64)

Hence

u(x) = A cosx + B  sin x.
(65)

Since v = u,

v(x) = − A sin x + B cos x.
(66)

The initial data u(0) = 1 and v(0) = 0 give

A = 1,     B =  0.
(67)

Therefore

----------------------------------
|                                |
-u(x)-=-cosx,-----v(x)-=-−-sin-x.-
(68)

Solution 7: Pointwise versus almost-everywhere equality

The function g differs from zero at only the single point x = 12. Changing an integrand at a set of measure zero does not change its integral. Therefore for every test function η,

∫
  1
   g (x )η(x)dx =  0.
 0
(69)

Nevertheless,

  (1 )
g  --  = 1.
   2
(70)

Thus pointwise equality everywhere is false. However, the set on which g is nonzero has measure zero, so

|--------------------------|
g-=--0--almost-everywhere.--
(71)

This is exactly why the weak Fundamental Lemma concludes almost-everywhere equality for locally integrable functions. Continuity is what upgrades that conclusion to pointwise equality in the classical theorem.

Solution 8: Stationarity is not classification

For

         ∫  1 ′2
J [y ] = −    y  dx,
           0
(72)

the first variation is

             ∫ 1
δJ[y;η] = − 2    y′η ′dx.
              0
(73)

At y = 0,

y′ = 0,
 ∗
(74)

so

δJ [0;η] = 0
(75)

for every admissible η. Thus y = 0 is stationary.

For every admissible y,

         ∫
            1 ′2
J [y] = −     y  dx ≤ 0.
           0
(76)

At y = 0,

J [0 ] = 0.
(77)

Therefore

|----------------------------|
-y∗ =-0-is-a-global-maximum.----
(78)

The Fundamental Lemma is used when converting a stationary integral identity into a pointwise differential equation. It does not classify a stationary function as a minimum or maximum. Classification here comes from the sign of the functional itself.

3 Summary

The exercises reinforce four distinct lessons:

  1. the Fundamental Lemma requires a rich class of test functions;
  2. one or finitely many vanishing weighted integrals do not imply pointwise vanishing;
  3. scalar and vector integral identities become pointwise differential equations through localization; and
  4. the weak theorem naturally gives almost-everywhere equality, while classification of stationary curves requires additional arguments.

"Calculus of Variations Examples: Fundamental Lemma Problems" is owned by bloftin.
(view preamble)
View style:
Other names:  CV03E1

This object's parent.

Cross-references: system, CV03, boundary, differential equation, function, identities, vector, scalar, theorem
There is 1 reference to this object.

This is version 1 of Calculus of Variations Examples: Fundamental Lemma Problems, born on 2026-09-10.
Object id is 1146, canonical name is CalculusOfVariationsExamplesFundamentalLemmaProblems.
Accessed 9 times total.

Classification:
Physics Classification02.30.Xx (Calculus of variations)
 02.30.Sa (Functional analysis)
 45.20.Jj (Lagrangian and Hamiltonian mechanics)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add example | add (any)