Introduction
Spirographs are something we’ve played with since we were kids, with two gears inside of each other. After placing your pencil in one of the gears, you would rotate the inner gear along the inner edge of the outer gear.
An example is shown here:
There are two things we can change. We can ch2ange the number of teeth in the inner gear, and the distance from the center of the circle of the point where our pencil is located in the inner gear.
The first thing to note is that when the pencil is located at the center of the smaller gear, it would create a circle (obviously).
However, when we start increasing the radius of the pencil on the inner circle, we get a new type of diagram.
Increasing the radius even more, we get
In terms of intuition, it seems as though when the radius of pen at the inner gear increases, the spirograph becomes less circular and begins to form spokes.
Spokes
First, we can look at the number of spokes. We can define a spoke as one loop, and they are clearly distinct. Spokes also indicate another degree of symmetry.
The following example is a 32 tooth gear inside of a 96 toothed gear, with a variety of different inner radii, getting the following result.
The most obvious trend is that there are three spokes (or three points on the edges of the triangle). Perhaps this could be due to the fact that
We could continue looking at this with an inner-toothed gear with gears.
This also had spokes.
The next piece of intuition comes from the idea that is equal to which still has a denominator of
We can generalize this to a formula saying that the number of loops or spikes or degrees of symmetry is equal to the where is the number of teeth in the outer gear and in the inner gear.
To explain this, note that each revolution of the inner gear creates a new loop. When the end of the new loop coincides with the beginning of the first loop, the rotation is complete. Then, imagine cutting open both of the circles and laying them flat on the same line. The number of times the inner gear repeats to make the outer gear is the number of revolutions.
Thus, we can guess at the shape of a spirograph based solely on the gear sizes.
Credit to https://nathanfriend.io/inspiral-web for the beginning diagrams.
Spirograph
First, note that the rotation matrix for plotting a circle based on the unit circle (so in a case where the inner radius is ) would be
However, we want to plot a point on the inner circle, not the outer circle. As a result, we can multiply the values of and by their distance from the origin, which would be from the below diagram.
So the system of equations for the smaller circle is
The pen is the red path drawn.
Further, when we look at just the inner gear, the pen is moving in a circle with angle However, it is also moving around with radius relative to the center of the inner circle.
As a result, we can add in the inner movement of the first gear.
So, the new point’s parametric equations are
Then, we can subtract the second set of equations from the first to get the location of the pen;
To complete this, we want to find a way to relate to where both are in terms of radians.
We can do that through noticing that the total distance travelled in terms of teeth for the inner gear and the outer gear is the same, or in other words, arcs A and B are the same length.
Thus, we can say that arc A, expressed as is equal to arc B, or We have to add to the measurement of because the pen was not the only part that was moving, so was the gear itself.
Then, we have
Or
Now we can plug these in and we have parametric equations that represent spirographs!
Now that we have our parametric equations, we can graph spirographs, as shown below.
Then, to simulate three gears, we can repeat the exact same process again.
Note that from the perspective of the inner gear in our two diagram setup, the same process occurs with the smaller gear. As a result, we can write that for the inner gear, it’s equations are
Then, we can add this back to our initial set of equations, but negative. This also makes sense because the third gear would be rotating in the same direction as the first, outer gear, so it should be added back to the overall equation.
Additionally, note that this is Substituting in for using te equations we previously had, we get Where and and .
This gives
We can continue extrapolating this process to get 4 and any number of gear spirographs.
Here is a four gear spirograph, similarly derived.
Its equations are We can keep going, making 5, 6, and more geared spirographs.