1. Trang chủ
  2. » Khoa Học Tự Nhiên

Using the Lagrangian to obtain Equations of Motion pdf

4 456 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Using the Lagrangian to obtain equations of motion
Tác giả Zak
Trường học University of Example
Chuyên ngành Engineering
Thể loại Selected notes
Năm xuất bản 2008
Thành phố Example City
Định dạng
Số trang 4
Dung lượng 60,05 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Using the Lagrangian to obtain Equations of MotionIn Section 1.5 of the textbook, Zak introduces the Lagrangian L = K − U , which is the difference between the kinetic and potential ener

Trang 1

Using the Lagrangian to obtain Equations of Motion

In Section 1.5 of the textbook, Zak introduces the Lagrangian L = K − U , which is the difference between the kinetic and potential energy of the system He then proceeds to obtain the Lagrange equations of motion in Cartesian coordinates for a point mass subject

to conservative forces, namely,

d dt

∂L

∂ ˙xi

!

− ∂L

(Any nonconservative forces acting on the point mass would show up on the right hand side.)

Here’s how the text gets from the definition to the result

We know that for a point mass, force is equal to mass times acceleration,

F = ma = m¨x = md ˙x

dt, and work is equal to the integral over distance of the applied force We can substitute for the force to obtain

Z B A

=

Z B A

=

Z B A

where we have played fast and loose with the derivatives to conclude that

¨ xdx = (d ˙x/dt)dx = d ˙x(dx/dt) = ˙xd ˙x

Assuming conservative forces, we can then integrate to obtain

W = m 2



˙

xTx˙

B

so the work is the difference between the kinetic energy at point B and that at point A Conservation of energy requires that an increase in kinetic energy must be balanced by decrease in potential energy so we can write

Z B A

and thus

F = −∇U,

Trang 2

where we use the notation

∇U :=

"

∂U

∂x1

∂U

∂x2

∂U

∂x3

# T

We have used the fact that if we measure change in potential energy with respect to a constant reference, the derivative of the constant reference is zero so we have

∇ (∆U ) = ∇U

We’re almost ready to rewrite Newton’s equation in its Lagrangian form

We know that

∂K

so Newton’s law becomes

F = − (∇U )i = d

dt

∂K

∂ ˙xi

!

Now with L = K − U , we see that K does not depend on position and U does not depend

on velocity, so

∂L

∂ ˙xi =

∂K

∂L

∂xi = −

∂U

so Newton’s equation can be rewritten as

d dt

∂L

∂ ˙xi

!

− ∂L

as asserted earlier

Next, in Section 1.6, Zak extends the above analysis to generalized coordinates by ex-pressing each of the xi in terms of new coordinates qi By the chain rule we then have

˙xi = ∂xi

∂q1q˙1+

∂xi

∂q2q˙2+

∂xi

and after repeating the derivation with the new coordinates qi we obtain, (surprise, sur-prise,)

d dt

∂L

∂ ˙qi

!

− ∂L

∂qi

If the applied force has a nonconservative component, the right-hand side is equal to the nonconservative component rather than zero

Let’s do a couple of simple examples to demonstrate that this is a viable method for obtaining the equations of motion

Trang 3

Example 1: Pendulum

Consider a pendulum of mass m and length ` with angular displacement θ from the vertical From the geometry, the expressions for the kinetic and potential energies are

2m



Accordingly,

L = K − U = 1

2m`

2θ˙2− mgl(1 − cos θ) (16) The

∂L

and

∂L

∂ ˙θ = m`

so

d dt

∂L

∂ ˙θ

!

and finally solving for θ we have

¨

θ = −g sin θ

Example 2: Pendulum on Cart

This may have seemed like a very difficult way to get the equation of motion of a pendulum,

so let’s try a more complicated example We hang the pendulum from a cart of mass M and position x, acted upon by a force u in the direction of x, and moving on frictionless rails

The the x position of the pendulum is x + ` sin θ and the y position is ` cos θ, so the kinetic energy is

K = 1

2M ˙x

2+ 1

2m

d

dt (x + ` sin θ)

! 2

+ 1

2m

d

dt (` cos θ)

! 2

First taking the time-derivatives, then squaring, then noting that cos2θ + sin2θ = 1 we obtain

K = 1

2(M + m) ˙x

2

+ m` ˙x ˙θ cos θ + 1

2m`

2θ˙2

The potential energy is as before, so

L = K − U = 1

2(M + m) ˙x

2+ m` ˙x ˙θ cos θ + 1

2m`

2θ˙2− mg` (1 − cos θ) (23)

Trang 4

Clearly ∂L/∂x = 0 and

∂L

∂ ˙x = (M + m) ˙x + m` ˙θ cos θ (24) so

d dt

∂L

∂ ˙x

!

= (M + m) ¨x + m`θ cos θ − ˙¨ θ2sin θ= u (25) Next we consider the θ direction and velocity, taking

∂L

∂θ = −m` ˙x ˙θ sin θ + mg` ˙θ sin θ (26) and

∂L

∂ ˙θ = m` ˙x cos θ + m`

Taking the time derivative yields

d dt

∂L

∂ ˙θ

!

=m`¨x cos θ − m` ˙x ˙θ sin θ+ m`2θ.¨ (28) The Lagrangian equation of motion is thus

m`x cos θ + `¨¨ θ − g sin θ= 0 (29)

We can write this as a matrix differential equation

"

M + m m` cos θ

# "

¨ x

¨ θ

#

=

"

m` ˙θ2sin θ + u

g sin θ

#

Of course the cart pendulum is really a fourth order system so we’ll want to define a new state vector hx ˙x θ ˙θiT in order to solve the nonlinear state equation

(31)

For comparison, it will be instructive to read Section 1.7 in which Zak presents an example

of a cart with inverted pendulum Instead of using the Lagrangian equations of motion,

he applies Newton’s law in its usual form There are a couple of differences between the examples Specifically, in the example in Section 1.7

1 the pendulum is a distributed rather than point mass, and

2 frictional force on the cart wheels is considered

... instructive to read Section 1.7 in which Zak presents an example

of a cart with inverted pendulum Instead of using the Lagrangian equations of motion,

he applies Newton’s law in... difficult way to get the equation of motion of a pendulum,

so let’s try a more complicated example We hang the pendulum from a cart of mass M and position x, acted upon by a force u in the direction... Section 1.6, Zak extends the above analysis to generalized coordinates by ex-pressing each of the xi in terms of new coordinates qi By the chain rule we then have

˙xi

Ngày đăng: 28/06/2014, 06:20

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN