Professional Documents
Culture Documents
Lecture-1
In Calculus of Variations, we will study maximum and minimum of a certain class of functions.
We first recall some maxima/minima results from the classical calculus.
Let X and Y be two arbitrary sets and f : X → Y be a well-defined function having domain
X and range Y . The function values f (x) become comparable if Y is IR or a subset of IR.
Thus, optimization problem is valid for real valued functions. Let f : X → IR be a real valued
function having X as its domain. Now x0 ∈ X is said to be maximum point for the function f if
f (x0 ) ≥ f (x) ∀ x ∈ X. The value f (x0 ) is called the maximum value of f . Similarly, x0 ∈ X is
said to be a minimum point for the function f if f (x0 ) ≤ f (x) ∀ x ∈ X and in this case f (x0 ) is
the minimum value of f .
1. f : S → IR is a continuous function.
Note that the above conditions are just sufficient conditions but not necessary.
Example 1:
1
−1 +1
−1
Obviously f (x) is not continuous at x = 0. However the f (x) has a minimum point x0 = 0 and
maximum points at x = −1, x = 1. Continuity condition of the Weierstrass theorem is violated
but still the function has maximum and minimum.
Example 2:
( )
−1 +1
−2
f (x) has a maximum value x = 2 and a minimum value x = −2 even though both the conditions
(a) and (b) of Weierstrass theorem are violated.
Example 3:
2
−1 1
This function satisfies both the conditions of Weierstrass theorem. f (x) has a minimum value 0
at x = 0 and maximum value 1 at x = −1 and x = 1.
Example 4:
−1 1
But f has no maximum point as x = −1 and x = 1 are outside the domain of the function. Here
the condition (b) is violated.
Theorem
Let f : S → IR be a differentiable function and let x0 be an interior point of S and let x0 is
either a maximum point or minimum point of f . Then the first derivative of f vanishes at x0 .
ie f ′ (x0 ) = 0.
This condition is just a necessary condition but not sufficient condition.
An interior point x0 ∈ D ⊆ IR is said to be a stationary point if f ′ (x0 ) = 0. A stationary point
x0 need not be maximum point/minimum point. However, if f ′′ (x0 ) > 0 then x0 is a minimum
point and if f ′′ (x0 ) < 0 then x0 is a maximum point.
Example 5:
Let f : IR → IR be defined by
f (x) = x3
3
f ′ (x) = 3x2 = 0 when x = 0
x3
Example 6:
Let f : IR → IR be given by
f (x) = x2
Hence, f ′ (x0 ) = 2x0 = 0 when x0 = 0.
Obviously x0 = 0 is a stationary point and this stationary point is minimum point of f (x), as
f ′′ (x0 ) = 2 > 0.
Multi-variable functions.
Let f : IRn → IR be a real valued function of n - variables defined on IRn . If f has partial derivatives
at x0 ∈ IRn . If x0 is a maximum point/minimum point of the function f (x) then
∂f ∂f ∂f
= 0, = 0, · · · =0
∂x1 x=x0 ∂y2 x=x0 ∂xn−1 x=x0
4
A stationary point x0 is maximum point if the matrix
∂2f ∂2f ∂2f
∂x21 ···
∂x1 ∂x2 ∂x1 ∂xn
∂2f ∂2f ∂2f
∂x2 ∂x1 2 ···
∂x 2 ∂x2 ∂xn
M=
··· ··· ··· ···
∂2f ∂2f ∂2f
···
∂xn ∂x1 ∂xn ∂x2 ∂x2n
x=x0
Functionals:
Let S be a set of functions. Let f : S → IR be a real valued function. Such functions are known
as a functionals. In otherwords, a functional is a real valued function whose domain is a set of
functions.
Example 7:
y(x) I(y)
x 0.5
x2 0.333
x3 0.25
sin x 0.4597
cos x 0.8415
ex 1.7183
1 1
We can find for which function y, the functional I(y) has a maximum value or minimum value.
In the above example, I(y) will have minimum value for y(x) = x3 and I(y) will have maximum
value for the function y(x) = ex out of the seven functions given here.
Let C 1 [x1 , x2 ] denote the set of continuously differentiableZ functions defined on [x1 , x2 ]. Now
x2
consider a functional I : C 1 [x1 , x2 ] → IR defined by I(y) = F (x, y, y ′ )dx subject to the end
x1
conditions y(x1 ) = y1 and y(x2 ) = y2 .
5
In calculus of variations the basic problem is to find a function y for which the functional I(y)
is maximum or minimum. We call such functions as extremizing functions and the value of the
functional at the extremizing function as extremum.
Consider the extremization problem
Z x2
Extremize I(y) = F (x, y, y ′ )dx
y
x1
subject to the end conditions y(x1 ) = y1 and y(x2 ) = y2 , where F is a twice continuously differen-
tiable function.
Example
Find the shortest smooth plane curve joining two distinct points P (x1 , y1 ) and Q(x2 , y2 ).
y
Q(x2,y 2)
ds
dy
dx
x)
y(
P(x1,y 1)
There are infinitely many functions y passing through the given two points P (x1 , y1 ) and Q(x2 , y2 ).
We are looking for a function which will have minimum arc length. Let ds be a small strip on the
curve then we have.
ds2 = dx2 + dy 2
ds 2
2
dy
= 1+
dx dx
s 2
dy
ds = 1+ dx
dx
s 2
Z Q Z x2
dy
Total arc length I(y) = ds = 1+ dx
P x1 dx
Thus, the problem is to minimize I(y) subject to the end conditions y(x1 ) = y1 and y(x2 ) = y2 .
Lecture-2
6
Proof:
Let f (x) 6= 0 for some c ∈ (a, b). Without loss of generality let us assume that f (c) > 0. Now
because of continuity of f we have f (x) > 0 for some interval [x1 , x2 ] ⊂ [a, b] that contains the
point c.
(x − x1 )(x2 − x) for x ∈ [x1 , x2 ]
Let g(x) =
0 outside [x1 , x2 ]
Note that (x − x1 )(x2 − x) is positive for x ∈ (x1 , x2 ).
Now consider
✿ 0 x2 ✿0
Z b Z x1 Z b
✘ ✘
Z
✘ ✘ ✘
f (x)g(x) dx = f ✘ ✘ ✘
(x)g(x) dx + f (x)g(x) dx + f ✘✘✘dx
(x)g(x)
✘
✘ ✘
a
Z a x2 x1 x2
= f (x)g(x) dx
x1
Z x2
= f (x)(x − x1 )(x2 − x) dx > 0
x1
Thus we get a contradiction to what is given in the Lemma. This implies that f (x) ≡ 0 on [a, b].
with end conditions y(x1 ) = y1 and y(x2 ) = y2 then y(x) satisfies the BVP.
d ∂F ∂F
− = 0 (2)
dx ∂y ′ ∂y
y(x1 ) = y1 and y(x2 ) = y2 . (3)
Proof:
7
Y
y(x) + η (x)
y2
y1
y(x)
η (x)
O x1 x2 X
Let Y = y(x) + ǫ η(x) be a variation of y(x), where η(x) is a continuously differentiable function
with η(x1 ) = 0 = η(x2 ) and ǫ is a small constant.
Hence I along the path Y = y(x) + ǫ η(x) is given by
Z x2 Z x2
′ ′
I(ǫ) = F (x, y(x) + ǫ η(x), y (x) + ǫ η (x)) dx = F (x, Y (x), Y ′ (x)) dx
x1 x1
8
Since η(x) is arbitrary function, by applying the Fundamental Lemma of calculus of variations, we
get
d ∂F ∂F
− =0
dx ∂y ′ ∂y
Since F = F (x, y, y ′ )
d ∂F dx ∂F dy ∂F dy ′
(F ) = + + ′
dx ∂x dx ∂y dx ∂y dx
∂F ∂F ′ ∂F ′′
= + y + ′y (4)
∂x ∂y ∂y
d ∂F d ∂F ∂F
Consider y′ ′ = y′ + ′ y ′′ (5)
dx ∂y dx ∂y ′ ∂y
Special Cases
Z x2
Extremize I(y) = F (x, y, y ′ ) dx y(x1 ) = y1 ; y(x2 ) = y2 .
x1
∂F
=0
∂x
d ′ ∂F ∂F d ′ ∂F ∂F
Hence F −y − = 0 becomes F −y = 0 or F − y ′ ′ = const. This
dx ∂y ′ ∂x dx ∂y ′ ∂y
is known as Beltrami Identity.
9
(ii) When y does not appear in F explicitly
∂F
= 0
∂y
d ∂F ∂F d ∂F ∂F
Hence, − = 0 reduces to = 0 or = const.
dx ∂y ′ ∂y dx ∂y ′ ∂y ′
(iii) When y ′ does not appear in F explicitly
∂F
= 0
∂y ′
d ∂F ∂F ∂F
Then − = 0 reduces to = 0.
dx ∂y ′ ∂y ∂y
Example-1
Find the shortest smooth plane curve joining two distinct points (x1 , y1 ) and (x2 , y2 ). We are
minimizing the arc length of the function y
s 2
Z x2
dy
Minimize I(y) = 1+ dx
x1 dx
p
Here, F (x, y, y ′ ) = 1 + y ′2
∂F ∂F y′
= 0; = p
∂y ∂y ′ 1 + y ′2
Euler-Lagrange equation
d ∂F y′
=⇒ = 0 p = const = c
dx ∂y ′ 1 + y ′2
p
y ′ = c 1 + y ′2
y ′2 = c2 (1 + y ′2 )
y ′2 − c2 y ′2 = c2
(1 − c2 )y ′2 = c2
c2
=⇒ y ′2 =
1 − c2
s
c2
=⇒ y′ = =m
1 − c2
y = mx + b
y(x1 ) = y1 =⇒ y1 = mx1 + b
y(x2 ) = y2 =⇒ y2 = mx2 + b
y1 − y2 y1 − y2
=m ; b = y1 − x1
x1 − x2 x1 − x2
Thus the curve having minimum arc length passing through the given two fixed point is a straight
line.
10
Exercise
Show that another form of Euler - Lagrange equation is Fy − Fy′ x − Fy′ y y ′ − Fy′ y′ y ′′ = 0.
Example-2
x1
y ′2
Z
Find the extremals of the functional dx.
x0 x3
y ′2 ∂F ∂F 2y ′
F (x, y, y ′ ) = ; = 0; =
x3 ∂y ∂y ′ x3
Euler- Lagrange equation
2x3 y ′′ − 6y ′ x2
d ∂F 2y ′d 2 ′′ ′
= = = xy − 3y =0
dx ∂y ′ x3 dx x6 x4
y ′′ 3
Thus we have xy ′′ − 3y ′ = 0 or =
y ′ x
Z ′′
y 1
Z
Integrating = 3 dx + c
y′ x
ln y ′= 3 ln x + c
′
y
ln = c or y ′ = C x3
x3
Cx4
y = + C2
4
y = Ax4 + B
Example-3
Z x2
Extremize I(y) = 1 + y ′2 dx, y(x1 ) = y(x2 ) = 0
x1
∂F
F = 1 + y ′2 , = 2y ′
∂y ′
d
Euler Equation 2y ′ = 0 =⇒ 2y ′′ = 0
dx
y ′ (x) = C , y(x) = Cx + D
y1 − y2
C = ;
x1 − x2
Example-4
Z 1
Find the curve y on which the functional y ′2 + 12xy dx, y(0) = 0, y(1) = 1 is exrtremum.
0
11
Solution:
Here F = y ′2 + 12xy
Euler Lagrange Equation: 12x − 2y ′′ = 0 or y ′′ = 6x
y ′ = 3x2 + C
y = x3 + cx + c′
Applying the conditions we get
y = x3
Lecture-3
Find the shortest path on which a particle in the absence of friction will slide from one point to
another point in the shortest time under the action of gravity.
P(x,y)
y
P1(x,y)
Solution:
12
Brachistochrone Problem is to find y which minimizes the functional
Z x1 p p
1+y2
′
1 1 + y ′2
I(y) = √ √ dx and F = √
2g 0 y y
13
Example - Minimum Surface Area of Rotation.
Find the curve passing through the points (x1 , y1 ) and (x2 , y2 ) which when rotated about the
x-axis gives a minimum surface.
(x 2,y 2)
y(x)
(x 1,y 1) ds
O x
Let ds be a small strip on the curve y. Area Z of the surface generated by ds when revolved is
x2
2πy ds. In the figure the total surface area = 2πyds
x1
Z x2 p
= 2π y (1 + y ′2 )dx.
x1
This has to be
p minimum.
Since F = y (1 + y ′2 ) does not contain x explicitly, thus the Euler’s equation reduces to
∂F
F − y′ = c : (say)
∂y ′
p ∂ p
y (1 + y ′2 ) − y ′ ′ y (1 + y ′2 ) = c
∂y
′y
p
i.e y (1 + y ) − y (1 + y ′2 )−1/2 . 2y ′ = c
′2
2
y
or p = c
(1 + y ′2 )
y 2 = c2 + c2 y ′2
p
dy (y 2 − c2 )
y′ = =
dx c
Separating the variables and integrating, we have
dy dx
Z Z
p = + c′
2 2
(y − c ) c
y x+a
cos h−1 =
c c
x+a
i.e y = c cosh( )
c
which is catenary. The constants a and c are determined from the points (x1 , y1 ) and (x2 , y2 ).
14
Lecture-4
Isoperimetric Problems
In certain problems of calculus of variations, while extremizing a given functional I(y), along with
the end conditions y(x1 ) = y1 , y(x2 ) = y2 , we also need the extremizing function has to satisfy an
additional integral constraint as we see in the following Dido’s Problem.
Dido’s Problem
Find the plane curve of fixed perimeter which has maximum area above x - axis.
1111111
0000000
0000000
1111111
(x2 ,y2 )
0000000
1111111
0000000
1111111
0000000
1111111
0000000
1111111
(x1 ,y1 )
0000000
1111111
0000000
1111111
The perimeter and the area under the curve are given by
Z x2 p
Perimeter = Arc length = 1 + y ′2 dx
x1
Z x2
Area under the curve A = y(x) dx.
x1
Variational Problem:
Z x2
Maximize I(y) = y(x) dx
x1
General Problem:
Z x2
Extremize I(y) = F (x, y, y ′ ) dx
x1
15
subject to the integral constraint
Z x2
G(x, y, y ′ ) dx = L = constant
x1
Convert the constrained optimization problem into an unconstrained optimization problem by the
Lagrange Multiplier Technique.
Z x2
Define a new functional H by H(x, y, y ′ ) = F (x, y, y ′ )+λ G(x, y, y ′ ) and optimize H(x, y, y ′ ) dx
x1
without constraints.
Z x2
That is, Optimize I(y) = F (x, y, y ′ ) + λ G(x, y, y ′ ) dx
x1
∂H d ∂H
− =0
∂y dx ∂y ′
y(x1 ) = y1 , y(x2 ) = y2
Z x2
Maximize I(y) = y(x) dx subject to
x1
Z x2 p
1 + y ′2 dx = L and with end conditions
x1
y(x1 ) = y1 , y(x2 ) = y2
p
Here, F (x, y, y ′ ) = y(x), G(x, y, y ′ ) = 1 + y ′2
p
H(x, y, y ′ ) = y + λ 1 + y ′2
∂H ∂H λy ′
= 1, =p
∂y ∂y ′
1 + y ′2
16
Euler’s Equation:
!
d λy ′
p = 1
dx 1 + y ′2
λy ′
=⇒ p = x+a
1 + y ′2
λy ′ p
=⇒ = 1 + y ′2
x+a
=⇒ λ2 y ′2 = (1 + y ′2 )(x + a)2
=⇒ y ′2 (λ2 − (x + a)2 ) = (x + a)2
x+a
y′ = p
λ2 − (x + a)2
p
=⇒ y = − λ2 − (x + a)2 + b
(y − b)2 = λ2 − (x + a)2
=⇒ (x + a)2 + (y − b)2 = λ2
which is a circle, where the constants a, b, λ can be obtained from 3 conditions namely, two end
conditions and one constraint condition.
Problem 2:
Show that sphere is the solid figure of revolution which for a given surface area having maximum
volume enclosed.
ds
y(x)
y(x)
0 x
(a,0)
Consider a small circular strip having height ds and radius y. The surface area is 2πy ds.
Z a
Thus the total surface area of revolution is S = 2πy ds
0
Z a p
= 2πy 1 + y ′2 dx
Z0 a
Volume = πy 2 dx.
0
17
Variational Problem
Z a
Maximize I(y) = πy 2 dx
0
subject to the constraint Z a p
2πy 1 + y ′2 dx = S (constant)
0
p
Define a function H = F + λ G = πy 2 + λ 2πy 1 + y ′2 .
As x is not appearing in H explicitly, we have Euler’s Equation (Beltrami Identity)
∂H
H − y′ = const.
∂y ′
p λ 2πyy ′
πy 2 + 2πλy 1 + y ′2 − y ′ p = c
1 + y ′2
2πλy(1 + y ′2 ) − λ2πyy ′2
πy 2 + p = c
1 + y ′2
2πλy
πy 2 + p = c
1 + y ′2
−2λy
Since the curve passes through (0, 0), when y = 0, c = 0 y 2 = p .
1 + y ′2
−2λ
y = p
1 + y ′2
=⇒ y 2 (1 + y ′2 ) = 4λ2
4λ2 − y 2
=⇒ y ′2 =
y2
p
4λ2 − y 2
y′ =
y
y dy
Z Z
p = dx + k
4λ2 − y 2
p
x = k − 4λ2 − y 2
When x = 0, y = 0 =⇒ k = 2λ
p
x = 2λ − 4λ2 − y 2
p
(x − 2λ) = − 4λ2 − y 2
(x − 2λ)2 + y 2 = 4λ2
The curve is a circle, centred at (2λ, 0) and radius 2λ. Hence the solid of revolution is a sphere.
18
Lecture-5
Z x2
Extremize I(y) = F (x, y, y ′ , y ′′ ) dx
x1
y(x1 ) = y1 , y(x2 ) = y2
′
y (x1 ) = y1′ y ′ (x2 ) = y1′
d2
∂F d ∂F ∂F
− + 2 =0
∂y dx ∂y ′ dx ∂y ′′
Example:
Z x2
Extremize I(y) = (y 2 − (y ′′ )2 ) dx
x1
with end conditions:
y(x1 ) = y1 , y(x2 ) = y2
′
y (x1 ) = y1′ , y ′ (x2 ) = y2′
∂F ∂F ∂F
= 2y, = 0, = −2y ′′
∂y ∂y ′ ∂y ′′
Euler - Poisson Equation :
d2
∂F d ∂F ∂F
− + 2 = 0
∂y dx ∂y ′ dx ∂y ′′
d2
2y − 0 + 2 −2y ′′ = 0
dx
y (iv) − y = 0
y(x1 ) = y1 , y(x2 ) = y2
′
y (x1 ) = y1′ , y ′ (x2 ) = y2′
19
Euler - Lagrange equations:
∂F d ∂F
− = 0
∂u dx ∂u′
∂F d ∂F
− = 0
∂v dx ∂v ′
Let zZ be the dependent variable and x and y be the independent variables. Extremize I(z) =
Z x2 y2
F (x, y, z, zx , zy )dy dx
x1 y1
Example
Find a function Φ whose mean square value of the magnitude of the gradient over a region D is
minimum
The problem is
Z Z
Minimize I(Φ) = (Φ2x + Φ2y ) dx dy
Lecture-6
When a function changes its value from y(x) to y(x + ∆x), the rate of change of this defines the
derivative y ′ (x). Whereas in variational calculus the function y(x) is changed to a new function
20
y(x) + ǫ η(x), where ǫ is a constant and η(x) is a continuous differentiable function. The change
ǫ η(x) in y(x) as a function is called the variation of y and is denoted by δy. That is δy = ǫ η(x).
Similarly we have δy ′ = ǫ η ′ (x). In F = F (x, y, y ′ ) for a fixed x, change in y from y to y + ǫ η
makes F to change to F (x, y + ǫ η, y ′ + ǫ η ′ ). Thus the change in F , denoted by ∆F is given by
∆F = F (x, y + ǫ η, y ′ + ǫ η ′ ) − F (x, y, y ′ )
∂F ∂F
First variation δF = δy + ′ δy ′
∂y ∂y
1 ∂2F ∂2F ∂2F
Second Variation δ2 F = (δy)2
+ 2 δy δy ′
+ (δy ′ 2
)
2 ∂y 2 ∂y∂y ′ ∂y ′2
Properties:
Example
(ii) δ(y ′2 ) = 2y ′ δy ′
(iv) δ(x2 ) = 0
Problem:
Z x2
If I(y) = F (x, y, y ′ ) dx, find the variation δI of I.
x1
21
Solution:
Z x2
δI = δ F (x, y, y ′ ) dx
Z x2 x1
= δF (x, y, y ′ ) dx
x1
Z x2
∂F ∂F ′
= δy + ′ δy dx
x1 ∂y ∂y
In the classical calculus, if x0 an optimizing point for a differentiable function f (x) then f ′ (x0 ) = 0.
Analogous to this, we have the following result in calculus of variations.
Theorem:
Proof:
22
Hamilton’s Principle
Let T be the kinetic energy and V be the potential energy of a particle in motion. Let L = T − V
be the kinetic potential or the Lagrangian function.
Z t2
Let A = L dt (Action integral)
t1
δA = 0 (Principle of Least Action)
Z t2 Z t2
δ L dt = δ T − V dt = 0
t1 t1
Hamilton Principle states that the motion is such that the integral of the difference between kinetic
and potential energies is stationary for the true path. Over a sufficiently small time interval the
integral is a minimum. That is, nature tends to equalize the kinetic and potential energies over
motion. Hence δA = 0 along truth path.
As in the classical calculus, if f is differentiable and x0 is a stationary point of f then f ′′ (x0 ) > 0
implies x0 is minimum & f ′′ (x0 ) < 0 implies x0 is maximum point, we have the following second
order conditions for testing extremum in Calculus of variations.
Lecture-7
y ′′ − y + x = 0 (6)
y(0) = y(1) = 0
23
Solution:
Integration by parts,
✟
✯ 0 Z 1 Z Z
✟′1 ′ ′
y
✟ δy
✟ 0
− y δy dx − y δy dx + x δy dx = 0
0
But δ(y ′2 ) = 2y ′ δy ′ , δy 2 = 2y δy δ(xy) = x δy
Z 1 Z 1
1 ′2 1 2
Z
− δy dx − δy dx + δxy dx = 0
0 2 0 2
Z 1
1 1
δ(− y ′2 − y 2 + xy) dx = 0
0 2 2
Z 1
′2 2
δ y + y − 2xy dx = 0
0
It is of the form δI(y) = 0
F = y ′2 − y 2 − 2xy
∂F
= 2y − 2x
∂y
∂F
= 2y ′
∂y ′
Euler-Lagrange eqn. is given by
d
2y − 2x − (2y ′ ) = 0
dx
y ′′ − y + x = 0
which is same as the original BVP
y(0) = y(1) = 0
Example 2:
24
0 L
where
✯0 Z L
✟
L
dy ✟✟L
d dy dy dy
Z
F δy dx = (F✟✟δy − F δ dx
0 dx dx ✟ dx 0 0 dx dx
But δ(y ′2 ) = 2y ′ δy ′ , δ(y 2 ) = 2y δy reduce
L
1 ′2 1 2
Z
2
δ − Fy + ρω δ y + δpy dx = 0
0 2 2
Z L
1 ′2 1 2 2
δ − F y + ρω y + py dx = 0
0 2 2
That is, δI = 0
Example
25
Solution:
Z 1
where I(y) = −xy ′2 + y 2 − 2xy dx
0
y(0) = 0, y(1) = 1
Lecture-8
Let C 1 [x1 , x2 ] be the set of all continuously differentiable functions defined on [x1 , x2 ]. Consider
the variational problem:
Z x2
Min I(y) = F (x, y, y ′ ) dx, y(x1 ) = y1 & y(x2 ) = y2
x1
The basis functions are taken such that the boundary condition ȳ(x1 ) = y1 and ȳ(x2 ) = y2 are
satisfied.
The problem becomes
Z x2 ∞
X ∞
X
Minimize I(y) = F (x, ci φi (x), ci φ′i (x))dx
x1 i=0 i=0
y(x1 ) = y1 & y(x2 ) = y2
26
The problem to find an approximate solution ȳ in
Z x2 n
X n
X
Minimize I(ȳ) = F (x, ci φi (x), ci φ′i (x))dx
x1 i=0 i=0
ȳ(x1 ) = y1 & ȳ(x2 ) = y2
Since φ0 , φ1 , ... are known basic functions, the only unknown are c0 , c1 , ..., cn , we have
min I(ȳ) = c0 ,cmin
1 ,··· ,cn
I(c0 , c1 , · · · , cn )
Using the classical calculus, we have
∂I
= 0, i = 0, 1, 2, · · · , n.
∂ci
If we simplify this n + 1 equation, we need to solve n + 1 linear equation in n + 1 unknowing to
set c0 , c1 , · · · , cn .
Example
Solution:
Z 1
I(y) = 2xy − y 2 − y ′2 dx
0
Let ȳ(x) = c0 + c1 x + c2 x2 be an approximate solution.
Applying the both condition
ȳ(0) = 0 =⇒ c0 = 0
ȳ(1) = 0 =⇒ c1 + c2 = 0 c2 = −c1
Thus ȳ(x) = c1 x(1 − x), where c1 has to be determined
Z 1
2
I(c1 ) = 2xȳ − ȳ 2 − y¯′ dx
0
Z 1
= (2c1 (x2 − x3 ) − c21 (x − x2 )2 − c1 (1 − x)2 dx
0
1 11
= c1 − c21
6 30
dI(c1 )
= 0
dc1
1 22
=⇒ − c1 = 0
6 30
22 1
c1 =
30 6
5
c1 =
22
27
5
ȳ(x) = x(1 − x) is the approximate solution.
22
ex − e−x
Exact Solution: y(x) = x −
e − e−1
References
1. Louis Komzsik: Applied Calculus of variations for Engineers, CRC Press, NewYork, 2009.
2. C. R. Wylie and L.C Barrett: Advanced Engineering Mathematics, McGrawHill Inc, Singa-
pore - 1982.
4. Tyn Myint U: Linear Partial Differential Equations for scientists and Engineers Birkhauser,
Boston, 2007.
28
Assignment
1
subject to the end conditions y( 10 ) = 19, y(1) = 1.
5. Show that the Euler-Lagrange equation can also be written in the form
∗ 6. It is required to determine the continuously differentiable function y(x) which minimizes the
Z 1
integral I(y) = (1 + y ′2 )dx, and satisfies the end conditions y(0) = 0, y(1) = 1.
0
(a) Obtain the relevant Euler equation, and show that the stationary function is y = x.
(b) With y(x) = x and the special choice η(x) = x(1 − x) and with the notation
Z 1
dI(ǫ)
I(ǫ) = F (x, y + ǫη(x), y ′ + ǫη ′ (x))dx, calculate I(ǫ) and verify directly that dǫ =0
0
when ǫ = 0.
29
Z 1
(d) I(y) = (xy + y 2 − 2y 2 y ′ )dx, y(0) = 1, y(1) = 2
0
Z x2
(e) I(y) = (y 2 + y ′2 − 2y sin x)dx
x1
π/2
π
Z
(f) (y ′2 − y 2 + 2xy)dx, y(0) = 0, y( ) = 0
2
Z 0 x2
(g) (y 2 + 2xyy ′ )dx; y(x1 ) = y1 , y(x2 ) = y2
x
Z 1π
∗ (h) (4y cos x − y 2 + y ′2 )dx; y(0) = 0, y(π) = 0
0
Z x1
∗ (i) I(y) = (y 2 + y ′2 + 2yex )dx
x0
8. Determine the shape of solid of revolution moving in a flow of gas with least resistance.
0
x
Direction of gas flow L
Z L
(Hint : The total resistance experienced by the body is I(y) = 4πρv 2 yy ′3 dx where ρ is
0
the density, v is the velocity of gas relative to the solid).
30
11. Find the extremal of the isoperimetric problem
Z 4
Extremize I(y) = y ′2 dx, y(1) = 3, y(4) = 24
1
Z 4
subject to y dx = 36.
1
Z 1 Z 1
2
∗ 12. Determine y(x) for which ′2
x + y dx is stationary subject to y 2 dx = 2, y(0) =
0 0
0, y(1) = 0.
Z π Z π
13. Find the extremal of I = ′2
y dx subject to y 2 dx = 1 and satisfying y(0) = y(π) = 0.
0 0
∗ 14. Given F (x, y, y ′ ) = (y ′ )2 + xy. Compute ∆F and δF for x = x0 , y = x2 and δy = ǫxn .
19. Write down the Euler-Lagrange equation for the following extremization problems
Z Z
(i) Extremize I(u, v) = F (x, y, u, v, ux , uy , vx , vy )dx dy where x, y are independent vari-
D
ables and u, v are dependent variables. D is a domain in xy plane and u and v are prescribed
on the boundary of D.Z
x1
(ii) Extremize I(y) = F (x, y, y (1) , y (2) , ..., y (m) dx
x0
y(x0 ) = y0 , y(x1 ) = y1
31
y ′ (x0 ) = y0′ , y ′ (x1 ) = y1′
...........................
(m−1) (m−1) (m−1)
y (x0 ) = y0 , y (m−1) (x1 ) = y1
Z x2
(iii) Max or Min I(y) = F (x, y, y ′ )dx where y is prescribed at the end points y(x1 ) = y1 ,
x1 Z x2
y(x2 ) = y2 , and y is also to satisfy the integral constraint condition J(y) = G(x, y, y ′ )dx =
x1
k, where k is a prescribed constant.
∗ 20. Show that the extremals
Z x2 of the problem
Extremize I(y) = [p(x)y ′2 − q(x)y 2 ]dx
x1 Z x2
where y(x1 ) and y(x2 ) are prescribed and y satisfies a constraint r(x)y 2 (x)dx = 1, are
x1
d dy
solutions of the differential equation dx (p dx ) + (q + λr)y = 0
where λ is a constant.
∗ 21. Reduce the BVP
d dy
(x ) + y = x, y(0) = 0, y(1) = 1
dx dx
into a variational problem and use Rayleigh-Ritz method to obtain an approximate solution
in the form
y(x) ≈ x + x(1 − x)(c1 + c2 x)
22. (Principle of least Action) A particle under the influence of a gravitational field moves on a
path along which the kinetic energy is minimal. Using calculus of variation prove that the
trajectory is parabolic.
1 1
Z Z Z p p
2
(Hint: Minimize I = mv dt = mvds = u2 − 2gy 1 + y ′2 dx)
2 2
where u is the initial speed.
Z π/4
23. Show that the curve which extremizes the functional I(y) = (y ′′2 − y 2 + x2 )dx under
0
the conditions y(0) = 0, y ′ (0) = 1, y(π/4) = y ′ (π/4) = √12 is y = sin x.
Z π Z π
24. Find a function y(x) such that y 2 dx = 1 which makes (y ′′ )2 dx a minimum if y(0) =
0 0
0 = y(π), y ′′ (0) = 0 = y ′′ (π).
∗ 25. Find the extremals of the following functional
Z x2
I(y) = 2xy + (y ′′′ )2 dx
x1
32
Z π Z π
2
27. Find a function y(x) such that y dx = 1 which makes y ′′2 dx a minimum if y(0) =
0 0
0 = y(π),y ′′ (0) = 0 = y ′′ (π)
Z π/2 2 2
∗ 28. Show that the functional dx dy
2xy + dt such that x(0) = 0, x(π/2) =
0 dt dt
−1, y(0) = 0, y(π/2) = 1 is stationary for x = − sin t, y = sin t.
∗ 29. Explain Rayleigh - Ritz method to find an approximate solution of the variational problem
Z t1
Extremize I(y) = F (x, y, y ′ )dx
t0
31. Use Rayleigh - Ritz method to find an approximate solution of the problem
y ′′ − y + 4xex = 0, y ′ (0) − y(0) = 1, y ′ (1) + y(1) = −e.
***END***
33