Objective: Find the equations for the visual outline of a spinning cube. Level: Precalculus (with vectors), vector calculus, or linear algebra. Prerequisites: Distance formula in three dimensions, dot products, computations for projections and scalar projections, and the Pythagorean Theorem. Platform: The demo is physically based, but can be simulated within various software packages. Instructor's Notes: Take a solid cube with rods attached at diagonally opposite vertices. Hold the rods horizontally and rapidly spin the cube. (See Figure 1.) You should see a curved outline formed by the spinning cube. Our objective is to discover how the straight edges of the cube become curved.
Figure 1. For the one instant in time shown in Figure 1 the upper outline is simply three lines, see Figure 2, but as the cube is rotated that outline changes. What we see as the cube is quickly rotated is the points on the edge of the cube when they appear to be at a maximum distance from the center of rotation.
Figure 2. A simulation of this behavior can be generated by using a Styrofoam cube with a nail inserted in a corner. Next, insert the nail in the chuck of a variable speed drill, tighten the drill chuck, and experiment with drill speeds to generate a view of the behavior of the points on the edges of the cube as described above. See Figure 3.
Figure 3. The Mathematical Model To determine the equations for the visual outline of the spinning cube we assume that the edge of the cube is one unit with point O at the origin (0, 0, 0) and point P at (1, 1, 1). The line segment OP is the axis of revolution and point A is (0, 0, 1) with B at (0, 1, 1) as shown in Figure 4. Figure 4. As the cube is quickly rotated the points we
see are the points on the edge of the cube when they appear at a maximum
distance from the center of rotation. This means that to determine the shape of
the outline of the rotating cube we need to compute the distance from each point
on an edge to the axis of revolution segment OP. For a point (x, y, z) on an
edge consider the plane containing it and the points O and P. We define the
independent variable t to be the distance from the origin O to a point along the
axis of revolution. That is, t = 0 corresponds to the origin and t increases as
we move along the axis of rotation towards P. The distance formula for point in
3-space tells us that at P we have
Figure 5. Since each edge of our cube lies in a coordinate plane or in a plane parallel to a coordinate plane only one of x, y, or z varies along an edge. Hence we need only consider three representative edges; one in which each of x, y, or z varies. We will use the three edges OA, AB, and BP shown in Figure 4.
The Curve of the Cube A graph of the function h(t) is shown in Figure 10. As you can see from watching the rotating cube, the outline is straight on the sides and curved in the middle. Figure 10. More can be said about the curved portion of h(t). Let then squaring both sides and rearranging terms we get
and completing the square in t we obtain the expression
which is the equation of a hyperbola. Thus the curved shape seen when the cube is rapidly rotated is actually a portion of a hyperbola. With Linear Algebra In a linear algebra course this demo provides an opportunity to employ topics that are often described as elementary computer graphics. In the development of the function h(t) we used a unit cube with its lower left back corner at the origin O of a three dimensional coordinate system and viewed the axis of revolution as the segment OP as in Figure 4. However, when we illustrated the spinning cube in the animation at the beginning of the demo and discussed the rotations of the cube as in Figures 1 and 2 we changed the orientation of the cube so that segment OP appeared horizontal. Certainly this eases the use of a physical model and would be a natural position for using the drill in Figure 3. This change of view can initiate a discussion about how to rotate the cube of Figure 4 to that in Figure 1. Once this is done a further discussion of how to achieve the spinning effect naturally follows. Each of these involve rotations about coordinate axes in 3-space and parameterizing rotations to perform a spin. Ideally it would be nice for students to perform the steps in a programming language or in a mathematical environment like Maple, Mathematica, or MATLAB. This could be used as a group project for an appropriate class. Following is an animation of the process which emphasizes the requisite steps. (The animation is deliberately slow.) This animation was developed in MATLAB and a file that produced the frames containing cubes can be downloaded by clicking here.
The preceding animation is short and may appear at a slow rate. A longer file that should run much faster in a utility like Windows Media Player or Animation Shop and deliver a greatly enhanced visualization of the spinning cube is available. Click here to download an extended and faster animation file. If you have Quicktime player installed click here to see a Quicktime animation of the spinning cube.
Dr. Richard Grant and submitted by Dr. Roland Minton both of Roanoke College, Salem Virginia, and is included in Demos with Positive Impact with their permission. The animations and MATLAB file were created by David R. Hill and included with his permission. |
![]() |
DRH 2/24/2003 Last updated 5/18/2006 DRH
Visitors since 1/22/2006
(hit counter info prior to 2006 was lost; estimated hits 2100)