Pages

Saturday, May 11, 2019

From a Certain Point of View

[Title from Obi-Wan's BS explanation for lying to Luke]

When I first put up the post about my stair-climbing cart, my father Steve was disappointed there was no video of it in action. At the time, I had hoped to create an animation of the movement, but I couldn't get my head around the equations involved. This week, I had an idea though: The system is fairly simple to describe if we only consider the cart rotating around one of its wheels. Bringing back the diagram from last time,
we can imagine holding the front wheel fixed, and letting the other two rotate around it.

In Physics, this is called choosing the reference frame. Essentially, we're deciding where the x- and y-axes are, and what we're calling zero. Reference frames can also move relative to each other. As long as that velocity difference is constant, all the same physical laws apply. In accelerating frames, things can get a bit crazy, but we don't have to worry about that here.

In this case, we can put the corner of the front step at (0, 0). We can also rotate 45° to make the stairs horizontal, which makes the motion of the cart symmetric. Here's an animation of what the system looks like going through one step:
Now that we have that simpler motion defined, we can apply a couple transformations to bring it back to the view we're interested in: We can rotate back 45° to line up the stairs, and then follow the cart as it moves, going up one step for every turn.
If you'd like to see the equations that define this, you can dig into the code.

Sunday, May 5, 2019

Reverse the Polarity

[Title from an (in)famous Doctor Who quote]
 

Last night I went to see Avengers: Endgame in 3D, and I can never resist playing with the glasses afterward, so I thought I'd talk a bit about how they work. In order to get a 3D image, your eyes need to get slightly different pictures – You can see this by alternately closing one eye and then the other. For a long time, this was done with glasses that had one red lens and one blue. The two images would be printed in the same red and blue, so each eye could only see one. Unfortunately, this only works for black & white (or in effect, black & purple) images.

Modern 3D films instead use two different polarizations. I've mentioned polarization before talking about sunglasses, and that's basically all the 3D glasses are, with one important difference: Normal polarized sunglasses are linearly polarized, while the kind used for 3D are circularly polarized. You can think of polarization as an arrow pointing perpendicular to the direction the light is traveling. For linear polarization, this arrow is fixed, but for circular polarization it rotates. The polarization in the linear case is usually described as horizontal and vertical, while for circular it is right- or left-handed*.

We need two different images to get the 3D effect, so we could do that with one horizontal filter, and one vertical. The problem is, if you tilt your head, the two images will mix. To avoid that, films use circularly polarized light, with the glasses constructed to filter right- or left-handed polarizations. To make that filtering happen, the light is first transformed into linear polarization, then filtered leading to some interesting effects. Next time you see a 3D movie, I highly recommend playing with the lenses a bit:
Both lenses forward, 90° rotation
One lens reversed, 90° rotation
*In case you're wondering what physicists mean by the handedness of quantities: You're probably used to talking about rotation in terms of clockwise and counter-clockwise. There's a problem with this though, if you imagine a see-through clock. Viewed from the back, the hands appear to be moving counter-clockwise. To remove this ambiguity, physicists take their right hand and curl their fingers in the direction an object is moving. Extending the thumb points in the direction of the rotation vector. In the case of a clock, this points into the wall.

Monday, April 29, 2019

Catenarian Oration

My coworkers and I go to a cafeteria for lunch every day, and along the way we pass under this large length of hose draped over the road. Every time, it reminds me of the classic physics problem: What shape does a massive (as opposed to massless) rope make under the force of gravity?

You might imagine it would be a parabola, since that's the shape of a projectile trajectory under a constant force. It turns it it's a similar, but slightly different shape called a catenary. The equation is
where a is a constant that depends on the mass of the rope. Over a short distance, it's fairly close to a parabola, but diverges as it gets away from the minimum:
Catenary (red) and parabola (blue)
If you look at the Wikipedia link up there, you can see a derivation based on the forces on the rope, but it gets a bit involved. Often in cases like this, it's easier to consider the energy of the system. Given enough time, any system left alone should eventually reach a minimum-energy state. In this case, the only potential energy involved is gravity, which has a simple form near the surface. For each little bit of mass dm, we can write
If the mass is evenly distributed along the rope, we can write it in terms of the density, λ:
Here's where it gets complicated though. Now we need to express the length of a little bit of the rope in terms of x and y,
Putting all that together gives the total energy,
Unfortunately, I can't find any way to solve this, let alone minimize it. It seems this is a case where it's best to stick with forces.