Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Homework 8

Total points: 120

Exercise 1 (10pt) Paths along a curved surface

We have shown by minimizing the path length on a 2D flat surface that we have generated a linear equation, which illustrates the shortest distance between two points is a straight line. On a curved surface, the shortest distance will be a curve of some kind. In this exercise you will construct the path-length functional for a sphere and a cylinder, both with fixed radii, and identify the shortest path by minimizing it.

A step in spherical coordinates is given by:

ds⃗=drr^+rdθθ^+rsin⁡θdϕϕ^.d\vec{s} = dr \hat{r} + r d\theta \hat{\theta} + r \sin\theta d\phi \hat{\phi}.

A step in cylindrical coordinates is given by:

ds⃗=dρρ^+ρdϕϕ^+dzz^.d\vec{s} = d\rho \hat{\rho} + \rho d\phi \hat{\phi} + dz \hat{z}.
  1. (5 pt) Demonstrate that the length functional for a path between two points on a sphere of radius RR is:

L=R∫θ1θ21+(sin⁡2θ)(dϕdθ)2dθL = R \int_{\theta_1}^{\theta_2} \sqrt{1 + \left(\sin^2\theta\right) \left(\frac{d\phi}{d\theta}\right)^2} d\theta

where θ\theta is the polar angle and ϕ\phi is the azimuthal angle. Travel from (θ1,ϕ1)(\theta_1,\phi_1) to (θ2,ϕ2)(\theta_2,\phi_2) at fixed RR, assuming θ\theta can be used as a path parameter. Explain that minimizing this functional gives the shortest path.

  1. (5 pt) Construct the length functional for a path on a cylinder of radius RR and height hh. The endpoints are (ρ=R,ϕ1,z1)(\rho=R,\phi_1,z_1) and (ρ=R,ϕ2,z2)(\rho=R,\phi_2,z_2) in cylindrical coordinates, where ρ\rho is the radial coordinate, ϕ\phi is the azimuthal angle, and zz is the height. State the allowed range of zz and explain how minimizing the functional identifies the shortest path.

Exercise 2 (15pt) Snell’s Law

We can develop Snell’s law by minimizing the time it takes for light to travel between two points in different media. The speed of light in a medium is v=c/nv=c/n, where cc is the speed of light in vacuum and nn is the medium’s refractive index. The time to traverse a segment of length LL is t=L/vt=L/v.

Let a light ray travel from a fixed point in medium 1, across a planar interface, to a fixed point in medium 2. The refractive indices are n1n_1 and n2n_2.

  1. (5 pt) Sketch the problem and indicate the relevant angles and distances in your figure. Recall that the angle of incidence is θ1\theta_1 and the angle of refraction is θ2\theta_2. It is ok to use a 2D sketch.

  1. (5 pt) Set up the total travel time for the two line segments. Use vi=c/niv_i=c/n_i and express each segment length in terms of the geometry of your sketch. Your answer should include the angles of incidence and refraction, θ1\theta_1 and θ2\theta_2, and the refractive indices n1n_1 and n2n_2.

  1. (5 pt) Minimize the time it takes for light to travel between two points in different media to derive Snell’s Law.

n1sin⁡θ1=n2sin⁡θ2n_1 \sin\theta_1 = n_2 \sin\theta_2

Exercise 3 (15pt) Lagrangian Examples

Constructing the Lagrangian for a system can be a bit tricky. In this exercise you will be asked to construct the Lagrangian for a few systems and quickly find equations of motion to illustrate the process.

  1. (2 pt) Construct the Lagrangian in 3D for a projectile subject to no air resistance in a uniform gravitational field, taking zz upward and U=mgzU=mgz. The coordinates are (x,y,z)(x,y,z) in the Cartesian coordinate system. Find the 3 equations of motion.

  2. (2 pt) Construct the Lagrangian for a one-dimensional simple harmonic oscillator (F=−kxF=-kx). The coordinate is xx in the Cartesian coordinate system. Find the equation of motion.

  3. (3 pt) A mass moves in a potential well U(x,y)=12k(x2+y2)U(x,y) = \frac{1}{2}k(x^2 + y^2). Construct the Lagrangian in 2D. The coordinates are (x,y)(x, y) in the Cartesian coordinate system. Find the 2 equations of motion.

It’s common to use coordinates that are convenient for the problem. In these cases, you will need to write down the kinetic and potential energy in terms of the coordinates you choose. The single particle kinetic energy in these coordinates are commonly used.

  1. (4 pt) Write or derive the velocity vector in spherical coordinates. The coordinates are (r,θ,ϕ)(r, \theta, \phi) in the spherical coordinate system. Show the kinetic energy is given by T=12m(r˙2+r2θ˙2+r2sin⁡2θϕ˙2)T = \frac{1}{2}m(\dot{r}^2 + r^2\dot{\theta}^2 + r^2\sin^2\theta\dot{\phi}^2).

  2. (4 pt) Write or derive the velocity vector in cylindrical coordinates. The coordinates are (ρ,ϕ,z)(\rho, \phi, z) in the cylindrical coordinate system. Show the kinetic energy is given by T=12m(ρ˙2+ρ2ϕ˙2+z˙2)T = \frac{1}{2}m(\dot{\rho}^2 + \rho^2\dot{\phi}^2 + \dot{z}^2).

Exercise 4 (25pt) Changing Coordinates

Consider two particles with masses m1=m2=mm_1=m_2=m connected by a spring with spring constant kk. They sit on a frictionless surface but are constrained to the xx-axis. The location of the first particle is x1x_1 and the location of the second particle is x2x_2. The spring is at equilibrium when the particles are a distance LL apart. Assume the spring is massless and that the left mass never changes position with the right mass (i.e., the spring is always horizontal).

  1. (3 pt) Write down the kinetic and potential energy for this system in terms of x1x_1 and x2x_2 and their associated velocities.

  2. (4 pt) Write down the Lagrangian for this system in terms of x1x_1 and x2x_2 and their associated velocities L(x1,x2,x˙1,x˙2)\mathcal{L}(x_1, x_2, \dot{x}_1, \dot{x}_2). Find the 2 equations of motion.

  3. (5 pt) Now consider a new coordinate system where the center of mass is at xcm=12(x1+x2)x_{cm} = \frac{1}{2}(x_1 + x_2) and the relative coordinate is q=x2−x1−Lq = x_2 - x_1 - L, the spring extension from equilibrium. Write down the kinetic and potential energy in terms of xcmx_{cm} and qq and their associated velocities.

  4. (8 pt) Write down the Lagrangian for this system in terms of the center of mass coordinate (xcmx_{cm}) and the spring extension (qq) and the associated velocities L(xcm,q,x˙cm,q˙)\mathcal{L}(x_{cm},q,\dot{x}_{cm},\dot q). Find the 2 equations of motion.

  5. (5 pt) Find xcm(t)x_{cm}(t) and q(t)q(t) for the system for some generic initial conditions of your choosing. Describe the motion of the system.

In this problem we are changing the coordinates to explore a different aspect of the problem (and to make the math easier). This is a common technique that will not always be obvious. But practice will help us identify when it is useful.

Exercise 5 (35 pt) Motion inside a paraboloid

Let’s figure out the motion of a particle constrained to the inside of a paraboloid. The potential energy of the bead is given by U=mgzU = mgz, where mm is the mass of the bead and gg is the acceleration due to gravity. The coordinates are (x,y,z)(x,y,z) in the Cartesian coordinate system, with zz upward.

The constraint surface itself (for an arbitrary choice of α\alpha) looks like this:

<Figure size 600x500 with 1 Axes>
  1. (5 pt) Write down the Lagrangian for the system in terms of xx, yy, and zz and their associated velocities L(x,y,z,x˙,y˙,z˙)\mathcal{L}(x, y, z, \dot{x}, \dot{y}, \dot{z}). Find the 3 equations of motion.

  1. (15 pt) The bead is constrained by the paraboloid z=12α(x2+y2)z = \frac{1}{2}\alpha(x^2 + y^2), where α\alpha has units of inverse length. Find the constraint equation and use it to eliminate one coordinate from the Lagrangian. Find the 2 equations of motion. Here it can be useful to change to cylindrical coordinates (ρ,ϕ,z)(\rho,\phi,z). Hint: the reduced Lagrangian should be a function of ρ\rho, ϕ\phi, and their associated velocities.

  1. (15 pt) Choose an initial condition in which the bead is moving relative to the paraboloid at some height above its bottom. Numerically solve the equations of motion for ρ(t)\rho(t) and ϕ(t)\phi(t) and plot the motion of the bead. Verify numerically that the trajectory remains on the paraboloid.

Exercise 6 (20pt), Project Check-in 3

This is the last of three check-ins for your final project. At this point, you should be preparing to finish your computational essay. Following the posted rubric for the computational essay, you should reflect on your progress and update your project. This is a chance to evaluate where you are in the process of completing your computational essay.