Updated · By Pete Bromfield, IB Maths IA examiner

Annotated exemplar · AA HL

Predicting Spirograph patterns with complex numbers

Complex numbers, roots of unity and calculus · about 11 pages · suggested mark · our judgement 16/20

Exemplar written by IB Math Revision for teaching — not a real student's IA, not moderated by the IB. Study it — don't reuse it: submitting or copying it is academic misconduct. The data and the student voice are illustrative, and the marks are our judgement. Schools check coursework with similarity software such as Turnitin.

A solid AA HL exploration at about 16/20: a complex-number model of the Spirograph derived from the no-slip condition, a gcd argument for when the pattern closes, the number of lobes from |z|² = z z̄, the pen's speed from the derivative, and arc length by numerical integration, tested against the student's own drawings. The annotations show exactly which gaps — unproved steps and reflection that stops at “perhaps” — keep it out of the top band, and what would lift it.

How this exemplar would be marked

CriterionMarkWhy
A · Presentation4/4Well organised, coherent and concise around a clear three-part aim; each section answers one part and the conclusion answers them in order.
B · Mathematical communication3/4Mostly appropriate: variables defined, equations displayed and numbered, a well-chosen table and figures. Some derivations skip lines a reader needs, and the test would be clearer with photographs next to the model.
C · Personal engagement3/3Outstanding, though not flawless: the student's own set, drawings and measurements, questions that come from what happened (a pattern that would not close, a pattern that took far longer to draw), and a surprise in their own table followed up in Section 5. The extensions at the end are generic rather than tried.
D · Reflection2/3Meaningful reflection — the model is tested and a known special case checks the integral — but it stops short of critical: the systematic error in the diameters is noticed and left at “perhaps”, and limitations are listed rather than evaluated.
E · Use of mathematics4/6Relevant AA HL mathematics that is correct and shows good understanding (complex exponentials, z z̄, roots of unity, derivative and arc length), but not rigorous throughout: the minimal period and the symmetry order are asserted or checked numerically rather than proved, and the arc-length formula for the special case is quoted.
Total16/20About 16/20: a good HL exploration held back by fixable gaps in rigour and depth of reflection, not by its topic or its mathematics. The “to lift it” notes show how each gap could be closed in a final draft.

Marks are our judgement of this teaching exemplar against the current criteria, explained criterion by criterion. They are not IB moderation results.

Excerpts with examiner annotations

Free sections are shown below with comments; the rest is in the full exemplar, available in the protected viewer with the IA package or a Pro plan.

1. Introduction

Clearing out my grandparents' loft I found an old Spirograph-style set: a plastic ring with 96 teeth on the inside and twelve toothed wheels. You pin the ring down, put a pen through a hole in a wheel and roll the wheel round inside the ring. Some wheels give a flower with a few fat petals, others a dense lace of thirty or more, and some take so long to close that I gave up on my first attempt before the pattern had joined up. I wanted to know if I could predict the pattern before drawing it.

Aim. To model the path of the pen with complex numbers and use the model to predict (i) how many lobes (“petals”) a pattern has, (ii) how many times the wheel must go round the ring before the pattern closes, and (iii) how pointed the lobes are, and then to test the predictions against my own drawings.

I chose complex numbers because in class the exponential form \(re^{i\theta}\) made rotations easy, and rolling is a rotation on top of a rotation.

C A genuine starting point and a clear reason for the choice of method. Engagement is visible from the start.

A A clear three-part aim with a test at the end. It is answered in order, which is the main reason A reaches 4.

2. Modelling the pen with complex numbers

I put the centre of the ring at the origin of the complex plane. The teeth are equally spaced; I measured 10 teeth as 31.4 mm, so the spacing is about \(\pi\) mm and a gear with \(n\) teeth has (pitch) radius \(\frac{n\pi}{2\pi} = \frac n2\) mm. So the ring has radius \(R = 48\) mm and a wheel with \(n\) teeth has radius \(r = \frac{n}{2}\) mm. The pen is in a hole at distance \(\rho\) from the wheel's centre, with \(\rho < r\).

When the point of contact has moved round the ring by an angle \(\theta\), the wheel's centre is at \((R - r)e^{i\theta}\). Because the teeth mesh, the wheel does not slip, so the arc it has rolled along the ring, \(R\theta\), equals the arc of its own rim that has touched the ring. The wheel has therefore turned by \(\frac{R\theta}{r}\) clockwise relative to the line from its centre to the contact point, and that line itself has turned \(\theta\) anticlockwise. The net rotation of the wheel is \(\theta - \frac{R\theta}{r} = -\frac{(R - r)\theta}{r}\). Starting with the pen at its furthest point from the origin, its position is

\[ z(\theta) = (R - r)e^{i\theta} + \rho\, e^{-i\frac{(R - r)}{r}\theta}. \qquad (1) \]

36-tooth wheel: 8 lobes45-tooth wheel: 32 lobes64-tooth wheel: 3 lobes
Figure 1: Patterns drawn by the model z(θ) for three wheels in the 96-tooth ring (pen hole at ρ = 0.6r). The dotted circle is the ring.

The model's pictures look exactly like my drawings, which gave me confidence to use (1) for predictions.

E The model is derived, not quoted: the no-slip condition is turned into an angle, and the complex exponential form makes the combined rotation a single line. This is appropriate AA HL mathematics used correctly.

B Variables and units are defined and the origin chosen; the key equation is displayed and numbered.

D To lift it: “looks exactly like my drawings” is a visual check. The student could say here which features they will test numerically (lobe count, diameters) — they do this later, but reflection works best at the point it is needed.

3. When does the pattern close?

In the full exemplar (about 1.5 pages). The closing condition from the complex exponential, and the number of turns n/gcd(96, n). Open in the protected viewer

4. Counting the lobes

A lobe has its tip where the pen is furthest from the centre. Using \(|z|^2 = z\bar z\) with (1),

\[ |z|^2 = (R-r)^2 + \rho^2 + (R - r)\rho\left(e^{i\frac{R}{r}\theta} + e^{-i\frac{R}{r}\theta}\right) = (R-r)^2 + \rho^2 + 2(R-r)\rho\cos\left(\frac{R\theta}{r}\right). \qquad (3) \]

This is largest when \(\cos\frac{R\theta}{r} = 1\), i.e. \(\theta = \frac{2\pi r m}{R}\) for integers \(m\), and smallest when \(\cos\frac{R\theta}{r} = -1\). So the outer diameter of a pattern is \(2(R - r + \rho)\) and the inner diameter is \(2|R - r - \rho|\). During the \(k = \frac ng\) turns before the pattern closes, \(\theta\) runs from 0 to \(\frac{2\pi n}{g}\), and the tips occur every \(\frac{2\pi r}{R}\), so the number of lobes is

\[ \frac{2\pi n/g}{2\pi r/R} = \frac{n}{g}\cdot\frac{96}{n} = \frac{96}{\gcd(96, n)}. \qquad (4) \]

I also noticed that the patterns have rotational symmetry. Replacing \(\theta\) by \(\theta + \frac{2\pi r}{R}\) in (1) multiplies both terms by \(e^{i\frac{2\pi r}{R}}\) (the second because \(e^{-i\frac{2\pi(R-r)}{R}} = e^{-2\pi i}e^{i\frac{2\pi r}{R}}\)), so \(z\left(\theta + \frac{2\pi r}{R}\right) = e^{i\frac{2\pi r}{R}}z(\theta)\): moving on by one lobe rotates the whole picture by the angle \(\frac{2\pi n}{96}\). This rotation is a power of \(\omega = e^{2\pi i g/96}\), a \(\frac{96}{g}\)th root of unity, and I checked in a spreadsheet for all my wheels that its powers give every \(\frac{96}{g}\)th root of unity, so each pattern has rotational symmetry of order \(\frac{96}{g}\) — the same as the number of lobes.

Table 1: Predictions for every wheel in my set in the 96-tooth ring.
Wheel teeth ng = gcd(96, n)Predicted lobes 96/gPredicted turns n/g
306165
361283
408125
4533215
5024825
5242413
568127
601285
643232
722443
801665
841287

E Using z z̄ to get |z|² as a cosine is an elegant HL step, and the lobe count follows correctly from it. The symmetry argument with a root of unity is well chosen.

E To lift it: “I checked in a spreadsheet for all my wheels” is evidence, not proof. The general fact — that e^{2πin/96} generates all the (96/g)th roots of unity because gcd(n/g, 96/g) = 1 — has a short proof (Bézout, or: if a power m gives 1 then 96/g divides m·n/g, so 96/g divides m). Proving it would make Section 4 rigorous.

B Clear notation throughout; the derivation of (3) could show one more line of the expansion for a reader to follow easily.

5. Same number of lobes, different patterns

In the full exemplar (about 1.5 pages). Why three wheels with 8 lobes draw different patterns: the order of the lobes, with modular arithmetic. Open in the protected viewer

6. How pointed are the lobes?

In the full exemplar (about 1.5 pages). Differentiating the model to find the pen's speed, and why holes near the rim give pointed lobes. Open in the protected viewer

7. Testing the predictions

In the full exemplar (about 1.5 pages). Six drawings: lobe counts and measured diameters against the predictions. Open in the protected viewer

8. How far does the pen travel?

In the full exemplar (about 1 page). Arc length of a whole pattern by numerical integration, checked against the hypocycloid formula. Open in the protected viewer

9. Conclusion

The complex-number model \(z(\theta) = (R - r)e^{i\theta} + \rho e^{-i(R-r)\theta/r}\) predicts Spirograph patterns well. For a wheel with \(n\) teeth in the 96-tooth ring, the pattern has \(\frac{96}{\gcd(96,n)}\) lobes and closes after \(\frac{n}{\gcd(96,n)}\) turns, with rotational symmetry of the same order as the number of lobes. The lobes are most pointed when the pen hole is near the rim, because the pen's speed at the tips is \((R - r)(1 - \frac{\rho}{r})\). All six of my drawings had the predicted number of lobes, and the diameters were within 1.5 mm of the predictions.

The main limitation is that my measurements were done with a ruler and the differences were all in the same direction, which I could not fully explain. The model also assumes the wheel never slips and the pen is exactly at the hole's centre. In the future I would like to look at wheels rolling on the outside of the ring (epitrochoids), and at patterns made with two wheels.

A The conclusion answers all three parts of the aim with the key formulas.

D To lift it: the limitations are listed rather than evaluated. Which one matters most? The consistent shortfall in the diameters suggests an answer — the effective radius of the gears — and a sentence estimating it would show critical reflection.

C C is already at the top, but this is its weakest point: the extensions are generic. An extension the student actually tries — even one pattern with a wheel on the outside, predicted and then drawn — would keep the engagement going to the end.

Bibliography

In the full exemplar (about 0.5 page). Sources, technology used and appendix. Open in the protected viewer

What would push it higher?

  • Prove the two assertions: that the pattern can only close after whole turns (compare the two exponentials), and that the rotation generates all (96/g)th roots of unity (a gcd argument).
  • Treat the systematic shortfall in the diameters as a result: estimate the gears' effective radius from the measurements and re-test the model.
  • Differentiate z(θ) as a complex function to get the speed in one line, and derive the hypocycloid arch length yourself rather than quoting it.
  • Evaluate the limitations (which one matters most, and by how much) instead of listing them, and try one extension rather than naming several.

More annotated exemplars

All 16 annotated exemplars, including three deliberately mid-band drafts.

Read the whole exploration

The full “Spirograph patterns (AA HL)” exemplar, with an examiner's note on every section, is in the IA package with the other 15 exemplars (Pro and Platinum plans include them too). €39 once, 12 months' access, 14-day money-back guarantee. It helps you write your own IA; it never writes it for you.

See what's in the IA package

Already have access? Open it in the viewer · All exemplars · Want your own draft marked like this? Examiner review