Professional Documents
Culture Documents
Calculus of Variations
Calculus of Variations
B.V.Ramana
Chapter
10:13
4
Calculus of Variations
4.1 INTRODUCTION
Calculus of variations deals with certain kinds of
external problems in which expressions involving
integrals are optimized (maximized or minimized).
Euler and Lagrange in the 18th century laid the foundations, with the classical problems of determining
a closed curve in the plane enclosing maximum area
subject to xed length and the brachistochrone problem of determining the path between two points in
minimum time. The present day problems include
the maximization of the entropy integral in third law
of thermodynamics, minimization of potential and
kinetic energies integral in Hamiltons principle in
mechanics, the minimization of energy integral in
the problems in elastic behaviour of beams, plates
and shells. Thus calculus of variations deals with the
study of extrema of functionals.
Functional: A real valued function f whose
domain is the set of real functions {y(x)} is known
as a functional (or functional of a single independent
variable). Thus the domain of denition of a functional is a set of admissible functions. In ordinary
functions the values of the independent variables are
numbers. Whereas with functionals, the values of the
independent variables are functions.
Example: The length L of a curve, c whose equation is y = f (x), passing through two given points
A(x1 , y1 ) and B(x2 , y2 ) is given by
L=
x2
1 + y 2 dx
x1
x2
L{y(x)} =
1 + y 2 dx
x1
Y
cn
c2
c1
A
O
Fig. 4.1
I {y(x)} =
x2
f (x, y, y )dx
(1)
x1
4.1
Chap-04
B.V.Ramana
4.2
10:13
MATHEMATICAL METHODS
F
F
+ +
y
y
2 F 2 2 2 F 2 F 2 2
+
+
+ 2
+
2!
yy
y 2
y
f = f (x, y, y ) +
+ F (x, y, y )
f
f
f
f
+ =
y + y
y
y
y
y
f
f
y + y
y
y
(f1 f2 ) = f1 f2
(b)
(f1 f2 ) = f1 f2 + f2 f1
(c)
(f ) = f 1 f
(d)
(e)
f2 f1 f1 f2
f22
d
d
d
(y) = dx () = dx
dx
dy
y = dx
.
f1
f2
= =
Thus taking the variation of a functional and differentiating w.r.t. the independent variable x are commutative operations.
Result: The necessary condition for the functional
I to attain an extremum is that its variation vanish
i.e., I = 0.
4.3 EULERS EQUATION
A necessary condition for the integral
I=
x2
f (x, y, y )dx
(1)
x1
y
dx
f
y
=0
(2)
for x1 x x2 .
Note 1: The second order differential equation (2)
is known as Euler-Lagrange or simply Eulers equation for the integral (1).
Note 2: The solutions (integral curves) of Eulers
equation are known as extremals (or stationary functions) of the functional. Extremum for a functional
can occur only on extremals.
Proof: Assume that the function y = y(x), is
twice-differentiable on [x1 , x2 ], satises the end
(boundary) conditions y(x1 ) = y1 and y(x2 ) = y2
and extremizes (maximizes or minimizes) the integral I given by (1). To determine such a function
y(x), construct the class of comparison functions
Y (x) dened by
Y (x) = y(x) + (x)
(2)
(3)
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
Differentiating (2),
Y (x) = y (x) + (x)
(4)
x2
f (x, Y, Y )dx
(5)
f
f
f
df
=
+ y
+ y
dx
x
y
y
x1
dx
Y
Y
x1
Consider
d
dx
x2
x1
f
f
+ dx
y
y
df
d
dx
dx
I (0) =
x2
x1
(6)
x2
x1
d
f
y
dx
f
y
(7)
f
d
y
dx
f
y
=0
= y
d
dx
f
y
+
f
y
y
(9)
y
f
y
=
f
f
d
+ y
y
x
y
dx
f
y
(2)
Note: Equation (2) is not sufcient condition. Solution of (2) may be maximum or minimum or a horizontal inexion. Thus y(x) is known as extremizing
function or extremal and the term extremum includes
maximum or minimum or stationary value.
(10)
d
dx
dx = 0
f
y
d
f
f
f d
f
f y =y
dx
y
x
y dx y
x2
f
x2
f
f
d
+
dx
y
y
x1
dx y
x1
I (0) =
y
Rewriting this
(8)
putting = 0,
I (0) =
4.3
d
dx
f
y
f
y
(11)
f
y
dy
dy
+
+
x
y dx
y dx
f
f
f
=
+y
+y
x y
y y
y y
2f
2f
2f
+ y
+ y 2
xy
yy
y
(12)
y
y 2 = 0
y
xy
yy
y
(13)
General case: the necessary condition for the occurrence of extremum of the general integral
x2
x1
Chap-04
B.V.Ramana
4.4
10:13
MATHEMATICAL METHODS
yi
dx
f
yi
Geodesics:
=0
for i = 1, 2, 3, . . . , .
First integrals of the Euler-Lagrangs equation:
Degenerate cases: Eulers equation is readily integrable in the following cases:
= 0 and
Case (a): If f is independent of x, then f
x
equivalent form of Eulers Equation (11) reduces to
d
dx
f y
f
y
=0
f
= constant
y
(14)
f
y
f
y
= 0,
Fig. 4.2
=0
(15)
y = c1 x + c 2
f
y
=0
f
=0
y
1 + (y )2 dx
(1)
x1
y = constant = c1
x2
L[y(x)] =
f
d
y
dx
Here f =
1 + y 2 so
Then
d
0
dx
or
f
y
=0
2y
f
1
= 0, y
= 2
f
y
1+y 2
y
1 + y 2
y = k 1 + y 2
Squaring y 2 = k 2 (1 + y 2 )
=0
where k = constant
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
i.e.,
y =
4.5
k2
= m = constant.
1 k2
f =
1 + y 2
reduces to
d
dx
1 + y 2
y 2
y
y 1 + y 2
=0
Integrating
1 + y 2 1 + y 2 y 2
= k1 = constant
y 1 + y 2
or
2
Fig. 4.3
Solution: Assume the positive direction of the yaxis is vertically downward and let x1 < x2 . Let
P (x, y) be the position of the particle at any time t,
on the curve c. Since energy is conserved, the speed
v of the particle sliding along any curve is given by
v = 2g(y y )
v12
2g
ds
1
=
2gy
2g
x=x2
x=0
1 + y 2
dx
(1)
(1)
k2
k2
k2
=
= k2 sin2 = (1 cos 2 )
2
1 + y 2
1 + cot2
(2)
Now
dx =
where y = y1
y(1 + y 2 ) = k2
dy
=
y
k2
2 (+2 sin 2 )d
cot
k2 2 sin cos d
= 2k2 sin2 d
cot
dx = k2 (1 cos 2 )d.
Integrating, x = k2 sin22 + k3 , where k3 is
constant of integration. So
x k3 =
k2
(2 sin 2 )
2
(2)
k2
k2
( sin ), y = (1 cos 2)
2
2
(3)
Chap-04
B.V.Ramana
4.6
10:13
MATHEMATICAL METHODS
Substituting f and
f
,
y
we have
y
1
y 1 + y 2 y
2y = c1
2 1 + y 2
y
y{(1 + y 2 ) y 2 }
=
= c1
1 + y 2
1 + y 2
y
1 + sin2 ht
So dx =
y
= c1
cosh t
or
y = c1 cosh t
(3)
c1 sinh t dt
dy
=
= c1 dt
y
sinh t
Integrating x = c1 t + c2
(2)
(4)
x c2
c1
y = c1 cosh t = c1 cosh
x c2
c1
(5)
Fig. 4.4
Solution: The surface area S generated by revolving the curve c dened by y(x) about x-axis is
S[y(x)] =
2y ds =
x2
2y 1 + y 2 dx
(1)
x=x1
f y
f
y
=0
or
f y
f
= constant = c1
y
Fig. 4.5
Solution:
body is
yy 3 dx
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
f
d
y
dx
f
y
= y 3
d
(3yy 2 ) = 0
dx
Here f = a 1 + sin2
d
d
yy 3 = c13
or
c1
y =
or
y3
Integrating y 3 dy = c1 dx yields
or
f
=0
or
f
= constant.
Integrating
4
3
1
1
2 sin2 = k = constant
i.e., a
2
1 + sin2 2
d
(yy 3 ) = 0
dx
4
y3
2
d
is independent of ,
d
d
. Denoting d
= , the
d
d
(1)
4.7
Integrating, we get
kcosec2 d
+ c2
(1 k 2 ) (kcot )2
kcot
1
( ) = cos
+ c2
1 k2
= c1 x + c2
( ) =
3
y(x) = (c3 x + c4 ) 4
(2)
0 = y(0) = 0 + c4
R = y(L) =
R3
... c3 =
L
3
(c3 L) 4
x 3
Geodesics
Example 5:
radius a.
d
k
kcosec2
= =
=
d
1 c2 cosec2
sin sin2 k 2
Since r = a = constant, dr = 0. So
ds
d
2
= a 2 + a 2 sin2
d
d
2
2
1
a 1 + sin2
d
d
2
d
which is the equation of plane, passing through origin (0, 0, 0) (since no constant term) the centre of
sphere. This plane cuts the sphere along a great circle. Hence the great circle is the geodesic on the
sphere.
Chap-04
B.V.Ramana
4.8
10:13
MATHEMATICAL METHODS
2
x2
y 2 (y )2 2y cosh x dx
(1)
x1
Here
f
y
d
dx
=0
(2)
(3)
y + y = cosh x
Put y = p, then y =
y dp
dy
1
cosh x.
2
1
y(x) = c1 cos x + c2 sin x + cosh x.
2
f is independent of x
Example 1: Find the extremals of the functional
I [y(x)] =
x1
(1 + y 2 )
y 2
1 + y2
y 2
=0
(3)
d
p
dx
dp dy
dy dx
dp
yp 2 = 0
dy
or
py
dp
=
dy
1 + y2
y dy
dp
1 d(1 + y 2 )
=
=
2
p
2 (1 + y 2 )
1+y
p = c1 (1 + y 2 ) or
Integrating
d
y
dx
p 2 = c12 (1 + y 2 ).
dy
= c 1 + y2
dx
dy
= c1 dx
1 + y2
we get
sinh1 y = c1 x + c2
x2
d
dx
y(x) = sinh(c1 x + c2 )
p dp
.
dy
(1 + y 2 )p
so
(5)
=3
(2)
(1 + y 2 )y yy 2 = 0
(4)
d
(2y ) = 0
dx
(1)
y 2 (2yy ) (1 + y 2 )2y y
=0
y 4
y=
(2)(1 + y 2 )
1 + y2
y
2
y
y 3
Integrating
f
= 2y
y
2y 2 cosh x
or
Solution:
Here
f (x, y, y ) = y 2 (y )2
2y cosh x, which is a function of x, y, y . The
Euler-Lagrange equation is
f
d
y
dx
f
f y
=0
y
1 + y2
2(1 + y 2 )
f
=
=
2
y
y
y
y 3
d
dx
dx
f is independent of y
Example 3: If the rate of motion v = ds
is equal to
dt
x then the time t spent on translation along the curve
y = y(x) from one point P1 (x1 , y1 ) to another point
P2 (x2 , y2 ) is a functional. Find the extremal of this
functional, when P (1, 0) and P2 (2, 1).
ds
ds
Solution: Given
= x or
= dt.
dt
x
But ds = 1 + y 2 dx so
1 + y 2 dx
= dt.
x
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
Integrating from P1 to P2
x2
x2
dt =
x1
x1
x2
t[y(x)] =
Here f =
x1
equation is
1 + y 2
dx. The functional is
x
1 + y 2
dx
x
1+y 2
which is independent of y. Eulers
x
f
d
=0
dx y
1 1
1
2y = 0
x 2
1 + y 2
x (1 + y 2 )y y (1 + y 2 ) + xy y
d
dx
1 + (0 c3 )2 = c4
x 2 (1 + y 2 ) 2
Put y = u, then
du
x dx
u 2
x
=0
u(1 + u ) = 0
= c12 (1 + u2 )
f
= x + 2y 4yy
y
2 =
Put
y
=
tan
v,
then
1
+
y
1 + tan2 v =
2
sec v
x=
Now
dy
= y = tan v
dx
dy = tan v dx = tan v
c2 =
1
sin v dv
c1
1
c1
or
y c3 = c2 cos v
f
= 2y 2 .
y
f
y
= (x + 2y 4yy )
d
(2y 2 ) = 0
dx
= x + 2y 4yy + 4yy = 0
x + 2y = 0
x
i.e., y = .
2
1
cos v dv =
c1
Integrating y = c2 cos v + c3
where
d
f
y
dx
or
1
cos v dv
c1
dx =
and
y
1
1 tan v
=
sin v (1)
=
c1 secv
c1
c1 (1 + y 2 )
and
y = c12 x 2 (1 + y 2 )
y = c1 x (1 + y 2 ).
so
I [y(x)]=
2
or
... c3 = 2
x 2 + (y + 2)2 = 5.
du
udu
dx
du
=
=
u
x
u(1 + u2 )
1 + u2
Integrating
1 + c32 = c4
xy y (1 + y 2 ) = 0.
or
or
4 + (1 c3 )2 = c4 = 1 + c32
(4)
x 2 (1 + y 2 ) 2
xy y (1 + y 2 )
4.9
Geodesics
(2)
(3)
Chap-04
B.V.Ramana
4.10
10:13
MATHEMATICAL METHODS
ds
d
2
2
=a +
dz
d
2
ds
=
d
or
a2
s=
a2 +
dz
d
dz
d
2
d.
s=
so
or
f
z
f
= constant = k
z
2
f
dz
1 2 z
=
a2 +
=k
=
z
d
2 a 2 + z2
squaring,
dr
d
2
+ r 2 sin2 d
r 4 sin4 = k 2 (r 2 + r 2 sin2 )
r 2 sin2 (r 2 sin2 k 2 )
k2
dr
r sin
=
r 2 sin2 k 2
d
k
kdr
= sin d.
r r 2 sin2 k 2
dr
= sin + c1
Integrating k
2
r r sin2 k 2
i.e.,
where
+ r 2 sin2
r 2 =
or
k2 a2
1 k2
ka
dz
=
i.e., z =
d
1 k2
z2 =
z = k + c1 and
ka
k =
.
1 k2
2
f
f r = constant = k
r
2r
1
or r 2 + r 2 sin2 r
=k
2 r 2 + r 2 sin2
r 2 + r 2 sin2 r 2 = k r 2 + r 2 sin2
z2 = k 2 (a 2 + z2 )
1k 2
dr
d
or
Integrating z( ) = ka
=
The arc
s of the curve is to be minimized. Here
length
2
dr
f =
+ r 2 sin2 is independent of . Then
d
= 0
2
2
1
ds
d
Integrating w.r.t.,
2
Integrating
Then
r=a
Then
Thus
t
1
sin2
t2
dt
dt
2 = k
2
t
sin k 2 t 2
k2
kt
= cos1
.
sin
kt
= sin + c1
cos1
sin
kt
= cos( sin + c1 )
sin
k
= cos( sin + c1 )
r sin
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
4.11
EXERCISE
Ans. y = (C + x) sin x.
Variational problems
4.5 ISOPERIMETRIC PROBLEMS
I [y(x)] =
(y 2 y 2 )dx, y(0) = 0, y
2
= 1.
Hint:
EE:
c2 sin x + x
Ans. y = x 2 sin x
x
5. x12 (y 2 + 2xyy )dx, y(x1 ) = y1 , y(x2 ) = y2
Hint: EE: 2y + 2xy 2(xy + y) = 0 i.e.,
0=0
Ans. Invalid problem
2 3
6. 1 yx2 dx, y(1) = 1, y(2) = 4
Ans. y = x 2
3 2
7. 2 yx 3 dx, y(2) = 1, y(3) = 16
Hint: EE:
y
y
= x3 , y = cx 3 , y = c1 x 4 + c2
3 4
Ans. y = 13
x 35
13
x1 2
8. x0 (y + y 2 + 2yex ) dx
x
Ans. y = Ae + Be +
9. 0 (4y cos x y 2 + y )dx, y(0) = 0, y( ) =
0
x
1
xex
2
2
x2
I [y(x)] =
f (x, y, y )dx
(1)
x1
J [y(x)] =
x2
g(x, y, y )dx
(2)
x1
(3)
Chap-04
B.V.Ramana
4.12
10:13
MATHEMATICAL METHODS
x
I [y(x)] = x12 H (x, y, y )dx, subject to no constraints (except the boundary conditions). Then the
modied Eulers equation is given by
H
d
y
dx
H
y
=0
(4)
Corollary:
Parametric form: To nd the
extremal of the functional
t2
. .
f (x, y, x , y , t)dt
J=
t2
H=
Form
H
.
x
=0
and
H
d
y
dt
H
.
y
.
.
x 2 + y 2 dt
1 .
.
.
.
(xy x y) + x 2 + y 2
2
.
d 1
1.
x
=0
y
y+
.
.
2
dt
2
x2 + y2
.
d 1
y
1.
=0
x+
x
.
.
2
dt 2
x2 + y2
=0
. .
. .
. .
H (x, y, x , y , t) = f (x, y, x , y , t) + g(x, y, x , y , t)
(3)
(4)
(5)
(6)
.
x
y
= c1
.
.
x2 + y2
.
y
= c2
x+
.
.
x2 + y2
and
(7)
(8)
The two arbitrary constants c1 , c2 and are determined using the end conditions and the constraint.
(9)
(10)
Circle
Example 1: Isoperimetric problem is to determine
a closed curve C of given (xed) length (perimeter)
which encloses maximum area.
Solution: Let the parametric equation of the curve
C be
y = y(t)
t2
H
d H
. = 0
x
dt x
d H
H
. =0
y
dt y
x = x(t),
(2)
.
.
Differentiating H in (4) w.r.t. x, x , y, y and substituting them in (5) and (6), we get
t1
d
H
x
dt
.
.
(xy x y)dt
t1
Here is the unknown Lagrangian multiplier. Problem is to nd a curve with given perimeter for which
area (2) is maximum. Euler equations are
and
. .
g(x, y, x , y , t)dt = constant
t2
t1
.
.
where x = dx
, y = dy
. We have x(t1 ) = x(t2 ) = x0
dt
dt
and y(t1 ) = y(t2 ) = y0 , since the curve is closed.
Now the total length of the curce C is given by
t1
J =
1
2
I=
I=
(1)
2
2
.
.
y
x
+
(x c2 ) + (y c1 ) =
.
.
.
.
x 2 +y 2
x 2 +y 2
.
.
(x 2 + y 2 )
= 2 . 2 . 2 = 2
(x + y )
2
i.e., (x c2 )2 + (y c1 )2 = 2
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
1 2y
i.e., (y + )( 1 + y 2 ) y (y + )
= k1
2 1 + y 2
(y + ) (1 + y 2 ) y 2 = k1 ( 1 + y 2 )
y + = k1 1 + y 2
or
Catenary
Example 2: Determine the shape an absolutely
exible, inextensible homogeneous and heavy
rope of given length L suspended at the points A
and B
4.13
(4)
y + = k1 1 + sin2 ht = k1 cosh t
dx =
Now
Integrating
(5)
k1 sinh t dt
dy
=
= k1 dt
y
sinh t
x = k 1 t + k2
(6)
y + = k1 cosh t = k1 cosh
x k2
k1
(7)
(1)
Example 1:
Find the extremal of the function
I [y(x)] = 0 (y 2 y 2 )dx with boundary conditions y(0)
= 0, y( ) = 1 and subject to the constraint 0 y dx = 1.
(2)
x2
1 + y 2 dx = L = constant
x1
H
= constant = k1
y
d
H
y
dx
H
y
=0
d
(2y ) = 0
dx
y + y =
(1)
Chap-04
B.V.Ramana
4.14
10:13
MATHEMATICAL METHODS
The three unknowns c1 , c2 , in (1) will be determined using the two boundary conditions and the
given constraint. From (1)
0 = y(0) = c1 + c2 0 +
c1 + = 0
or
1 = y( ) = c1 + c2 0 +
y dx = 1,
we have
c1 sin x c2 cos x + x
= 1
i.e.,
2
4
x2 =4
x1 =1
y(x)dx = 36
x 2 + c1 x + c2 dx = 36
(4)
(3)
x2
x3
+ c1
+ c2 x
= 36
4 3
2
1
or
(0 + c2 + ) (0 c2 + 0) = 1
2c2 = 1 = 1
2
1
y(x) = cos x +
2
4
or
or
(2)
+ c1 + c2
4
24 = y(4) = 4 + 4c1 + c2
Solving = 21 , c1 = = 21
Now from the given constraint
3 = y(1) =
c1 + = 1
or
1
sin x + .
2
2 c2 = 8
Solving = 4, c2 = 16, c1 = 20. Thus the specic parabola satisfying the given B.C.s (passing
through P1 and P2 ) is
4
y = x 2 + 20x 16
4
i.e., y = x 2 + 20x 16.
EXERCISE
2
H = f + g = y + y.
y
dx
H
y
=0
2
Ans. (x c)2 + (y d)2 = 2 , c = x1 +x
,
2
(x2 x1 )
2
2
2
2
2
a = 2 , = d + a , d + a
cot 1 da = L2 .
d
(2y ) = 0
dx
or y = 0
2
Integrating twice,
y(x) =
x2
+ c1 x + c2
2 2
(1)
c
4 + L2 b
2
a
,
sin h1 L
2
Chap-04
B.V.Ramana
10:13
CALCULUS OF VARIATIONS
2
3. Find
2the extremal of I = 0 y dx subject to
0 y dx = 1 and satisfying y(0) = y( ) = 0
Hint: EE: y y = 0
Ans. y (x) = 2 sin x, = 1, 2, 3 . . .
4. Show that sphere is the solid of revolution
which has maximum volume for a given surface area.
Hint:H = y 2 + [(2y) (1 + y 2 )], EE:
42 y 2
y =
, (x 2)2 + y 2 = (2)2 ; ciry
cle, solid of revolution sphere.
4.15
5. Find the curve of given length L which minimizes the curved surface area of the solid generated by the revolution of the curve about the
x-axis.
Ans. Catenary
1
6. Determine y(x) for which 0 (x 2 + y 2 )dx
1
is stationary subject to 0 y 2 dx = 2, y(0) =
0, y(1) = 0.