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] Admissible Functions example of Calculus of Variations: Functionals (Example)

Calculus of Variations: Functional Evaluation and Comparison Exercises

This companion entry reinforces CV01 before any first-variation machinery is introduced. The emphasis is deliberately elementary but fundamental: a functional assigns a scalar to an entire admissible function, and the value of that scalar depends both on the formula for the functional and on the function inserted into it.

The exercises develop four habits that are essential later in the course:

  1. identify the domain and admissible class before doing algebra;
  2. substitute a complete trial function into a functional carefully;
  3. compare several admissible candidates without assuming that stationarity machinery is required; and
  4. recognize that a restricted family of functions can turn an infinite-dimensional problem into an ordinary finite-dimensional one.

PIC

Figure. Evaluating a functional means selecting an admissible function, computing any required derivatives, substituting the entire function into the functional, and reducing the result to a scalar.

1 Exercises

Exercise 1: function or functional?

For each mapping below, determine whether it is an ordinary function, a functional, or can be interpreted as either depending on its declared domain. For every functional, state a natural domain on which it is well defined.

  1. f(x) = x2 + 1.
  2. J[y] = 01y(x)2 dx.
  3. P[y] = y(12).
  4. L[y] = 01∘  -----′--2-
   1 + y (x) dx.
  5. M[y] = max 0x1|y(x)|.

Explain why a functional need not be written as an integral.

Exercise 2: evaluate one functional on several functions

Consider

       ∫ 1
J[y] =    (y (x )2 + y′(x)2)dx.
        0
(1)

Evaluate J[y] for each of the following functions:

  1. y0(x) = 0,
  2. y1(x) = x,
  3. y2(x) = x2,
  4. y3(x) = sin(πx).

Rank the four functions by increasing functional value.

Exercise 3: the same formula, different variational problems

Consider the functional formula

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

Compare the following two admissible classes:

𝒜   = {y ∈  C1([0,1]) : y(0) = 0, y(1) = 1} ,
  1
(3)

and

      {                                 }
𝒜2  =   y ∈ C1([0,1]) : y(0) = 0, y(1) = 0 .
(4)

  1. Determine whether y = x, y = x2, and y = 0 belong to each class.
  2. Evaluate J on every candidate for which it is admissible.
  3. Explain why specifying only the formula for J does not completely specify the variational problem.
  4. Without using Euler–Lagrange, identify the obvious global minimizer in 𝒜2 and justify the claim.

Exercise 4: compare three admissible connecting curves

On the fixed-endpoint class

     {                                 }
𝒜 =   y ∈ C1 ([0,1]) : y(0) = 0, y(1) = 1 ,
(5)

consider

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

and the three admissible curves

                  2             2     3
y1 = x,     y2 = x ,    y3 = 3x  − 2x  .
(7)

  1. Verify the endpoint conditions.
  2. Compute J[y1], J[y2], and J[y3] exactly.
  3. Which of these three trial curves has the smallest value?
  4. Does winning this three-curve comparison prove that the winning curve is the global minimizer over all of 𝒜? Explain.

PIC

Figure. Three admissible competitors connecting the same endpoints. A functional can rank these curves even before any variational derivative is introduced.

Exercise 5: arc length of a line and a parabola

For a graph y(x) on 0 x 1, define its length by

       ∫
         1∘  -----′--2-
L[y] =       1 + y (x) dx.
        0
(8)

Both

                               2
y1(x ) = x    and     y2(x ) = x
(9)

connect (0, 0) to (1, 1).

  1. Compute L[y1] exactly.
  2. Show that
            √ --                √ --
          5   1               5   1        √ --
L [y2] = ----+ --arsinh(2) = ----+ --ln(2 +   5).
         2    4              2    4
    (10)

  3. Compare the two values numerically and interpret the result geometrically.

Exercise 6: restrict the problem to a one-parameter family

For

yc(x) = x + cx (1 − x ),   c ∈ ℝ,
(11)

every member satisfies yc(0) = 0 and yc(1) = 1.

For the functional

       ∫
         1 ′   2
J[y] =    y (x) dx,
        0
(12)

  1. compute the ordinary scalar function J(c) = J[yc];
  2. minimize J(c) using ordinary single-variable calculus;
  3. identify the corresponding curve;
  4. explain what has and has not been proved about the full admissible class.

PIC

Figure. Restricting an infinite-dimensional search to the family yc = x + cx(1 x) produces the ordinary scalar function J(c) = 1 + c23.

Exercise 7: a quadratic energy functional

Let

       1 ∫ 1(                  )
E[y] = --    T y′(x)2 + K y(x)2  dx,
       2  0
(13)

where T > 0 and K > 0 are constants. Evaluate E for the trial family

yA(x) = A sin (πx).
(14)

  1. Find E(A) exactly.
  2. Compare E[0], E[yA], and E[y2A].
  3. Explain why the quadratic dependence on amplitude is typical of small-deflection elastic and field energies.

Exercise 8: evaluating a mechanical action on trial paths

Consider the one-dimensional action

      ∫   [                  ]
         1 1      2   1      2
S[q] =     --m ˙q(t) − --kq(t)  dt,
        0  2          2
(15)

with m > 0, k > 0, and fixed endpoint conditions q(0) = q(1) = 0. Restrict attention to the trial family

qa(t) = at(1 − t).
(16)

  1. Compute S(a) = S[qa] exactly.
  2. For what relation between k and m is S(a) positive for every nonzero a in this trial family? When is it negative?
  3. What happens when k = 10m?
  4. Explain why this example warns against assuming that an “action principle” always means ordinary minimization of a positive quantity.

Exercise 9: an infimum that is not attained

Let

𝒜  = {y (x) = cx : c > 0}
       c
(17)

and define

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

  1. Compute J[yc].
  2. Determine inf y∈𝒜J[y].
  3. Is that infimum attained by any admissible function?
  4. What change to the admissible set would make the infimum attained?

2 Solutions

Solution 1: function or functional?

(a) The mapping

f(x) = x2 + 1
(19)

is an ordinary real-valued function of a numerical variable x.

(b) The mapping

       ∫
          1    2
J [y] =    y(x) dx
         0
(20)

is a functional because its input is an entire function y. A natural domain is C0([0, 1]), although much larger spaces such as L2(0, 1) are also possible.

(c) The map

P [y] = y(1∕2)
(21)

is a functional if its input is a function y. A natural domain is C0([0, 1]). This example is important because it is a functional that is not written as an integral.

(d) The arc-length map

       ∫ 1∘ -------
L[y] =      1 + y′2dx
        0
(22)

is a functional. A classical domain is C1([0, 1]), possibly restricted by endpoint conditions.

(e) The map

M  [y] =  max  |y(x)|
        0≤x≤1
(23)

is also a functional. For continuous functions on a compact interval the maximum exists, so C0([0, 1]) is a natural domain.

Thus a functional is characterized by the nature of its input, not by whether its formula contains an integral. Integrals are common because physical quantities such as length, action, energy, and mass accumulate local contributions, but point evaluation and maximum norms are also functionals.

Solution 2: evaluate one functional on several functions

The functional is

       ∫
         1  2    ′2
J [y ] =   (y  + y  )dx.
        0
(24)

(a) For y0 = 0, both y0 and y0vanish, so

J[y0] = 0.
(25)

(b) For y1 = x, y1= 1, hence

        ∫ 1
J[y1] =    (x2 + 1)dx =  1-+ 1 = 4-.
         0               3       3
(26)

(c) For y2 = x2, y 2= 2x, so

        ∫
          1  4     2       1   4    23
J [y2] =    (x  + 4x )dx =  --+ --=  --.
         0                 5   3    15
(27)

(d) For y3 = sin(πx),

y′3 = π cos(πx).
(28)

Therefore

J[y3] = 01[                     ]
 sin2(πx ) + π2 cos2(πx)dx (29)
= 1
--
2 + π2
---
 2 = 1 + π2
-------
   2. (30)

Numerically,

    4-           23-           1 +-π2-
0 < 3 ≈ 1.333 <  15 ≈ 1.533 <    2    ≈ 5.435.
(31)

Thus the ranking is

|------------------|
-y0,--y1,--y2,--y3--
(32)

from smallest to largest functional value.

Solution 3: the same formula, different variational problems

The functional formula is

       ∫  1
J [y ] =    y′2 dx.
         0
(33)

(a) For 𝒜1, admissibility requires y(0) = 0 and y(1) = 1. Therefore

                      2
y = x ∈ 𝒜1,     y =  x ∈  𝒜1,     y = 0 ∕∈ 𝒜1.
(34)

For 𝒜2, admissibility requires both endpoints to vanish. Hence

y = 0 ∈ 𝒜2,
(35)

while y = x and y = x2 are not in 𝒜 2 because both equal 1 at x = 1.

(b) The admissible evaluations are

       ∫
         1
J[x] =     1dx = 1,
        0
(36)

       ∫  1           4
J[x2] =    (2x )2dx =  -,
         0            3
(37)

and

J [0 ] = 0.
(38)

(c) The same integral expression can represent different optimization problems because the competitors are different. The admissible class is part of the mathematical definition of the problem.

(d) Since

y ′(x)2 ≥ 0,
(39)

we have

J[y] ≥ 0
(40)

for every admissible y. The function y = 0 belongs to 𝒜2 and attains J[0] = 0. Therefore it is a global minimizer. In fact it is the unique global minimizer among C1 functions, because J[y] = 0 forces y= 0 everywhere, and the endpoint condition then forces y = 0.

Solution 4: compare three admissible connecting curves

(a) At x = 0,

y1(0) = y2(0) = y3(0) = 0.
(41)

At x = 1,

y1(1) = 1,     y2(1) = 1,    y3(1) = 3 − 2 = 1.
(42)

All three are admissible.

(b) For y1 = x,

J[y1] = 1.
(43)

For y2 = x2,

        ∫ 1          4
J [y2] =     4x2dx =  -.
         0           3
(44)

For

y3 = 3x2 − 2x3,
(45)

we have

  ′          2
y3 = 6x −  6x  = 6x(1 − x).
(46)

Therefore

J[y3] = 36 01x2(1 x)2 dx (47)
= 36 01(x2 2x3 + x4) dx (48)
= 36( 1   1   1 )
  --− --+ --
  3   2   5 (49)
= 36(   )
  1
  ---
  30 = 6
--
5. (50)

Hence

|----------------------------------|
|                   6            4 |
|J[y1] = 1 < J [y3] =-<  J[y2] = --.
--------------------5------------3-
(51)

(c) Among these three trial curves, the line y1 = x has the smallest value.

(d) No. This proves only that y1 beats the two specific competitors chosen here. The full admissible class contains infinitely many other curves. A global-minimum proof must compare against every admissible function or use a theorem that guarantees the result.

CV01 itself gave such a direct proof by writing an arbitrary admissible curve as y = x + u with u(0) = u(1) = 0, which yields

           ∫ 1  ′2
J [y ] = 1 +    u  dx ≥ 1.
            0
(52)

Solution 5: arc length of a line and a parabola

(a) For y1 = x, y1= 1, so

        ∫           |---|
          1√ --     |√ -|
L [y1] =      2 dx = ---2-.
         0
(53)

(b) For y2 = x2, y 2= 2x, hence

       ∫  1√ --------
L[y2] =      1 + 4x2dx.
         0
(54)

Use the standard antiderivative

∫
  √1--+-4x2-dx = x-√1--+-4x2-+ 1-arsinh (2x).
                  2            4
(55)

Evaluating from 0 to 1 gives

        √ --
        --5-  1-
L[y2] =  2  + 4 arsinh (2).
(56)

Since

              (     √--)
arsinh(2) = ln  2 +  5  ,
(57)

we obtain

|--------√------------------|
|          5   1        √ --|
|L [y2] = ----+ --ln(2 +   5).
----------2----4------------
(58)

(c) Numerically,

L [y1] ≈ 1.41421,    L [y2] ≈ 1.47894.
(59)

The straight segment is shorter. This agrees with Euclidean geometry: among all sufficiently regular curves joining two fixed points in the plane, the straight line has the least length.

Solution 6: restrict the problem to a one-parameter family

The family is

yc = x + cx(1 − x).
(60)

Differentiate:

y ′= 1 + c(1 − 2x).
  c
(61)

Then

J(c) = 01[1 + c(1 − 2x )] 2dx (62)
= 01[                            ]
 1 + 2c(1 − 2x) + c2(1 − 2x )2dx. (63)

The linear term integrates to zero:

∫ 1
   (1 − 2x )dx = 0,
 0
(64)

and

∫
  1        2      1-
   (1 − 2x) dx =  3.
 0
(65)

Therefore

|------------2-|
|J(c) = 1 + c- .
------------3--|
(66)

(b) Ordinary calculus gives

 ′     2c        ′′      2
J (c) = ---,    J  (c) =  --> 0.
        3               3
(67)

Thus the unique minimum within this family occurs at

|-----|
-c =-0 .
(68)

(c) The corresponding curve is

|----------|
|y0(x) = x .
-----------
(69)

(d) We have proved that y = x minimizes J among the restricted one-parameter family yc. By itself, this does not prove that it minimizes over the entire infinite-dimensional admissible class. Restricted trial families are useful approximations, but the conclusion is only as broad as the family searched.

This finite-dimensional reduction foreshadows the Ritz method developed much later in the course.

Solution 7: a quadratic energy functional

For

yA = A sin(πx ),
(70)

we have

y′A =  Aπ cos(πx ).
(71)

Substitute into the energy:

E(A) = 1-
2 01[                               ]
 T A2 π2cos2(πx ) + KA2 sin2(πx)dx (72)
= 1
--
2A2[     (1 )      ( 1) ]
 T π2  --  + K    --
       2          2. (73)

Hence

|-----------------------|
|         A2 (   2    ) |
|E (A) =  --- Tπ  + K   .
----------4-------------
(74)

Therefore

E [0] = 0,
(75)

         A2-    2
E [yA] =  4 (Tπ  + K ),
(76)

and

E [y2A] = 4E [yA ].
(77)

The factor-of-four scaling follows because both terms in the functional are quadratic in y or its derivative. Linear elasticity, small oscillations, and many linear field theories produce quadratic energies for exactly this reason.

Solution 8: evaluating a mechanical action on trial paths

The trial path is

qa(t) = at(1 − t),
(78)

so

q˙a(t) = a(1 − 2t).
(79)

Substitute into the action:

              ∫                     ∫
        1    2  1        2     1  2   1 2      2
S (a) = -ma      (1 − 2t) dt − -ka     t (1 − t) dt.
        2      0               2     0
(80)

The needed integrals are

∫  1
    (1 − 2t)2dt = 1
  0              3
(81)

and

∫
  1  2      2      1
    t(1 − t) dt = --.
 0                30
(82)

Therefore

S(a) = ma2--
  6 ka2-
60 (83)
=   2
a--
60(10m k) . (84)

(b) For every nonzero a, the sign is controlled by 10m k:

S(a) > 0   ⇐ ⇒    k <  10m,
(85)

while

S(a) < 0   ⇐ ⇒    k >  10m.
(86)

(c) If k = 10m, then

S (a) = 0
(87)

for every amplitude a in this particular trial family.

(d) Mechanical action contains kinetic energy minus potential energy, not a manifestly positive sum. Stationary-action principles therefore need not be ordinary global minimization statements. Later entries will distinguish stationarity from minimum, maximum, and saddle behavior rigorously.

Solution 9: an infimum that is not attained

For

yc(x) = cx,
(88)

we have

        ∫            |---|
          1 2 2      |c2 |
J[yc] =    c x  dx = |-- .
         0           -3--
(89)

Because c > 0 can be chosen arbitrarily small,

|------------|
|inf J [y] = 0 .
y∈𝒜----------|
(90)

However, no admissible c > 0 gives J[yc] = 0. The only parameter that would attain zero is c = 0, and it is excluded from the admissible set. Thus the infimum exists but is not attained.

If the admissible set is changed to

𝒜0 = {yc(x ) = cx : c ≥ 0},
(91)

then c = 0 becomes admissible and the minimum is attained by y = 0.

This simple finite-dimensional example already captures an issue that becomes central in the direct method of the calculus of variations: an infimum and an actual minimizer are different mathematical statements.

3 Summary

These exercises reinforce the basic viewpoint of CV01. A functional is a map from functions to scalars, and its optimization problem is defined not merely by its formula but also by its admissible class. Direct substitution can rank trial curves, sometimes prove a global minimum from positivity, and reveal important physical structure before any variational derivative is introduced.

The restricted-family exercises also anticipate a recurring strategy:

choose a parameterized family of functions    =⇒    reduce J [y] to an ordinary  function of parameters.
(92)

In CV02 that scalarization is performed infinitesimally with y𝜖 = y + 𝜖η. In later numerical work it becomes the foundation of Ritz and finite-dimensional approximation methods.


"Admissible Functions example of Calculus of Variations: Functionals" is owned by bloftin.
(view preamble)
View style:
Other names:  CV01E1
Keywords:  calculus of variations, functional, admissible function, trial function, curve comparison, arc length, energy functional, action, direct substitution, Ritz idea

This object's parent.

Cross-references: work, CV02, parameter, kinetic energy, regular, theorem, forces, norms, mass, relation, energies, field, graph, domain, formula, function, scalar, CV01

This is version 1 of Admissible Functions example of Calculus of Variations: Functionals, born on 2026-09-12.
Object id is 1198, canonical name is AdmissibleFunctionsExampleOfCalculusOfVariationsFunctionals.
Accessed 4 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)