Robotics. Islam S. M. Khalil. November 15, German University in Cairo

Similar documents
Principles of Optimal Control Spring 2008

Functional differentiation

A Short Essay on Variational Calculus

Legendre Transforms, Calculus of Varations, and Mechanics Principles

(Most of the material presented in this chapter is taken from Thornton and Marion, Chap. 6)

Johann Bernoulli ( )he established the principle of the so-called virtual work for static systems.

Maxima and Minima. (a, b) of R if

The Principle of Least Action

MATH1013 Calculus I. Introduction to Functions 1

THEODORE VORONOV DIFFERENTIAL GEOMETRY. Spring 2009

The Hopf equation. The Hopf equation A toy model of fluid mechanics

Lecture Notes for PHY 405 Classical Mechanics

Calculus of Variations Summer Term 2014

14 F Time Optimal Control

Lecture 9: Implicit function theorem, constrained extrema and Lagrange multipliers

Introduction to the Calculus of Variations

Name Class. (a) (b) (c) 4 t4 3 C

Math 115 ( ) Yum-Tong Siu 1. General Variation Formula and Weierstrass-Erdmann Corner Condition. J = x 1. F (x,y,y )dx.

Physics 129a Calculus of Variations Frank Porter Revision

The Brachistochrone Curve

Calculus of Variations

Lecture 6, September 1, 2017

YET ANOTHER ELEMENTARY SOLUTION OF THE BRACHISTOCHRONE PROBLEM

2.3 Calculus of variations

Invariant Lagrangian Systems on Lie Groups

EE291E/ME 290Q Lecture Notes 8. Optimal Control and Dynamic Games

4.1 Analysis of functions I: Increase, decrease and concavity

Part IB Variational Principles

Arc Length and Surface Area in Parametric Equations

Numerical Optimization Algorithms

MATH1013 Calculus I. Derivatives V ( 4.7, 4.9) 1

LEAST ACTION PRINCIPLE.

Classical mechanics of particles and fields

Calculus I (Math 241) (In Progress)

x f(x)

x f(x)

Chapter 1. Variational Method

ENGI Partial Differentiation Page y f x

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

EML Spring 2012

Variational Principles

Math 2413 General Review for Calculus Last Updated 02/23/2016

Math 321 Final Exam. 1. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded.

ENGI Partial Differentiation Page y f x

JUST THE MATHS UNIT NUMBER INTEGRATION APPLICATIONS 10 (Second moments of an arc) A.J.Hobson

S2500 ANALYSIS AND OPTIMIZATION, SUMMER 2016 FINAL EXAM SOLUTIONS

Second Order ODEs. Second Order ODEs. In general second order ODEs contain terms involving y, dy But here only consider equations of the form

Taylor Series and stationary points

Classical Mechanics in Hamiltonian Form

A. MT-03, P Solve: (i) = 0. (ii) A. MT-03, P. 17, Solve : (i) + 4 = 0. (ii) A. MT-03, P. 16, Solve : (i)

Second Midterm Exam Name: Practice Problems Septmber 28, 2015

LECTURE NOTES IN CALCULUS OF VARIATIONS AND OPTIMAL CONTROL MSc in Systems and Control. Dr George Halikias

Classical Mechanics Review (Louisiana State University Qualifier Exam)

Mathematical Methods of Physics I ChaosBook.org/ predrag/courses/phys Homework 1

C2 Differential Equations : Computational Modeling and Simulation Instructor: Linwei Wang

Course Summary Math 211

Physics 5153 Classical Mechanics. Canonical Transformations-1

Mathematics (Course B) Lent Term 2005 Examples Sheet 2

Optimization using Calculus. Optimization of Functions of Multiple Variables subject to Equality Constraints

Analytical Mechanics: Variational Principles

Calculus C (ordinary differential equations)

Regression and Nonlinear Axes

VARIATIONAL PRINCIPLES

Fermat s Principle. Fermat s Principle states that a ray of light in a medium will follow the path which takes the least amount of time.

ODE. Philippe Rukimbira. Department of Mathematics Florida International University PR (FIU) MAP / 92

(A) Opening Problem Newton s Law of Cooling

minimize x subject to (x 2)(x 4) u,

Sketchy Notes on Lagrangian and Hamiltonian Mechanics

Brachistochrones with loose ends

Elementary ODE Review

VARIATIONAL METHODS IN OPTIMIZATION

Exercises for Multivariable Differential Calculus XM521

AP Calculus BC Chapter 4 AP Exam Problems A) 4 B) 2 C) 1 D) 0 E) 2 A) 9 B) 12 C) 14 D) 21 E) 40

NOTES ON CALCULUS OF VARIATIONS. September 13, 2012

Math 5588 Final Exam Solutions

F1.9AB2 1. r 2 θ2 + sin 2 α. and. p θ = mr 2 θ. p2 θ. (d) In light of the information in part (c) above, we can express the Hamiltonian in the form

ANSWER'SHEET' 'STAPLE'TO'FRONT'OF'EXAM'! Name:!!!CWID:!!! Lab'section'(circle'one):' 6!(W!3pm)! 8!(W!7pm)!!!

ANSWER'SHEET' 'STAPLE'TO'FRONT'OF'EXAM'! Name:!!!CWID:!!! Lab'section'(circle'one):' 6!(W!3pm)! 8!(W!7pm)!!!

The Dirichlet boundary problems for second order parabolic operators satisfying a Carleson condition

Antiderivatives. Definition A function, F, is said to be an antiderivative of a function, f, on an interval, I, if. F x f x for all x I.

Test 3 Review. fx ( ) ( x 2) 4/5 at the indicated extremum. y x 2 3x 2. Name: Class: Date: Short Answer

AP Calculus AB 2015 Free-Response Questions

JUST THE MATHS UNIT NUMBER NUMERICAL MATHEMATICS 6 (Numerical solution) of (ordinary differential equations (A)) A.J.Hobson

Sec. 14.3: Partial Derivatives. All of the following are ways of representing the derivative. y dx

ON COLISSIONS IN NONHOLONOMIC SYSTEMS

Final Exam. Monday March 19, 3:30-5:30pm MAT 21D, Temple, Winter 2018

Math 115 ( ) Yum-Tong Siu 1. Canonical Transformation. Recall that the canonical equations (or Hamiltonian equations) = H

PH.D. PRELIMINARY EXAMINATION MATHEMATICS

Stochastic Mechanics of Particles and Fields

MATHEMATICAL PROBLEM SOLVING, MECHANICS AND MODELLING MTHA4004Y

Numerical Optimization

A numerical method for solving uncertain differential equations

Newtonian Mechanics. Chapter Classical space-time

G : Statistical Mechanics

M2A2 Problem Sheet 3 - Hamiltonian Mechanics

2.2 Separable Equations

MATH1013 Calculus I. Edmund Y. M. Chiang. Department of Mathematics Hong Kong University of Science & Technology.

Optimality Conditions

Chapter 2. Motion in One Dimension. AIT AP Physics C

STEP Support Programme. Mechanics STEP Questions

Transcription:

Robotics German University in Cairo November 15, 2016

Fundamental concepts In optimal control problems the objective is to determine a function that minimizes a specified functional, i.e., the performance measure. The analogous problem in calculus is to determine a point that yields the minimum value of a function.

Fundamental concepts 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 fixed 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 definition 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.

Functional Let us estimate the length of the curve. We will do this by dividing the interval up into n equal subintervals each of width and we will denote the point on the curve at each point by P i. We can then approximate the curve by a series of straight lines connecting the points. Here is a sketch of this situation for n = 9: Figure: Length of a curve.

Functional Now denote the length of each of these line segments by P i 1 P i and the length of the curve will then be approximately, n L P i 1 P i, (1) i=1 and we can get the exact length by taking n larger and larger. In other words, the exact length will be, n L = lim P i 1 P i, (2) i1=1

Functional Let us get a better grasp on the length of each of these line segments. First, on each segment lets define y i = y i y i 1 = f (x i ) f (xi 1). We can then compute directly the length of the line segments as follows: P i 1 P i = (x i x i 1 ) 2 + (y i y i 1 ) 2 = x 2 i + y 2 i. (3) By the Mean Value Theorem we know that on the interval [x i 1, x i ] there is a point x i so that, f (x i ) f (x i 1 ) = f (x i )(x i x i 1 ); (4) y i = f (x i ) x i. (5) Therefore, the length can now be written as, P i 1 P i = (x i x i 1 ) 2 + (y i y i 1 ) 2. (6)

Functional P i 1 P i = (x i x i 1 ) 2 + (y i y i 1 ) 2, (7) P i 1 P i = x 2 + [f (xi )]2 x 2, (8) P i 1 P i = 1 + [f (xi )]2 x. (9) The exact length of the curve is then, n L = lim P i 1 P i, (10) L = lim n i1=1 i1=1 1 + [f (x i )]2 x. (11) Using the definition of the definite integral, this is nothing more than, b L = 1 + [f (xi )]2 dx. (12) a

VARIATIONAL PROBLEM The length L of a curve, c whose equation is y = f (x), passing through two given points A(x 1, y 1 ) and B(x 2, y 2 ) is given by L = x2 x 1 1 + [y ] 2 dx, (13) where y denotes derivative of y with respect to x. Now the length L of the curve passing through A and B depends on y(x) (the curve). Then L is a function of the independent variable y(x), which is a function. Thus L(y(x)) = x2 x 1 1 + [y ] 2 dx, (14) defines a functional which associates a real number L uniquely to each y(x) (the independent variable). Further, suppose we wish to determine the curve having shortest (least) distance between the two given points A and B, i.e., curve with minimum length L.

VARIATIONAL PROBLEM This is a classical example of a variational problem in which we wish to determine, the particular curve y = y(x) which minimizes the functional Ly(x) given by (1). Here the two conditions y(x 1 ) = y 1 and y(x 2 ) = y 2, which are imposed on the curve y(x) are known as end conditions of the problem. Thus variational problems involves determination of maximum or minimum or stationary values of a functional. The term extremum is used to include maximum or minimum or stationary values.

The Increment of a Functional Definition If q and q + q are elements for which the function f is defined, then the increment of f, denoted by f is given by Consider the function The increment of f is f f (q + q) f (q). (15) f (q) = q 2 1 + 2q 1 q 2. (16) f = [q 1 + q 1 ] 2 + 2(q 1 + q 1 )(q 2 + q 2 ) q1 2 2q 1 q 2 = 2q 1 q 1 + [ q 1 ] 2 + 2 q 1 q 2 + 2 q 2 q 1 + 2 q 1 q 2.

The Increment of a Functional Definition If x and x + δx are functions for which the functional J is defined, then the increment of J, denoted by J is given by Consider the functional J J(x + δx) J(x). (17) The increment of J is J(x) = tf t 0 x 2 (t)dt. (18) J = = tf t 0 tf t 0 tf [x(t) + δx(t)] 2 dt x 2 (t)dt t 0 [2x(t)δx(t) + [δx(t) 2 ]dt.

The Variation of a Functional Definition The increment of a function of n variables can be written as f (q, q) = df (q, q) + g(q, q) q. (19) where df is a linear function of q if lim {g(q, q)} = 0 (20) q 0 then f is said to be differentiable at q, and df is the differential of f at the point q.

The Variation of a Functional Find the differential of We found the increment that is given by f (q) = q 2 1 + 2q 1 q 2. (21) f = 2q 1 q 1 + 2 q 1 q 2 + 2 q 2 q 1 + [ q 1 ] 2 + 2 q 1 q 2. (22) The first two terms are linear in q, letting q = [ q 1 ] 2 + [ q 2 ] 2, (23) we can write the last two terms as 2 q 1 q 2 [ q1 ] 2 + [ q 2 ] 2 [ q 1 ] 2 + [ q 2 ] 2, (24)

The Variation of a Functional which is of the form g(q, q) q. To show that f is differentiable we must verify that lim q 0 2 q 1 q 2 = 0. (25) [ q1 ] 2 + [ q 2 ] 2 Therefore, f is differentiable and the differential is given by df (q, q) = [2q 1 + 2q 2 ] q 1 + [2q 1 ] q 2. (26)

The Variation of a Functional Definition The increment of a functional J can be written as J(x, δx) = δj(x, δx) + g(x, δx) δx. (27) where δj is a linear function of δx if lim {g(x, δx)} = 0 (28) δx 0 then J is said to be differentiable on x, and δj is the variation of J evaluated for the function x.

The Variation of a Functional Find the variation of the functional J J(x) = 1 The increment of J is given by J(x, δx) = 1 0 0 [x 2 (t) + 2x(t)]dt. (29) {[x(t)+δx(t)] 2 +2[x(t)+δx(t)]}dt Expanding and combining these integrals, we obtain J(x, δx) = 1 0 1 0 [x 2 (t)+2x(t)]dt. (30) {[2x(t) + 2]δx(t) + [δx(t)] 2 }dt. (31) Separating the terms that are linear in δx, we obtain J(x, δx) = 1 0 [2x(t) + 2]δx(t)dt + 1 0 [δx(t)] 2 dt. (32)

The Variation of a Functional J(x, δx) = 1 Therefore, the variation of J is 0 [2x(t) + 2]δx(t)dt + δj(x, δx) = 1 0 1 0 [δx(t)] 2 dt. (33) [2x(t) + 2]δx(t)dt. (34)

The Fundamental Theorem of the Calculus of Variation Theorem (The fundamental theorem of the calculus of variation) If x is an extermal, the variation of J must vanish on x, i.e., δj(x, δx) = 0 for all admissible δx. Figure: An extremal and two neighboring curves. Image courtesy of Donald E. Kirk.

The Fundamental Theorem of the Calculus of Variation Euler equation is a necessary condition for x to be an extremal g x (x (t), ẋ (t), t) d ( ) g dt ẋ (x (t), ẋ (t), t) = 0. (35) Lagrange s equations L (q, q, t) d ( ) L (q, q, t) = 0, (36) q i dt q i where L is the Lagrangian function. Further, q i is the generalized coordinates of the ith degree-of-freedom, respectively.

The Fundamental Theorem of the Calculus of Variation A necessary condition for the integral J(x(t)) = tf t 0 g(x(t), ẋ(t), t)dt. (37) to attain an extreme value is that the extremizing function x(t) should satisfy g x (x (t), ẋ (t), t) d ( ) g dt ẋ (x (t), ẋ (t), t) = 0. (38)

The Fundamental Theorem of the Calculus of Variation Note 1 The second-order differential equations (35 and 36) 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.

Shortest Distance Find the shortest smooth plane curve joining two distinct points in the plane. Figure: Shortest distance problem. Assume that the two distinct points be P 1 (x 1, y 1 ) and P 2 (x 2, y 2 ) lie in the XY-Plane. If y = f (x) is the equation of any plane curve c in XY-Plane and passing through the points P 1 and P 2, then the length L of curve c is given by

Shortest Distance L(y(x)) = x2 x 1 1 + (y ) 2 dx (39) The variational problem is to find the plane curve whose length is shortest i.e., to determine the function y(x) which minimizes the functional L(y(x)). The condition for extrema is the Eulers equation δf δy d ( ) δf = 0 (40) dx δy where f is given by Therefore, f = 1 + (y ) 2. (41) ( ) d y = 0, (42) dx 1 + (y ) 2 Integration of the previous conditions yields, y(x) = mx + c, where m and c are constants of he integration.

Shortest Time Determine the plane curve down which a particle will slide without friction from the point A(x 1, y 1 ) to B(x 2, y 2 ) in the shortest time. Figure: Shortest time problem. Assume the positive direction of the y-axis is vertically downward and let x 1 < x 2. 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

Shortest Time v = 2g(y y ) (43) ). where g is the acceleration due to gravity, and y = y 1 ( v 2 1 2g Further, v 1 is the initial speed. Choose the origin at A so that x 1 = 0, y 1 = 0 and assume that v 1 = 0. Then ds dt = v = 2gy (44) Integrating this, we get the time taken by the particle moving under gravity (and neglecting friction along the curve and neglecting resistance of the medium) from A(0, 0) to B(x 2, y 2 ) is t(y(x)) = ds = 1 x2 2gy 2g 0 1 + y 2 y dx (45)