Docsity

Solved Problems for Variational Methods - Test I | ME 6443, Exams of Mechanical Engineering

Toggle sidebar
bg1
1
ME6443, Test 1, Dr. Ferri Name_______Solution_______
Fall 2007
Instructions:
This exam is closed-book and closed-notes. You can not use a calculator. You are allowed to
refer to one, two-sided 8.5x11 inch or A4-sized formula sheet. This formula sheets m ust be
handwritten. Please show your work to receive proper credit.
Honor Pledge:
On my honor, I pledge that I have neither given nor received any inappropriate aid in the
preparation of this test.
_______________________________
Signature
Problem 1 (10) ______10__________
Problem 2 (10) ______10__________
Problem 3 (5) _______5__________
Problem 4 (15) ______15__________
Total (40) ________40__________
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Solved Problems for Variational Methods - Test I | ME 6443 and more Exams Mechanical Engineering in PDF only on Docsity!

ME6443, Test 1, Dr. Ferri Name _______ Solution _______

Fall 2007

Instructions:

This exam is closed-book and closed-notes. You can not use a calculator. You are allowed to

refer to one, two-sided 8.5x11 inch or A4-sized formula sheet. This formula sheets must be

handwritten. Please show your work to receive proper credit.

Honor Pledge:

On my honor, I pledge that I have neither given nor received any inappropriate aid in the

preparation of this test.

_______________________________

Signature

Problem 1 (10) ______ 10 __________

Problem 2 (10) ______ 10 __________

Problem 3 (5) _______ 5 __________

Problem 4 (15) ______ 15 __________

Total (40) ________ 40 __________

Problem 1. (10 points)

Often, we encounter problems where the integral that we seek to extremize is discontinuous at an

isolated point in the interior of the domain. In this case, additional relations apply that are termed

"Weierstrass-Erdmann corner conditions." Consider the integral

{ }

1 2

0

I T y 2 y dx

subject to y (0) = 0 and y (1) = 0

Let T = T 1

when 0 ≤ x < c and T = T 2

when c < x ≤ 1. We require the solution y(x) to be

continuous at x = c ; i.e., y c ( ) y c ( ) y c ( )

− +

= =. This necessitates continuity of all comparison

functions Y(x) = y(x) + εη (x) , thus η ( c ) η ( c ) η( ) c

− +

= = , but the value of η ( ) c is otherwise

arbitrary. Note that we allow for the possibility that y ′ to be discontinuous at x = c.

(a) Break the integral above into 2 parts:

{ }

{ }

1 2 2

1 2

0

c

c

I T y y dx T y y dx

−

By substitution of the comparison function Y(x) into this expression and minimizing I ,

derive the relation that y

must satisfy at x = c.

(b) For the case c = 0.5, T 1

= 1 and T

2

= 2, find the solution for y(x) over the entire domain

[0,1].

Solution

In general, we have the following:

2

1

c x

x c

I f x y y dx f x y y dx

−

Using the comparison function Y x ( ) = y x ( ) + εη( ) x ,

2

1

c x

x c

I ε f x Y Y dx f x Y Y dx

−

Differentiate with respect to ε:

2

1

( ) c x

x c

dI f f f f

dx dx

d Y Y Y Y

ε

η η η η

ε

−

2

1

c x

x c

f f f f

I dx dx

y y y y

η η η η

−

Integrate each integral by parts:

2

2

1

1

c x

c x

x c

x c

f f f d f f d f

I dx dx

y y y d x y y d x y

η η η η

−

−

  1. Right BC: y (1) = 0

2 2 2

y = − + a + b =

  1. Continuity of y: y 1

(0.5) = y 2

1 2 2

− + a = − + a + b

  1. EW-corner-condition:

1 2

a a

1 2

a = 2 a

From (2), we have

2 2

b = − a + 0.25. Substituting this and (4) into (3), we get:

2

a = 5 / 24.

Thus,

1

a = 5 /12, and

2

b =1/ 24

In summary, we have

2

1

y x = − x + x and

2

2

y x = − x + x +

or,

2

2

x x x

y x

x x x

This function is plotted below. Though hard to tell, the slope of the line is discontinuous at the

point x = 0.5.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

0

x

y

Problem 2. (10 points)

A modified form of the Queen Dido problem concerns the maximum enclosed area bounded on

one side by a curve y(x) of given length and on the other side by a straight line. This is depicted

in the figure below. Find the curve of length L that goes from (x 1

, 0) to (x

2

, 0) and which

maximizes the integral

2

1

x

x

I = y dx

. Be sure to explain how all constants can be found.

x

1

x

2

y

Solution

The problem can be stated as follows: For all curves doing from (x 1

, 0) to (x 2

, 0), find the

smooth curve y(x) that maximizes

2

1

x

x

I = y dx

, subject to ( )

2

1

2

x

x

J y dx L

. Start by

augmenting the integrand of the constraint to the integrand of the functional I using a Lagrange

multiplier:

2

f = f + λ g = y + λ 1 + y ′

Since no x is explicitly present, we can use

1

f

y f C

y

This gives

2

2

1

2

y

y y C

y

λ

λ

or

1

2

C y

y

− λ

Squaring, gives

( )

2 2 2

1

λ C y 1 y

Solve for y

2

2

1

1

C y

dy

y

dx C y

λ − +

1

2 2

1

C y dy

dx

λ C y

Problem 3. (5 points)

Consider again the modified Queen Dido problem. This time we want to obtain an approximate

solution using a finite-difference approach. Referring to the figure below, formulate the problem

using 4 line segments from x 1

= 0 to x

2

= 4. Without actually solving the problem, discuss the

process by which you would obtain the heights y 1

, y

2

, and y

3

y

x

y

1

y

2

y

3

Solution

From Problem 2, we want to maximize

2

1

x

x

I = y dx

, subject to

2

1

2

x

x

J y dx L

. Use

the standard FD approximations within each interval ∆x.

4

0 1 2 3 4 1 2 3

0

I = y dx ≈ y ∆ x + y ∆ x + y ∆ x + y ∆ x + y ∆ x = y + y + y

1 2 3 1 2 3

I ( y , y , y )= y + y + y

2 2 2 2

1 0 2 1 3 2 4 3

y y y y y y y y

J x x x x L

x x x x

2 2 2 2

1 2 3 1 2 1 3 2 3

J ( y , y , y ) ≈ 1 + y + 1 + y − y + 1 + y − y + 1 + y = L

To solve this, augment the constraint to the cost function using Lagrange Multiplier

1 2 3 1 2 3 1 2 3

f ( y , y , y ) = f ( y , y , y ) + λ g y ( , y , y )

2 2 2 2

1 2 3 1 2 1 3 2 3

f = y + y + y + λ 1 + y + 1 + y − y + 1 + y − y + 1 + y − L

Solution satisfies the following 4 equations:


1 2 3

f f f

y y y

1 2 3

J ( y , y , y )= L

Problem 4. (15 points)

Consider the integral

1 2 2

0

I y 2 y y dx

subject to y (0) = 1

(a) If y(1) = 1, find the minimizing solution y(x).

(b) Consider now the case where

2 2

y x ( )= y , where y

2

is specified, but x

2

is not. Find the form

of the solution as well as any boundary condition that must be specified at the right endpoint

x 2

(c) Briefly explain how you would solve for the exact solution to part (b). What numerical

approach(es) would you use?

Solution

(a) Here,

2 2

f ( , x y y , ) y 2 y y

= + +. Although there is no x-dependence, it is easier to use the

full Euler-Lagrange equations:

f d f

y y y y

y d x y

Assume solution ( )

x

y x Ae

λ

= , Then,

2

x

Ae

λ

λ − = which implies that λ = ± 1. Thus, the

general solution to the EL equation is

x x

y x Ae Be

  • −

Apply BC's: y(0)=1 y (0) = A + B = 1

A

e e B

y(1)=1 y (1) = Ae + B / e = 1

By Cramer's rule or matrix inversion, we find

2

2 2

e e e

A B

e e

→

1

x x

e e

y x

e

−

(b) In this case, the right hand BC must be replaced with the transversality condition. Note that

the requirement that y 2

is specified is equivalent to saying that at x = x

2

, the solution must cross

the line

2

g x y ( , ) = y − y = 0. The transversality condition is

2

2

2

2

2

2

y

g

y

x

g

f

y

g

y

f

x

x