Professional Documents
Culture Documents
Phys 104 Practice Midterm Solutions
Phys 104 Practice Midterm Solutions
1). (10 points) Prove that the shortest path connecting two points in the x-y plane is a straight line.
pfunction y(x) that minimizes this using the Euler-Lagrange equation on the functional
We can find the
0
f (y, y ; x) = 1 + y 02 , i.e.,
!
∂f d ∂f d y0
0= − =0−
∂y dx ∂y 0
p
dx 1 + y 02
!
d y0
0= p
dx 1 + y 02
So, the quantity in parentheses is a constant, which I’ll call C.
p
y 0 = C 1 + y 02
y 02 = C 2 + C 2 y 02
y 02 = C 2 /(1 − C 2 )
√
y 0 = C/ 1 − C 2
The quantity on the right is a constant, which I’ll label as m. So,
y0 = m
Integrating with respect to x, and calling the constant of integration b, we get that
y = mx + b
That is the equation of a line. This proves that the function, y(x), which minimizes the distance
between the two points is a straight line.
2). (15 points) A simple pendulum (mass M and length L) is
suspended from a cart (mass m) that can oscillate horizontally
on the end of a spring of force constant k, as shown at right.
Write the Lagrangian in terms of the two generalized coordi-
nates x and φ, where x is the extension of the spring from its
equilibrium length, and determine the equations of motion.
Since there are two objects to keep track of, the cart and the pendulum bob, in 3D, we need 6
coordinates. However, the motion is constrained to a plane so we can set z = 0 for both objects
leaving only 4 coordinates. Then, the cart moves only horizontally, so we can set its y coordinate to
zero. Finally, the pendulum is constrained to have a constant radius, which adds another constraint.
After all these constraints, we are left with only 2 degrees of freedom. As suggested in the problem,
we can use x and φ as the coordinates to describe them. However, I’ll use y as the vertical direction
to find the Lagrangian and then apply the constraints.
1 1 1
L = mẋ2 + M ẋ2 + L2 φ̇2 + 2Lẋφ̇ cos φ − kx2 + M gL cos φ
2 2 2
With two degrees of freedom, we have two Euler-Lagrangian equations, one for x and one for φ.
Starting with x, we have
∂L d ∂L d
0= − == −kx − mẋ + M ẋ + M Lφ̇ cos φ
∂x dt ∂ ẋ dt
= −kx − mẍ − M ẍ − M Lφ̈ cos φ + M Lφ̇ sin φφ̇
= −kx − mẍ − M ẍ − M Lφ̈ cos φ + M Lφ̇2 sin φ
The simplest coordinate system to use is cylindrical coordinates (r, φ, z) with the origin fixed to
the center of the disk and rotating with the disk. The ẑ axis points up along the axis of rotation, so the
~ = Ωẑ
rotation is Ω
The forces acting on the puck are gravity downward and a normal force upward. By constraint,
these two forces cancel each other and we can ignore them henceforth. The fictitious forces acting on
the puck in the non-inertial reference frame are the centrifugal and coriolis forces:
The cross-products can be determined easily since r̂, φ̂ and ẑ form a right handed coordinate system,
i.e., ẑ × r̂ = φ̂, φ̂ × ẑ = r̂, and r̂ × ẑ = −φ̂. That makes the force
The first term says that the centrifugal force points radially outward, as we’d expect intuitively. The
second term means that the coriolis force pushes the puck to the right wrt any radial velocity if Ω is
positive, i.e., counter-clockwise as viewed from above. The third term is the same thing for velocity
in the φ̂ direction.
We can find the equations of motion by writing F~ = m~a in this coordinate system. Since the
acceleration in polar coordinates is
Canceling the m’s and dropping the (redundant) unit vectors we get
We can validate these equations of motion with a simple case. Suppose that the puck is placed on the
disk such that it is at rest in the external inertial frame. The lack of real forces will make it stay at rest
in that frame. In the non-inertial rotating frame, that “stay at rest” will look like the puck has constant
r but φ̇ = −Ω. We see that putting φ̇ = −Ω in the EOM for r gives
0 = r̈ − rΩ2 − Ω2 r + 2Ω2 r
So r̈ = 0 as expected. In the same situation, we should see that φ̈ = 0. Plugging ṙ = 0 into the φ
equation of motion confirms that.
In the second part, we need to sketch the motion for a particular set of initial conditions, namely
~r(t = 0) = 21 Rr̂ and ~r˙ = −v0 r̂. We can plug that into the forces above to see what will happen.
R
F~ (t = 0) = mΩ2 ( )r̂ + 2mΩv0 φ̂
2
That means that the puck is pushed outward along r̂ by the centrifugal force, making its radial velocity
reduce. It is also pushed in the φ̂ direction by the coriolis force. (That is to the right wrt to its initial
motion.) As time progresses, it gains a velocity in the φ̂ direction. That non-zero φ̇ makes the second
coriolis force term contribute with 2mΩrφ̇r̂ that adds to the radially outward push of the centrifugal
force. The motion is thus as drawn below on the left.
The motion as viewed from an external inertial observer is, of course, a straight line since there are
no real forces acting on the puck. However, if the puck’s initial velocity is radially inward as viewed
in the disk’s rotating coordinate system, then the external observer will see the initial velocity to have
a component perpendicual to r̂ that is equal to ΩR/2 coming from the rotation of the disk. The puck
is then observed to slide with that constant velocity as shown above at right.