ECE680 L3notes
ECE680 L3notes
L
x i
L
= 0 i = 1, 2, 3.
xi
(1)
(Any nonconservative forces acting on the point mass would show up on the right hand
side.)
Heres 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=m
dx
,
dt
and work is equal to the integral over distance of the applied force. We can substitute for
the force to obtain
W =
=
=
Z B
A
Z B
A
Z B
F dx
(2)
m
x dx
(3)
mx dx
(4)
where we have played fast and loose with the derivatives to conclude that
xdx = (dx/dt)dx
= dx(dx/dt)
= xd
x.
m T B
x x
A
2
(5)
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
F dx = U
and thus
F = U,
(6)
ECE 680
U U U
U :=
x1 x2 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.
Were almost ready to rewrite Newtons equation in its Lagrangian form.
We know that
K
= mx i
x i
(7)
K
x i
= m
xi
i = 1, 2, 3.
(8)
Now with L = K U , we see that K does not depend on position and U does not depend
on velocity, so
K
L
=
x i
x i
L
U
=
xi
xi
(9)
(10)
L
x i
L
= 0 i = 1, 2, 3
xi
(11)
as asserted earlier.
Next, in Section 1.6, Zak extends the above analysis to generalized coordinates by expressing each of the xi in terms of new coordinates qi . By the chain rule we then have
x i =
xi
xi
xi
q1 +
q2 +
q3
q1
q2
q3
(12)
and after repeating the derivation with the new coordinates qi we obtain, (surprise, surprise,)
!
d L
L
= 0 i = 1, 2, 3.
(13)
dt qi
qi
If the applied force has a nonconservative component, the right-hand side is equal to the
nonconservative component rather than zero.
Lets do a couple of simple examples to demonstrate that this is a viable method for
obtaining the equations of motion.
ECE 680
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
1 2
m l
2
U = mgl (1 cos ) .
K =
(14)
(15)
Accordingly,
1
L = K U = m`2 2 mgl(1 cos ).
2
(16)
L
= mg` sin
(17)
L
= m`2
(18)
The
and
so
d
dt
= m`2
(19)
(20)
1
1
(M + m) x 2 + m`x cos + m`2 2 mg` (1 cos ) .
2
2
(23)
ECE 680
L
x
(24)
= (M + m) x + m` cos 2 sin = u
(25)
(26)
and
(27)
= m`
x cos m`x sin + m`2 .
(28)
m` x cos + ` g sin = 0.
(29)
M + m m` cos
cos
`
#"
"
m`2 sin + u
g sin
(30)
Of course the cart pendulum is really a fourth order system so well want to define a new
iT
h
state vector x x 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 Newtons 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.