Calculus of Variations Raju K George, IIST
Total Page:16
File Type:pdf, Size:1020Kb
Calculus of Variations Raju K George, IIST 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. Maxima and Minima 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 x X is said to be maximum point for the function f if 0 ∈ f(x ) f(x) x X. The value f(x ) is called the maximum value of f. Similarly, x X is 0 ≥ ∀ ∈ 0 0 ∈ said to be a minimum point for the function f if f(x ) f(x) x X and in this case f(x ) is 0 ≤ ∀ ∈ 0 the minimum value of f. Sufficient condition for having maximum and minimum: Theorem (Weierstrass Theorem) Let S IR and f : S IR be a well defined function. Then f will have a maximum/minimum ⊆ → under the following sufficient conditions. 1. f : S IR is a continuous function. → 2. S IR is a bound and closed (compact) subset of IR. ⊂ Note that the above conditions are just sufficient conditions but not necessary. Example 1: Let f : [ 1, 1] IR defined by − → 1 x = 0 f(x)= − x x = 0 | | 6 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: Consider a function f : ( 1, 1) IR defined by − → 2 x< 0 f(x)= − 2 x 0 ≥ 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: Let f : [ 1, 1] IR be defined by f(x)= x2. − → 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: Let f : ( 1, 1) IR defined by f(x)= x2, f has a minimum at x = 0. − → −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. Necessary condition for Maximum/Minimum when f is differentiable. Theorem Let f : S IR be a differentiable function and let x be an interior point of S and let x is → 0 0 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 x D IR is said to be a stationary point if f (x ) = 0. A stationary point 0 ∈ ⊆ ′ 0 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 2 f ′(x) = 3x =0 when x = 0 x3 However, x = 0 is neither a maximum point nor a minimum point of f(x)= 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. Necessary conditions for Maxima/Minima functions of several variables Multi-variable functions. Let f : IRn IR be a real valued function of n - variables defined on IRn. If f has partial derivatives → at x IRn. If x is a maximum point/minimum point of the function f(x) then 0 ∈ 0 ∂f ∂f ∂f = 0, = 0, = 0 ∂x ∂y · · · ∂x 1 x=x0 2 x=x0 n 1 x=x0 − 4 A stationary point x0 is maximum point if the matrix ∂2f ∂2f ∂2f 2 ∂x ∂x1∂x2 · · · ∂x1∂xn 1 ∂2f ∂2f ∂2f ∂x ∂x ∂x2 · · · ∂x ∂x M = 2 1 2 2 n ··· ··· ··· ··· ∂2f ∂2f ∂2f 2 ∂xn∂x1 ∂xn∂x2 · · · ∂xn x=x0 is negative definite and x0 is minimum point if M is positive definite. 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: Let C[0, 1] be the set of all continuous functions defined on [0, 1] Let I : C[0, 1] IR be a function defined by → 1 I(y)= y(x) dx Z0 Obviously I(y) is a functional on C[0, 1]. The following table gives the values of I(y) for different functions y(x), listed in the table. 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. 1 Let C [x1,x2] denote the set of continuously differentiable functions defined on [x1,x2]. Now x2 1 consider a functional I : C [x ,x ] IR defined by I(y) = F (x,y,y′)dx subject to the end 1 2 → Zx1 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 x2 Extremize y I(y)= F (x,y,y′)dx Zx1 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,y2) ds dy dx y(x) P(x1,y1) x 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 + dy2 ds 2 dy 2 = 1+ dx dx dy 2 ds = 1+ dx dx s Q x2 dy 2 Total arc length I(y)= ds = 1+ dx 1 s dx ZP Zx Thus, the problem is to minimize I(y) subject to the end conditions y(x1)= y1 and y(x2)= y2. Lecture-2 Lemma (Fundamental Lemma of Calculus of Variations) b If f(x) is a continuous function defined on [a, b] and if f(x)g(x) dx = 0 for every function a g(x) C(a, b) such that g(a)= g(b) = 0 then f(x) 0 forZ all x [a, b]. ∈ ≡ ∈ 6 Proof: Let f(x) = 0 for some c (a, b). Without loss of generality let us assume that f(c) > 0. Now 6 ∈ because of continuity of f we have f(x) > 0 for some interval [x ,x ] [a, b] that contains the 1 2 ⊂ point c. (x x )(x x) for x [x ,x ] Let g(x)= − 1 2 − ∈ 1 2 0 outside [x ,x ] 1 2 Note that (x x )(x x) is positive for x (x ,x ). − 1 2 − ∈ 1 2 Now consider b x1 ✘✘✿ 0 x2 b ✘✘✿ 0 ✘✘✘ ✘✘✘ f(x)g(x) dx = ✘f(✘x)g(x) dx + f(x)g(x) dx + ✘f(✘x)g(x) dx a a x1 x2 Z Z x2 Z Z = f(x)g(x) dx x1 Z x2 = f(x)(x x )(x x) dx > 0 − 1 2 − Zx1 Thus we get a contradiction to what is given in the Lemma. This implies that f(x) 0 on [a, b]. ≡ Euler-Lagrange Equation (Necessary Condition for Extremum) Theorem: If y(x) is an extremizing function for the problem x2 Minimize/Maximize I(y) = F (x,y,y′) dx (1) Zx1 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) Equation (2) is known as the Euler-Lagrange equation. Proof: Let y(x) be an extremizing function for the functional I(y) in (1). 7 Y y(x) + η(x) y2 y1 y(x) η(x) O x X 1 x2 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 x2 x2 I(ǫ)= F (x, y(x)+ ǫ η(x), y′(x)+ ǫ η′(x)) dx = F (x,Y (x),Y ′(x)) dx Zx1 Zx1 Since y(x) is an extremizing function, I(ǫ) has extremum when ǫ = 0.