Saturday, June 22, 2013

Membranes

As you may be aware, I like making geometrical constructions. Ever since I made an AlDraw app for Android, I've been using it to post constructions on Facebook. The other day I posted this construction, titled "Membranes".
This wasn't the first time I constructed this image, but when I reuse a construction, I still reconstruct it, rather than simply copying the original. But when I did that this time I discovered that I made the original one incorrectly. It wasn't exactly a mistake. I made it the way I had intended to, but I found out when I made a small change, it made the whole thing more elegant.

To explain how, I'll need to explain how I constructed it in the first place. I started with these two circles. The radius of the outer circle is R. The radius of the inner circle is R/2. They are both centered at (0, 0).
Next I drew circular arcs between the inner and outer circles. All three have radius R and are centered on the edge of the outer circle. The red at 0°, the blue at 30° and the green at 60°. I've shown the centers of the circles in the same color as the circles.
Then I added those same circles again, reflected around the x and y axes.
Then I wanted to connect the different arcs, and I want it to look smooth, so I want to make circular arcs that are tangent to the arcs they're connecting. How do I do that?

Well, if two circles are tangent, then a line drawn through the centers of both will pass through the point of tangency. So if you have a circle, and you know what point you want to be tangent, then you can draw a line through the center of that circle and through that point. Then any circle that is centered on that line and that goes through that point will be tangent to the first circle. And if you have two circles like that, and you want to find one circle that is tangent to both, then you can draw two lines. Where they intersect will be the center of the third circle.

So I'll start with the red circles. I drew lines through the centers of the red circles and the points where the red circles intersect the inner circle. Where they intersect is the center of the circular arc that connect the two arcs. Note that each red line comes close to where the other red circle intersects the outer circle, but not quite. Also, each red line comes close to where the blue circles intersect the inner circle, but again, not quite.
The I did the same thing with the blue circles. I drew a line through the center of each blue circle and the point where that circle intersects the inner circle. Note the intersection of the blue lines is close to the outer circle, but not quite on it. Also, each blue line comes close to where the green circles intersect the inner circle, but again, not quite.
The next and final step is where I noticed the mistake. Because the next step I simply drew straight line segments to connect the green arcs. The straight lines are nearly tangent to the green arcs. But not quite.
Now at this point, I could have simply found the circular arcs that would be tangent to the green arcs the same way I did for the blue and red. That would be one way of fixing it. But I wanted those green arcs to be connected by straight lines and for those line to actually be tangent to the arcs. And the only way to do that is the change the radius of the inner circle, which changes where the red and blue circles intersect it, which changes where the connecting arcs need to be. In other words, changing nearly the whole image.

So this time, I started not with the outer circle and inner circle, but rather the outer circle and one of the green circles.
Now I need to find the point on the green circle where a horizontal line will be tangent to it. A line drawn through the center of a circle will always be perpendicular to the circle and hence perpendicular to the tangent line where it intersect the circle. So what I need to do is draw a vertical line through the center of the green circle, and where it intersects the green circle is where a horizontal line will be tangent to it.
Then I can draw the inner circle with the same center as the outer circle and that goes through that point. A little bit of trigonometry shows that the radius of the new inner circle is R, which is approximately .5176R.
Then I drew the other circles the same as before, between the outer circle and the new inner circle.
Again, I drew lines between the centers of the red circles and the points where they intersect the inner circle. But notice, this time they don't pass close to where the other red circle intersect the outer circle, they pass right through it. Also, although the difference is too small to notice at this scale, the red lines also pass directly through where the point where the blue circles intersect the inner circle.
And again, I drew the lines between the centers of the blue circles and the points where they intersect the inner circle. And again, notice that they don't intersect near the outer circle, they intersect directly on top of it. Also, they pass directly through the points where the green circles intersect the inner circle.
And finally, I drew the lines connecting the green arcs, and this time, they're actually tangent.
It's interesting how that one little almost imperceptible change made the whole thing more elegant.






Saturday, June 15, 2013

Superman and the Physics of Collapsing Buildings

I saw the new Superman movie this weekend, and I liked it. But it wasn't perfect, and the thing that bothered me the most was the bad physics. I'm not talking about Superman being able to fly or the Kryptonian terraforming machine being able to increase Earth's mass. That kind of thing is expected in a superhero movie. I'm talking about more everyday physics. The most egregious example is skyscrapers falling over.

It happens multiple times in the movie. Superman throws a bad guy (or a bad guy throws Superman) through a skyscraper, part of the building is damaged, it tips and falls over like a tree. You might be wondering what's wrong with that. After all, trees fall down like that. If you build a tower out of Legos and knock it down, it falls down like that. But large buildings don't fall down like trees or Legos. They don't fall over sideways, they simply fall straight down.

So, why do large building fall down? Because gravity pulls them down. It does not pull sideways, so it doesn't tip sideways. But then why do Legos and trees fall sideways? Because there are other forces at work, namely the internal forces holding them together and in the same shape. Gravity is pulling down, but the internal forces prevent the top from simply collapsing into the bottom, so it falls sideways.
Here's a force diagram of a brick in a Lego tower tipping over. Gravity is pulling down. Normal force is pushing at the same angle the building is tipping. The total force is in blue. The vertical components mostly cancel, leaving the total force going mostly sideways.

But why don't large buildings do the same? Don't they have internal forces too? Well, yes, but they don't scale up. As the building gets bigger, it gets heavier, and gravity pulls more strongly. The internal forces of a large building will be stronger than those of a Lego building because it's made with steel rather than plastic, but it will be weaker relative to the force of gravity. The normal force will still be there, causing it to tip just a little bit, but gravity will dominate, so it will fall almost straight down. The top will simply collapse into the bottom, rather than being pushed to the side.

So why does this matter? It's just a movie, right? That's true, but understanding physics and how forces scale can be important. For example, there was a very well known case where some tall buildings fell down unexpectedly. As physics predicts, the buildings fell mostly straight down. (But not entirely. A lot of nearby buildings were hit by debris.) But a lot of people didn't understand the physics, and thought that the fact that the buildings fell down instead of over meant the buildings weren't brought down by airplanes, but rather by controlled demolition, and thus a conspiracy theory was born.